:root {
  color-scheme: light;
  --bg: #f3f7fa;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --surface-blue: #edf5fb;
  --ink: #10243a;
  --muted: #657789;
  --line: #d8e3eb;
  --line-strong: #b9cad7;
  --blue: #0b5cad;
  --blue-dark: #083d75;
  --cyan: #087f91;
  --green: #0b8a78;
  --orange: #d47745;
  --red: #c44f5c;
  --shadow: 0 12px 28px rgba(21, 54, 80, .07);
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 95% 0, #e4f2f2 0, transparent 29rem), var(--bg); font-family: var(--sans); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, .upload-box:focus-within { outline: 3px solid rgba(11, 92, 173, .25); outline-offset: 3px; }
.shell { width: min(1460px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 68px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; min-height: 292px; padding: 42px 48px; overflow: hidden; border-color: #ccdce6; background: linear-gradient(115deg, #fff 0%, #fff 54%, #eaf5f5 100%); }
.hero::after { position: absolute; right: -100px; top: -170px; width: 420px; height: 420px; border: 1px solid rgba(11, 138, 120, .14); border-radius: 50%; box-shadow: 0 0 0 35px rgba(11, 138, 120, .035), 0 0 0 72px rgba(11, 138, 120, .025); content: ""; }
.hero-intro, .hero-link { position: relative; z-index: 1; }
.hero-intro { max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--cyan); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(11, 138, 120, .13); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--ink); font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 655px; margin-bottom: 19px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #c4dce0; border-radius: 6px; color: var(--cyan); background: rgba(245, 252, 252, .8); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(11, 138, 120, .12); }
.hero-link { display: grid; grid-template-columns: 88px minmax(130px, 1fr) 88px; align-items: center; min-height: 150px; margin-top: 16px; }
.link-node { display: grid; place-items: center; gap: 8px; text-align: center; }
.link-node span { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #8caec8; border-radius: 50%; color: var(--blue-dark); background: #f8fcff; font-family: var(--mono); font-size: 14px; font-weight: 800; box-shadow: 0 5px 14px rgba(11, 92, 173, .1); }
.link-node.receiver span { border-color: #83c4b7; color: var(--green); background: #f2fbf8; }
.link-node strong { color: var(--ink); font-size: 12px; white-space: nowrap; }
.link-channel { position: relative; display: flex; align-items: center; gap: 7px; height: 3px; margin: 0 13px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.link-channel i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--cyan); }
.link-channel i:nth-child(2) { margin-left: auto; }.link-channel i:nth-child(3) { margin-left: 4px; }
.link-channel small { position: absolute; top: 15px; left: 50%; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; transform: translateX(-50%); white-space: nowrap; }
.link-eavesdrop { position: absolute; right: 5px; bottom: 0; display: flex; align-items: center; gap: 6px; color: var(--red); }
.link-eavesdrop span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #e4aab1; border-radius: 50%; background: #fff6f7; font-family: var(--mono); font-weight: 800; }.link-eavesdrop small { font-size: 10px; }

.app-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.app-nav-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 82px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); text-align: left; background: rgba(255, 255, 255, .7); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-nav-item:hover { border-color: #91b4cc; transform: translateY(-1px); }.app-nav-item.active { border-color: var(--blue); background: #f2f8fd; box-shadow: inset 3px 0 var(--blue), 0 6px 16px rgba(11, 92, 173, .08); }
.mode-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 7px; color: var(--blue-dark); background: #dcecf8; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .03em; }.app-nav-item:nth-child(2) .mode-icon { color: var(--cyan); background: #daf0ee; }.app-nav-item.active .mode-icon { color: #fff; background: var(--blue); }.app-nav-item.active:nth-child(2) .mode-icon { background: var(--green); }
.mode-copy strong, .mode-copy small { display: block; }.mode-copy strong { color: var(--ink); font-size: 15px; }.mode-copy small { margin-top: 5px; font-size: 12px; }.mode-arrow { color: #9aabb8; font-family: var(--mono); font-size: 20px; }.app-nav-item.active .mode-arrow { color: var(--blue); }.app-view[hidden] { display: none; }

.workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }.controls { align-self: start; position: sticky; top: 18px; padding: 22px; border-top: 3px solid var(--blue); }.controls h2 { margin-bottom: 18px; font-size: 18px; }
.upload-box { display: grid; place-items: center; min-height: 116px; margin-bottom: 18px; border: 1px dashed #85aecb; border-radius: 8px; color: var(--blue-dark); background: var(--surface-blue); }.upload-box:hover { border-color: var(--blue); background: #e5f1f9; }.upload-box input { display: none; }.upload-box span, .upload-box small { display: block; }.upload-box span { font-weight: 800; }.upload-box small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.field { margin-bottom: 17px; }.field label { display: block; margin-bottom: 8px; color: #43586b; font-size: 13px; font-weight: 700; }.field-head { display: flex; justify-content: space-between; gap: 12px; }.field-head strong { color: var(--blue); font-family: var(--mono); } select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; } input[type="range"] { width: 100%; accent-color: var(--blue); }
.primary-button, .secondary-button, .mini-button { border-radius: 7px; font-weight: 800; transition: transform .16s ease, border-color .16s ease, background .16s ease; }.primary-button { width: 100%; min-height: 46px; border: 0; color: #fff; background: var(--blue); }.primary-button:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-1px); }.primary-button:disabled { cursor: not-allowed; color: #9da9b5; background: #e3e9ee; }.secondary-button { width: 100%; min-height: 43px; margin-top: 10px; border: 1px solid #a7c4db; color: var(--blue-dark); background: #f0f7fc; }.secondary-button:hover:not(:disabled), .mini-button:hover:not(:disabled) { border-color: var(--blue); background: #e5f1fa; transform: translateY(-1px); }
.toggle-field { display: flex; gap: 9px; margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: #52697a; background: var(--surface-soft); cursor: pointer; }.toggle-field input { width: 16px; height: 16px; accent-color: var(--blue); }.toggle-field strong, .toggle-field small { display: block; }.toggle-field strong { color: var(--ink); font-size: 12px; }.toggle-field small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.main-grid { display: grid; gap: 18px; min-width: 0; }.main-grid > .panel { min-width: 0; }.image-panel, .metrics-panel, .experiment-chart-panel, .timeline-panel, .user-panel, .compare-panel, .video-showcase-panel { padding: 22px; }.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }.section-head h2 { margin-bottom: 3px; font-size: 18px; }.section-head p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.section-tag { display: inline-flex; margin-right: 7px; padding: 3px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }.section-tag.matlab { color: var(--green); background: #e6f6f1; }.section-tag.trajectory { color: var(--blue-dark); background: #e5f1fb; }.section-tag.visual { color: var(--orange); background: #fff0e8; }.section-tag.mixed { color: #7053a6; background: #f1ecfb; }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } figure { margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); } figcaption { margin-bottom: 9px; color: #4f6679; font-size: 12px; font-weight: 800; } canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 5px; background: #edf2f5; }.overlay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: 12px; }.overlay-controls > span { color: var(--ink); font-weight: 800; }.overlay-controls label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }.overlay-controls input { accent-color: var(--blue); }.overlay-controls small { flex: 1 1 250px; }
.block-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 9px; margin-top: 11px; }.block-stats.empty, .timeline.empty, .slot-audit-grid.empty, .user-state-grid.empty { display: block; padding: 16px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 8px; }.block-stat, .audit-item, .slot-card, .user-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }.block-stat { padding: 11px; }.block-stat span, .block-stat small { display: block; color: var(--muted); }.block-stat strong { display: block; margin: 4px 0; color: var(--ink); font-family: var(--mono); font-size: 18px; }.block-stat.legit strong { color: var(--green); }.block-stat.eve strong { color: var(--orange); }.block-stat.overlap strong { color: var(--red); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }.metric-card { min-height: 106px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 12px; }.metric-card strong { display: block; margin: 12px 0 3px; color: var(--ink); font-family: var(--mono); font-size: 28px; line-height: 1; }.metric-card.legit { border-left: 3px solid var(--green); }.metric-card.legit strong { color: var(--green); }.metric-card.eve { border-left: 3px solid var(--orange); }.metric-card.eve strong { color: var(--orange); }.metric-card.wide { grid-column: span 2; }
.chart-tabs, .video-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }.mini-button, .video-category-button { min-height: 38px; padding: 0 14px; border: 1px solid #b4c7dc; border-radius: 7px; color: var(--blue-dark); background: #f6f9fd; font-weight: 800; }.chart-tabs .mini-button.active, .video-category-button.active { color: #fff; border-color: var(--blue); background: var(--blue); }.chart-card { margin-bottom: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); } #curveCanvas, #experimentCurveCanvas { width: 100%; aspect-ratio: auto; } #curveCanvas { height: 260px; } #experimentCurveCanvas { height: 320px; }
.playback-strip { display: grid; grid-template-columns: repeat(5, auto) 120px repeat(3, minmax(100px, 1fr)); gap: 8px; align-items: stretch; margin-bottom: 16px; }.speed-control, .slot-readout { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }.speed-control { display: grid; gap: 3px; }.speed-control span, .slot-readout span { color: var(--muted); font-size: 11px; }.speed-control select { height: 25px; padding: 0 5px; border-radius: 5px; font-size: 11px; }.slot-readout strong { color: var(--ink); font-family: var(--mono); font-size: 13px; }.progress-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) 56px; align-items: center; gap: 10px; margin-bottom: 11px; color: #526274; font-size: 12px; }.progress-row strong { color: var(--ink); font-family: var(--mono); }.bar { height: 10px; overflow: hidden; border-radius: 99px; background: #e8edf2; }.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #5bc2ac); transition: width .26s ease; }.eve-bar i { background: linear-gradient(90deg, var(--orange), #e89a6c); }.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 9px; margin-top: 16px; }.slot-card { padding: 11px; cursor: pointer; }.slot-card:hover { border-color: #8fb3df; transform: translateY(-1px); }.slot-card.active { border-color: var(--blue); background: #edf6fc; box-shadow: inset 3px 0 var(--blue); }.slot-card strong { display: block; margin-bottom: 7px; color: var(--blue); font-family: var(--mono); }.slot-card span { display: block; color: var(--muted); font-size: 11px; line-height: 1.55; }.slot-audit { margin-top: 18px; }.slot-audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 9px; }.audit-item { padding: 11px; }.audit-item span, .audit-item small { display: block; color: var(--muted); }.audit-item strong { display: block; margin: 5px 0; color: var(--ink); font-family: var(--mono); font-size: 14px; }.user-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }.user-card { padding: 13px; }.user-card.active { border-color: #79c6ad; background: #f0faf6; }.user-card.danger { border-color: #e1a2ad; }.user-card.complete { border-color: #abd9c9; }.user-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }.user-card-head strong { color: var(--ink); font-size: 13px; }.user-card-head span { color: var(--muted); font-size: 11px; }.mini-meter { margin-top: 9px; }.mini-meter label { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: 11px; }.mini-meter .track { height: 8px; overflow: hidden; border-radius: 99px; background: #e7edf1; }.mini-meter i { display: block; height: 100%; border-radius: inherit; background: var(--green); }.mini-meter.leak i { background: var(--orange); }
.compare-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }.compare-controls label { display: grid; gap: 5px; color: #526274; font-size: 12px; font-weight: 800; }.compare-controls select { min-width: 220px; height: 34px; }.compare-controls small { flex: 1 1 280px; color: var(--muted); font-size: 11px; line-height: 1.5; }.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; } table { width: 100%; min-width: 840px; border-collapse: collapse; background: #fff; } th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; } th { color: #4f6173; background: #f1f5f9; font-family: var(--mono); font-size: 11px; } td { color: var(--muted); font-family: var(--mono), var(--sans); font-size: 11px; } tbody tr.best td { color: var(--ink); background: #edf6fc; } tbody tr:last-child td { border-bottom: 0; }.status-good { color: var(--green); font-weight: 800; }.status-bad { color: var(--red); font-weight: 800; }

.video-showcase-panel { min-height: 640px; }.video-showcase-panel > .section-head { align-items: center; }.video-showcase-panel > .section-head h2 { font-size: 24px; }.video-workspace { display: grid; grid-template-columns: 245px minmax(460px, 1.65fr) 255px; gap: 14px; align-items: start; }.video-library, .video-player-section, .video-detail-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }.video-library-head, .video-detail-head { display: flex; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }.video-library-head strong, .video-detail-head strong { color: var(--ink); font-size: 13px; }.video-library-head span { color: var(--muted); font-family: var(--mono); font-size: 11px; }.video-list { display: grid; gap: 7px; max-height: 540px; overflow-y: auto; padding: 9px; }.video-list.empty { display: block; padding: 16px; color: var(--muted); font-size: 12px; }.video-card { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 7px; color: inherit; text-align: left; background: #fff; }.video-card:hover { border-color: #8fb3df; }.video-card.active { border-color: var(--blue); background: #edf6fc; box-shadow: inset 3px 0 var(--blue); }.video-card strong, .video-card span, .video-card small { display: block; }.video-card strong { color: var(--ink); font-size: 12px; line-height: 1.45; }.video-card span { margin-top: 6px; color: var(--cyan); font-size: 11px; font-weight: 800; }.video-card small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }.video-frame { position: relative; display: grid; place-items: center; min-height: 300px; background: #10243a; } #showcaseVideo { display: block; width: 100%; max-height: 520px; aspect-ratio: 16 / 9; background: #10243a; object-fit: contain; }.video-empty-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 25px; color: #718196; text-align: center; background: rgba(245, 248, 251, .94); }.video-empty-state[hidden] { display: none; }.video-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; background: #fff; }.video-player-footer h3 { margin: 8px 0 6px; color: var(--ink); font-size: 18px; }.video-player-footer p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.video-playback-controls { display: flex; flex: 0 0 auto; gap: 7px; }.video-playback-controls .mini-button { min-width: 64px; }.video-source-badge { align-self: center; padding: 4px 7px; border-radius: 4px; color: var(--cyan); background: #e5f5f3; font-size: 10px; font-weight: 800; }.video-info-grid { display: grid; gap: 1px; background: var(--line); }.video-info-grid.empty { display: block; padding: 16px; color: var(--muted); background: transparent; font-size: 12px; }.video-info-grid article { padding: 13px; background: var(--surface-soft); }.video-info-grid span, .video-info-grid strong { display: block; }.video-info-grid span { margin-bottom: 5px; color: var(--muted); font-size: 10px; }.video-info-grid strong { color: var(--ink); font-size: 12px; line-height: 1.5; word-break: break-word; }.video-conclusion-card { margin: 13px; padding: 13px; border-left: 3px solid var(--green); background: #eff9f6; }.video-conclusion-card span { color: var(--green); font-size: 10px; font-weight: 800; }.video-conclusion-card p { margin: 7px 0 0; color: #416257; font-size: 12px; line-height: 1.65; }

@media (max-width: 1280px) { .playback-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }.speed-control, .slot-readout { min-width: 0; } }
@media (max-width: 1100px) { .hero { grid-template-columns: 1fr 340px; gap: 24px; }.workspace { grid-template-columns: 1fr; }.controls { position: static; }.metrics-grid { grid-template-columns: repeat(2, 1fr); }.video-workspace { grid-template-columns: minmax(220px, .7fr) minmax(400px, 1.3fr); }.video-detail-panel { grid-column: 1 / -1; } }
@media (max-width: 760px) { .shell { width: min(100% - 20px, 1460px); padding-top: 12px; }.hero { grid-template-columns: 1fr; gap: 7px; min-height: 0; padding: 28px 22px; }.hero-link { width: min(100%, 380px); margin-top: 5px; }.link-eavesdrop { right: 0; }.app-nav { grid-template-columns: 1fr; gap: 9px; }.app-nav-item { min-height: 72px; }.workspace { gap: 12px; }.controls { border-top: 0; border-left: 3px solid var(--blue); }.image-panel, .metrics-panel, .experiment-chart-panel, .timeline-panel, .user-panel, .compare-panel, .video-showcase-panel { padding: 16px; }.image-grid, .metrics-grid { grid-template-columns: 1fr; }.metric-card.wide { grid-column: auto; }.section-head { align-items: start; flex-direction: column; }.playback-strip { grid-template-columns: 1fr; }.progress-row { grid-template-columns: 78px minmax(0, 1fr) 48px; }.video-workspace { grid-template-columns: 1fr; }.video-library { order: 2; }.video-player-section { order: 1; }.video-detail-panel { grid-column: auto; order: 3; }.video-list { max-height: 350px; }.video-frame { min-height: 190px; }.video-player-footer { align-items: stretch; flex-direction: column; }.video-playback-controls { width: 100%; }.video-playback-controls .mini-button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
