:root {
  --navy: #062d5b;
  --navy-2: #0b467f;
  --blue-2: #507a9d;
  --blue-3: #6f9fc6;
  --blue-4: #91b8d8;
  --slate: #637b91;
  --ink: #071f3b;
  --muted: #718196;
  --line: #d8e2ed;
  --soft: #f4f7fb;
  --pale: #eaf1f8;
  --red: #c91f37;
  --negative: #506b86;
  --shadow: 0 12px 34px rgba(6, 45, 91, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fc;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1500px;
  height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 226px;
}
.brand-mark { width: 35px; height: 38px; display: block; object-fit: contain; }
.brand strong { display: block; font-size: 17px; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; letter-spacing: .12em; }
.main-nav { display: flex; align-self: stretch; align-items: stretch; gap: 4px; flex: 1; }
.nav-item {
  position: relative;
  border: 0;
  padding: 0 16px;
  color: #42556c;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}
.nav-item::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; background: var(--navy-2); transform: scaleX(0); transition: .2s; }
.nav-item:hover, .nav-item.active { color: var(--navy); font-weight: 650; }
.nav-item.active::after { transform: scaleX(1); }
.update-pill { padding: 8px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.update-pill span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2d75b6; box-shadow: 0 0 0 4px rgba(45,117,182,.1); }
.update-pill b { color: var(--navy); }

main { max-width: 1500px; min-height: calc(100vh - 160px); margin: 0 auto; padding: 30px 28px 60px; }
.hero {
  min-height: 122px;
  padding: 26px 34px;
  border-radius: 12px;
  color: white;
  background:
    radial-gradient(circle at 86% -15%, rgba(145,184,216,.35), transparent 34%),
    linear-gradient(112deg, var(--navy), #0a3a6b 62%, var(--navy-2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 14px 34px rgba(6,45,91,.16);
}
.eyebrow { margin: 0 0 8px; color: #bcd1e4; font: 600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; }
.hero h1 { margin: 0; font-size: 29px; line-height: 1.3; letter-spacing: .04em; }
.hero p:last-child { margin: 8px 0 0; color: #d6e3ef; font-size: 14px; }
.hero-badge { min-width: 265px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); border-radius: 8px; }
.hero-badge span, .hero-badge b { display: block; }
.hero-badge span { color: #bcd1e4; font-size: 11px; margin-bottom: 6px; }
.hero-badge b { font-size: 13px; letter-spacing: .04em; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

.section { margin-top: 24px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-card { position: relative; min-height: 128px; padding: 20px 21px 17px; background: white; border: 1px solid #e5ebf2; border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.kpi-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--blue-3); }
.kpi-card.featured::before { background: var(--navy-2); }
.kpi-card:nth-child(2)::before { background: #d11f3d; }
.kpi-card:nth-child(3)::before { background: #e0a21a; }
.kpi-card:nth-child(4)::before { background: #6b7280; }
.kpi-label { margin: 0 0 9px; color: var(--muted); font-size: 12px; }
.kpi-number { color: var(--navy); font: 700 28px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; }
.kpi-unit { color: var(--muted); font-size: 12px; margin-left: 5px; }
.kpi-change { margin-top: 10px; font-size: 12px; color: var(--muted); }
.kpi-change .up { color: var(--red); }
.kpi-change .down { color: var(--negative); }

.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.panel-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel-grid .wide { grid-column: 1 / -1; }
.panel { background: white; border: 1px solid #e2e9f1; border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { min-height: 58px; padding: 17px 20px 12px; border-bottom: 1px solid #e9eef4; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.panel-title { margin: 0; font-size: 15px; color: var(--ink); }
.panel-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.chart { min-height: 0; aspect-ratio: 900 / 350; padding: 12px 14px 8px; }
.chart.compact { min-height: 0; aspect-ratio: 900 / 350; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 17px; padding: 1px 18px 15px; color: #53657a; font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 15px; height: 3px; border-radius: 2px; }
.panel-grid.investor-pies { grid-template-columns: 1fr; }
.panel-grid.investor-pies .panel { width: 100%; }
.chart.pie { min-height: 0; height: clamp(330px, 32vw, 470px); aspect-ratio: auto; padding: 10px 14px 0; }
.chart.pie + .legend { max-height: none; overflow: visible; align-content: flex-start; padding: 10px 24px 22px; border-top: 1px solid #edf1f5; font-size: 12px; }
.chart.pie + .legend i { width: 9px; height: 9px; border-radius: 2px; }
[data-tip] { cursor: crosshair; }
.chart-tooltip {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  max-width: 290px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(7,31,59,.94);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  box-shadow: 0 8px 22px rgba(6,45,91,.22);
  font-size: 11px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .08s ease, transform .08s ease;
}
.chart-tooltip.show { opacity: 1; transform: translateY(0); }
.empty { height: 260px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

.table-panel { margin-top: 16px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: white; font-size: 12px; }
th { padding: 11px 13px; color: #40546c; background: var(--soft); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-weight: 650; }
td { padding: 11px 13px; border-bottom: 1px solid #edf1f5; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
tbody tr:hover { background: #f8fbfe; }
.neg { color: var(--negative); }
.pos { color: var(--red); }

.tabs { display: flex; gap: 8px; margin-top: 16px; }
.tab { border: 1px solid var(--line); background: white; color: #51657b; padding: 9px 20px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.tab.active { background: var(--navy); color: white; border-color: var(--navy); }
.product-intro { display: flex; align-items: center; gap: 20px; margin: 16px 0 0; padding: 14px 18px; background: var(--pale); border-left: 4px solid var(--navy-2); border-radius: 5px; color: #435a72; font-size: 12px; }
.product-intro b { color: var(--navy); font-size: 20px; }

.share-list { padding: 7px 18px 18px; }
.share-row { margin-top: 12px; }
.share-info { display: flex; justify-content: space-between; gap: 10px; color: #485d73; font-size: 11px; }
.share-info b { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.share-track { height: 6px; margin-top: 5px; background: var(--pale); border-radius: 999px; overflow: hidden; }
.share-track i { display: block; height: 100%; background: var(--blue-3); border-radius: inherit; }

.search-box { position: relative; }
.search-box input { width: 280px; padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: var(--soft); font-size: 12px; }
.search-box::before { content: "⌕"; position: absolute; left: 12px; top: 6px; color: var(--muted); font-size: 18px; }
.risk-table td:nth-child(2), .risk-table th:nth-child(2) { text-align: left; white-space: normal; min-width: 190px; }
.risk-table td:nth-child(3), .risk-table th:nth-child(3), .risk-table td:nth-child(4), .risk-table th:nth-child(4) { text-align: left; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 13px 17px; color: var(--muted); font-size: 11px; }
.page-buttons { display: flex; gap: 6px; }
.page-buttons button { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.page-buttons button:disabled { opacity: .35; cursor: default; }

footer { max-width: 1500px; margin: 0 auto; padding: 24px 28px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; display: flex; justify-content: space-between; gap: 20px; }
footer b, footer span { display: block; }
footer b { color: var(--navy); margin-bottom: 5px; }
footer p { margin: 0; }

@media (max-width: 1150px) {
  .update-pill { display: none; }
  .main-nav { overflow-x: auto; }
  .nav-item { padding: 0 11px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .header-inner { height: auto; padding: 12px 16px 0; display: block; }
  .brand { margin-bottom: 10px; }
  .main-nav { height: 44px; margin: 0 -16px; padding: 0 10px; }
  .nav-item { font-size: 12px; }
  main { padding: 18px 12px 40px; }
  .hero { padding: 22px; }
  .hero-badge { display: none; }
  .kpi-grid, .kpi-grid.three, .panel-grid { grid-template-columns: 1fr; }
  .chart { min-height: 0; aspect-ratio: 900 / 350; }
  .chart.compact { min-height: 0; aspect-ratio: 900 / 350; }
  .chart.pie { min-height: 0; height: 330px; aspect-ratio: auto; }
  .search-box input { width: 190px; }
  footer { padding: 22px 16px; display: block; }
  footer p { margin-top: 12px; }
}
