/* ============================================================
   飞扬 AI 桌面版 · 产品页样式
   朴素的深色信息页：实色主色、细边框分隔、左对齐编辑式排版
   ============================================================ */

:root {
    --bg: #0d1117;
    --bg-2: #11161f;
    --surface: #161c27;
    --surface-2: #1b2230;

    --text: #e6edf3;
    --text-2: #8b949e;
    --text-3: #5c6570;

    --line: rgba(255, 255, 255, .09);
    --line-soft: rgba(255, 255, 255, .055);

    --blue: #4f8ef7;
    --blue-deep: #3a7ae0;
    --green: #3fb950;
    --cyan: #39c5d8;

    --max: 1120px;
    --nav-h: 64px;
    --ease: 180ms ease;
}

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

code {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: .88em;
    color: #8fd0ff;
    background: rgba(79, 142, 247, .1);
    border: 1px solid rgba(79, 142, 247, .16);
    border-radius: 5px;
    padding: 1px 5px;
    word-break: break-all;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--blue);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    z-index: 999;
}
.skip:focus { left: 16px; }

/* ============ 导航 ============ */
.nav {
    position: fixed;
    inset: 0 0 auto;
    height: var(--nav-h);
    z-index: 90;
    transition: background var(--ease), border-color var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.solid {
    background: rgba(13, 17, 23, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line-soft);
}

.nav-inner {
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.brand-mark.dsh { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; color: #fff; white-space: nowrap; }
.brand-sep { color: var(--text-3); font-size: 13px; }
.brand-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-menu a { font-size: 13px; color: var(--text-2); transition: color var(--ease); white-space: nowrap; }
.nav-menu a:hover { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    color: var(--text-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: color var(--ease), border-color var(--ease);
    white-space: nowrap;
}
.nav-back:hover { color: #fff; border-color: rgba(255, 255, 255, .24); }

.nav-version {
    font-size: 11.5px;
    color: var(--text-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 3px 11px;
    font-variant-numeric: tabular-nums;
}
.nav-version:hover { color: #fff; }

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    transition: background var(--ease);
}
.nav-btn:hover { background: var(--blue-deep); }

.nav-toggle {
    display: none;
    width: 34px;
    height: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span { width: 15px; height: 1.4px; background: var(--text-2); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 88px; }

.hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.eyebrow { font-size: 12.5px; color: var(--text-2); margin-bottom: 20px; }

.hero h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -1.4px;
    margin-bottom: 20px;
}
.hero-line2 { display: block; color: var(--text-2); font-weight: 500; }

.hero-sub {
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-2);
    max-width: 460px;
    margin-bottom: 28px;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

.split-btn { position: relative; display: inline-flex; }
.split-main {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--blue);
    border-radius: 8px 0 0 8px;
    transition: background var(--ease);
}
.split-main:hover { background: var(--blue-deep); }
.split-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 42px;
    color: #fff;
    background: var(--blue);
    border-left: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0 8px 8px 0;
    transition: background var(--ease);
}
.split-caret:hover { background: var(--blue-deep); }
.split-caret svg { transition: transform var(--ease); }
.split-btn.open .split-caret svg { transform: rotate(180deg); }

.split-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
    z-index: 20;
}
.split-btn.open .split-menu { opacity: 1; visibility: visible; transform: none; }
.split-menu a { display: block; padding: 9px 12px; border-radius: 9px; transition: background var(--ease); }
.split-menu a:hover { background: rgba(79, 142, 247, .12); }
.split-menu span { display: block; font-size: 13px; color: var(--text); }
.split-menu em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 18px;
    font-size: 13.5px;
    color: var(--text-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .03); }

.hero-meta { font-size: 12px; color: var(--text-3); }

/* 首屏右侧 */
.hero-visual { position: relative; }

.stage {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    overflow: hidden;
}
.stage-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line-soft);
}
.stage-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.stage-bar span { margin-left: 10px; font-size: 11px; color: var(--text-3); }
.stage img { width: 100%; height: auto; }

