:root {
  color-scheme: dark;
  --bg: #080b0d;
  --panel: #0d1114;
  --panel-strong: #12181c;
  --text: #edf3ef;
  --muted: #7b8983;
  --line: #25302c;
  --line-strong: #3c4b45;
  --signal: #72e6ad;
  --warning: #e7c66c;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Microsoft YaHei", monospace; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.terminal-shell { width: min(100% - 64px, 1440px); min-height: 100vh; margin: 0 auto; }
.terminal-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-bottom: 1px solid var(--line); }
.node-mark { display: flex; align-items: center; gap: 13px; font-size: 13px; letter-spacing: .12em; }
.node-mark span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--signal); font-size: 11px; }
.node-mark strong { font-weight: 500; }
.system-readout { display: grid; grid-template-columns: repeat(3,auto); gap: 48px; margin: 0; }
.system-readout div { display: grid; grid-template-columns: auto auto; gap: 10px; }
.system-readout dt,.section-index,.module-meta,.module-state,.route-status,.terminal-footer { font-size: 10px; letter-spacing: .12em; }
.system-readout dt { color: var(--muted); }
.system-readout dt::after { content: " /"; }
.system-readout dd { margin: 0; color: var(--text); }
.system-readout div:last-child dd { color: var(--signal); }
.system-readout i,.module-state i { width: 6px; height: 6px; display: inline-block; margin-right: 7px; background: var(--signal); box-shadow: 0 0 12px color-mix(in srgb,var(--signal) 65%,transparent); animation: pulse 2s step-end infinite; }
.manifest { min-height: 680px; display: grid; grid-template-columns: 160px minmax(0,1fr) minmax(320px,460px); gap: 5vw; align-items: center; padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-index { align-self: start; margin: 0; padding-top: 6px; color: var(--signal); }
.manifest-copy { min-width: 0; }
.command-line { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.cursor { width: 7px; height: 13px; display: inline-block; margin-left: 8px; vertical-align: -2px; background: var(--signal); animation: blink 1s step-end infinite; }
h1,h2,h3,p { margin: 0; }
.manifest h1 { margin: 30px 0 38px; font-size: clamp(54px,6.8vw,104px); line-height: .96; font-weight: 500; }
.manifest h1 em { display: block; margin-top: 10px; color: var(--signal); font-style: normal; }
.manifest-copy > p { max-width: 660px; color: var(--muted); font-family: "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 2; }
.signal-field { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.signal-field::before { content: ""; position: absolute; inset: 8%; border: 1px solid var(--line); }
.signal-field::after { content: ""; position: absolute; left: 8%; right: 8%; top: 22%; height: 1px; background: var(--signal); opacity: .45; animation: scan 5s linear infinite; }
.signal-label { position: absolute; top: 22px; left: 24px; color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .12em; }
.signal-axis { position: absolute; top: 50%; left: 50%; background: var(--line-strong); transform: translate(-50%,-50%); }
.axis-x { width: 70%; height: 1px; }
.axis-y { width: 1px; height: 70%; }
.signal-ring { position: absolute; top: 50%; left: 50%; border: 1px solid var(--signal); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-a { width: 48%; aspect-ratio: 1; opacity: .7; }
.ring-b { width: 72%; aspect-ratio: 1; border-color: var(--line-strong); }
.signal-point { width: 8px; height: 8px; position: absolute; background: var(--warning); box-shadow: 0 0 18px color-mix(in srgb,var(--warning) 60%,transparent); }
.point-a { top: 31%; left: 65%; }
.point-b { right: 24%; bottom: 27%; background: var(--signal); }
.signal-field small { position: absolute; right: 22px; bottom: 20px; color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.modules { padding: 96px 0 112px; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 160px 1fr auto; gap: 5vw; align-items: baseline; }
.section-heading h2 { font-size: clamp(34px,4vw,56px); font-weight: 500; }
.section-heading > p:last-child { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.module-grid { display: grid; grid-template-columns: repeat(2,1fr); margin: 56px 0 0 calc(160px + 5vw); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.module-grid article { min-height: 310px; display: flex; flex-direction: column; padding: 28px 30px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--panel); }
.module-grid article:hover { background: var(--panel-strong); }
.module-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.module-meta span:first-child { color: var(--signal); }
.module-grid h3 { margin-top: 68px; font-family: "Microsoft YaHei", sans-serif; font-size: 28px; font-weight: 500; }
.module-grid article > p { max-width: 420px; margin-top: 18px; color: var(--muted); font-family: "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.8; }
.module-state { margin-top: auto; padding-top: 34px; color: var(--signal); }
.external-route { display: grid; grid-template-columns: 160px minmax(0,1fr) minmax(330px,440px); gap: 5vw; align-items: center; padding: 96px 0; border-bottom: 1px solid var(--line); }
.route-warning { width: 60px; height: 60px; display: grid; place-items: center; position: relative; color: var(--warning); }
.route-warning::before { content: ""; position: absolute; width: 42px; height: 42px; border: 1px solid var(--warning); transform: rotate(45deg); }
.route-warning span { position: relative; font-size: 18px; }
.route-copy h2 { margin-top: 18px; font-family: "Microsoft YaHei", sans-serif; font-size: clamp(34px,4vw,56px); font-weight: 500; }
.route-copy > p:not(.section-index) { max-width: 650px; margin-top: 22px; color: var(--muted); font-family: "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.9; }
.route-status { display: flex; gap: 22px; margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line); }
.route-status span { color: var(--muted); }
.route-status strong { color: var(--warning); font-weight: 400; }
[data-route="ready"] .route-status strong { color: var(--signal); }
.route-action { min-height: 126px; display: grid; grid-template-columns: 20px 1fr auto; grid-template-rows: 1fr 1fr; gap: 4px 14px; align-items: center; padding: 24px 26px; border: 1px solid var(--signal); background: color-mix(in srgb,var(--signal) 5%,var(--panel)); }
.route-action > span { grid-row: 1 / 3; color: var(--signal); font-size: 18px; }
.route-action strong { align-self: end; font-family: "Microsoft YaHei", sans-serif; font-size: 16px; font-weight: 500; }
.route-action small { align-self: start; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.route-action > i { grid-column: 3; grid-row: 1 / 3; color: var(--signal); font-size: 20px; font-style: normal; }
.route-action:not([aria-disabled="true"]):hover { color: var(--bg); background: var(--signal); }
.route-action:not([aria-disabled="true"]):hover span,.route-action:not([aria-disabled="true"]):hover small,.route-action:not([aria-disabled="true"]):hover i { color: var(--bg); }
.route-action[aria-disabled="true"] { border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.route-action[aria-disabled="true"] > span,.route-action[aria-disabled="true"] > i { color: var(--line-strong); }
.terminal-footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); }
.terminal-footer a:hover { color: var(--text); }
@keyframes blink { 0%,45% { opacity: 1; } 46%,100% { opacity: 0; } }
@keyframes pulse { 0%,50% { opacity: 1; } 51%,100% { opacity: .35; } }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(260px); } }
@media (max-width: 980px) {
  .system-readout { gap: 20px; }
  .system-readout div { display: block; }
  .system-readout dt { margin-bottom: 6px; }
  .manifest { grid-template-columns: 100px minmax(0,1fr) 320px; gap: 30px; }
  .section-heading { grid-template-columns: 100px 1fr auto; gap: 30px; }
  .module-grid { margin-left: 130px; }
  .external-route { grid-template-columns: 100px 1fr; gap: 30px; }
  .route-action { grid-column: 2; }
}
@media (max-width: 720px) {
  .terminal-shell { width: min(100% - 36px,1440px); }
  .terminal-header { min-height: 92px; }
  .system-readout div:not(:last-child) { display: none; }
  .system-readout div:last-child dt { display: none; }
  .system-readout div:last-child dd { max-width: 130px; font-size: 9px; line-height: 1.5; text-align: right; }
  .manifest { min-height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 34px; padding: 56px 0 64px; }
  .manifest .section-index { order: 0; }
  .manifest-copy { order: 1; }
  .signal-field { order: 2; max-width: 480px; }
  .manifest h1 { margin: 24px 0 30px; font-size: clamp(46px,14vw,76px); }
  .manifest-copy > p br { display: none; }
  .modules { padding: 64px 0 72px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 18px; }
  .section-heading > p:last-child { margin-top: 14px; }
  .module-grid { grid-template-columns: 1fr; margin: 36px 0 0; }
  .module-grid article { min-height: 270px; padding: 24px 22px; }
  .module-grid h3 { margin-top: 46px; font-size: 25px; }
  .external-route { display: block; padding: 72px 0; }
  .route-warning { margin-bottom: 38px; }
  .route-copy h2 { font-size: 38px; }
  .route-status { display: block; }
  .route-status strong { display: block; margin-top: 10px; overflow-wrap: anywhere; }
  .route-action { min-height: 116px; margin-top: 42px; padding: 20px; }
  .route-action strong { font-size: 14px; }
  .terminal-footer { min-height: 120px; flex-wrap: wrap; align-content: center; justify-content: flex-start; }
  .terminal-footer span,.terminal-footer a { width: calc(50% - 12px); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
