/* ============================================
   SafeW下载中心 样式
   延续首页视觉基调：毛玻璃、渐变、圆角
   ============================================ */

:root {
    --color-bg: #f7f2ee;
    --color-text-primary: #1a1a2e;
    --color-text-secondary: #52525b;
    --color-text-muted: #71717a;
    --color-purple: #a855f7;
    --color-indigo: #6366f1;
    --color-blue: #0ea5e9;
    --color-green: #10b981;
    --color-amber: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #a855f7, #6366f1);
    --gradient-text: linear-gradient(120deg, #a855f7, #6366f1, #0ea5e9);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 20px 36px rgba(0, 0, 0, 0.08);
    --radius-card: 22px;
    --radius-pill: 999px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 背景动态光斑 */
body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.2), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.15), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.orb-green { top: 20%; right: 5%; width: 300px; height: 300px; background: rgba(34, 197, 94, 0.12); }
.orb-amber { bottom: 15%; left: 8%; width: 260px; height: 260px; background: rgba(245, 158, 11, 0.10); }
.orb-purple { top: 55%; right: 20%; width: 180px; height: 180px; background: rgba(168, 85, 247, 0.10); }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ========== 导航栏（与首页完全一致） ========== */
.site-header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.nav-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
    color: white;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-secondary);
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav li {
    display: flex;
}

.main-nav a {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    font-weight: 500;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.6);
}

.main-nav a.active {
    color: var(--color-indigo);
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.nav-actions {
    flex-shrink: 0;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-small {
    padding: 9px 20px;
    font-size: 13px;
    background: var(--color-text-primary);
    color: #fff;
    white-space: nowrap;
}

.btn-small:hover {
    background: #2d2d44;
    transform: translateY(-1px);
}

.btn-primary {
    padding: 14px 30px;
    font-size: 15px;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    padding: 14px 26px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--color-text-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ========== 通用区块 ========== */
.section {
    padding: 60px 0;
    position: relative;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--color-text-primary);
    line-height: 1.3;
}

.section-heading p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

/* ========== 下载中心 Hero ========== */
.hero-download {
    padding: 80px 0 40px;
    text-align: center;
}

.hero-download-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 13px;
    color: var(--color-indigo);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-download-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

.hero-download h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.hero-download .sub {
    color: var(--color-text-secondary);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.version-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-indigo);
    backdrop-filter: blur(8px);
}

/* ========== 平台下载卡片 ========== */
.platform-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.platform-download-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-card);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.platform-download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    background: rgba(255, 255, 255, 0.55);
}

.platform-download-card .platform-icon {
    font-size: 48px;
    line-height: 1;
}

.platform-download-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.platform-download-card .platform-version {
    font-size: 12px;
    color: var(--color-text-muted);
}

.download-btn-sm {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    background: var(--color-text-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.download-btn-sm:hover {
    background: #2d2d44;
    transform: translateY(-2px);
}

/* ========== 安全校验区（创意版块） ========== */
.security-verify-section {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    margin: 0 24px 40px;
    padding: 60px 0;
}

.verify-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.verify-step-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 28px 22px;
    flex: 1 1 220px;
    max-width: 260px;
    text-align: center;
    transition: var(--transition-smooth);
}

.verify-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.verify-step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.verify-step-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.verify-step-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.hash-placeholder {
    background: rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
    margin-top: 10px;
    color: var(--color-indigo);
}

/* ========== 版本历史时间线 ========== */
.changelog-section {
    padding: 80px 0;
}

.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-purple), var(--color-indigo));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-indigo);
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-version {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-primary);
}

.timeline-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-left: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.4);
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

/* ========== 企业部署包 ========== */
.enterprise-package {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    margin: 0 24px 40px;
    padding: 60px 0;
}

.enterprise-package-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.package-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 30px 24px;
    flex: 1 1 280px;
    max-width: 350px;
    text-align: center;
}

.package-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.package-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.package-card .size-info {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

/* ========== 下载FAQ ========== */
.download-faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 20px 24px;
}

.faq-q {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-a {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========== 页脚（与首页一致） ========== */
.site-footer {
    padding: 50px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-brand .logo {
    margin-bottom: 16px;
    justify-content: flex-start;
}

.footer-brand p {
    font-size: 13px;
    color: var(--color-text-secondary);
    max-width: 260px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

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

.footer-newsletter {
    max-width: 1000px;
    margin: 0 auto 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 18px 22px;
}

.footer-newsletter span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    color: var(--color-text-primary);
    outline: none;
}

.newsletter-form input::placeholder {
    color: #a1a1aa;
}

.newsletter-form button {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #a1a1aa;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    color: var(--color-text-secondary);
    transition: color 0.2s;
    font-size: 13px;
}

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

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* 移动端隐藏菜单，可替换为汉堡菜单 */
    }
    .nav-glass {
        justify-content: space-between;
    }
    .platform-download-grid {
        grid-template-columns: 1fr 1fr;
    }
    .verify-steps {
        flex-direction: column;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .enterprise-package-grid {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .platform-download-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-newsletter {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .security-verify-section,
    .enterprise-package {
        margin: 0 12px 30px;
        padding: 40px 16px;
    }
}