/* 终端卡（静态，无动画装饰） */
.terminal {
    position: absolute;
    right: -14px;
    bottom: -22px;
    width: min(340px, 82%);
    background: #0a0e14;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 11.5px;
    line-height: 1.85;
}
.term-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid var(--line-soft);
}
.term-tab { color: var(--text-2); }
.term-status { color: var(--green); font-size: 10.5px; }
.term-status::before { content: "● "; }
.term-body { padding: 10px 13px 12px; }
.term-body p { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body .t-dim { color: var(--text-3); }
.term-body .t-ok { color: var(--green); }
.term-body .t-run { color: var(--cyan); }
.t-last { color: var(--text) !important; }

/* ============ 区块 ============ */
.band { padding: 84px 0; border-top: 1px solid var(--line-soft); }

.band-title {
    font-size: clamp(23px, 2.6vw, 30px);
    font-weight: 700;
    letter-spacing: -.5px;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}
.band-title em {
    font-style: normal;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 13px;
    color: var(--blue);
    flex-shrink: 0;
}
.band-sub { font-size: 14.5px; color: var(--text-2); max-width: 640px; margin-bottom: 40px; line-height: 1.8; }

/* 启动方式 */
.modes { border-top: 1px solid var(--line); }
.modes > li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line-soft);
}
.mode-no { font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; color: var(--blue); padding-top: 4px; }
.mode-body h3 { font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.tag {
    font-size: 10.5px;
    color: var(--blue);
    border: 1px solid rgba(79, 142, 247, .3);
    background: rgba(79, 142, 247, .08);
    border-radius: 100px;
    padding: 1px 8px;
    font-weight: 400;
}
.mode-body > p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; max-width: 640px; margin-bottom: 11px; }
.mode-body ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mode-body li { font-size: 12.5px; color: var(--text-3); padding-left: 14px; position: relative; }
.mode-body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 1px; background: var(--text-3); }

/* 截图 */
.shot { margin-bottom: 28px; }
.shot:last-child { margin-bottom: 0; }
.shot-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #eef1f8; }
.shot-frame.dark { background: #0a0d13; }
.shot-frame img { width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.shot-pair .shot { margin-bottom: 0; }

/* 插件 */
.plugin-list { border-top: 1px solid var(--line); }
.plugin-list li {
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 300px 1fr 88px;
    gap: 28px;
    align-items: start;
}
.pl-head h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.pl-head code { font-size: 11.5px; color: var(--text-3); background: none; border: 0; padding: 0; }
.plugin-list p { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.plugin-list li > a { font-size: 12.5px; color: var(--blue); text-align: right; transition: color var(--ease); white-space: nowrap; padding-top: 2px; }
.plugin-list li > a:hover { color: #fff; }

.aside { margin-top: 24px; font-size: 13px; color: var(--text-3); line-height: 1.85; max-width: 760px; }
.aside a { color: var(--blue); }
.aside a:hover { color: #fff; }

/* 官方联动 */
.official .band-sub a { color: var(--blue); }
.official .band-sub a:hover { color: #fff; }
.official-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.o-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    transition: border-color var(--ease), background var(--ease);
}
.o-link:hover { border-color: rgba(255, 255, 255, .22); background: var(--bg-2); }
.o-title { font-size: 14px; font-weight: 600; color: var(--text); }
.o-url { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--blue); word-break: break-all; }
.o-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }

/* 下载 */
.dl-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); overflow: hidden; }
.dl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line-soft);
}
.dl-row:last-of-type { border-bottom: 0; }
.dl-info h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 5px; }
.dl-info p { font-size: 13.2px; color: var(--text-2); line-height: 1.75; max-width: 520px; }
.dl-file { margin-top: 6px; font-size: 11.5px; color: var(--text-3); word-break: break-all; }

