: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: 30px;
}

.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: 120px 0 60px;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.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: 800px;
    margin: 0 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);
}

/* 首页样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 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);
}
        


/*======== 下载说明  ========*/
.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;
        max-width: 900px;
        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;
        }
    }