/* =========================================================
   剧观 · AI短剧观察站
   Design tokens / base / header / hero
   ========================================================= */

:root {
  --bg: #f4f8fd;
  --bg-soft: #eef5fd;
  --surface: #ffffff;
  --ink: #0b1b33;
  --ink-2: #243a5c;
  --muted: #61728b;
  --line: #e2ebf6;
  --line-strong: #cfdcec;
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-soft: #e8f1ff;
  --accent: #f97316;
  --accent-soft: #fff1e6;
  --mint: #0f9f7a;
  --navy: #0b1f3a;
  --navy-2: #102b4f;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px -18px rgba(15, 42, 80, .35);
  --shadow: 0 20px 48px -30px rgba(15, 42, 80, .45);
  --shadow-lg: 0 32px 80px -40px rgba(11, 31, 58, .55);
  --container: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(1000px 620px at 88% -8%, rgba(56, 189, 248, .13), transparent 65%),
    radial-gradient(800px 540px at -10% 12%, rgba(37, 99, 235, .08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: rgba(37, 99, 235, .18);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .38);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

.page-wrap {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head__copy {
  max-width: 700px;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 800;
}

.section-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.section-link:hover {
  border-color: rgba(37, 99, 235, .45);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .84);
  border-bottom: 1px solid rgba(226, 235, 246, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    radial-gradient(120% 120% at 20% 0%, #60a5fa 0%, #2563eb 46%, #0b1f3a 100%);
  box-shadow: 0 12px 24px -12px rgba(37, 99, 235, .7);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: #536783;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--brand);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: var(--brand);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.data-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.data-date .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #1d4ed8);
  color: #fff;
  box-shadow: 0 14px 26px -16px rgba(37, 99, 235, .7);
}

.btn-primary:hover {
  box-shadow: 0 18px 32px -16px rgba(37, 99, 235, .8);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink-2);
}

.btn-ghost:hover {
  border-color: rgba(37, 99, 235, .4);
  color: var(--brand);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
}

.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 640px;
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, .14) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 82%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -90px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, .16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, .45);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .38); }
  70% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 900;
}

.hero-title .grad {
  background: linear-gradient(120deg, #2563eb 8%, #0ea5e9 52%, #0f9f7a 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 590px;
  margin-top: 22px;
  color: #526783;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(207, 220, 236, .8);
  border-bottom: 1px solid rgba(207, 220, 236, .8);
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2));
}

.stat-item {
  padding: 0 26px;
  border-left: 1px solid rgba(207, 220, 236, .7);
}

.stat-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.035em;
}

.stat-value small {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-2);
}

.stat-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------- Hero live board ---------- */

.board-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(14, 165, 233, .22), transparent 55%),
    radial-gradient(120% 100% at 0% 100%, rgba(37, 99, 235, .24), transparent 58%),
    #0b1f3a;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.board-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.board-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.board-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.board-kicker .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .14);
}

.board-title {
  margin-top: 7px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.board-period {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #bcd4f4;
  font-size: 11px;
  white-space: nowrap;
}

.board-list {
  position: relative;
  display: grid;
  gap: 4px;
  padding-top: 12px;
}

.board-row {
  display: grid;
  grid-template-columns: 30px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background .2s ease;
}

.board-row:hover {
  background: rgba(255, 255, 255, .06);
}

.board-rank {
  font-size: 12px;
  font-weight: 900;
  color: #7fa6d8;
  font-variant-numeric: tabular-nums;
}

.board-rank.top {
  color: #fff;
}

.board-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border-radius: 9px;
  background: linear-gradient(150deg, #1d4ed8, #0ea5e9);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.05em;
  overflow: hidden;
}

.board-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35));
}

.board-cover.c2 { background: linear-gradient(150deg, #7c3aed, #2563eb); }
.board-cover.c3 { background: linear-gradient(150deg, #0f9f7a, #0ea5e9); }

.board-info {
  min-width: 0;
}

.board-name {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #8fb1d8;
  font-size: 10px;
}

.board-tag .sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #547ba9;
}

.board-metric {
  text-align: right;
  white-space: nowrap;
}

.board-metric b {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

.board-metric span {
  display: block;
  margin-top: 1px;
  color: #7f9fc4;
  font-size: 9px;
  letter-spacing: .08em;
}

.board-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8fb1d8;
  font-size: 10px;
}

.board-foot b {
  color: #fff;
  font-size: 12px;
}

.board-foot .trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #4ade80;
  font-weight: 700;
}

/* ---------- Overview ---------- */

.section {
  padding: 84px 0;
}

.section--tight {
  padding-top: 30px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.insight-card {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.insight-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .08), transparent 68%);
}

.insight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.insight-index {
  color: #c7d6e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.insight-value {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.insight-value small {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-2);
}

.insight-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
}