.dl-act { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.dl-act em { font-style: normal; font-size: 11.5px; color: var(--text-3); width: 100%; text-align: right; }

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
    transition: background var(--ease);
    white-space: nowrap;
}
.btn-solid:hover { background: var(--blue-deep); }

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    font-size: 13px;
    color: var(--text-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: color var(--ease), border-color var(--ease), background var(--ease);
    white-space: nowrap;
}
.btn-line:hover { color: #fff; border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .03); }

.dl-detail { border-top: 1px solid var(--line-soft); }
.dl-detail summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 28px;
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dl-detail summary::-webkit-details-marker { display: none; }
.dl-detail summary::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.3px solid var(--text-3);
    border-bottom: 1.3px solid var(--text-3);
    transform: rotate(-45deg);
    transition: transform var(--ease);
    margin-right: 2px;
}
.dl-detail[open] summary::before { transform: rotate(45deg); }
.dl-detail summary:hover { color: #fff; }
.dl-detail-body { padding: 0 28px 22px; display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: 80px 1fr; gap: 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.kv > span:first-child { color: var(--text-3); }
.kv code { font-size: 11.5px; }

/* 更新 */
.changes { border-top: 1px solid var(--line); }
.changes li { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.ch-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.ch-head b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue); }
.ch-head span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.changes p { font-size: 13.4px; color: var(--text-2); line-height: 1.85; max-width: 820px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 19px 30px 19px 0;
    font-size: 14.5px;
    color: var(--text);
    position: relative;
    transition: color var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 27px;
    width: 7px;
    height: 7px;
    border-right: 1.3px solid var(--text-3);
    border-bottom: 1.3px solid var(--text-3);
    transform: rotate(45deg);
    transition: transform var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 40px 20px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.9; }
.faq details p a { color: var(--blue); }
.faq details p a:hover { color: #fff; }

/* 结尾 */
.closing { padding: 84px 0 96px; text-align: center; border-top: 1px solid var(--line-soft); }
.closing h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.6px; margin-bottom: 26px; }
.closing-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 下载区块 ── */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 860px; }
.dl-tile {
    display: block;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.dl-tile:hover { border-color: rgba(79, 142, 247, .6); background: rgba(79, 142, 247, .06); transform: translateY(-2px); }
.dl-tile b { display: block; font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.dl-tile span { display: block; font-size: 12.5px; color: #7fa8f5; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.dl-tile em { display: block; font-style: normal; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }
@media (max-width: 640px) { .dl-grid { grid-template-columns: 1fr; } }

/* ============ 页脚 ============ */
.foot { border-top: 1px solid var(--line-soft); padding: 44px 0 28px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 40px; padding-bottom: 32px; }
.foot-name { font-size: 14px; font-weight: 600; color: #fff; }
.foot-name b { color: var(--blue); letter-spacing: 1.2px; font-size: 12.5px; }
.foot-brand p { margin-top: 10px; font-size: 12.5px; color: var(--text-3); line-height: 1.8; max-width: 300px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.foot-cols h4 { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.foot-cols a { display: block; font-size: 12.5px; color: var(--text-3); margin-bottom: 9px; transition: color var(--ease); }
.foot-cols a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.foot-bottom p { font-size: 11.5px; color: var(--text-3); }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
    .hero-wrap { grid-template-columns: 1fr; gap: 44px; }
    .terminal { right: 6px; bottom: -20px; }
    .plugin-list li { grid-template-columns: 1fr; gap: 10px; }
    .plugin-list li > a { text-align: left; }
    .dl-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .dl-act { justify-content: flex-start; }
    .dl-act em { text-align: left; }
    .foot-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
    .nav-menu {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 28px 18px;
        background: rgba(13, 17, 23, .98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line-soft);
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 11px 0; font-size: 14px; width: 100%; }
    .nav-toggle { display: flex; }
    .brand-sub { display: none; }
    .nav-version { display: none; }
    .nav-back span { display: none; }
    .nav-back { padding: 0 10px; }

    .shot-pair { grid-template-columns: 1fr; gap: 24px; }
    .official-links { grid-template-columns: 1fr; }
    .band { padding: 68px 0; }
    .hero { padding-top: calc(var(--nav-h) + 52px); padding-bottom: 68px; }
    .terminal { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 16px; }
    .modes > li { grid-template-columns: 40px 1fr; gap: 12px; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .wrap, .nav-inner { padding: 0 20px; }
    .split-menu { min-width: 260px; }
    .hero-actions { gap: 10px; }
    .dl-row { padding: 22px 20px; }
    .dl-detail summary { padding: 16px 20px; }
    .dl-detail-body { padding: 0 20px 20px; }
    .closing { padding: 68px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
