:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 6px;
    font-size: 28px;
}
.logo a {
    display: inline-flex;   /* 让 <a> 成为弹性容器 */
    align-items: center;    /* 垂直居中 */
    gap: 10px;              /* 图标与文字间距 */
    text-decoration: none;
    color: inherit;
}
.logo span {
    font-size: 30px;
    transform: translateY(-2px);
}
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* 页面内容通用样式 */
.page {
    padding: 70px 0 10px;
    min-height: 100vh;
}
/* 页面内容通用样式 */
.pageindex {
    padding: 60px 0 30px 0;
    min-height: 100vh;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    padding-top:30px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 1000px;
    margin: 10px auto;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btnsmall {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1px 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btnsmall:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



/* 首页样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-top:40px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left; /* 文字左对齐 */
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--dark-color);
    line-height: 1.2;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 18px;
    color: var(--text-light);
    max-width: 90%;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 36px; /* 关键：给圆点留站位 */
    border-radius: 10px;
 /*   overflow: hidden;*/
    box-shadow: var(--shadow);
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 10px;
    text-align: center;
}

.carousel-controls {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-controls button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.carousel-controls button.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.carousel-nav button {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-nav button:hover {
    background: var(--primary-color);
    color: white;
}

.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* 功能介绍页面样式 */
.feature-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: white;
    border: none;
    border-radius: 30px;
    font-weight: 800;
    font-size:18px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.feature-slider {
    background: white;
    border-radius: 10px;
    padding-top: 1px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    padding-bottom:20px;
 
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius:20px;
    height:600px;
    vertical-align:top;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-width: 90%;
    max-height:800px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      display: block;   
         overflow: hidden; 
}

.slide-desc {
    text-align: center;
    max-width: 90%;
    padding-top:40px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    top: 10px;
    gap: 10px;
}

.slider-controls button {
    background: var(--dark-color);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-controls button.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 下载页面样式 */
.download-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.download-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.download-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.download-card p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.system-req {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.req-table th, .req-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.req-table th {
    background-color: #f2f2f2;
    color: var(--dark-color);
}

/* 使用帮助页面样式 */
.faq-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
}

.faq-answer {
    margin-top: 15px;
    color: var(--text-light);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.video-tutorials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.video-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 图片链接块 */
.video-link {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 450;          /* 保持 4:3 比例 */
  overflow: hidden;
}
.video-img {
  width: 100%;
  height: 100%;
  object-fit: cover;                /* 等比填满 */
  transition: transform 0.4s ease;
}
.video-link:hover .video-img {
  transform: scale(1.05);
}

/* 文字信息 */
.video-info {
  padding: 20px 24px 24px;
}

.video-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--dark-color, #2c3e50);
}
.video-info p {
  margin: 0;
  color: var(--text-light, #777);
  font-size: 14px;
  line-height: 1.5;
}
.video-info a {
    text-decoration: none;   /* 去掉下画线 */
    color: inherit;          /* 继承父级文字颜色，保持统一 */
    display: block;          /* 让整个块都可点 */
}
/* 联系我们页面样式 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        gap: 30px;
    }

    .slide-desc {
        text-align: center;
        max-width: 90%;
        padding-top: 36px;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .feature-slider {
        position: relative; /* 成为控制条的包含块 */
        padding-bottom: 40px; /* 给绝对定位的控制条留地儿 */
    }

    .slider-controls {
        position: absolute;
        left: 50%;
        top: 10px; /* 想再近一点就改 5px */
        transform: translateX(-50%);
        margin-top: 0; /* 去掉之前的 margin */
        z-index: 10;
    }

    /* 你之前圆角被挡的修复，也一起放这儿 */
    .slide img {
        border-radius: 15px;
        display: block;
    }
    /* 1. 给容器一个看得见的高度 */
    .slider-container {
        position: relative;
        height: 62vh; /* 可视区域 62%，自己调 */
        max-height: 420px; /* 防止横屏太大 */
        overflow: hidden;
    }

    /* 2. 控制条相对于这个容器绝对定位 */
    .slider-controls {
        position: absolute;
        left: 50%;
        bottom: 8px; /* 贴底 8 像素，再近可改 4px */
        transform: translateX(-50%);
        margin-top: 0;
        z-index: 10;
    }

    /* 3. 图片圆角保险 */
    .slide img {
        border-radius: 15px;
        display: block;
    }
}


/* 定义你自己的图标类，'fa-ktlogo' 是自定义的类名 */
.fa-ktlogo::before {
    content: ""; /* 伪元素必需有 content 属性 */
    display: inline-block;
    width: 1.5em; /* 使用 em 单位以便继承父元素的字体大小 */
    height: 1.5em;
    background-image: url('/images/logo.png'); /* 指向你的 logo 路径 */
    background-size: contain; /* 确保图标缩放合适 */
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -0.125em; /* 微调垂直对齐，使其与其他 Font Awesome 图标对齐 */
    border-radius: 50%; /* 圆形效果 */
    border: 2px solid white; /* 白色边框 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* 添加一些阴影效果 */
    transition: all 0.3s ease;
}

 
  /* 悬停效果 */
.fa-ktlogo:hover::before {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
        
.btn-download {
    background: var(--accent-color);
    font-size: 18px;
    padding: 14px 36px;
}

.btn-download:hover {
    background: #c0392b;
}


/*======== 下载说明  ========*/
/*.download-intro {
    background: linear-gradient(135deg, #f5f9ff 0%, #eef4ff 100%);
    border-radius: 16px;
    padding: 5px 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    margin-top: 20px;
}

.download-intro h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
}

.download-intro h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}*/

/* 下载卡片 */
/*.download-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 30px;  
}

.download-card-main {
    background: #fff;
    border-radius: 12px;
    padding: 40px 50px;
    text-align: center;
     flex: 1 1 360px;  
    max-width: 460px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.download-card-main:hover {
    transform: translateY(-5px);
}

.download-card-main i {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.download-card-main h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.download-card-main p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-download {
    background: var(--accent-color);
    font-size: 18px;
    padding: 14px 36px;
}

.btn-download:hover {
    background: #c0392b;
}


.btn-download2 {
    background: var(--dark-color);
    font-size: 18px;
    padding: 14px 36px;
}

.btn-download2:hover {
    background: #c0392b;
}*/


/* 配置需求 */
/*.req-box h5 {
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--dark-color);
}

.req-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.req-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 35px;
    flex: 1 1 260px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.req-card h6 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.req-card ul {
    list-style: none;
    color: var(--text-light);
}

.req-card li + li {
    margin-top: 8px;
}*/

/* 响应式微调 */
/*@media (max-width: 768px) {
    .download-intro {
        padding: 30px 20px;
    }

 
    .req-cards {
        gap: 20px;
    }

    .download-grid {
        flex-direction: column;*/ /* 垂直排列 */
        /*align-items: center;*/ /* 卡片居中 */
        /*gap: 25px;*/ /* 上下卡片间距，可自行调 */
    /*}

    .download-card-main {
        width: 100%;*/ /* 撑满容器 */
        /*max-width: 400px;*/ /* 给个最大宽度，防止太扁 */
    /*}
}*/





        /* ========= 软件列表 ========= */
        .software-list {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-bottom: 60px;
        }
        .software-card {
            background: #fff;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 30px 15px;
            transition: var(--transition);
        }
        .software-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }

        /* 软件标题 */
        .software-card h3 {
            font-size: 24px;
            color: var(--dark-color);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .software-card .badge {
            font-size: 13px;
            padding: 4px 10px;
            border-radius: 20px;
            background: var(--text-color);
            color: #fff;
            font-weight: 600;
        }

        /* 简介 */
        .software-card .desc {
            color: var(--text-light);
            margin-bottom: 20px;
            line-height: 1.7;
        }

        /* 运行环境 */
        .env {
            background: #f5f9ff;
            border-left: 4px solid var(--primary-color);
            padding: 12px 15px;
            margin-bottom: 4px;
            border-radius: 6px;
            font-size: 14px;
            color: var(--text-light);
            border-bottom:#302c7b 1px solid;
        }
        .env strong {
            color: var(--dark-color);
        }

        /* 销售价格 */
        .envPrice {
            background: #f9f9f9;
            border-left: 4px solid var(--accent-color);
            padding: 12px 15px;
            margin-bottom: 4px;
            border-radius: 6px;
            font-size: 14px;
            color: var(--text-light);
            border-bottom:#571111 1px solid;
        }
        .envPrice strong {
            color: var(--dark-color);
        }


        /* 按钮区 */
        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 28px;
            border-radius: 30px;
            font-weight: 600;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            box-shadow: var(--shadow);
        }
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
        }
        .btn-primary {
            background: var(--primary-color);
            color: #fff;
        }
        .btn-primary:hover {
            background: var(--secondary-color);
        }
        .btn-accent {
            background: var(--accent-color);
            color: #fff;
        }
        .btn-accent:hover {
            background: #c0392b;
        }
/* CSS：追加在样式表任意位置即可 */
.btn-sm {
  margin-top:5px;
  padding: 10px 20px;          /* 上下减少 6px，左右减少 12px */
  font-size: 14px;            /* 字号小一号 */
  border-radius: 20px;        /* 圆角同步缩小 */
  gap: 10px;                   /* 图标文字间距 */
  height:40px;
}
        /* 小屏幕适配 */
        @media (max-width: 768px) {
            .btn-group {
                flex-direction: column;
            }
            .btn {
                width: 100%;
            }
        }


    /* 其它软件列表样式 */
    .software-list {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 软件卡片样式 */
    .software-card {
        background: white;
        border-radius: 12px;
        padding: 30px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .software-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .software-card h3 {
        color: var(--dark-color);
        font-size: 24px;
        margin-bottom: 15px;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 10px;
    }

    .software-card p {
        color: var(--text-light);
        margin-bottom: 25px;
        line-height: 1.6;
    }

    /* 按钮样式 */
    .software-buttons {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }

    .btn-external {
        background: var(--secondary-color);
        padding: 10px 20px;
        font-size: 14px;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
        .software-buttons {
            flex-direction: column;
            align-items: stretch;
        }
        
        .btn-download, .btn-external {
            width: 100%;
            text-align: center;
        }
        
        .software-card {
            padding: 20px;
        }
    }




    /* 二级导航样式 */
.sub-navigation {
    /* 视觉层次：柔和渐变 + 下边框 */
    background: linear-gradient(135deg, #fdfdff 0%, #e0edff 100%);
    border-bottom: 1px solid #c8dbff;   /* 同步加深边框 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);

    position: sticky;
    top: 60px;
    z-index: 100;
    padding-top: 10px;
    width: calc(100% - 40px);
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09); /* 阴影也稍微调淡 */
}

 
 
.sub-nav-links {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.sub-nav-link {
    padding: 6px 20px;
    margin: 0 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
     background: #f0f0f0; 
     border: 1px solid #ddd;     
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);   
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);  
}

.sub-nav-link:hover, .sub-nav-link.active {
    background: var(--primary-color);
    color: white;
}
 
/* 选中时：高亮主色 */
.sub-nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* hover 时：加深一点 */
.sub-nav-link:not(.active):hover {
    background: #e0e0e0;
     transform: translateY(-2px);   
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #333;
}


/* 搜索框样式 */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-filters select, .search-filters input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.search-filters input {
    flex: 1;
    min-width: 200px;
}

/* 书单列表样式 */
.booklist-container, .questions-container {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.booklist-header, .questions-header {
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(-45deg, #fdfdff 0%, #e0edff 100%);
    border-bottom: 1px solid #c8dbff;   /* 同步加深边框 */
}

.booklist-items, .questions-list {
    padding: 0;
}

.booklist-item, .question-item {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.booklist-item:last-child, .question-item:last-child {
    border-bottom: none;
}

.book-info, .question-content {
    flex: 1;
}

.book-info h4, .question-content p {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.book-meta, .question-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.book-meta span, .question-meta span {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
}

.book-actions, .question-actions {
    display: inline-flex; 
    gap: 10px;
       white-space: nowrap;       /* 强制不换行 */
    align-items: center;
 

}
.book-actions .btn-micro {
    flex: 1 1 auto;            /* 平均分配宽度，可压缩 */
    min-width: 0;              /* 允许文字截断 */
    overflow: hidden;
    text-overflow: ellipsis;   /* 超宽显示 ... */
    white-space: nowrap;
}


/* 树形目录样式 */
.outline-container {
    display: flex;
    gap: 12px;
}

.outline-tree {
    flex: 0 0 300px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0 20px 20px;  
    min-height: 600px;
    overflow-y: auto;
    height:800px;
}


.outline-tree h3 {
    position: sticky;
    top: 0;
    z-index: 10;
    /* 去掉四周空隙，左右顶头 */
    margin: -20px -20px 10px;  /* 20px 正好是 .outline-tree 的 padding 值 */
    padding: 10px 20px;      /* 上下 8px 视觉舒服，左右 20px 把负 margin 补回 */
    background: linear-gradient(-45deg, #fdfdff 0%, #e0edff 100%);
    border-bottom: 1px solid #c8dbff;
}

.tree {
    list-style: none;
    padding-left: 0;
}

.tree ul {
    list-style: none;
    padding-left: 10px;
}

.tree-node {
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: var(--transition);
    position: relative;
}

.tree-node:hover {
    background: #f0f0f0;
}
 
.tree-node.collapsed::before {
    transform: rotate(90deg);
}

.tree ul.collapsed {
    display: none;
}

.questions-container {
    flex: 1;
    overflow-y: auto;
    min-height: 600px;
}
 


.question-options p {
    margin: 5px 0;
}


/* ===== 横向滚动树（不改原结构）===== */
.tree-container {
    overflow-x: auto;      /* 1. 横向滚动条 */
    overflow-y: auto;    /* 2. 不要纵向条 */
    padding-bottom: 8px;   /* 给滚动条留点空间 */
}

/* 强制所有节点不换行，超长用省略号提示 */
.tree-node,
.tree-container ul li {
    white-space: nowrap;               /* 关键：不换行 */
}

/* 保留原有缩进，但让 ul 横向撑开 */
.tree-container ul {
    display: block;        /* 保持块级 */
    padding-left: 10px;    /* 原缩进量 */
    margin: 0;
}

 
/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    border-bottom: 0px solid #eee;
}

.page-btn {
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sub-nav-links {
        flex-wrap: wrap;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filters select, .search-filters input {
        width: 100%;
    }
    
    .booklist-item, .question-item {
        flex-direction: column;
    }
    
    .book-actions, .question-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .outline-container {
        flex-direction: column;
    }
    
    .outline-tree {
        flex: none;
        max-height: 600px;
        height:300px;
    }
}


/* ---------- 分页组件 ---------- */
.pagination {
    display: flex;
    justify-content: center;
    padding: 10px 0 10px;
}

.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li {
    display: inline-flex;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-color);
    background: linear-gradient(135deg, #fdfdff 0%, #e0edff 100%);
    border-bottom: 1px solid #c8dbff;   /* 同步加深边框 */

    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}

/* 当前页 */
.pagination li.active span {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, .25);
}

/* 禁用状态 */
.pagination li.disabled span {
    opacity: .45;
    cursor: not-allowed;
}

/* 悬停/聚焦 */
.pagination a:hover,
.pagination a:focus {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, .35);
}

/* 上一页 / 下一页 / 省略号 */
.pagination .PagedList-skipToNext a,
.pagination .PagedList-skipToPrevious a,
.pagination .PagedList-ellipses a {
    font-size: 16px;
    letter-spacing: -1px;
}
.pagination li.disabled span.page-link,
.pagination li.disabled a.page-link {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
/* 移动端：按钮稍小，间距更紧凑 */
@media (max-width: 768px) {
    .pagination a,
    .pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .pagination ul {
        gap: 6px;
    }
}


 
 
/* ===== 微按钮 开始===== */
.btn-micro {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
     cursor: pointer;
     font-weight:bold;
}

.btn-micro:hover {
    background-color: #e2e6ea !important;
    border-color: #adb5bd !important;
     cursor: pointer;

}

/* 专用颜色样式 */
.btn-micro.btn-download2 {
    background-color: #2c3e50 !important;
    color: white !important;
    border-color: #2c3e50 !important;
     cursor: pointer;
}

    .btn-micro.btn-download2:hover {
        background-color: #1e2a38 !important;
        cursor: pointer;
    }

.btn-micro.toggle-outline {
    background-color: #f8f9fa !important;
    color: #333 !important;
    border-color: #bbb !important;
     cursor: pointer;
}

.btn-micro.toggle-outline:hover {
    background-color: #e2e6ea !important;
     cursor: pointer;
}
/* ===== 微按钮 结束 ===== */


/* ===== 手风琴大纲容器 ===== */
 
.bookSyllabusView {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    overflow: hidden;
  transition: height 0.3s ease;
}

.bookSyllabusView > div {
    overflow: hidden;
      transition: height 0.3s ease;
}

.bookSyllabusView.show {
    grid-template-rows: 1fr;
}

/* 让 outline-preview 内部树目录左边再缩一点 */
.outline-preview {
    padding-left: 10px;
    font-size: 14px;
    line-height: 1.6;
}


/* ===== 书单卡片整体 ===== */
.booklist-item {
    position: relative;
    background: #fff;
    border: 1px solid #e5e9f1; /* 浅色边框 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* 初始轻微立体 */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 20px 25px;
    margin-bottom: 16px; /* 与其他卡片间距 */
    width: calc(100% - 30px);
     margin: 10px auto;
       grid-template-rows: auto 0fr;  /* 第 2 行（大纲区域）默认 0 高 */
  transition: grid-template-rows 0.35s ease;
}

/* 悬停：再浮起 + 更明显的阴影 */
.booklist-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* 内部按钮如果用了 .btn-micro，也稍微呼应一下圆角 */
.booklist-item .btn-micro {
    border-radius: 4px;            /* 与卡片圆角比例协调 */
}
 
 


.book-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}
.book-title-bar h4 {
    margin: 0;
    flex: 1;
}
.title-chevron {
    font-size: 1.1em;
    color: royalblue;
    transition: transform .25s;
}
.bookSyllabusView.show ~ .booklist-item .title-chevron,
.book-title-bar.expanded .title-chevron {
    transform: rotate(180deg);
}

/* 在文件末尾添加以下样式 */
.bookSyllabusView {
    box-sizing: border-box;
    transition: height 0.3s ease !important;
}

.snap {
    display: none;
    width: 100% !important;
    height: auto !important;
}

/* 确保公式元素正确显示 */
.outline-preview {
    width: 100%;
    line-height: 1.5;
}

/* 修复转换后图片的显示 */
.bookSyllabusView.show .snap {
    display: block;
    opacity: 1;
}

 
/* 树形目录样式 */
.tree {
    list-style-type: none;
    padding-left: 0;
}

.tree ul {
    list-style-type: none;
    padding-left: 10px;
    display: block; /* 确保默认显示 */
}

.tree li {
    margin: 5px 0;
}

.tree-node {
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer; /* 添加光标指针，表示可点击 */
}

.tree-node:hover {
    background-color: #f0f0f0;
}

.tree-expand-icon {
    cursor: pointer;
    margin-right: 8px; /* 增加右边距 */
    font-size: 12px;
    transition: transform 0.2s;
    width: 16px; /* 固定宽度 */
    text-align: center; /* 居中图标 */
}

.tree-expand-icon.collapsed {
    transform: rotate(-90deg);
}

.tree-node-link {
    cursor: pointer;
    text-decoration: none;
    color: #333;
    flex-grow: 1;
}

.tree-node-link:hover {
    color: #007bff;
}

.tree-node-link.selected {
    color: #007bff;
    font-weight: bold;
}

/* 为有链接的节点添加特殊样式 */
.tree-node-link.has-link {
    color: #007bff;
    font-weight: 500;
}

.tree ul.collapsed {
    display: none;
}

/* 不同层级的不同样式 */
.tree-node[data-level="1"] {
    font-weight: bold;
    font-size: 16px;
    padding-left: 5px;
}

.tree-node[data-level="2"] {
    font-weight: 600;
    font-size: 15px;
    padding-left: 12px;
}

.tree-node[data-level="3"] {
    font-size: 14px;
    padding-left: 20px;
}

.tree-node[data-level="4"] {
    font-size: 14px;
    padding-left: 30px;
}

.tree-node[data-level="5"] {
    font-size: 13px;
    padding-left: 40px;
}

.tree-node[data-level="6"] {
    font-size: 13px;
    padding-left: 50px;
}

/* 加载中样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 无下级年级置灰 */
.tree-node.disabled-grade {
    color: #9e9e9e;
    cursor: not-allowed;
}
.tree-node.disabled-grade .tree-node-text {
    pointer-events: none;   /* 禁止点击文字 */
}
.tree-node.disabled-grade .tree-expand-icon {
    display: none;          /* 去掉箭头 */
}

.tree-node.has-link::before {
    content: '›';
    margin-right:3px;
    font-size: 14px;
    font-weight:bold;
    color: var(--primary-color);
    transition: transform .2s ease;
}
.tree-node.has-link:not(.collapsed-parent)::before {
    transform: rotate(0deg);
}

 