/* 下载页面 - 现代化风格样式 */

/* CSS变量定义 */
:root {
    /* 颜色变量 */
    --primary-color: #4a6cf7;
    --primary-dark: #3a56d4;
    --primary-light: #6a8cff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --background-color: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 20px 0;
    background-color: rgba(248, 249, 250, 0.8);
    border-bottom: 1px solid var(--border-color);
    margin-top: 70px;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-secondary);
    margin: 0 10px;
}

/* 下载页面内容 */
.download-page {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* 最新版本信息 */
.latest-version {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: linear-gradient(135deg, #f8f9ff, #eef2ff);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    align-items: center;
    min-height: 250px;
}

.version-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.version-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.version-info h3 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.version-date {
    color: var(--text-secondary);
    font-size: 16px;
}

.version-highlights h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.version-highlights ul {
    list-style: none;
}

.version-highlights li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.version-highlights li i {
    color: var(--success-color);
    margin-right: 12px;
    margin-top: 5px;
    flex-shrink: 0;
    font-size: 18px;
}

/* 下载选项 */
.download-options {
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.options-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.options-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.download-page .container .download-options .os-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    justify-items: center;
    align-items: start;
    justify-content: center;
}

/* 确保每个操作系统项都有足够的宽度 */
.download-page .container .download-options .os-grid .os-item {
    width: 100%;
    min-width: 280px;
}

.os-item {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.os-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.os-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.os-item:hover::before {
    transform: scaleX(1);
}

.os-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 25px;
    font-size: 48px;
    box-shadow: 0 8px 20px rgba(187, 222, 251, 0.6);
    transition: all 0.3s ease;
}

.os-item:hover .os-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(187, 222, 251, 0.7);
}

.os-item h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.os-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0 10px;
}

.os-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
    padding: 12px;
    background-color: #f8f9ff;
    border-radius: 12px;
}

.os-stats span {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.os-item:hover .os-stats span {
    color: var(--primary-color);
}

.os-stats i {
    margin-right: 10px;
    font-size: 16px;
}

.os-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}


/* 版本比较 */
.version-comparison {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.comparison-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9ff;
}

.comparison-table tr:hover {
    background-color: rgba(74, 108, 247, 0.05);
}

.text-green {
    color: var(--success-color);
    font-size: 20px;
}

.text-red {
    color: var(--danger-color);
    font-size: 20px;
}

/* 安装指南 */
.installation-guide {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.guide-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.guide-tab {
    background-color: var(--background-color);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-color);
}

.guide-tab:hover {
    background-color: #e9ecef;
}

.guide-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.install-steps {
    counter-reset: step;
    margin-bottom: 30px;
}

.install-steps li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.install-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.guide-notes {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.guide-notes h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.guide-notes ul {
    list-style: none;
}

.guide-notes li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
}