.insight-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 20px;
}

.chart-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.chart-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.chart-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.chart-badge {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.chart-canvas {
  width: 100%;
  height: 310px;
  margin-top: 12px;
}

.chart-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.chart-note b {
  color: var(--ink-2);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 1px;
}

.legend-dot.alt { background: var(--accent); }
.legend-dot.mint { background: var(--mint); }

/* ---------- Ranking ---------- */

.ranking-shell {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ranking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #eef4fc;
}

.segmented button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.segmented button.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 16px -10px rgba(15, 42, 80, .45);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #5b6b84;
  font-size: 12px;
  font-weight: 700;
  transition: all .2s ease;
}

.chip:hover {
  border-color: rgba(37, 99, 235, .4);
  color: var(--brand);
}

.chip.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.ranking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 2px 4px;
  color: var(--muted);
  font-size: 11px;
}

.ranking-meta b {
  color: var(--ink-2);
}

.ranking-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.ranking-table thead th {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  color: #8a9ab1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-table thead th:first-child { padding-left: 6px; }
.ranking-table thead th:last-child { padding-right: 6px; text-align: right; }

.ranking-row {
  transition: background .2s ease;
}

.ranking-row:hover {
  background: #f8fbff;
}

.ranking-row td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.ranking-row td:first-child { padding-left: 6px; }
.ranking-row td:last-child { padding-right: 6px; text-align: right; }

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f5fb;
  color: #7b8ca4;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.rank-badge.r1 {
  background: linear-gradient(145deg, #ff9a5c, #f97316);
  color: #fff;
  box-shadow: 0 8px 16px -10px rgba(249, 115, 22, .8);
}

.rank-badge.r2 {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  color: #fff;
}

.rank-badge.r3 {
  background: linear-gradient(145deg, #2dd4bf, #0f9f7a);
  color: #fff;
}

.rank-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  max-width: 420px;
}

.rank-title a,
.rank-title span {
  overflow: hidden;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: #c2410c;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.6;
}

.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.type-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.type-tag.ai { background: #e8f1ff; color: #2563eb; }
.type-tag.manga { background: #f2ecff; color: #7c3aed; }

.metric-cell {
  min-width: 150px;
}

.metric-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.metric-line small {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.metric-bar {
  width: 100%;
  max-width: 130px;
  height: 4px;
  margin-top: 7px;
  border-radius: 99px;
  background: #edf2f9;
  overflow: hidden;
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.metric-bar i.manga {
  background: linear-gradient(90deg, #c4b5fd, #7c3aed);
}

.company-cell {
  color: #526783;
  font-size: 12px;
  white-space: nowrap;
}

.company-cell.pending {
  color: #9aa8bb;
}

.ranking-empty {
  padding: 42px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.ranking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.ranking-note {
  max-width: 660px;
  color: #8494ab;
  font-size: 11px;
  line-height: 1.7;
}

.ranking-more {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.ranking-more:hover {
  border-color: rgba(37, 99, 235, .4);
  color: var(--brand);
}

.ranking-cards {
  display: none;
}

.ranking-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ranking-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ranking-card-body {
  min-width: 0;
  flex: 1;
}

.ranking-card-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.ranking-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.ranking-card-metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.ranking-card-metric b {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.ranking-card-metric span {
  color: var(--muted);
  font-size: 10px;
}

.ranking-card-company {
  color: #7b8ca4;
  font-size: 11px;
  text-align: right;
}

/* ---------- Companies ---------- */

.company-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  cursor: pointer;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 28px 50px -34px rgba(15, 42, 80, .5);
}

.company-card:focus-visible {
  outline-offset: 4px;
}

.company-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.company-cat {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f4f7fc;
  color: #6b7e99;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.company-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.company-name h3 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.company-name span {
  color: #9aa8bb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.company-tagline {
  margin-top: 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.company-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.company-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.company-metric b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.company-metric span {
  display: block;
  margin-top: 3px;
  color: #8a9ab1;
  font-size: 10px;
}

.company-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5fb;
  color: #6b7e99;
  transition: background .2s ease, color .2s ease;
}

.company-card:hover .company-arrow {
  background: var(--brand);
  color: #fff;
}

/* ---------- Company modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 38, .58);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .55);
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  transition: transform .24s ease;
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.modal-head .company-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  font-size: 18px;
}

.modal-title-wrap {
  min-width: 0;
  flex: 1;
}

.modal-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.modal-en {
  color: #9aa8bb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal-tagline {
  margin-top: 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #6b7e99;
}

.modal-close:hover {
  background: #f2f7fd;
  color: var(--ink);
}

.modal-body {
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.modal-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #8a9ab1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.modal-section-title::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 99px;
  background: var(--brand);
}

.modal-desc {
  color: #526783;
  font-size: 13px;
  line-height: 1.85;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.modal-fact {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.modal-fact b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.modal-fact span {
  display: block;
  margin-top: 5px;
  color: #8494ab;
  font-size: 10px;
  line-height: 1.5;
}

.modal-block {
  margin-top: 22px;
}

.modal-product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-pill {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #526783;
  font-size: 11px;
  font-weight: 700;
}

.modal-position {
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--brand-soft);
  color: #34527d;
  font-size: 12px;
  line-height: 1.75;
}

.modal-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: #8a9ab1;
  font-size: 10px;
}

.modal-source a {
  color: var(--brand);
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: 100px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-aside h3 {
  font-size: 16px;
  font-weight: 900;
}

.faq-aside p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.faq-cats {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.faq-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #5b6b84;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.faq-cat:hover {
  background: #f6f9fe;
  color: var(--brand);
}

.faq-cat.is-active {
  border-color: rgba(37, 99, 235, .16);
  background: var(--brand-soft);
  color: var(--brand);
}

.faq-cat span {
  color: #9aa8bb;
  font-size: 10px;
  font-weight: 700;
}

.faq-cat.is-active span {
  color: var(--brand);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.is-open {
  border-color: rgba(37, 99, 235, .22);
  box-shadow: 0 18px 40px -32px rgba(37, 99, 235, .5);
}

.faq-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
}

.faq-num {
  flex: 0 0 auto;
  color: #b7c4d6;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.faq-question {
  flex: 1;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.faq-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f1f5fb;
  color: #6b7e99;
  transition: transform .25s ease, background .25s ease;
}

.faq-item.is-open .faq-plus {
  background: var(--brand);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  margin: 0 20px 18px;
  padding: 14px 16px 14px 38px;
  border-top: 1px solid var(--line);
  color: #526783;
  font-size: 12.5px;
  line-height: 1.9;
}

.faq-answer-content strong {
  color: var(--ink-2);
}

/* ---------- News ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.news-date {
  color: #9aa8bb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.news-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5fb;
  color: #6b7e99;
  font-size: 9px;
  font-weight: 800;
}

.news-tag.hot { background: var(--accent-soft); color: #c2410c; }
.news-tag.policy { background: #e8f1ff; color: #2563eb; }
.news-tag.global { background: #e9fbf5; color: #0f9f7a; }

.news-title {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.news-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: #8a9ab1;
  font-size: 10px;
}

.news-source b {
  color: #526783;
  font-weight: 700;
}

/* ---------- Roadmap ---------- */

.roadmap {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(14, 165, 233, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(37, 99, 235, .2), transparent 62%),
    var(--navy);
  color: #fff;
}

.roadmap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .1) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, #000, transparent 58%);
  mask-image: linear-gradient(115deg, #000, transparent 58%);
  pointer-events: none;
}

.roadmap-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.roadmap-kicker {
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.roadmap-title {
  margin-top: 8px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  letter-spacing: -.03em;
}

.roadmap-desc {
  max-width: 600px;
  margin-top: 9px;
  color: #a9c3e2;
  font-size: 12px;
  line-height: 1.8;
}

.roadmap-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.roadmap-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.roadmap-phase {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, .12);
  color: #7dd3fc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.roadmap-card h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
}

.roadmap-card p {
  margin-top: 6px;
  color: #9db8d8;
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 84px;
  padding: 52px 0 28px;
  background: var(--navy);
  color: #b8cbe2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7f9fc4; }
.footer-brand .brand-mark { box-shadow: none; }

.footer-desc {
  max-width: 360px;
  margin-top: 16px;
  color: #91accb;
  font-size: 11.5px;
  line-height: 1.85;
}

.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #91accb;
  font-size: 11.5px;
  line-height: 1.6;
  transition: color .2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #6f8cae;
  font-size: 10px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: #6f8cae;
  font-size: 10px;
}

.footer-bottom a {
  color: #9db8d8;
}

body.modal-open {
  overflow: hidden;
}

main section[id] {
  scroll-margin-top: 92px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .main-nav {
    gap: 20px;
  }

  .data-date {
    display: none;
  }
}

@media (max-width: 1024px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    border-top: 1px solid transparent;
    background: rgba(255, 255, 255, .98);
    transition: max-height .28s ease, border-color .28s ease;
  }

  .mobile-menu.is-open {
    max-height: 340px;
    border-top-color: var(--line);
  }

  .mobile-menu-inner {
    display: grid;
    gap: 4px;
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
    padding: 14px 0 20px;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-menu a:hover {
    background: #f2f7fd;
    color: var(--brand);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 36px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .board-card {
    width: min(620px, 100%);
  }

  .chart-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .faq-aside {
    position: static;
  }

  .faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .faq-cat {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    min-height: 38px;
  }

  .faq-cat span {
    display: none;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }

  .stat-item {
    padding: 0 18px;
  }

  .stat-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .header-inner {
    height: 68px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 17px;
  }

  .ranking-table-wrap {
    display: none;
  }

  .ranking-cards {
    display: grid;
    gap: 10px;
    padding-top: 14px;
  }
}

@media (max-width: 760px) {
  .ranking-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .ranking-table-wrap {
    display: none;
  }

  .ranking-cards {
    display: grid;
    gap: 10px;
    padding-top: 14px;
  }

  .ranking-toolbar {
    align-items: stretch;
  }

  .segmented {
    display: flex;
    width: 100%;
  }

  .segmented button {
    flex: 1;
    min-height: 44px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .filter-chips {
    gap: 7px;
  }

  .chip {
    min-height: 44px;
    padding: 0 14px;
    font-size: 12px;
  }

  .faq-cat {
    min-height: 44px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .company-card {
    min-height: 220px;
  }

  .chart-canvas {
    height: 270px;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(28px);
  }

  .modal-head {
    padding: 20px 18px 16px;
  }

  .modal-body {
    padding: 20px 18px 28px;
  }

  .modal-facts {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .brand {
    min-height: 44px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .page-wrap,
  .mobile-menu-inner {
    width: calc(100% - 36px);
  }

  .hero {
    padding-top: 42px;
  }

  .hero-title {
    margin-top: 18px;
    font-size: clamp(34px, 10.4vw, 46px);
    line-height: 1.18;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .hero-actions .btn {
    padding: 0 12px;
    font-size: 12.5px;
  }

  .hero-meta {
    gap: 8px 14px;
    font-size: 11px;
  }

  .board-card {
    padding: 18px;
    border-radius: 20px;
  }

  .board-head {
    padding-bottom: 14px;
  }

  .board-title {
    font-size: 17px;
  }

  .board-row {
    grid-template-columns: 24px 38px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px 4px;
  }

  .board-cover {
    width: 38px;
    height: 48px;
    font-size: 13px;
  }

  .board-name {
    font-size: 12px;
  }

  .board-metric b {
    font-size: 12px;
  }

  .hero-stats {
    padding: 18px 0;
    row-gap: 16px;
  }

  .stat-item {
    padding: 0 14px;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-label {
    margin-top: 6px;
    font-size: 10.5px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .insight-card {
    padding: 18px;
  }

  .insight-value {
    font-size: 26px;
  }

  .chart-card {
    padding: 16px;
    border-radius: 18px;
  }

  .chart-canvas {
    height: 250px;
    margin-top: 8px;
  }

  .ranking-meta {
    padding-top: 12px;
  }

  .ranking-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-note {
    font-size: 10.5px;
  }

  .ranking-more {
    width: 100%;
    min-height: 46px;
  }

  .faq-trigger {
    padding: 16px;
    gap: 10px;
  }

  .faq-question {
    font-size: 13px;
  }

  .faq-answer-content {
    margin: 0 16px 16px;
    padding: 13px 12px;
    font-size: 12px;
  }

  .news-card {
    padding: 17px;
  }

  .roadmap {
    padding: 24px 18px;
  }

  .roadmap-grid {
    margin-top: 20px;
  }

  .site-footer {
    margin-top: 64px;
    padding-top: 40px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .brand-sub {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .stat-item {
    padding: 12px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Account ---------- */

.account-wrap {
  position: relative;
}

.account-trigger {
  gap: 7px;
}

.account-label {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 95;
  display: grid;
  gap: 8px;
  width: 224px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu[hidden],
.account-link[hidden] {
  display: none;
}

.account-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.account-email {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.account-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.account-link:hover {
  background: #dae9ff;
}

.account-link--danger {
  background: #fff1f0;
  color: #cf3b1c;
}

.account-link--danger:hover {
  background: #ffe3de;
}

.mobile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-account:hover {
  background: #f2f7fd;
}

/* ---------- Auth modal ---------- */

.auth-panel {
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
}

.auth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.auth-title {
  margin: 6px 0 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 16px 24px 0;
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #f1f6fd;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--navy);
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
}

.field {
  display: grid;
  gap: 6px;
}

.field[hidden] {
  display: none;
}

.field > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.field select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.auth-error {
  display: none;
  margin: 0;
  color: #cf3b1c;
  font-size: 12.5px;
  line-height: 1.6;
}

.auth-error.is-visible {
  display: block;
}

.auth-submit {
  width: 100%;
}

.auth-tip {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- Ad slots ---------- */

.ad-band {
  padding: 4px 0 0;
}

.ad-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.ad-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #fff, #f6fbff);
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.ad-card:hover {
  border-color: rgba(37, 99, 235, .45);
  box-shadow: var(--shadow-sm);
}

.ad-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4fd;
  color: #90a2bb;
  font-size: 9px;
  font-weight: 700;
}

.ad-image {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.ad-body {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.ad-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.ad-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ad-cta {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

/* ---------- Admin console ---------- */

.admin-body {
  background: var(--bg);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.admin-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}

.admin-main {
  padding: 28px 0 72px;
}

.admin-gate {
  max-width: 520px;
  margin: 60px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-gate h1 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.admin-gate p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.admin-intro h1 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
}

.admin-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 24px 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.admin-tabs button {
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tabs button.is-active {
  background: var(--navy);
  color: #fff;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-panel[hidden] {
  display: none;
}

.admin-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.admin-card-head h2 {
  margin: 0;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form .field--full {
  grid-column: 1 / -1;
}

.admin-form textarea {
  min-height: 84px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.admin-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.admin-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.admin-form .admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--ink-2);
  font-size: 13px;
}

.admin-form .admin-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
}

.admin-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-status {
  color: var(--muted);
  font-size: 12.5px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  flex-wrap: wrap;
}

.admin-item-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.admin-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  flex-wrap: wrap;
}

.admin-item-sub {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.admin-item-actions {
  display: flex;
  gap: 8px;
}

.admin-mini-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.admin-mini-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.admin-mini-btn--danger:hover {
  border-color: #d4380d;
  color: #d4380d;
}

.admin-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #eef4fd;
  color: #61728b;
}

.admin-badge--on {
  background: #e7f8f1;
  color: #0f9f7a;
}

.admin-badge--admin {
  background: var(--brand-soft);
  color: var(--brand);
}

.admin-empty {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-intro h1 {
    font-size: 24px;
  }

  .admin-item {
    align-items: flex-start;
  }

  .admin-item-actions {
    width: 100%;
  }

  .admin-mini-btn {
    flex: 1;
  }

  .ad-image {
    width: 48px;
    height: 48px;
  }

  .ad-card {
    padding: 12px 14px;
  }

  .auth-tabs,
  .auth-form {
    padding-left: 18px;
    padding-right: 18px;
  }
}



/* ---------- 站内搜索 ---------- */

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.search-trigger:hover,
.search-trigger[aria-expanded="true"] {
  color: var(--brand);
  border-color: var(--line-strong);
  background: var(--brand-soft);
}

.search-panel {
  width: min(620px, 100%);
  max-height: min(80vh, 720px);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 6px;
}

.search-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 22px 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.search-hint {
  margin: 10px 22px 14px;
  font-size: 13px;
  color: var(--muted);
}

.search-results {
  padding: 0 12px 16px;
  overflow-y: auto;
}

.search-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background .18s ease;
}

.search-item:hover {
  background: var(--bg-soft);
}

.search-kind {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.search-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.search-item-body b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.search-item-body span {
  font-size: 12.5px;
  color: var(--muted);
}

.search-empty {
  padding: 26px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .search-trigger {
    width: 34px;
    height: 34px;
  }
}

/* ---------- 后台内容编辑 ---------- */

.admin-form--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-subtabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

.admin-subtabs button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.admin-subtabs button.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.admin-rank-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
  overflow-x: auto;
}

.admin-rank-head,
.admin-rank-row {
  display: grid;
  grid-template-columns: 60px minmax(160px, 2.2fr) 110px 90px 110px minmax(120px, 1.4fr) 90px 72px;
  gap: 8px;
  align-items: center;
  min-width: 860px;
}

.admin-rank-head {
  padding: 0 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.admin-cell {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.admin-cell:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}

.admin-rank-row .admin-mini-btn {
  height: 38px;
}

@media (max-width: 760px) {
  .admin-form--inline {
    grid-template-columns: 1fr;
  }

  .admin-subtabs {
    width: 100%;
  }

  .admin-subtabs button {
    flex: 1;
  }
}
