:root {
  --ink: #0c0d0e;
  --ink-soft: #42464d;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --line: #e5e7eb;
  --line-strong: #d6d9df;
  --muted: #737985;
  --blue: #1664ff;
  --blue-dark: #0b51d8;
  --blue-pale: #eef4ff;
  --green: #00875a;
  --green-pale: #eaf8f2;
  --amber: #9a5b08;
  --amber-pale: #fff7e8;
  --red: #c9354c;
  --red-pale: #fff0f2;
  --shadow: 0 12px 32px rgba(12, 13, 14, .08);
  --radius: 3px;
  --shell: min(1320px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.shell { width: var(--shell); margin: 0 auto; }
.skip-link { position: fixed; z-index: 30; left: 1rem; top: -4rem; padding: .65rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { top: 1rem; }

#site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); }
.nav-shell { width: var(--shell); min-height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.brand small { margin-top: .2rem; color: #8a9099; font-size: 9px; letter-spacing: .09em; }
.primary-nav { display: flex; align-items: stretch; gap: 1.05rem; min-height: 64px; }
.nav-user { display: flex; align-items: center; gap: 12px; margin: 0; flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.nav-logout { border: 0; background: transparent; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
.nav-logout:hover { color: var(--blue); }
.nav-link { position: relative; display: flex; align-items: center; color: #30343a; font-size: 14px; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link.active::after { transform: scaleX(1); }
.nav-link:focus-visible, .primary-action:focus-visible, .text-action:focus-visible, .unit-card:focus-visible, .nav-toggle:focus-visible { outline: 3px solid rgba(22, 100, 255, .25); outline-offset: 3px; }
.nav-toggle { display: none; border: 1px solid var(--line-strong); background: white; padding: .5rem .8rem; color: var(--ink); font: inherit; font-size: 13px; }

.hero { position: relative; overflow: hidden; padding: 88px 0 28px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 260px; right: -120px; top: -140px; background: radial-gradient(ellipse, rgba(22,100,255,.11), rgba(22,100,255,0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; }
.eyebrow, .section-kicker { margin-bottom: 16px; color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { max-width: 20ch; margin-bottom: 22px; font-size: clamp(40px, 4vw, 56px); line-height: 1.14; letter-spacing: -.04em; font-weight: 400; }
.hero-intro { max-width: 62ch; margin-bottom: 28px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; color: white; background: var(--ink); border: 0; border-radius: var(--radius); font: inherit; font-weight: 500; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.primary-action:hover { background: var(--blue); transform: translateY(-1px); }
.primary-action:active { transform: translateY(1px); }
.text-action { color: var(--ink); border-bottom: 1px solid #aeb3bb; font-weight: 500; transition: color .2s ease, border-color .2s ease; }
.text-action:hover { color: var(--blue); border-color: var(--blue); }

.command-panel { position: relative; padding: 24px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); overflow: hidden; }
.command-panel::after { content: ""; position: absolute; width: 120px; height: 120px; right: -70px; bottom: -70px; border: 1px solid #dce7ff; transform: rotate(45deg); }
.command-head, .command-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.command-head > span, .command-foot { color: var(--muted); font-size: 12px; }
.command-panel > strong { display: block; margin: 26px 0 14px; font-size: 20px; font-weight: 500; }
.command-panel ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: command; }
.command-panel li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.command-panel li::before { counter-increment: command; content: "0" counter(command); color: #9ba1ab; font-variant-numeric: tabular-nums; font-size: 11px; }
.north-star { margin-top: 56px; display: grid; grid-template-columns: .3fr 1fr .65fr; align-items: baseline; gap: 2rem; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.north-star span, .north-star em { color: var(--muted); font-size: 12px; font-style: normal; }
.north-star strong { color: var(--ink); font-size: 18px; font-weight: 500; }
.north-star em { justify-self: end; }

.section { padding: 80px 0 92px; }
.section-muted { background: var(--surface-2); }
.section-ink { color: var(--ink); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-blue { color: white; background: var(--blue); }
.section-head { display: grid; grid-template-columns: .3fr 1fr .65fr; gap: 2rem; align-items: start; margin-bottom: 38px; }
.section-head .section-kicker { margin: 6px 0 0; }
.section-head h2 { max-width: 22ch; margin-bottom: 0; font-size: clamp(28px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.03em; font-weight: 400; }
.section-head > p:last-child { max-width: 52ch; margin-bottom: 0; color: var(--muted); }
.section-ink .section-kicker { color: var(--blue); }
.section-ink .section-head > p:last-child { color: var(--muted); }
.section-blue .section-kicker, .section-blue .section-head > p:last-child { color: rgba(255,255,255,.72); }

.unit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.unit-card { min-height: 282px; display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.unit-card:nth-child(1), .unit-card:nth-child(2), .unit-card:nth-child(3) { grid-column: span 4; }
.unit-card:nth-child(4), .unit-card:nth-child(5) { grid-column: span 6; min-height: 252px; background: var(--surface-2); }
.unit-card:hover { transform: translateY(-3px); border-color: #b8caff; box-shadow: var(--shadow); }
.unit-top, .priority-title, .progress-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.unit-top > span, .priority-code { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.unit-card h3 { margin: 34px 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.unit-card > p { color: var(--muted); font-size: 13px; }
.unit-card dl { margin: auto 0 16px; }
.unit-card dl > div { display: grid; grid-template-columns: 48px 1fr; gap: .5rem; padding: 7px 0; border-top: 1px solid var(--line); }
.unit-card dt { color: var(--muted); font-size: 11px; }
.unit-card dd { margin: 0; font-size: 12px; }
.text-link { font-size: 13px; font-weight: 500; }
.text-link b { color: var(--blue); }

.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 2px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.done { color: var(--green); background: var(--green-pale); }
.status-badge.in-progress { color: var(--blue-dark); background: var(--blue-pale); }
.status-badge.waiting { color: var(--amber); background: var(--amber-pale); }
.status-badge.at-risk { color: var(--red); background: var(--red-pale); }
.status-badge.not-started, .status-badge.later { color: #60656e; background: #eceef1; }

.priority-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: transparent; }
.priority-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; min-height: 190px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.priority-code { color: var(--blue); }
.priority-title h3 { margin: 0; font-size: 18px; font-weight: 500; }
.priority-body > p { margin: 12px 0 24px; color: var(--muted); max-width: 54ch; }
.priority-body small { color: var(--muted); }

.stage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stage-card { min-height: 224px; padding: 20px; background: white; border: 1px solid var(--line); border-top: 3px solid #cdd1d8; }
.stage-card.current { border-top-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.stage-card.parallel { border-top-color: #6f9cff; }
.stage-index { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.stage-card h3 { margin: 58px 0 10px; font-size: 17px; line-height: 1.3; font-weight: 500; }
.stage-card p { color: var(--muted); font-size: 12px; }

.loop-map { display: flex; align-items: stretch; gap: 8px; }
.loop-step { flex: 1; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.loop-step span { color: rgba(255,255,255,.7); font-size: 11px; }
.loop-step strong { font-size: 15px; font-weight: 500; }
.loop-arrow { align-self: center; color: rgba(255,255,255,.7); }

.detail-hero { padding-bottom: 70px; }
.detail-hero-grid { display: grid; grid-template-columns: 150px 1fr; gap: 34px; align-items: start; }
.detail-number { color: var(--blue); font-size: clamp(72px, 9vw, 118px); line-height: .9; letter-spacing: -.07em; font-weight: 300; }
.detail-hero h1 { max-width: 24ch; font-size: clamp(34px, 3.7vw, 48px); line-height: 1.18; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--muted); font-size: 12px; }
.snapshot { color: var(--ink); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; }
.snapshot article { min-height: 140px; padding: 24px 32px 28px 0; }
.snapshot article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.snapshot span { color: var(--muted); font-size: 11px; }
.snapshot p { max-width: 60ch; margin: 16px 0 0; font-size: 15px; }

.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; }
.architecture-node { min-height: 178px; padding: 18px; background: white; border: 1px solid var(--line); border-top: 3px solid #cdd1d8; }
.architecture-node.existing { border-top-color: var(--green); }
.architecture-node.building { border-top-color: var(--blue); }
.architecture-node.later { border-top-color: #aeb3bb; background: var(--surface-2); }
.node-num { margin-bottom: 36px; color: var(--muted); font-size: 11px; }
.architecture-node span { color: var(--muted); font-size: 11px; }
.architecture-node h3 { margin: 5px 0 8px; font-size: 15px; font-weight: 500; }
.architecture-node p { margin: 0; color: var(--muted); font-size: 12px; }
.architecture-arrow { align-self: center; color: #aeb3bb; }
.architecture-hosts { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: stretch; }
.architecture-host { padding: 22px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--green); }
.architecture-host header span { color: var(--muted); font-size: 11px; }
.architecture-host header h3 { margin: 6px 0 8px; font-size: 20px; font-weight: 500; }
.architecture-host header p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.architecture-host-nodes { display: grid; gap: 10px; }
.architecture-host .architecture-node { min-height: 0; }
.architecture-entry { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

/* 功能架构 */
.func-arch { display: flex; flex-direction: column; gap: 20px; }
.func-chain-wrap { padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.func-chain-title { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.func-chain { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.func-chain-step { flex: 1; min-width: 114px; background: white; border: 1px solid var(--line); padding: 10px 12px; border-radius: var(--radius); text-align: center; }
.func-chain-step span { display: block; font-size: 10px; font-weight: 600; color: var(--blue); }
.func-chain-step strong { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.func-chain-arrow { color: var(--line-strong); font-weight: 700; flex-shrink: 0; }

.flow-actions { margin: -8px 0 16px; }
.geo-flow-frame { display: block; width: 100%; height: 1100px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.func-domains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.func-domain { display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.func-domain:hover { border-color: #b8caff; box-shadow: var(--shadow); }
.func-domain-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.func-domain-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.func-domain-tag { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 2px; background: var(--blue-pale); color: var(--blue-dark); white-space: nowrap; }
.func-domain-modules { padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.func-module { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.func-module:last-child { padding-bottom: 0; border-bottom: none; }
.func-mod-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.func-mod-title { margin: 0; font-size: 12px; font-weight: 600; color: #1e2229; }
.func-mod-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.func-tag { font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.func-tag.tag-chain, .func-tag.tag-existing { background: var(--green-pale); color: var(--green); }
.func-tag.tag-design, .func-tag.tag-frontend, .func-tag.tag-building { background: var(--blue-pale); color: var(--blue-dark); }
.func-tag.tag-tool { background: var(--amber-pale); color: var(--amber); }
.func-tag.tag-planning, .func-tag.tag-planned { background: #f0f1f3; color: #6b7280; }
.func-tag.tag-legacy { background: #f3f4f6; color: #8c939d; border: 1px dashed #d1d5db; }

.func-tools-section { padding: 18px 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.func-tools-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.func-tools-header h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.func-tools-header p { margin: 0; font-size: 12px; color: var(--muted); }
.func-tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.func-tool-item { padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }

.func-legacy-section { padding: 18px 20px; background: #fafbfc; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.func-legacy-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.func-legacy-header h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #4b5563; }
.func-legacy-header p { margin: 0; font-size: 12px; color: var(--muted); }
.func-legacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.func-legacy-item { padding: 10px 12px; background: white; border: 1px solid var(--line); border-radius: var(--radius); opacity: 0.88; }

.func-stats { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 18px 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.func-stats-items { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.func-stat { display: flex; align-items: baseline; gap: 6px; }
.func-stat-num { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.func-stat-label { font-size: 11px; color: var(--muted); }
.func-legend { display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--muted); }
.func-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.chain, .legend-dot.existing { background: var(--green); }
.legend-dot.design, .legend-dot.frontend, .legend-dot.building { background: var(--blue); }
.legend-dot.tool { background: var(--amber); }
.legend-dot.legacy { background: #9ca3af; }
.legend-dot.planning, .legend-dot.planned { background: #9ca3af; }

.split-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 72px; }
.split-layout .section-head, .two-column .section-head { display: block; }
.split-layout .section-head h2, .two-column .section-head h2 { margin-bottom: 12px; }
.split-layout .section-head > p:last-child, .two-column .section-head > p:last-child { margin-top: 12px; }
.objective-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: goal; }
.objective-list li { min-height: 100px; padding: 14px 18px 14px 0; border-top: 1px solid var(--line-strong); font-weight: 500; }
.objective-list li::before { counter-increment: goal; content: "0" counter(goal); display: block; margin-bottom: 18px; color: var(--blue); font-size: 11px; }
.metric-panel { align-self: end; padding: 24px; color: white; background: var(--ink); border-radius: var(--radius); }
.metric-panel > span { color: #aeb3bb; font-size: 11px; }
.metric-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.metric-cloud span { padding: 7px 9px; border: 1px solid #3b3d41; font-size: 12px; }

.progress-list { border-top: 1px solid var(--line); }
.progress-row { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 2rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
.progress-title { align-items: flex-start; }
.progress-title h3 { margin: 0; font-size: 14px; font-weight: 500; }
.progress-row > div > span { color: var(--muted); font-size: 11px; }
.progress-row p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.step-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step-item { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 13px 0; border-bottom: 1px solid var(--line); }
.step-item span { color: var(--muted); font-size: 11px; }
.step-item strong { font-size: 13px; font-weight: 500; }
.step-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.support-block { margin-top: 28px; }
.connection-list { border-top: 1px solid var(--line); }
.connection-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .7rem; padding: 13px 0; border-bottom: 1px solid var(--line); }
.connection-row strong { font-size: 13px; font-weight: 500; }
.connection-row span { color: var(--muted); }
.connection-row p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.risk-panel, .next-panel { min-height: 310px; padding: 28px; }
.risk-panel { background: var(--surface-2); border: 1px solid var(--line); }
.next-panel { color: white; background: var(--blue); border-radius: var(--radius); }
.risk-panel h2, .next-panel h2 { font-size: 26px; font-weight: 400; letter-spacing: -.025em; }
.risk-panel ul, .next-panel ol { margin: 48px 0 0; }
.risk-panel ul { padding-left: 18px; }
.risk-panel li { padding: 6px 0; color: var(--ink-soft); }
.next-panel .section-kicker { color: rgba(255,255,255,.72); }
.next-panel ol { padding: 0; list-style: none; }
.next-panel li { display: grid; grid-template-columns: 36px 1fr; gap: .5rem; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.28); }
.next-panel li span { color: rgba(255,255,255,.7); font-size: 11px; }

#site-footer { padding: 38px 0; color: white; background: var(--ink); }
.footer-shell { width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-shell strong { font-size: 15px; font-weight: 500; }
.footer-shell p { margin: 5px 0 0; color: #90959e; font-size: 12px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1.2rem; color: #90959e; font-size: 11px; }

.reveal, .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1080px) {
  .primary-nav { position: absolute; left: 32px; right: 32px; top: 63px; display: none; min-height: 0; padding: 10px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; }
  .nav-link { min-height: 40px; padding: 0 10px; }
  .nav-link::after { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .split-layout, .two-column { grid-template-columns: 1fr; }
  .command-panel { max-width: 620px; }
  .section-head { grid-template-columns: .25fr 1fr; }
  .section-head > p:last-child { grid-column: 2; }
  .unit-card:nth-child(n) { grid-column: span 6; }
  .unit-card:last-child { grid-column: 1 / -1; }
  .stage-grid { grid-template-columns: repeat(3, 1fr); }
  .architecture-flow, .architecture-hosts { grid-template-columns: 1fr; }
  .architecture-arrow { transform: rotate(90deg); justify-self: center; }
  .func-domains { grid-template-columns: repeat(2, 1fr); }
  .func-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .func-legacy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 32px, 1320px); }
  .nav-shell { min-height: 58px; }
  .brand img { width: 30px; height: 30px; }
  .primary-nav { left: 16px; right: 16px; top: 57px; }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 40px); line-height: 1.16; }
  .hero-intro { font-size: 15px; }
  .func-domains { grid-template-columns: 1fr; }
  .func-tools-grid { grid-template-columns: 1fr; }
  .func-legacy-grid { grid-template-columns: 1fr; }
  .func-stats { flex-direction: column; align-items: flex-start; gap: 14px; }
  .func-stats-items { gap: 16px; }
  .hero-grid, .detail-hero-grid, .snapshot-grid, .close-grid, .footer-shell { grid-template-columns: 1fr; }
  .detail-number { font-size: 60px; }
  .detail-hero h1 { font-size: 32px; }
  .north-star { grid-template-columns: 1fr; gap: 5px; margin-top: 40px; }
  .north-star em { justify-self: start; }
  .section { padding: 56px 0 64px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head h2 { margin-bottom: 12px; font-size: 28px; }
  .unit-card:nth-child(n) { grid-column: 1 / -1; min-height: 236px; }
  .unit-card h3 { margin-top: 26px; }
  .priority-grid, .objective-list { grid-template-columns: 1fr; }
  .priority-card { grid-template-columns: 48px 1fr; min-height: 170px; padding: 20px; }
  .stage-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 18px; }
  .stage-card { min-width: 76vw; min-height: 204px; scroll-snap-align: start; }
  .loop-map { display: grid; }
  .loop-arrow { transform: rotate(90deg); justify-self: center; }
  .snapshot article, .snapshot article + article { min-height: auto; padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .progress-row { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
  .close-grid { gap: 8px; }
  .risk-panel, .next-panel { min-height: 270px; padding: 22px; }
  .footer-meta { justify-content: flex-start; }
}

@media (max-width: 1280px) {
  .nav-shell { position: relative; }
  .primary-nav { position: absolute; left: 32px; right: 32px; top: 63px; z-index: 30; display: none; min-height: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: grid; }
  .nav-link { min-height: 40px; padding: 0 10px; }
  .nav-link::after { display: none; }
  .nav-toggle { display: block; }
}

.login-body { min-height: 100vh; background: var(--paper); }
.login-wrap { width: min(420px, calc(100% - 48px)); margin: 12vh auto 0; }
.login-wrap h1 { margin: 28px 0 8px; font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.login-note, .login-error { color: var(--muted); }
.login-error { color: var(--red); }
.login-form { display: grid; gap: 8px; margin-top: 28px; }
.login-form label, .task-form label, .quiet-label { color: var(--muted); font-size: 12px; }
.login-form input, .login-form select, .task-form input, .task-form select, .task-form textarea, .link-draft input {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}
.login-form input:focus, .login-form select:focus, .task-form input:focus, .task-form select:focus, .task-form textarea:focus, .link-draft input:focus, .board-composer textarea:focus, .reply-draft textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.login-form select { min-height: 42px; cursor: pointer; }
.login-form button { margin-top: 12px; justify-self: start; }

.work-page { width: var(--shell); margin: 0 auto; padding: 48px 0 96px; font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.75; }
.work-page h1 { margin-bottom: 8px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.work-page > .text-button { margin-bottom: 14px; }
.work-lead { max-width: 62ch; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.section-add, .task-form, .link-draft { display: grid; gap: 10px; margin: 0 0 36px; }
.task-form[hidden] { display: none; }
.work-page .task-form {
  max-width: 760px;
  gap: 14px;
  margin: 12px 0 22px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.task-form-heading { margin: 0; font-size: 14px; font-weight: 600; }
.work-page .task-form input,
.work-page .task-form select,
.work-page .task-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.45;
  padding: 7px 10px;
}
.work-page .task-form textarea { resize: vertical; }
.work-page .task-form .task-title-field input { font-size: 16px; font-weight: 500; }
.work-page .task-form .primary-action { min-height: 34px; padding: 0 14px; font-size: 14px; }
.section-add { grid-template-columns: 1fr auto; align-items: end; }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.task-grid .wide { grid-column: 1 / -1; }
.task-grid .span-2 { grid-column: span 2; }
.assignee-list, .mention-row, .text-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.assignee-list { gap: 8px; }
.assignee-list label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.assignee-list input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.assignee-list label:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dark); }
.assignee-list label:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.work-page .quiet-label, .work-page .task-form label { font-size: 12px; }
.task-block { margin-top: 42px; }
.task-block h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.task-empty, .field-error { color: var(--muted); }
.field-error { color: var(--red); }
.task-item { margin-top: 28px; }
.task-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.task-item p { margin: 0; color: var(--ink-soft); }
.task-meta { display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; margin-top: 10px; }
.task-meta dt { color: var(--muted); }
.task-meta dd { margin: 0; }
.text-button { border: 0; background: transparent; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.text-button.danger { color: var(--red); }
.task-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.task-filter { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 8px; }
.task-filter button { border: 0; border-radius: 6px; padding: 3px 10px; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.4; cursor: pointer; }
.task-filter button.is-on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.task-group { margin-top: 22px; }
.task-group h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 2px 8px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.task-count { display: inline-flex; align-items: center; min-width: 1.5em; justify-content: center; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.6; }
.task-row { border-bottom: 1px solid var(--line); }
.task-row.is-open { background: var(--surface-2); }
.task-row:focus-within { position: relative; z-index: 3; }
.task-line {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto minmax(0, 11rem) 6.75rem;
  gap: 10px 14px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.task-line:hover { background: #f3f4f6; }
.task-row.is-open .task-line { background: transparent; }
.task-main {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.task-title { font-size: 16px; font-weight: 500; }
.task-row.is-done .task-title { color: var(--muted); text-decoration: line-through; }
.task-line .status-badge { align-self: center; margin: 10px 0; font-size: 12px; }
.task-priority, .task-people, .task-due { font-size: 13px; }
.task-priority.is-top { color: var(--red); }
.task-priority.is-low, .task-people, .task-due { color: var(--muted); }
.task-people-wrap, .task-due-wrap { position: relative; min-width: 0; justify-self: end; max-width: 100%; }
.task-people, .task-due {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
}
.task-people { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-due { white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-due.is-empty { min-width: 6.5rem; min-height: 1.4em; }
.task-people:hover, .task-due:hover, .task-people:focus-visible, .task-due:focus-visible { background: var(--surface-2); color: var(--ink); }
.task-picker {
  position: absolute;
  z-index: 4;
  top: calc(100% + 4px);
  right: 0;
  min-width: 168px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.task-picker.is-up { top: auto; bottom: calc(100% + 4px); }
.task-picker label { display: flex; align-items: center; gap: 8px; padding: 4px 6px; color: var(--ink); font-size: 13px; white-space: nowrap; cursor: pointer; }
.task-picker label:hover { background: var(--surface-2); border-radius: 6px; }
.task-due-pop { min-width: 0; padding: 8px; }
.task-due-pop input { width: 11rem; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: var(--paper); color: var(--ink); font: inherit; }
.task-detail { margin: 0; padding: 0 8px 12px calc(4.25rem + 22px); font-size: 14px; line-height: 1.65; }
.task-detail .task-meta { margin-top: 8px; font-size: 13px; }
.task-detail .task-meta dt { font-size: 12px; }
.task-spare { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.task-spare h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.spare-list { display: grid; margin-top: 8px; }
.spare-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; border-top: 1px solid var(--line); }
.spare-name { min-width: 0; font-size: 14px; font-weight: 500; }
.spare-delete { flex: 0 0 auto; border: 0; background: transparent; padding: 4px 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.spare-delete:hover { color: var(--red); }
.spare-delete:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.task-spare .section-add { max-width: 420px; margin: 16px 0 0; align-items: center; }
.task-spare .section-add input { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; padding: 7px 10px; }
.task-spare .section-add input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

body.is-board #site-footer { display: none; }
.board-page {
  width: min(680px, calc(100% - 48px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
.board-page .field-error:empty { display: none; }
.board-stream { flex: 1 0 auto; margin-top: 0; }
.board-empty { margin: 0; color: var(--muted); font-size: 16px; }
.board-entry { margin-top: 40px; }
.board-entry:first-child { margin-top: 0; }
.entry-who, .reply-who { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 16px; }
.entry-who strong, .reply-who strong { color: var(--ink); font-weight: 600; }
.entry-actions { margin-left: auto; display: inline-flex; align-items: baseline; gap: 14px; opacity: 0; }
.board-entry:hover .entry-actions, .board-entry:focus-within .entry-actions { opacity: 1; }
.reply-delete { margin-left: auto; opacity: 0; }
.board-reply:hover .reply-delete, .board-reply:focus-within .reply-delete { opacity: 1; }
.entry-body, .reply-body { margin-top: 6px; font-size: 16px; line-height: 1.75; white-space: pre-wrap; }
.entry-body a, .reply-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.at-name { color: var(--blue); font-weight: 600; }
.board-entry img, .preview-image img { display: block; width: auto; max-width: 100%; margin-top: 14px; }
.board-reply { margin-top: 14px; padding-left: 1.15rem; }
.reply-body { font-size: 16px; line-height: 1.75; color: var(--ink); }
.board-composer {
  position: sticky;
  bottom: 0;
  margin-top: 28px;
  padding: 0 0 16px;
  background: var(--paper);
}
.reply-draft { margin-top: 12px; }
.board-composer textarea {
  width: 100%;
  min-height: 72px;
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: none;
  padding: 8px 10px;
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.75;
}
.reply-draft textarea {
  width: 100%;
  min-height: 44px;
  max-height: 280px;
  border: 0;
  resize: none;
  padding: 0;
  overflow: auto;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.75;
}
.composer-tools { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.composer-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.composer-icon:hover { color: var(--ink); }
.composer-send { margin-left: auto; }
.composer-hint { margin-left: 8px; color: var(--muted); font-size: 13px; }
.mention-list { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 0 8px; }
.mention-list button { border: 0; background: transparent; padding: 2px 0; color: var(--ink); font: inherit; cursor: pointer; }
.mention-list button.active { color: var(--blue); }
.preview-image { margin-top: 8px; }
@media (hover: none) {
  .entry-actions, .reply-delete { opacity: 1; }
}

@media (max-width: 980px) {
  .work-page .task-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .task-grid, .section-add, .task-meta, .work-page .task-grid { grid-template-columns: 1fr; }
  .task-grid .span-2 { grid-column: 1 / -1; }
  .work-page h1 { font-size: 16px; }
  .task-line { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .task-main { grid-column: 1 / -1; }
  .task-line .status-badge, .task-line .task-people-wrap, .task-line .task-due-wrap { grid-column: 2; justify-self: start; width: auto; max-width: 100%; }
  .task-people, .task-due { text-align: left; }
  .task-picker { right: auto; left: 0; }
  .task-detail { padding-left: 8px; }
}
