/* ============================================================
   softdown · 软件下载多模板主题 前台样式
   主题色通过 <body style="--accent:..."> 注入，所有区块自动跟随
   ============================================================ */
:root {
    --accent: #2f7cff;
    --ink: #1c2230;
    --ink-2: #5b6478;
    --line: #e8ebf2;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --radius: 14px;
    --maxw: 1160px;
    --shadow: 0 10px 30px rgba(20, 30, 60, .08);
    --shadow-hover: 0 18px 44px rgba(20, 30, 60, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-ghost {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); transform: translateY(-2px); }
.btn-lg { padding: 15px 36px; font-size: 16px; }

/* ---------- 导航 ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.nav-logo img { height: 32px; width: auto; border-radius: 8px; }
.nav-logo-text { color: var(--ink); }
.nav-links { margin-left: auto; display: flex; gap: 18px; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--accent); }
.nav-dl { padding: 9px 20px; font-size: 14px; }

.site-main { min-height: 60vh; }

/* ---------- Hero ---------- */
.hero {
    padding: 56px 0 36px;
    background: var(--accent);
    background: linear-gradient(135deg, var(--accent), #0b1020);
    color: #fff;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-center .container { text-align: center; max-width: 820px; }
.hero-center .hero-btns { justify-content: center; }
.hero-title { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 14px; font-weight: 800; letter-spacing: .5px; }
.hero-slogan { font-size: 19px; opacity: .92; margin: 0 0 14px; font-weight: 600; }
.hero-desc { font-size: 16px; opacity: .82; margin: 0 0 26px; max-width: 560px; }
.hero-center .hero-desc { margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 18px;
    opacity: .9;
}

/* Hero 右侧模拟窗口 */
.mock-window {
    background: #0e1326;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .08);
}
.mock-bar { display: flex; gap: 7px; padding: 12px 14px; background: #161c33; }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #39415f; }
.mock-body { padding: 22px; }
.mock-line { height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); margin: 0 0 14px; }
.w70 { width: 70%; } .w90 { width: 90%; } .w50 { width: 50%; } .w80 { width: 80%; } .w60 { width: 60%; } .w40 { width: 40%; }

/* 终端 Hero */
.terminal {
    background: #0c1020;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    border: 1px solid rgba(46, 204, 113, .25);
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #11162b; }
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.r { background: #ff5f56; } .t-dot.y { background: #ffbd2e; } .t-dot.g { background: #27c93f; }
.terminal-title { margin-left: 8px; color: #8b94b3; font-size: 13px; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.terminal-body {
    margin: 0;
    padding: 20px 22px;
    color: #6ee7a8;
    font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-wrap;
    min-height: 200px;
}

/* 深色 Hero（首页三） */
.hero-dark {
    background: #14183a;
    background: linear-gradient(135deg, #0f1226, #1b1f3d);
}
.hero-dark .hero-title { color: #fff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-dark .hero-title {
        background: linear-gradient(90deg, #fff, var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* ---------- 数据统计条 ---------- */
.stats-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px 20px; text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 32px 0; }
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 40px;
    position: relative;
    padding-bottom: 14px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
}

/* 功能 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.feature-icon { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.feature-name { font-size: 18px; margin: 0 0 8px; }
.feature-desc { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* 截图轮播 */
.shot-slider { position: relative; max-width: 880px; margin: 0 auto; }
.shot-viewport { overflow: hidden; border-radius: var(--radius); background: #f7f9fd; border: 1px solid var(--line); }
.shot-track { display: flex; transition: transform .35s ease; }
.shot-slide { flex: 0 0 100%; max-width: 100%; }
.shot-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, #eef2f9, #f9fbff);
    overflow: hidden;
}
.shot-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.shot-frame span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-2);
    font-size: 15px;
}
.shot-caption { text-align: center; padding: 14px 16px 4px; font-size: 14.5px; color: var(--ink-2); }
.shot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .95);
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(20, 30, 60, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, opacity .15s ease;
}
.shot-arrow:hover { background: #fff; }
.shot-prev { left: -58px; }
.shot-next { right: -58px; }
.shot-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}
.shot-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.shot-dot.active { background: var(--accent); transform: scale(1.15); }

/* 步骤 */
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-no {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}
.step-body h3 { margin: 4px 0 6px; font-size: 17px; }
.step-body p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* 版本 */
.version-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
}
.version-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.version-badge {
    background: var(--accent); color: #fff;
    padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 16px;
}
.version-date { color: var(--ink-2); font-size: 14px; }
.changelog { margin: 0; padding-left: 20px; color: var(--ink-2); }
.changelog li { margin-bottom: 8px; }

/* 分类 */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cat-icon { font-size: 30px; margin-bottom: 12px; }
.cat-card h3 { margin: 0 0 6px; font-size: 17px; }
.cat-card p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* 评价 */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.testi-card blockquote { margin: 0; font-size: 15.5px; color: var(--ink); }
.testi-card figcaption { display: flex; flex-direction: column; }
.testi-name { font-weight: 700; }
.testi-role { color: var(--ink-2); font-size: 13px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 20px;
    transition: border-color .15s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

/* 下载 */
.download { padding: 32px 0 20px; }
.download-box {
    background: var(--accent);
    background: linear-gradient(135deg, var(--accent), #0b1020);
    color: #fff;
    border-radius: 20px;
    padding: 54px 30px;
    text-align: center;
    box-shadow: var(--shadow);
}
.download-title { font-size: 26px; margin: 0 0 26px; font-weight: 800; }
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.download-box .btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.download-box .btn-ghost:hover { background: rgba(255, 255, 255, .15); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0f1322; color: #c5cbdc; margin-top: 0; }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 48px 20px 30px;
    display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { margin: 0 0 10px; font-size: 13.5px; max-width: 420px; }
.footer-meta a, .footer-beian { color: #9aa3bd; font-size: 13px; margin-right: 14px; }
.footer-contact span { display: inline-block; margin-right: 16px; font-size: 13px; color: #9aa3bd; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #c5cbdc; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #7b84a0; }

/* ---------- 文章页 ---------- */
.post-container { max-width: 860px; padding: 50px 20px 70px; }
.post-title { font-size: 32px; margin: 0 0 14px; }
.post-meta { color: var(--ink-2); font-size: 14px; display: flex; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.post-body { font-size: 16px; color: #2a3142; }
.post-body img { border-radius: 10px; margin: 18px 0; }
.post-body h2, .post-body h3 { margin-top: 28px; }
.post-body pre { background: #0f1322; color: #d7e0f5; padding: 16px; border-radius: 10px; overflow: auto; }

/* 404 */
.notfound { padding: 90px 0; text-align: center; }
.nf-code { font-size: 90px; font-weight: 900; color: var(--accent); line-height: 1; }
.nf-title { font-size: 26px; margin: 10px 0; }
.nf-desc { color: var(--ink-2); margin-bottom: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .feature-grid, .step-list, .cat-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .shot-prev { left: 10px; }
    .shot-next { right: 10px; }
}
@media (max-width: 620px) {
    .hero {
        padding: 38px 0 28px;
        background: var(--accent);
        background: linear-gradient(135deg, var(--accent), #0b1020);
    }
    .section { padding: 26px 0; }
    /* 手机端保持两列，避免页面过长 */
    .feature-grid, .step-list, .cat-grid, .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .testi-grid { grid-template-columns: 1fr; gap: 14px; } /* 用户评价单列，避免最后一张卡片孤单 */
    .feature-card { padding: 18px 14px; }
    .feature-icon { font-size: 26px; }
    .feature-name { font-size: 15px; }
    .feature-desc { font-size: 13px; }
    .stats-grid { padding: 22px 16px; gap: 12px; }
    .stat-num { font-size: 20px; }
    .stat-label { font-size: 12.5px; }
    .shot-arrow { width: 38px; height: 38px; font-size: 22px; }
    .shot-prev { left: 6px; }
    .shot-next { right: 6px; }
    .shot-caption { font-size: 13px; padding-top: 10px; }
    .step-item { gap: 10px; }
    .step-no { flex: 0 0 34px; width: 34px; height: 34px; font-size: 15px; }
    .step-body h3 { font-size: 14px; }
    .step-body p { font-size: 12.5px; }
    .cat-card { padding: 16px; }
    .cat-icon { font-size: 24px; }
    .cat-card h3 { font-size: 15px; }
    .cat-card p { font-size: 12.5px; }
    .testi-card { padding: 18px; gap: 12px; }
    .testi-card blockquote { font-size: 14px; }
    /* 手机端 footer 紧凑化 */
    .site-footer { margin-top: 0; }
    .footer-inner { flex-direction: column; gap: 18px; padding: 28px 16px 18px; text-align: center; }
    .footer-logo { font-size: 18px; margin-bottom: 8px; }
    .footer-desc { font-size: 12.5px; margin-bottom: 8px; max-width: none; }
    .footer-meta a, .footer-beian { margin: 0 6px; font-size: 12px; }
    .footer-contact span { display: inline-block; margin: 0 8px; font-size: 12px; }
    .footer-links { flex-direction: row; justify-content: center; gap: 18px; flex-wrap: wrap; }
    .footer-links a { font-size: 13.5px; }
    .footer-bottom { padding: 12px; font-size: 11.5px; }
    .nav-links { display: none; }
    .version-card { padding: 24px; }
    .download { padding: 26px 0 14px; }
    .download-box { padding: 38px 18px; }
    .download-title { font-size: 20px; }
}

/* 超小屏再折成一列，保证可读性 */
@media (max-width: 360px) {
    .feature-grid, .step-list, .cat-grid, .stats-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }
}
