/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --accent-color: #ff7f50; /* 珊瑚橙 */
    --accent-hover: #ff6347;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-footer: #343a40;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

ul {
    list-style: none;
}

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

/* 顶部导航栏 */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

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

.main-nav a {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn .icon {
    margin-right: 8px;
    font-size: 20px;
}

.btn-orange {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.btn-orange:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 127, 80, 0.3);
}

.btn-white {
    background-color: white;
    color: var(--primary-dark);
    border: none;
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Hero 区域 (全屏风格) */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 软件窗口 CSS 绘制 - 移除悬浮动画，更稳重 */
.software-window {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
    border: 1px solid #ccc;
}

.window-header {
    background: #f0f0f0;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.window-title {
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
}

.window-title::before {
    content: "🔍";
    margin-right: 6px;
    font-size: 14px;
}

.window-controls span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin-left: 6px;
}

.window-controls span:nth-child(1) { background: #ff5f56; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #27c93f; }

.window-toolbar {
    background: #fff;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.menu-item {
    margin-right: 12px;
    cursor: default;
}

.window-search {
    padding: 10px;
    background: #fbfbfb;
    border-bottom: 1px solid #e0e0e0;
}

.search-bar {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    outline: none;
    background: white;
}

.window-content {
    background: #fff;
    min-height: 300px;
    position: relative;
    /* 模拟内容滚动条 */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.file-list {
    font-size: 12px;
    color: #333;
}

.file-row {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    padding: 6px 12px;
    border-bottom: 1px solid #f5f5f5;
}

.file-row.header {
    background: #f9f9f9;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.file-row:not(.header):hover {
    background-color: #e8f0fe;
}

.file-row.highlight {
    background-color: #cce8ff;
    border: 1px solid #99d1ff;
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f0f0f0;
    padding: 4px 10px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
}

.progress-bar {
    width: 150px;
    height: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    width: 60%;
    height: 100%;
    background: #27c93f;
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

/* 核心优势部分 - 保持原有布局，微调样式 */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 50px;
}

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

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

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

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

.card .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.bg-light {
    background-color: #f8f9fa;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* 下载区域 - 调整为白色背景 */
.download-section {
    background-color: white;
    color: #333;
    border-top: 1px solid #eee;
}

/* 下载区域 - 卡片式布局 */
.download-card {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.download-info {
    flex: 1;
    padding: 40px;
    border-right: 1px solid #eee;
}

.download-action {
    flex: 1;
    padding: 40px;
    background-color: #fbfbfb;
}

/* 左侧样式 */
.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.platform-badge {
    background-color: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.version-tag {
    color: #667eea;
    font-weight: 500;
    font-size: 14px;
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
}

.check-icon {
    color: #27c93f;
    margin-right: 10px;
    font-weight: bold;
}

/* 右侧样式 */
.btn-download-large {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #667eea; /* 调整为紫色 */
    color: white;
    padding: 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn-download-large:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.req-section h4, .usage-section h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.req-section h4 .icon, .usage-section h4 .icon {
    margin-right: 8px;
    font-size: 18px;
}

.req-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
}

.req-section ul li {
    margin-bottom: 5px;
}

.usage-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.other-versions {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

.other-versions a {
    color: #667eea;
    margin: 0 5px;
}

.other-versions a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 900px) {
    .download-card {
        flex-direction: column;
    }
    
    .download-info {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}


/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f3f5;
    font-weight: 600;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #adb5bd;
    padding: 60px 0 0;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    text-align: left;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.footer-logo-text {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-desc {
    line-height: 1.6;
    color: #868e96;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: #253443;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #868e96;
    font-size: 13px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-brand {
    color: var(--accent-color); /* 紫色高亮 */
    text-decoration: none;
    font-weight: 500;
}

.footer-icons {
    display: flex;
    gap: 12px;
}

.icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #ced4da;
    transition: all 0.2s;
}

.icon-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 900px) {
    /* 导航栏适配 - 汉堡菜单优化 */
    .header-container {
        height: 70px; /* 保持高度固定 */
        padding: 0 20px;
        flex-direction: row; /* 保持横向 */
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative; /* 为下拉菜单定位 */
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        color: #333;
        z-index: 1002;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
        display: none; /* 默认隐藏 */
        flex-direction: column;
        z-index: 1001;
        border-top: 1px solid #f0f0f0;
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }
    
    .main-nav ul li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 15px 25px;
        font-size: 16px;
        color: #333;
        background-color: transparent;
        border-radius: 0;
        border-bottom: 1px solid #f9f9f9;
        text-align: left;
    }

    .main-nav a:hover, .main-nav a:active {
        background-color: #f8f9fa;
        color: var(--primary-color);
        padding-left: 30px; /* 简单的动效 */
    }

    /* 页脚适配 - 折叠面板优化 */
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left; /* 改回左对齐，配合折叠面板 */
        gap: 0; /* 移除 grid gap，改用 padding */
        padding-bottom: 20px;
    }

    .footer-logo {
        justify-content: flex-start; /* 移动端Logo左对齐 */
        margin-top: 20px;
    }

    .footer-col {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 15px 0;
    }

    .footer-col:first-child {
        padding-bottom: 30px; /* 第一个栏目（简介）不折叠，多留点空间 */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* 只对后三个栏目应用折叠样式 */
    .footer-col:not(:first-child) h4 {
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 10px 0;
        user-select: none;
    }

    .footer-col:not(:first-child) h4::after {
        content: '+';
        font-size: 18px;
        font-weight: normal;
        transition: transform 0.3s;
    }

    .footer-col.active h4::after {
        transform: rotate(45deg); /* 旋转成 x */
    }

    .footer-col:not(:first-child) ul {
        display: none; /* 默认折叠 */
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
    }

    .footer-col.active ul {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Hero 区域适配 */
    .hero-section {
        padding: 30px 0; /* 减小上下内边距 */
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 30px; /* 减小间距 */
    }

    .hero-content h1 {
        font-size: 28px; /* 减小标题字号 */
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        margin-top: 20px;
    }
    
    .software-window {
        max-width: 100%; /* 确保不超过屏幕 */
    }

    /* 下载页适配 */
    .download-options-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================
   Download.html 专用样式
   ========================================= */

.download-page-section {
    padding: 60px 0 40px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 400px); /* 确保内容少时也能撑开高度 */
}

.download-page-header {
    text-align: center;
    margin-bottom: 60px;
}

.download-page-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.download-page-header p {
    font-size: 18px;
    color: #6c757d;
}

.download-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.dl-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* 迅雷卡片样式 */
.thunder-card {
    border: 2px solid #667eea;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

/* 夸克卡片样式 */
.quark-card {
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dl-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.dl-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
}

.thunder-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quark-icon {
    background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
}

.dl-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.dl-badge {
    position: absolute;
    top: -40px;
    right: -10px;
    background-color: #ff9f43;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(255, 159, 67, 0.3);
}
.dl-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 6px;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #e58e26 transparent transparent transparent;
}

.dl-features {
    margin-bottom: 25px;
    flex: 1;
}

.dl-features li {
    margin-bottom: 12px;
    color: #555;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.dl-features li i {
    color: #27c93f;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dl-info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.dl-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #667eea;
}

.dl-version {
    color: #adb5bd;
    font-weight: normal;
}

.dl-code-row {
    font-size: 14px;
    color: #666;
}

.dl-code-value {
    font-weight: 700;
    color: #333;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.dl-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.dl-btn i {
    margin-right: 8px;
}

.dl-btn-primary {
    background-color: #667eea;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.dl-btn-primary:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.dl-btn-outline {
    background-color: white;
    color: #667eea;
    border: 1px solid #667eea;
}

.dl-btn-outline:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
}


/* =========================================
   安装使用说明样式
   ========================================= */

.install-guide-section {
    padding: 40px 0 80px;
    background-color: #fbfbfb;
    border-top: 1px solid #eee;
}

.text-center {
    text-align: center;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    border: 1px solid #eef0f5;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.step-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* 移动端适配调整 */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

