/* ==========================================================================
   scale（尺）模板 · 心尺科技
   纸 / 墨 / 朱印：暖白纸面、墨色正文、一抹朱砂作为唯一强调色；
   刻度尺作为贯穿全站的视觉母题；终端块使用等宽字体展示真实任务。
   ========================================================================== */

:root {
    --paper: #f5f2ea;
    --paper-2: #ece7db;
    --paper-3: #e3dccc;
    --card: #fbf9f4;
    --ink: #1a1916;
    --ink-2: #4a473f;
    --ink-3: #7a7568;
    --line: #d6cfbe;
    --line-2: #c4bba6;
    --seal: #c8442a;
    --seal-ink: #fffaf2;
    --seal-soft: rgba(200, 68, 42, 0.09);
    --brand: #566f13;

    --term-bg: #15140f;
    --term-bar: #201e18;
    --term-line: #2f2c24;
    --term-fg: #e9e4d6;
    --term-dim: #8e887a;
    --term-seal: #ec7457;
    --term-ok: #a9c48a;
    --term-file: #dcb873;

    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

    --wrap: 1180px;
    --gutter: 24px;
    --radius: 6px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #12110e;
        --paper-2: #1a1915;
        --paper-3: #23211c;
        --card: #1d1b17;
        --ink: #ece7da;
        --ink-2: #b4ae9f;
        --ink-3: #868070;
        --line: #2f2c25;
        --line-2: #3d3a31;
        --seal: #e4694c;
        --seal-ink: #160d09;
        --seal-soft: rgba(228, 105, 76, 0.12);
        --brand: #a3bb5c;
        --term-bg: #0b0a08;
        --term-bar: #15140f;
        --term-line: #26241e;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --paper: #12110e;
    --paper-2: #1a1915;
    --paper-3: #23211c;
    --card: #1d1b17;
    --ink: #ece7da;
    --ink-2: #b4ae9f;
    --ink-3: #868070;
    --line: #2f2c25;
    --line-2: #3d3a31;
    --seal: #e4694c;
    --seal-ink: #160d09;
    --seal-soft: rgba(228, 105, 76, 0.12);
    --brand: #a3bb5c;
    --term-bg: #0b0a08;
    --term-bar: #15140f;
    --term-line: #26241e;
    color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--font-mono); }
::selection { background: var(--seal); color: var(--seal-ink); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-2); }
.seal-text { color: var(--seal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 刻度尺母题 ---------- */
.ruler {
    height: 14px;
    border-top: 1px solid var(--line-2);
    background:
        repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 80px) top left / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 40px) top left / 100% 9px no-repeat,
        repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat;
}
.ruler--short { max-width: 240px; }

/* ---------- logo（本地资源，mask 着色以适配深浅色） ---------- */
.logo-mark, .logo-full {
    display: block;
    flex-shrink: 0;
    background-color: var(--brand);
    -webkit-mask: var(--logo-src) center / contain no-repeat;
    mask: var(--logo-src) center / contain no-repeat;
}
.logo-mark { --logo-src: url("logo-mark.png"); width: 39px; height: 34px; }
.logo-full { --logo-src: url("logo.png"); width: 132px; height: 44px; }

/* ---------- 印章（装饰） ---------- */
.seal {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--seal);
    color: var(--seal-ink);
    border-radius: 4px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-align: center;
    box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 250, 242, 0.55);
    flex-shrink: 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--font-serif); font-size: 17px; letter-spacing: 0.04em; }
.brand-name span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    position: relative;
    padding: 8px 14px;
    font-size: 15px;
    color: var(--ink-2);
    border-radius: 4px;
    transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--seal);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; height: 36px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; }
