/* download-styles.css — 与 index.html / styles.css 同风格的夸克下载页 */

/* ---- 全局 & 变量 ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --line: rgba(0, 0, 0, 0.08);
    --blue: #2b7fff;
    --blue-light: rgba(43, 127, 255, 0.08);
    --bg: #fafbff;
    --card: #ffffff;
    --shadow-soft: 0 24px 80px rgba(80, 120, 200, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --header-h: 64px;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
}

.bg-mesh {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(200, 220, 255, 0.75) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 85% 30%, rgba(235, 225, 255, 0.55) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 10% 60%, rgba(220, 240, 255, 0.5) 0%, transparent 45%),
        linear-gradient(180deg, #f5f8ff 0%, #fafbff 45%, #f7f9fc 100%);
}

/* ---- 顶栏（复用首页样式） ---- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h); z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
}
.header-wrap {
    max-width: 1200px; margin: 0 auto; padding: 0 28px;
    height: 100%; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; min-width: 0; }
.site-nav a { font-size: 14px; color: var(--text-secondary); text-decoration: none; white-space: nowrap; transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.header-platforms { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.platform-slot { position: relative; }
.platform-trigger, .platform-link {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 4px 6px; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 12px; color: var(--text-secondary); text-decoration: none; transition: color 0.2s;
}
.platform-trigger:hover, .platform-link:hover { color: var(--text); }
.platform-ico { display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.platform-trigger:hover .platform-ico, .platform-link:hover .platform-ico { color: var(--text-secondary); }
.platform-pop {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 280px;
    padding: 20px; background: var(--card); border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.platform-slot.has-pop:hover .platform-pop,
.platform-slot.has-pop:focus-within .platform-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.platform-pop-inner { display: flex; gap: 20px; justify-content: center; }
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.qr-block span { font-size: 13px; font-weight: 500; color: var(--text); }
.qr-block small { font-size: 12px; color: var(--text-muted); }
.qr-placeholder {
    width: 96px; height: 96px; border-radius: 12px;
    background: repeating-linear-gradient(45deg, #f0f3f8, #f0f3f8 4px, #e8ecf4 4px, #e8ecf4 8px);
    border: 1px solid var(--line);
}
.qr-placeholder--lg { width: 100px; height: 100px; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; border: none; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 1px; }

/* ---- 主内容 ---- */
main { padding-top: var(--header-h); }

/* ========== 下载首屏 ========== */
.dl-hero {
    padding: 64px 24px 80px;
}
.dl-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.dl-eyebrow {
    font-size: 13px;
    color: var(--blue);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.dl-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}
.dl-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* 下载卡片 */
.dl-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.dl-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 220px;
    max-width: 280px;
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dl-card:hover {
    box-shadow: 0 12px 40px rgba(43, 127, 255, 0.12);
    border-color: rgba(43, 127, 255, 0.25);
    transform: translateY(-2px);
}
.dl-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--blue-light);
    border-radius: 14px;
    color: var(--blue);
    flex-shrink: 0;
}
.dl-card-text {
    flex: 1;
    text-align: left;
}
.dl-card-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.dl-card-text span {
    font-size: 12px;
    color: var(--text-muted);
}
.dl-card-arrow {
    font-size: 20px;
    color: var(--blue);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.dl-card:hover .dl-card-arrow { opacity: 1; transform: translateY(2px); }

/* ========== 扫码下载 ========== */
.dl-mobile {
    padding: 72px 24px 80px;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.dl-mobile-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: center;
}

/* 手机示意 */
.mobile-qr-col { display: flex; justify-content: center; }
.mobile-qr-box { position: relative; }
.mobile-qr-figure {
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-mockup {
    width: 120px;
    height: 200px;
    background: linear-gradient(145deg, #e8eefc 0%, #d8e4f8 100%);
    border-radius: 28px;
    border: 2px solid rgba(43, 127, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(43, 127, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.06);
}
.phone-screen { text-align: center; }
.phone-app-icon {
    width: 60px;
    height: 60px;
    background: var(--blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 10px;
}
.phone-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* 扫码区 */
.mobile-text-col { }
.mobile-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.mobile-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}
.mobile-qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.qr-card:hover {
    box-shadow: 0 8px 28px rgba(43, 127, 255, 0.1);
    border-color: rgba(43, 127, 255, 0.2);
}
.qr-card strong { font-size: 14px; font-weight: 600; color: var(--text); }
.qr-card span { font-size: 12px; color: var(--text-muted); }
.qr-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}
.qr-link:hover { text-decoration: underline; }

/* ========== 全部平台 ========== */
.dl-all { padding: 72px 24px; }
.dl-all-inner { max-width: 960px; margin: 0 auto; }
.dl-all-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 40px;
}
.dl-all-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.dl-all-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, border-color 0.2s;
}
.dl-all-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border-color: rgba(43, 127, 255, 0.2);
}
.dl-all-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--blue-light);
    border-radius: 12px;
    color: var(--blue);
    flex-shrink: 0;
}
.dl-all-info { flex: 1; min-width: 0; }
.dl-all-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.dl-all-info p { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    text-decoration: none;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.dl-all-btn:hover { background: var(--blue); color: #fff; }

/* ========== 更多工具 ========== */
.dl-tools { padding: 56px 24px 80px; background: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--line); }
.dl-tools-inner { max-width: 960px; margin: 0 auto; }
.dl-tools-title { font-size: 22px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 32px; }
.dl-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.tool-card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06); border-color: rgba(43, 127, 255, 0.2); transform: translateY(-2px); }
.tool-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--blue-light);
    border-radius: 12px;
    color: var(--blue);
    flex-shrink: 0;
}
.tool-card strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.tool-card p { font-size: 12px; color: var(--text-muted); }
.tool-card div { flex: 1; }

/* ---- 页脚 ---- */
.site-footer { padding: 32px 24px 40px; background: #fff; border-top: 1px solid var(--line); }
.footer-content { max-width: 960px; margin: 0 auto; text-align: center; }
.company-info { font-size: 12px; color: var(--text-muted); line-height: 1.9; margin-bottom: 16px; }
.company-info a { color: var(--text-muted); text-decoration: none; }
.company-info a:hover { color: var(--blue); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-links span { color: var(--text-muted); }

/* ---- 响应式 ---- */
@media (max-width: 960px) {
    .dl-mobile-inner { grid-template-columns: 1fr; gap: 40px; }
    .mobile-qr-col { display: none; }
    .dl-all-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .site-header { height: auto; }
    .header-wrap {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 12px 16px;
        gap: 0 12px;
    }
    .brand { grid-column: 1; }
    .nav-toggle { display: flex; grid-column: 2; }
    .site-nav {
        display: none; grid-column: 1 / -1; flex-direction: column;
        align-items: flex-start; gap: 12px; padding: 16px 0 8px;
        border-top: 1px solid var(--line); margin-top: 12px;
    }
    .site-nav.is-open { display: flex; }
    .header-platforms {
        display: none; grid-column: 1 / -1;
        justify-content: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 4px;
    }
    .header-platforms.is-open { display: flex; }
    .dl-platforms { flex-direction: column; align-items: center; }
    .dl-card { max-width: 320px; width: 100%; }
    .mobile-qr-grid { grid-template-columns: repeat(3, 1fr); }
    .dl-all-grid { grid-template-columns: 1fr; }
    main { padding-top: var(--header-h); }
}

@media (max-width: 480px) {
    .dl-platforms { flex-direction: column; align-items: center; }
    .dl-card { max-width: 100%; }
    .mobile-qr-grid { grid-template-columns: 1fr; }
}
