/* ===================== 通用基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #e63946;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮基础样式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e63946;
    color: white;
}

.btn-primary:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background-color: #457b9d;
    color: white;
}

.btn-secondary:hover {
    background-color: #1d3557;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover {
    border-color: #e63946;
    color: #e63946;
}

/* ===================== 通用导航栏 ===================== */
.site-header {
    background-color: #1d3557;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.tagline {
    font-size: 14px;
    color: #a8dadc;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 16px;
}

.main-nav a:hover {
    color: #a8dadc;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* ===================== 通用区块标题 ===================== */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
    color: #1d3557;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ===================== 通用页脚 ===================== */
.site-footer {
    background-color: #1d3557;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2c4a7a;
    color: #aaa;
    font-size: 14px;
}

/* ===================== 首页专属样式 ===================== */
/* 主图模块 */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
    color: white;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: white;
}

.subtitle {
    font-size: 20px;
    color: #a8dadc;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.features-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.feature-tag {
    background-color: rgba(168, 218, 220, 0.2);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid #a8dadc;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-caption {
    font-size: 14px;
    color: #ccc;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 下载模块 */
.download-section {
    padding: 80px 0;
    background-color: #f1faee;
}

.download-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.download-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #e63946;
}

.platform-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1d3557;
}

.download-card p {
    margin-bottom: 10px;
    color: #666;
}

.version-info, .update-info {
    font-size: 14px;
    color: #888;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
}

.pc-download {
    background-color: #1d3557;
    color: white;
}

.pc-download:hover {
    background-color: #152642;
}

.mobile-download {
    background-color: #2a9d8f;
    color: white;
}

.mobile-download:hover {
    background-color: #21867a;
}

.requirements {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #555;
}

/* 功能特点模块 */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1d3557;
}

/* 参数设置模块 */
.parameters-section {
    padding: 80px 0;
    background-color: white;
}

.parameters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.parameter-category {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #eee;
}

.parameter-category h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1d3557;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parameter-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.parameter-item:last-child {
    border-bottom: none;
}

.parameter-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.parameter-item input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.parameter-item select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 16px;
}

.parameter-value {
    display: inline-block;
    margin-left: 15px;
    font-weight: 600;
    color: #e63946;
}

.parameter-desc {
    font-size: 14px;
    color: #777;
    margin-top: 8px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    vertical-align: middle;
    margin-right: 15px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2a9d8f;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.parameters-notice {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 5px solid #457b9d;
    max-width: 900px;
    margin: 0 auto;
}

/* 常见问题模块 */
.faq-section {
    padding: 80px 0;
    background-color: #f1faee;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 30px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1d3557;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
}

.faq-answer.active {
    padding: 0 30px 30px;
    max-height: 500px;
}

/* ===================== 列表页专属样式 ===================== */
.list-section {
    padding: 80px 0;
    background-color: white;
}

/* 筛选栏 */
.filter-bar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #1d3557;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding-left: 40px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 辅助列表 */
.aux-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.aux-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aux-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.aux-img {
    height: 180px;
    overflow: hidden;
}

.aux-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aux-item:hover .aux-img img {
    transform: scale(1.05);
}

.aux-content {
    padding: 20px;
}

.aux-title {
    font-size: 20px;
    color: #1d3557;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aux-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.aux-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #e8f4f8;
    color: #457b9d;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.aux-tag.hot {
    background-color: #fee;
    color: #e63946;
}

.aux-desc {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aux-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aux-btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #1d3557;
    color: white;
    border-color: #1d3557;
}

.pagination-btn.active {
    background-color: #1d3557;
    color: white;
    border-color: #1d3557;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background-color: white;
    color: #333;
    border-color: #ddd;
}

/* ===================== 内容页专属样式 ===================== */
.detail-header {
    padding: 40px 0;
    background-color: #f1faee;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-meta-icon {
    font-size: 18px;
}

.detail-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.detail-img {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-img img {
    width: 100%;
    height: auto;
}

.detail-info {
    flex: 1;
    min-width: 300px;
}

.detail-title {
    font-size: 32px;
    color: #1d3557;
    margin-bottom: 20px;
}

.detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
}

/* 详情页功能特点 */
.detail-features {
    background-color: white;
    padding: 60px 0;
}

.feature-list {
    max-width: 900px;
    margin: 0 auto;
}

.feature-list-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}

.feature-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-list-icon {
    font-size: 36px;
    color: #e63946;
    min-width: 60px;
    text-align: center;
}

.feature-list-content h4 {
    font-size: 20px;
    color: #1d3557;
    margin-bottom: 10px;
}

.feature-list-content p {
    color: #666;
    line-height: 1.7;
}

/* 截图展示 */
.screenshots-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 使用教程 */
.tutorial-section {
    padding: 60px 0;
    background-color: white;
}

.tutorial-steps {
    max-width: 900px;
    margin: 0 auto;
    counter-reset: step-counter;
}

.tutorial-step {
    position: relative;
    padding: 20px 20px 20px 70px;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tutorial-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: #1d3557;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.tutorial-step h4 {
    font-size: 20px;
    color: #1d3557;
    margin-bottom: 10px;
}

.tutorial-step p {
    color: #666;
    line-height: 1.7;
}

/* 更新日志 */
.changelog-section {
    padding: 60px 0;
    background-color: #f1faee;
}

.changelog-list {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.changelog-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.changelog-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.changelog-date {
    font-weight: bold;
    color: #e63946;
    margin-bottom: 10px;
    font-size: 16px;
}

.changelog-content {
    color: #666;
    line-height: 1.7;
}

.changelog-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

/* ===================== 通用响应式 ===================== */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    /* 通用导航响应式 */
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1d3557;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .section-title {
        font-size: 30px;
    }

    /* 首页响应式 */
    .download-card {
        min-width: 100%;
    }
    
    .parameters-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* 列表页响应式 */
    .aux-list {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    /* 内容页响应式 */
    .detail-banner {
        flex-direction: column;
        gap: 20px;
    }

    .detail-title {
        font-size: 28px;
    }

    .feature-list-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-list-icon {
        margin-bottom: 10px;
    }

    .tutorial-step {
        padding-left: 60px;
    }

    .tutorial-step::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* 通用响应式 */
    .section-title {
        font-size: 26px;
    }

    /* 首页响应式 */
    .hero-content h2 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .parameters-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .parameters-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* 内容页响应式 */
    .detail-actions {
        flex-direction: column;
    }

    .detail-btn {
        width: 100%;
        text-align: center;
    }

    .tutorial-step {
        padding-left: 50px;
        padding-right: 15px;
    }

    .tutorial-step::before {
        width: 26px;
        height: 26px;
        font-size: 14px;
        left: 15px;
    }
}