.lang-switch > * { padding: 4px 8px; border-radius: 3px; color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); background: var(--paper-2); }
.lang-switch .is-current { color: var(--ink); font-weight: 600; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
    .site-header .wrap { height: 60px; }
    .nav, .header-actions .btn { display: none; }
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px;
        border: 1px solid var(--line-2); border-radius: 4px;
        background: transparent; color: var(--ink); cursor: pointer;
    }
    .menu-toggle svg { width: 20px; height: 20px; }
    .site-header.is-open .nav {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 60px; left: 0; right: 0;
        padding: 8px 16px 20px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }
    .site-header.is-open .nav a { padding: 14px 4px; border-bottom: 1px dashed var(--line); border-radius: 0; font-size: 16px; }
    .site-header.is-open .nav a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    border-radius: 4px;
    border: 1px solid var(--ink);
    font-size: 15px; font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--seal { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
.btn--seal:hover { filter: brightness(1.06); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn .arrow { font-family: var(--font-mono); transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 600; color: var(--ink);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 2px;
    transition: border-color .15s ease, color .15s ease;
}
.link-arrow:hover { color: var(--seal); border-color: var(--seal); }

/* ---------- section head ---------- */

.section { padding: 112px 0; }
.section--alt { background: var(--paper-2); }
.section--tight { padding: 72px 0; }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-bottom: 56px; align-items: start; }
.section-index { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 16px; }
.section-index b { display: block; font-size: 40px; line-height: 1; color: var(--seal); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; font-family: var(--font-mono); }
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 42px); letter-spacing: 0.01em; margin-bottom: 16px; }
.section-lead { font-size: 17px; color: var(--ink-2); max-width: 680px; }
.section-head .ruler { margin-bottom: 20px; }

