:root {
  --navy: #005096;
  --blue: #0078b4;
  --cyan: #1eb9e1;
  --cyan-pale: #b3ebff;
  --gold: #ffc819;
  --ink: #3c3c3c;
  --muted: #969696;
  --line: #dfe5e8;
  --paper: #f5f9fb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(0, 80, 150, .09);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 96px 0 0;
  pointer-events: none;
  background: url("/yudyverse-symbol-ripple.png") center 32vh / min(54vw, 680px) auto no-repeat;
  opacity: .025;
  z-index: -1;
}

.wb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.wb-brand { display: flex; align-items: center; gap: 15px; }
.wb-brand img { width: 168px; display: block; }
.wb-brand i { width: 1px; height: 30px; background: #c1c6c8; }
.wb-brand strong { color: var(--navy); white-space: nowrap; font-size: 17px; }
.wb-global-nav { display: flex; justify-content: center; gap: 3px; }
.wb-global-nav a { padding: 9px 12px; border-radius: 999px; color: #65717a; font-size: 13px; }
.wb-global-nav a:hover, .wb-global-nav a.active { background: #eaf7fc; color: var(--navy); }

.wb-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 12px;
  border: 1px solid #f0d67b;
  border-radius: 999px;
  background: #fffaf0;
  color: #8b6500;
  font-size: 12px;
  font-weight: 700;
}
.wb-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.wb-state.live { border-color: #a7dceb; background: #effbff; color: var(--blue); }
.wb-state.live::before { background: var(--cyan); }

.wb-shell { width: min(1420px, calc(100% - 44px)); margin: 0 auto; padding: 34px 0 74px; }
.wb-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 42px;
  padding: clamp(34px, 5vw, 70px);
  border-radius: 30px;
  background: linear-gradient(135deg, #003f79, #005da4 58%, #0087bd);
  color: white;
  box-shadow: var(--shadow);
}
.wb-hero::after {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  right: -150px;
  bottom: -265px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(255,255,255,.05), 0 0 0 120px rgba(255,255,255,.03);
}
.eyebrow { display: block; margin-bottom: 20px; color: #9feaff; font-weight: 800; letter-spacing: .16em; font-size: 12px; }
.wb-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -.05em; }
.wb-hero h1 em { color: var(--gold); font-style: normal; }
.wb-hero p { max-width: 820px; margin: 24px 0 0; color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.85; }
.hero-side { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 27px; border-radius: 22px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.17); }
.hero-side small { color: #9feaff; letter-spacing: .12em; }
.hero-side strong { margin: 12px 0; font-size: 29px; line-height: 1.3; }
.hero-side p { margin: 0; font-size: 14px; line-height: 1.7; }

.wb-tabs-wrap {
  position: sticky;
  top: 78px;
  z-index: 15;
  margin: 22px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(0,80,150,.05);
  backdrop-filter: blur(14px);
}
.wb-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.wb-tabs::-webkit-scrollbar { display: none; }
.wb-tabs button, .instrument-switch button {
  flex: 0 0 auto;
  border: 0;
  padding: 11px 18px;
  border-radius: 12px;
  background: transparent;
  color: #66737c;
  font-weight: 700;
  cursor: pointer;
}
.wb-tabs button[aria-selected="true"], .instrument-switch button[aria-selected="true"] { color: white; background: var(--navy); box-shadow: 0 7px 16px rgba(0,80,150,.2); }

.wb-datebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 26px; }
.wb-datebar > strong { margin-right: 6px; color: var(--blue); font-size: 12px; letter-spacing: .08em; }
.wb-datebar button {
  border: 1px solid #cfd8dc;
  padding: 8px 13px;
  border-radius: 999px;
  background: white;
  color: #758087;
  font-size: 12px;
  cursor: pointer;
}
.wb-datebar button[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: white; }

.panel { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(0,80,150,.045); }
.panel-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.panel-head small { color: var(--blue); font-weight: 800; letter-spacing: .12em; }
.panel-head h2 { margin: 5px 0 0; color: var(--navy); font-size: 26px; }
.panel-head p { margin: 0; max-width: 600px; color: #7b858b; font-size: 13px; line-height: 1.7; text-align: right; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; margin: 18px 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.metric { padding: 24px; border-radius: 18px; background: white; border: 1px solid var(--line); }
.metric small { color: #77838a; }
.metric strong { display: block; margin: 10px 0 5px; color: var(--navy); font-size: 34px; line-height: 1; }
.metric span { color: #969696; font-size: 12px; }
.metric.accent { background: linear-gradient(145deg, #e8f9ff, #fff); border-color: #b8e8f6; }
.metric.gold { border-top: 3px solid var(--gold); }

.transmission { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 10px; }
.transmission span { display: grid; place-items: center; min-height: 78px; padding: 14px 18px; border: 1px solid #c9e8f3; border-radius: 15px; background: #f0fbff; color: var(--navy); text-align: center; font-weight: 800; }
.transmission i { color: var(--cyan); font-style: normal; font-size: 22px; }

.fact-card { padding: 22px; border-left: 4px solid var(--blue); border-radius: 8px 17px 17px 8px; background: #f8fbfd; }
.fact-card.scenario { border-color: var(--gold); background: #fffaf0; }
.fact-card small { color: var(--blue); font-weight: 800; letter-spacing: .08em; }
.fact-card h3 { margin: 9px 0; color: var(--navy); font-size: 19px; }
.fact-card p { margin: 0; color: #68747a; line-height: 1.75; font-size: 14px; }
.fact-card footer { margin-top: 14px; color: var(--muted); font-size: 11px; }

.signal-list { display: grid; gap: 10px; }
.signal-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid #edf0f2; }
.signal-row:last-child { border-bottom: 0; }
.signal-row > small { color: var(--blue); font-weight: 800; }
.signal-row strong { display: block; margin-bottom: 4px; color: #34444d; }
.signal-row p { margin: 0; color: #7c878d; font-size: 13px; line-height: 1.55; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e5f8ff; color: var(--blue); font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge.gold { background: #fff3c4; color: #806000; }
.badge.gray { background: #edf0f2; color: #65717a; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { padding: 11px 12px; background: #f1f6f8; color: #65717a; text-align: left; font-size: 12px; }
td { padding: 14px 12px; border-bottom: 1px solid #edf0f2; font-size: 13px; }
td strong { color: var(--navy); }
.positive { color: #0078b4; }
.negative { color: #b83c3c; }

.instrument-switch { display: flex; gap: 8px; margin: 0 0 20px; }
.instrument-switch button { min-width: 112px; border: 1px solid var(--line); background: white; }
.instrument-switch button[aria-selected="true"] { border-color: var(--navy); }
.instrument-title { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 8px; }
.instrument-title h1 { margin: 0; color: var(--navy); font-size: 44px; }
.instrument-title h1 span { color: #879198; font-size: 18px; font-weight: 600; }

.spark { width: 100%; height: 150px; }
.spark polyline { fill: none; stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; }
.spark .area { fill: rgba(30,185,225,.1); stroke: none; }
.empty { display: grid; min-height: 180px; place-items: center; padding: 24px; border: 1px dashed #cbd5da; border-radius: 16px; color: #8b959a; text-align: center; }
.empty strong { display: block; color: var(--navy); margin-bottom: 8px; }
.source-note { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #f2f6f8; color: #78848a; font-size: 12px; line-height: 1.7; }
.source-note b { color: var(--navy); }

.wb-view[hidden] { display: none !important; }
.wb-view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }

.footer { margin-top: 34px; padding: 24px 0; border-top: 1px solid var(--line); color: #8a9499; font-size: 12px; line-height: 1.7; }

@media (max-width: 1040px) {
  .wb-header { grid-template-columns: 1fr auto; }
  .wb-global-nav { grid-column: 1/-1; justify-content: flex-start; overflow-x: auto; order: 3; }
  .wb-hero { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .transmission { grid-template-columns: 1fr; }
  .transmission i { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 720px) {
  .wb-header { padding: 12px 16px; gap: 12px; }
  .wb-brand img { width: 135px; }
  .wb-brand strong { font-size: 14px; }
  .wb-state { display: none; }
  .wb-shell { width: min(100% - 28px, 1420px); padding-top: 18px; }
  .wb-hero { padding: 31px 24px; border-radius: 22px; }
  .wb-tabs-wrap { top: 105px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .panel { padding: 21px; }
  .panel-head { display: block; }
  .panel-head p { margin-top: 8px; text-align: left; }
  .signal-row { grid-template-columns: 56px 1fr; }
  .signal-row .badge { grid-column: 2; justify-self: start; }
  .instrument-title { align-items: flex-start; flex-direction: column; }
}

@media print {
  .wb-header, .wb-tabs-wrap, .wb-datebar { position: static; }
  .wb-global-nav { display: none; }
  .panel, .wb-hero { break-inside: avoid; box-shadow: none; }
}