.guide-notes li i {
    color: var(--warning-color);
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* 常见问题 */
.download-faq {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.faq-container {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

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

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    width: 100%;
    position: relative;
    user-select: none; /* 防止文本被选中 */
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.8;
    display: none; /* 使用display:none而不是max-height/opacity */
    padding-bottom: 15px;
}

/* 合作伙伴 */
.partners {
    padding: 50px 0;
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.partner-logo:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    grid-column: 1;
}

.footer-logo .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-terms a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
}

.footer-terms a:hover {
    color: var(--primary-color);
}

/* 响应式设计 - 优化布局紧凑性 */
@media (max-width: 1400px) {
    .download-page {
        padding: 50px 0;
    }
    .latest-version {
        gap: 25px;
        padding: 25px;
        min-height: 220px;
    }
    .os-grid {
        gap: 20px;
    }
    .version-info h3 {
        font-size: 36px;
    }
}

@media (max-width: 1200px) {
    .download-page .container {
        padding: 0 25px;
    }
    .latest-version {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 25px;
        margin-bottom: 35px;
    }
    .version-highlights {
        justify-content: center;
        margin-top: 15px;
    }
    .os-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .os-item {
        min-height: auto;
        padding: 25px 20px;
    }
    .options-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .version-comparison,
    .installation-guide {
        padding: 25px;
        margin-bottom: 35px;
    }
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .download-page {
        padding: 40px 0;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .latest-version {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 25px;
        margin-bottom: 30px;
    }
    .version-info {
        order: 1;
    }
    .version-info h3 {
        font-size: 32px;
        margin-bottom: 8px;
    }
    .version-highlights {
        order: 2;
        justify-content: center;
        margin-top: 10px;
    }
    .version-highlights li {
        margin-bottom: 8px;
    }
    .download-options {
        margin-bottom: 40px;
    }
    .options-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .os-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 15px;
    }
    .os-item {
        padding: 20px 15px;
        min-height: auto;
    }
    .os-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        font-size: 40px;
    }
    .os-item h4 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    .version-comparison,
    .installation-guide {
        padding: 20px;
        margin-bottom: 30px;
    }
    .comparison-table {
        overflow-x: auto;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
    }
    .guide-tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    .install-steps li {
        padding-left: 35px;
        margin-bottom: 12px;
    }
    .partners {
        padding: 40px 0;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .download-page {
        padding: 30px 0;
    }
    .download-page .container {
        padding: 0 15px;
    }
    .section-header {
        margin-bottom: 25px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .latest-version {
        padding: 20px;
        margin-bottom: 25px;
    }
    .version-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 12px;
    }
    .version-info h3 {
        font-size: 28px;
    }
    .version-info p {
        font-size: 15px;
    }
    .version-highlights {
        padding: 0 10px;
    }
    .version-highlights li {
        padding-left: 20px;
        font-size: 14px;
    }
    .download-options {
        margin-bottom: 30px;
    }
    .options-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .download-page .container .download-options .os-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .os-item {
        padding: 15px 10px;
    }
    .os-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 15px;
        font-size: 36px;
    }
    .os-item h4 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .os-desc {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .version-comparison,
    .installation-guide,
    .download-faq {
        padding: 15px;
        margin-bottom: 25px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    .guide-tabs {
        gap: 6px;
        margin-bottom: 12px;
    }
    .guide-tabs button {
        font-size: 14px;
        padding: 8px 12px;
    }
    .install-steps li {
        padding-left: 30px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    .guide-notes {
        padding: 12px;
        margin-top: 15px;
        font-size: 14px;
    }
    .partners {
        padding: 30px 0;
    }
    .partners-title {
        font-size: 20px;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 15px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-top: 15px;
    }
    .copyright,
    .footer-links {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .download-page {
        padding: 25px 0;
    }
    .download-page .container {
        padding: 0 15px;
    }
    .section-header {
        margin-bottom: 20px;
    }
    .section-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    .latest-version {
        padding: 15px;
        margin-bottom: 20px;
        gap: 15px;
    }
    .version-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }
    .version-info h3 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    .version-info p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .version-highlights {
        padding: 0;
        margin-top: 5px;
    }
    .version-highlights li {
        padding-left: 18px;
        margin-bottom: 6px;
        font-size: 13px;
        line-height: 1.5;
    }
    .download-options {
        margin-bottom: 25px;
    }
    .options-title {
        font-size: 18px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    .download-page .container .download-options .os-grid {
        gap: 10px !important;
    }
    .os-item {
        padding: 12px 8px;
    }
    .os-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 12px;
        font-size: 32px;
    }
    .os-item h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .os-desc {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    .os-stats {
        gap: 6px;
        margin-bottom: 15px;
        padding: 8px;
        font-size: 13px;
    }
    .os-stats li {
        margin-bottom: 4px;
    }
    .download-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    .version-comparison,
    .installation-guide,
    .download-faq {
        padding: 12px;
        margin-bottom: 20px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 6px 8px;
        font-size: 12px;
    }
    .guide-tabs {
        gap: 4px;
        margin-bottom: 10px;
    }
    .guide-tabs button {
        font-size: 12px;
        padding: 6px 10px;
    }
    .install-steps li {
        padding-left: 25px;
        font-size: 13px;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    .guide-notes {
        padding: 10px;
        margin-top: 12px;
        font-size: 12px;
    }
    .partners {
        padding: 25px 0;
    }
    .partners-title {
        font-size: 18px;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 12px;
    }
    .partner-item {
        padding: 10px;
    }
    .footer-content {
        gap: 15px;
        margin-bottom: 15px;
    }
    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .footer-links {
        font-size: 13px;
        gap: 8px;
    }
    .copyright {
        font-size: 12px;
    }
}