/* ============================================================
   xhj.shadowrock.blog · 下载页样式（独立样式表）
   主题：浅色燕麦科技风（参考 shadowrocketf.com.cn）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --oat-50: #FFFFFF;
    --oat-100: #F6F8FD;
    --oat-200: #E9EFFB;
    --oat-300: #C4D0EE;
    --oat-400: #A9B7DC;
    --oat-500: #8B96B3;
    --oat-600: #6C7794;
    --oat-700: #4A5570;
    --oat-800: #2C3A5E;
    --oat-900: #131C30;

    --primary: #3D6BE8;
    --primary-light: #6E9BFF;
    --primary-dark: #2B54D1;
    --accent: #00C4B4;
    --accent-light: #2FDFD2;

    --bg: var(--oat-50);
    --surface: #FFFFFF;
    --surface-soft: var(--oat-100);
    --text-primary: var(--oat-900);
    --text-secondary: var(--oat-700);
    --text-muted: var(--oat-500);
    --border: #DCE5F5;

    --shadow-sm: 0 2px 10px rgba(23, 32, 64, 0.06);
    --shadow-md: 0 8px 30px rgba(23, 32, 64, 0.10);
    --shadow-lg: 0 20px 60px rgba(23, 32, 64, 0.14);
    --shadow-xl: 0 30px 80px rgba(23, 32, 64, 0.16);

    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 重置 & 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(91, 140, 255, 0.14), transparent 60%),
        radial-gradient(900px 520px at -10% 100%, rgba(0, 229, 208, 0.07), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(134, 174, 255, 0.18);
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--oat-200); color: var(--oat-800);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 4px 14px; border-radius: 100px; text-transform: uppercase;
}

/* ---------- 按钮 ---------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #5B8CFF 0%, #8A5CFF 100%);
    color: #fff; font-weight: 600; font-size: 1rem;
    padding: 14px 34px; border-radius: 60px; border: none; cursor: pointer;
    transition: var(--transition); box-shadow: 0 8px 24px rgba(91, 140, 255, 0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, #4A7AF5 0%, #7449F0 100%); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(91, 140, 255, 0.40); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--text-primary); font-weight: 600; font-size: 1rem;
    padding: 12px 30px; border-radius: 60px; border: 1.5px solid var(--oat-300); cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(91, 140, 255, 0.04); transform: translateY(-2px); }
.btn-download {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #5B8CFF 0%, #8A5CFF 100%);
    color: #fff; font-weight: 600; padding: 12px 28px; border-radius: 60px;
    border: none; cursor: pointer; transition: var(--transition);
    box-shadow: 0 8px 22px rgba(91, 140, 255, 0.25); font-size: 0.95rem;
}
.btn-download:hover { background: linear-gradient(135deg, #4A7AF5 0%, #7449F0 100%); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(91, 140, 255, 0.36); }

/* ---------- 导航 ---------- */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: var(--transition); }
nav.scrolled { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid rgba(134, 174, 255, 0.15); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav-logo span { color: var(--text-primary); }
.nav-logo small { font-weight: 400; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; margin-left: 4px; }
.nav-logo-mark { height: 28px; width: auto; display: block; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.nav-cta { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text-primary); border-radius: 4px; transition: var(--transition); }

/* ---------- 下载 Hero ---------- */
.hero-download { padding: 150px 0 70px; position: relative; overflow: hidden; text-align: center; }
.hero-download::before { content: ''; position: absolute; top: -20%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(91, 140, 255, 0.16) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-download::after { content: ''; position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0, 229, 208, 0.10) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-download .container { position: relative; z-index: 2; }
.hero-download h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.hero-download h1 span { background: linear-gradient(135deg, #3D6BE8 0%, #00A899 60%, #7A4FF0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-download p { font-size: 1.13rem; color: var(--text-secondary); max-width: 620px; margin: 0 auto 28px; line-height: 1.8; }
.hero-download .badge { margin-bottom: 18px; }

/* ---------- 平台卡片 ---------- */
.platforms { padding: 40px 0 84px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; margin-top: 16px; }
.platform-card {
    background: var(--surface); border-radius: var(--radius); padding: 38px 30px 30px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--transition);
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.platform-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.platform-card .icon {
    font-size: 3.4rem; color: var(--primary); margin-bottom: 16px;
    background: rgba(91, 140, 255, 0.08); width: 96px; height: 96px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.platform-card .icon.win { color: #0078D7; }
.platform-card .icon.mac { color: #555555; }
.platform-card .icon.ios { color: #000000; }
.platform-card h3 { font-size: 1.55rem; font-weight: 700; margin-bottom: 4px; }
.platform-card .version { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.platform-card .desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.platform-card .system-req { font-size: 0.8rem; color: var(--text-muted); background: var(--surface-soft); padding: 8px 16px; border-radius: 100px; margin-bottom: 20px; }
.platform-card .btn-download { width: 100%; justify-content: center; }

/* ---------- 附加信息 ---------- */
.download-notes {
    background: var(--surface-soft); border-radius: var(--radius); padding: 40px 32px;
    margin-top: 48px; border: 1px solid var(--border);
}
.download-notes h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.download-notes ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.download-notes ul li { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--text-secondary); }
.download-notes ul li i { color: var(--primary); font-size: 0.8rem; }

/* ---------- 共享组件 ---------- */
.updated-bar {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; color: var(--text-secondary);
    background: var(--surface-soft); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 16px; margin-top: 6px;
}
.answer-box {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 4px solid var(--primary); border-radius: var(--radius-sm);
    padding: 30px 32px; margin: 0 0 32px;
}
.answer-box h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 12px; text-align: left; }
.answer-box .answer-lede { font-size: 1rem; line-height: 1.85; color: var(--text-primary); margin: 0 0 14px; text-align: left; }

.spec-wrap { overflow-x: auto; margin: 8px 0 0; }
table.spec-table {
    width: 100%; border-collapse: collapse; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; font-size: 0.92rem;
}
table.spec-table caption { caption-side: top; text-align: left; font-size: 0.85rem; color: var(--text-muted); padding: 0 0 10px; }
table.spec-table th, table.spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.spec-table thead th { background: var(--oat-100); font-weight: 600; white-space: nowrap; color: var(--text-primary); }
table.spec-table tbody tr:last-child td { border-bottom: none; }
table.spec-table tbody th { color: var(--text-secondary); font-weight: 600; }

.steps-ol { margin: 0; padding-left: 22px; line-height: 1.9; color: var(--text-secondary); text-align: left; }
.steps-ol li { list-style: decimal; margin-bottom: 10px; }
.steps-ol strong { color: var(--text-primary); }
.source-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; text-align: left; }

.install-note {
    background: var(--oat-100); border: 1px dashed var(--oat-300);
    border-radius: var(--radius-sm); padding: 20px 24px; margin-top: 24px;
    font-size: 0.9rem; color: var(--text-secondary); text-align: left;
}

/* ---------- 下载 FAQ（details） ---------- */
details.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
details.faq-item summary {
    list-style: none; cursor: pointer; padding: 18px 24px; font-size: 1rem; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary i { color: var(--text-muted); transition: var(--transition); }
details.faq-item[open] summary i { transform: rotate(180deg); color: var(--primary); }
details.faq-item .faq-answer { padding: 0 24px 20px; font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); text-align: left; }
details.faq-item .faq-answer code { background: var(--oat-100); color: var(--primary-dark); padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }

#install { padding: 16px 0 0; }
#download-faq { padding: 72px 0 88px; }
#download-faq h2 { text-align: left; margin-bottom: 24px; font-size: 1.6rem; font-weight: 700; }

/* ---------- Footer ---------- */
footer { background: var(--surface-soft); padding: 40px 0 28px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-inner .copy { font-size: 0.85rem; color: var(--text-muted); }
.copy a { color: inherit; border-bottom: 1px dotted var(--oat-400); }
.copy a:hover { color: var(--primary); }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
    transition: var(--transition); border: 1px solid var(--border);
}
.footer-socials a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .platform-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .download-notes ul { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px); position: absolute; top: 64px; left: 0; right: 0;
        padding: 24px; gap: 20px; border-radius: 0 0 var(--radius) var(--radius);
        border: 1px solid var(--border); border-top: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta { display: inline-flex; }
    .platform-card .icon { width: 80px; height: 80px; font-size: 2.8rem; }
}
@media (max-width: 480px) {
    .hero-download { padding: 120px 0 40px; }
    .platform-card { padding: 28px 20px; }
    .btn-download { width: 100%; justify-content: center; }
    .download-notes { padding: 24px 18px; }
    .answer-box { padding: 20px 18px; }
}