@media (max-width: 900px) {
    .section { padding: 76px 0; }
    .section-head { grid-template-columns: 1fr; gap: 8px; margin-bottom: 40px; }
    .section-index { padding-top: 0; display: flex; align-items: baseline; gap: 12px; }
    .section-index b { font-size: 28px; margin: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(38px, 5.6vw, 68px);
    line-height: 1.16;
    letter-spacing: 0.01em;
    margin: 22px 0 26px;
}
.hero h1 em { font-style: normal; color: var(--seal); }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-scale {
    position: absolute; left: 0; right: 0; bottom: 0;
}
.hero--page { padding: 80px 0 72px; border-bottom: 1px solid var(--line); }
.hero--page h1 { font-size: clamp(34px, 4.6vw, 56px); margin: 20px 0 22px; }
.hero--page .hero-sub { max-width: 720px; }

@media (max-width: 980px) {
    .hero { padding: 56px 0 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- install（复制安装命令） ---------- */
.install { margin-top: 36px; max-width: 560px; }
.install-label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.install-cmd { display: flex; align-items: stretch; background: var(--term-bg); border: 1px solid var(--term-line); border-radius: 6px; overflow: hidden; box-shadow: 8px 8px 0 -1px var(--paper-3); }
.install-text { flex: 1; min-width: 0; margin: 0; padding: 14px 18px; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; color: var(--term-fg); }
.install-prompt { color: var(--term-seal); user-select: none; }
.install-copy { flex-shrink: 0; padding: 0 18px; border: 0; border-left: 1px solid var(--term-line); background: var(--term-bar); color: var(--term-fg); font: 600 13px var(--font-sans); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.install-copy:hover { background: var(--seal); color: var(--seal-ink); }
.copy-toast {
    position: fixed; z-index: 60; transform: translate(-50%, -100%) translateY(4px);
    padding: 6px 12px; border-radius: 4px;
    background: var(--ink); color: var(--paper);
    font-family: var(--font-sans); font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(26, 25, 22, 0.45);
    pointer-events: none; opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.copy-toast::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, -100%); }
@media (prefers-reduced-motion: reduce) { .copy-toast { transition: none; } }
@media (max-width: 560px) { .install-text { font-size: 13px; padding: 12px 14px; } .install-copy { padding: 0 14px; } }

/* ---------- terminal ---------- */
.term {
    position: relative;
    background: var(--term-bg);
    color: var(--term-fg);
    border-radius: 8px;
    border: 1px solid var(--term-line);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(26, 25, 22, 0.55), 12px 12px 0 -1px var(--paper-3);
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.75;
    overflow: hidden;
    min-width: 0;
}
.term-bar {
    display: flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 14px;
    background: var(--term-bar);
    border-bottom: 1px solid var(--term-line);
    color: var(--term-dim); font-size: 12px;
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3730; display: inline-block; }
.term-bar i:first-child { background: var(--term-seal); }
.term-bar span { margin-left: 10px; }
.term-body { padding: 18px 20px 22px; overflow-x: auto; }
.term-line { white-space: pre; min-height: 1.75em; }
.term-line .who { color: var(--term-seal); }
.term-line .agent { color: var(--term-dim); }
.term-line .cmd { color: var(--term-fg); }
.term-line .tool-us { color: var(--term-seal); font-weight: 600; }
.term-line:first-child { white-space: pre-wrap; padding-left: 2.6em; text-indent: -2.6em; }
.term-line .ok { color: var(--term-ok); }
.term-line .dim { color: var(--term-dim); }
.term-line .file { color: var(--term-file); }
.term-line .link { color: var(--term-fg); text-decoration: underline; text-decoration-color: var(--term-dim); text-underline-offset: 3px; }
.term .caret {
    display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em;
    background: var(--term-seal); margin-left: 2px;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term [data-step] { opacity: 1; }
.term.is-playing [data-step] { opacity: 0; transform: translateY(2px); transition: opacity .28s ease, transform .28s ease; }
.term.is-playing [data-step].is-shown { opacity: 1; transform: none; }
.term-caption { margin-top: 18px; font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); text-align: right; }
@media (prefers-reduced-motion: reduce) {
    .term .caret { animation: none; }
    .term.is-playing [data-step] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 560px) {
    .term { font-size: 12px; box-shadow: 0 20px 40px -24px rgba(26,25,22,.55); }
    .term-body { padding: 14px 14px 18px; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.step { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step-no { font-family: var(--font-mono); font-size: 13px; color: var(--seal); margin-bottom: 18px; display: block; }
.step h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 12px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step .chip-row { margin-top: 16px; }
.motto {
    margin-top: 56px; padding: 22px 0;
    border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2);
    font-family: var(--font-serif); font-size: 20px; text-align: center;
}
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    .step, .step + .step { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 10px;
    border: 1px solid var(--line-2); border-radius: 3px;
    font-size: 13px; color: var(--ink-2);
    background: var(--card);
}
.chip--mono { font-family: var(--font-mono); font-size: 12px; }
.chip--seal { border-color: var(--seal); color: var(--seal); background: var(--seal-soft); }

/* ---------- product panels ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
    position: relative;
    display: flex; flex-direction: column;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, transform .2s ease;
}
.product:hover { border-color: var(--ink); }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.product-kind { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.product h3 { font-family: var(--font-serif); font-size: 34px; letter-spacing: 0.02em; margin: 6px 0 4px; }
.product h3 small { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.product-slogan { font-family: var(--font-serif); font-size: 18px; color: var(--seal); margin-bottom: 16px; }
.product-summary { color: var(--ink-2); margin-bottom: 28px; }
.product-list { border-top: 1px solid var(--line); margin-bottom: 32px; }
.product-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.product-list li b { font-weight: 600; }
.product-list li span { color: var(--ink-2); }
.product-list code { font-size: 12.5px; color: var(--ink-3); display: block; font-weight: 400; }
.product-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.product-mark {
    width: 64px; height: 64px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line-2); border-radius: 50%;
    font-family: var(--font-serif); font-size: 26px; color: var(--ink);
    background: var(--paper);
}
.product-mark--seal { background: var(--seal); color: var(--seal-ink); border-color: var(--seal); border-radius: 6px; }
@media (max-width: 900px) {
    .products { grid-template-columns: 1fr; }
    .product { padding: 28px 22px; }
    .product h3 { font-size: 28px; }
    .product-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- tool table ---------- */
.tool-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tool-table th {
    text-align: left; font-weight: 500;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-3);
    padding: 0 16px 14px 0;
    border-bottom: 1px solid var(--ink);
}
.tool-table td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.tool-table td:first-child { color: var(--ink); width: 22%; }
.tool-table td:first-child b { font-family: var(--font-serif); font-size: 18px; display: block; }
.tool-table td:first-child code { font-size: 12.5px; color: var(--seal); }
.tool-table tr:hover td { background: linear-gradient(90deg, var(--seal-soft), transparent 60%); }
@media (max-width: 860px) {
    .tool-table thead { display: none; }
    .tool-table, .tool-table tbody, .tool-table tr, .tool-table td { display: block; width: 100%; }
    .tool-table tr { border-bottom: 1px solid var(--line); padding: 18px 0; }
    .tool-table td { border: 0; padding: 4px 0; }
    .tool-table td:first-child { width: 100%; margin-bottom: 6px; }
    .tool-table td[data-label]::before { content: attr(data-label) "　"; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
}

/* ---------- say（用户指令示例） ---------- */
.say {
    font-family: var(--font-mono); font-size: 13px;
    background: var(--paper-2); border-radius: 4px; padding: 10px 14px;
    color: var(--ink-2);
}
.say::before { content: "你 › "; color: var(--seal); }
:lang(en) .say::before { content: "you › "; }
/* ---------- licensing ---------- */
.license-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.license-cell { padding: 32px; border-right: 1px solid var(--line); }
.license-cell:last-child { border-right: 0; }
.license-cell .label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.license-cell h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 10px; }
.license-cell p { color: var(--ink-2); font-size: 15px; }
.license-cell--hl { background: var(--ink); color: var(--paper); }
.license-cell--hl .label { color: var(--seal); }
.license-cell--hl p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.bundle-diagram { margin-top: 40px; }
@media (max-width: 860px) {
    .license-grid { grid-template-columns: 1fr; }
    .license-cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 20px; }
}

/* ---------- manifesto ---------- */
.manifesto { background: var(--ink); color: var(--paper); padding: 120px 0; position: relative; overflow: hidden; }
.manifesto .ruler { border-color: color-mix(in srgb, var(--paper) 25%, transparent);
    background:
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--paper) 30%, transparent) 0 1px, transparent 1px 80px) top left / 100% 14px no-repeat,
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--paper) 22%, transparent) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat; }
.manifesto blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(32px, 5vw, 60px); line-height: 1.25; letter-spacing: 0.02em; }
.manifesto blockquote em { font-style: normal; color: var(--seal); }
.manifesto-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; }
.manifesto-cols h4 { font-family: var(--font-serif); font-size: 19px; margin-bottom: 10px; }
.manifesto-cols p { font-size: 15px; color: color-mix(in srgb, var(--paper) 70%, transparent); }
@media (max-width: 860px) {
    .manifesto { padding: 80px 0; }
    .manifesto-cols { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
}

/* ---------- CTA band ---------- */
.cta { padding: 96px 0; text-align: center; }
.cta h2 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta p { color: var(--ink-2); max-width: 560px; margin: 0 auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.feature { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.feature .no { font-family: var(--font-mono); font-size: 12px; color: var(--seal); display: block; margin-bottom: 18px; }
.feature h3 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 24px 20px; } }

/* ---------- vs table（三方对比） ---------- */
.vs { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.vs-table th, .vs-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table thead th { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.vs-table thead th:first-child { width: 16%; }
.vs-table tbody th { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-3); }
.vs-table td { color: var(--ink-2); }
.vs-table .vs-us { background: var(--ink); color: var(--paper); }
.vs-table thead .vs-us { color: var(--paper); background: var(--ink); position: relative; }
.vs-table thead .vs-us::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--seal); }
.vs-table tbody td.vs-us { border-bottom-color: color-mix(in srgb, var(--paper) 14%, transparent); }
.vs-table tbody td.vs-us::before { content: "✓ "; color: var(--seal); font-family: var(--font-mono); }
@media (max-width: 860px) {
    .vs { border: 0; background: transparent; overflow: visible; }
    .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: 100%; }
    .vs-table thead { display: none; }
    .vs-table tr { margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--card); }
    .vs-table th, .vs-table td { padding: 12px 16px; }
    .vs-table tbody th { background: var(--paper-2); }
    .vs-table td[data-label]::after { content: none; }
    .vs-table td[data-label] { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
    .vs-table td[data-label]::before { content: attr(data-label); font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
    .vs-table td.vs-us[data-label]::before { content: attr(data-label); color: var(--seal); }
    .vs-table tbody tr:last-child th { border-bottom: 1px solid var(--line); }
    .vs-table tbody tr td:last-child { border-bottom: 0; }
}

/* ---------- mock windows ---------- */
.mock {
    background: var(--card);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 12px 12px 0 -1px var(--paper-3);
    font-size: 14px;
    min-width: 0;
}
.mock-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mock-bar .url { margin-left: 10px; padding: 2px 10px; background: var(--card); border-radius: 3px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.reader-head h4 { font-family: var(--font-serif); font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); }
.reader-tabs { display: flex; gap: 4px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.reader-tabs span { padding: 4px 12px; border-radius: 3px; font-size: 13px; color: var(--ink-3); }
.reader-tabs span.on { background: var(--ink); color: var(--paper); }
.reader-body { display: grid; grid-template-columns: 150px 1fr; min-height: 240px; }
.reader-toc { border-right: 1px solid var(--line); padding: 16px; font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 8px; }
.reader-toc span.on { color: var(--seal); }
.reader-text { padding: 18px 22px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; }
.reader-text .tldr { border-left: 3px solid var(--seal); padding: 6px 12px; background: var(--seal-soft); color: var(--ink); }
.reader-text .bar { height: 8px; border-radius: 2px; background: var(--paper-3); }
.reader-text .eq { font-family: var(--font-serif); font-style: italic; text-align: center; color: var(--ink); padding: 6px; border: 1px dashed var(--line-2); border-radius: 3px; }
@media (max-width: 560px) {
    .reader-body { grid-template-columns: 1fr; }
    .reader-toc { display: none; }
}

.ws { display: grid; grid-template-columns: 170px 1fr; min-height: 320px; }
.ws-side { border-right: 1px solid var(--line); padding: 16px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); font-size: 13px; }
.ws-side .grp { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; margin: 10px 0 4px; text-transform: uppercase; }
.ws-side .grp:first-child { margin-top: 0; }
.ws-side span { padding: 5px 8px; border-radius: 3px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-side span.on { background: var(--ink); color: var(--paper); }
.ws-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ws-msg { max-width: 88%; padding: 10px 14px; border-radius: 6px; font-size: 13.5px; }
.ws-msg--me { align-self: flex-end; background: var(--ink); color: var(--paper); }
.ws-msg--ai { background: var(--paper-2); color: var(--ink-2); }
.ws-run { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 4px; padding: 8px 12px; }
.ws-run b { color: var(--seal); font-weight: 500; }
.ws-input { margin-top: auto; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; font-size: 13px; color: var(--ink-3); }
.ws-input .model { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 3px; white-space: nowrap; }
@media (max-width: 600px) {
    .ws { grid-template-columns: 1fr; }
    .ws-side { display: none; }
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 980px) { .split, .split--rev { grid-template-columns: 1fr; gap: 40px; } .split--rev > :first-child { order: 0; } }

.bullets li { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bullets li:first-child { border-top: 1px solid var(--line); }
.bullets li .n { font-family: var(--font-mono); font-size: 12px; color: var(--seal); padding-top: 4px; }
.bullets li b { display: block; font-weight: 600; margin-bottom: 2px; }
.bullets li span { color: var(--ink-2); font-size: 15px; }

/* ---------- case list (swiftscholar) ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.case .say { font-size: 14px; }
.case-out { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.case-out span::before { content: "→ "; color: var(--seal); }
.case p { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .case { padding: 22px 18px; } }

.case-who { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--seal); }
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.case-with { font-family: var(--font-mono); font-size: 11.5px; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--paper); }
.scene-note { margin-top: 24px; font-size: 12px; color: var(--ink-3); }
.case-title { font-family: var(--font-serif); font-size: 20px; line-height: 1.4; margin-top: -8px; }

/* ---------- journey（使用路径时间线） ---------- */
.journey { position: relative; display: flex; flex-direction: column; gap: 0; max-width: 920px; }
.journey li { display: grid; grid-template-columns: 120px 44px minmax(0, 1fr); gap: 20px; align-items: start; position: relative; padding-bottom: 36px; }
.journey li:last-child { padding-bottom: 0; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: calc(120px + 20px + 21px); top: 44px; bottom: 0; width: 1px; background: var(--line-2); }
.journey-when { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 11px; text-align: right; }
.journey-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); font-family: var(--font-mono); font-size: 13px; position: relative; z-index: 1; }
.journey li:first-child .journey-dot { background: var(--seal); border-color: var(--seal); color: var(--seal-ink); }
.journey-body { padding-top: 6px; }
.journey-body h3 { font-family: var(--font-serif); font-size: 21px; margin-bottom: 6px; }
.journey-body p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 640px) {
    .journey li { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; padding-bottom: 28px; }
    .journey li:not(:last-child)::after { left: 18px; top: 36px; }
    .journey-dot { width: 36px; height: 36px; font-size: 12px; grid-row: 1 / span 2; }
    .journey-when { grid-column: 2; text-align: left; padding-top: 2px; font-size: 12px; }
    .journey-body { grid-column: 2; padding-top: 0; }
}

