:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --ink: #1c2430;
  --muted: #5c6675;
  --line: #e6ebf2;
  --pulse: #c81e4a;
  --pulse-soft: #fff1f4;
  --navy: #1b2430;
  --ok: #0f766e;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
}
a { color: var(--pulse); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 6px 10px; z-index: 20; }

.mast {
  background: var(--navy);
  color: #c5ced8;
  font-size: 12px;
}
.mast .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.mast b { color: #fff; font-weight: 600; margin-right: 10px; }

.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; color: inherit; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand strong { display: block; font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: 12px; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}
.nav a:hover { background: var(--pulse-soft); color: var(--pulse); text-decoration: none; }
.nav a.on { background: var(--pulse); color: #fff; }

.cta {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
}
.cta:hover { background: var(--pulse); color: #fff; text-decoration: none; }

.crumb { width: min(1160px, calc(100% - 32px)); margin: 16px auto 0; font-size: 12px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb em { font-style: normal; margin: 0 6px; color: #c5ced8; }

.sec { width: min(1160px, calc(100% - 32px)); margin: 18px auto 0; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--pulse);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.h1 { font-size: clamp(22px, 3vw, 32px); line-height: 1.35; margin: 0 0 12px; }
.h2 { font-size: 22px; margin: 0 0 8px; }
.lead { color: #3d4654; margin: 0 0 18px; max-width: 860px; }

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pill {
  background: #f3f6fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}
.pill b { color: var(--ink); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.metric span { display: block; font-size: 12px; color: var(--muted); }
.metric b { display: block; font-size: 22px; margin-top: 4px; color: var(--navy); }

.cockpit { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; margin-top: 22px; }
.balls { display: flex; gap: 8px; flex-wrap: wrap; }
.ball {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  font-family: Consolas, monospace; font-size: 14px;
}
.ball.a { background: #c81e4a; }
.ball.b { background: #1b2430; }
.ball.c { background: #0f766e; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { background: var(--pulse-soft); color: var(--pulse); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.tag.dark { background: #eef2f6; color: var(--navy); }

.bar { height: 8px; background: #edf1f6; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--pulse); width: 40%; }
.cd { font-size: 40px; font-weight: 800; font-family: Consolas, monospace; color: var(--navy); line-height: 1; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.prod { text-decoration: none; color: inherit; display: block; }
.prod:hover { border-color: #f3b3c2; text-decoration: none; color: inherit; }
.prod .no { color: var(--pulse); font-size: 12px; letter-spacing: 0.12em; font-weight: 700; }

.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #f3f6fa; color: var(--muted); text-align: left; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 9px 8px; white-space: nowrap; }
.table tbody tr:nth-child(even) { background: #fafbfd; }
.hash { font-family: Consolas, monospace; font-size: 11px; color: #64748b; }

.formula { border-left: 3px solid var(--pulse); padding-left: 14px; }
.warn {
  background: #fff5f6;
  border: 1px solid #f3c4cd;
  border-radius: 12px;
  padding: 20px;
}
.warn h3 { color: #9f1239; margin-top: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(90deg, #1b2430, #2a3544);
  color: #fff;
  border-radius: 12px;
  padding: 22px 26px;
}
.banner p { margin: 6px 0 0; color: #c5ced8; }
.banner .cta { background: var(--pulse); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input, .toolbar select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}
.toolbar button, .btn {
  border: 0;
  background: var(--pulse);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

img.chart { width: 100%; height: auto; display: block; border-radius: 8px; }

.foot { margin-top: 40px; background: var(--navy); color: #c5ced8; padding: 40px 0 18px; }
.foot a { color: #fff; text-decoration: none; display: block; margin: 5px 0; }
.foot a:hover { color: #f8b4c4; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 24px; }
.foot b { color: #fff; letter-spacing: 0.08em; }
.copy { margin-top: 22px; border-top: 1px solid #2c3644; padding-top: 12px; font-size: 12px; color: #8b95a3; }

@media (max-width: 960px) {
  .metrics, .cockpit, .grid3, .grid2, .grid6, .foot-grid { grid-template-columns: 1fr 1fr; }
  .header-row { flex-wrap: wrap; padding: 10px 0; }
  .header .cta { display: none; }
}
@media (max-width: 640px) {
  .metrics, .cockpit, .grid3, .grid2, .grid6, .foot-grid, .banner { grid-template-columns: 1fr; display: grid; }
  .h1 { font-size: 22px; }
}