/* ---------- skill grid ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.skill { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.skill h4 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.skill h4::before { content: ""; width: 6px; height: 6px; background: var(--seal); transform: rotate(45deg); }
.skill p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 860px) { .skill-grid { grid-template-columns: 1fr; } .skill { padding: 18px 0; } }

/* ---------- jobs（加入我们 / 职位详情） ---------- */
.jobs-head { margin-bottom: 40px; }
.jobs-head .section-title { margin-bottom: 12px; }
.jobs-note { margin-bottom: 20px; font-size: 14px; color: var(--ink-3); }
.jobs { border-top: 1px solid var(--ink); }
.job-link {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 28px; gap: 20px; align-items: center;
    padding: 26px 0; border-bottom: 1px solid var(--line);
}
.job-link:hover .job-title { color: var(--seal); }
.job-link:hover .job-arrow { transform: translateX(4px); border-color: var(--ink); }
.job-no { font-family: var(--font-mono); font-size: 13px; color: var(--seal); }
.job-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.job-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; transition: color .15s ease; }
.job-summary { font-size: 14.5px; color: var(--ink-2); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.job-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; font-family: var(--font-mono); font-size: 13px; transition: transform .15s ease, border-color .15s ease; }
.job-back { display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ink-3); }
.job-back:hover { color: var(--seal); }
.job-h1 { font-family: var(--font-serif); font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 20px 0 18px; }
.job-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1px solid var(--ink); padding-top: 36px; }
.job-block h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 14px; }
.job-block li { position: relative; padding-left: 16px; margin-bottom: 10px; font-size: 15.5px; color: var(--ink-2); }
.job-block li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 1px; background: var(--seal); }
.job-apply { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 28px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
    .job-link { grid-template-columns: minmax(0, 1fr) 28px; gap: 10px 16px; padding: 22px 0; }
    .job-no { display: none; }
    .job-meta { grid-column: 1 / 2; grid-row: 2; justify-content: flex-start; }
    .job-arrow { grid-column: 2; grid-row: 1; }
    .job-title { font-size: 20px; }
    .job-body { grid-template-columns: 1fr; gap: 28px; }
    .job-apply { padding: 20px 18px; }
}

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.member-top { display: flex; gap: 16px; align-items: center; }
.member img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.member-ph { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-family: var(--font-serif); font-size: 24px; flex-shrink: 0; }
.member h3 { font-family: var(--font-serif); font-size: 20px; }
.member .role { font-size: 13px; color: var(--seal); font-family: var(--font-mono); }
.member .edu { font-size: 13px; color: var(--ink-3); }
.member p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }

/* ---------- blog（博客列表 / 文章） ---------- */
.posts { border-top: 1px solid var(--ink); }
.post-link {
    display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 24px; align-items: start;
    padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-link:hover .post-title { color: var(--seal); }
.post-link:hover .job-arrow { transform: translateX(4px); border-color: var(--ink); }
.post-link .job-arrow { margin-top: 4px; }
.post-date { font-family: var(--font-mono); font-size: 13px; color: var(--seal); padding-top: 6px; }
.post-head { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.post-title { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.35; transition: color .15s ease; }
.post-summary { font-size: 15px; color: var(--ink-2); }
.wrap--prose { max-width: calc(760px + 2 * var(--gutter)); }
.post-cover { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 40px; }
@media (max-width: 640px) {
    .post-link { grid-template-columns: minmax(0, 1fr) 28px; gap: 8px 16px; padding: 22px 0; }
    .post-date { grid-column: 1 / -1; padding-top: 0; }
    .post-title { font-size: 20px; }
}

.prose { font-size: 17px; line-height: 1.85; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-serif); font-size: 28px; margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose h3 { font-family: var(--font-serif); font-size: 21px; margin-top: 1.7em; scroll-margin-top: 96px; }
.prose h4 { font-size: 17px; margin-top: 1.5em; }
.prose a { color: var(--seal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--seal); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--seal); color: var(--ink-2); font-family: var(--font-serif); }
.prose hr { border: 0; margin: 2.4em 0; }
.prose hr::before { content: ""; display: block; height: 14px; border-top: 1px solid var(--line-2); background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 8px) top left / 100% 5px no-repeat; }
.prose img { height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 1.6em auto; }
.prose :not(pre) > code { font-size: .88em; padding: .12em .38em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; }
.prose pre { margin: 1.6em 0; padding: 18px 20px; background: var(--term-bg); color: var(--term-fg); border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.7; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--ink-3); border-bottom-color: var(--ink); }
@media (max-width: 560px) {
    .prose { font-size: 16px; }
    .prose h2 { font-size: 24px; }
    .prose pre { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink); padding: 64px 0 28px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid li a { color: var(--ink-2); }
.footer-grid li a:hover { color: var(--seal); }
.footer-motto { margin-top: 18px; font-family: var(--font-serif); color: var(--ink-2); font-size: 15px; }
.footer-contact li { color: var(--ink-2); }
.footer-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 13px; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom .beian { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom img { height: 14px; width: auto; }
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 560px) {
    :root { --gutter: 16px; }
    body { font-size: 15px; }
    .hero-sub { font-size: 16px; }
    .btn { height: 42px; padding: 0 16px; }
}
