@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=JetBrains+Mono:wght@500;700&display=swap");

:root {
  --paper: #f8f6f2;
  --card: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e0d8;
  --blue: #2c5f8a;
  --blue-soft: #dce9f0;
  --copper: #c97b3a;
  --green: #5a9e6f;
  --red: #c45a5a;
  --shadow: 0 20px 60px rgba(32, 43, 54, 0.09);
  --shadow-small: 0 12px 32px rgba(32, 43, 54, 0.07);
  --radius: 8px;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --body: "DM Sans", "Segoe UI", Arial, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body);
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% 12%, rgba(44, 95, 138, 0.12), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(248, 246, 242, 0.95) 36rem),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(44, 95, 138, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 95, 138, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 76%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--blue);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  padding: 22px 0 34px;
  display: grid;
  align-content: start;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid rgba(229, 224, 216, 0.9);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark,
.footer-mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after,
.footer-mark::before,
.footer-mark::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-mark::before,
.footer-mark::before {
  inset: 5px;
  border: 1px solid var(--copper);
}

.brand-mark::after,
.footer-mark::after {
  width: 5px;
  height: 5px;
  top: 8px;
  left: 8px;
  background: var(--blue);
  box-shadow: 9px 3px 0 var(--copper);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.updated-pill,
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.updated-pill time,
.source-pill {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

.lang-btn {
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.lang-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: calc(92vh - 90px);
  padding: 42px 0 0;
}

.hero-copy {
  padding: 48px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.2rem, 9vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.hero-subtitle {
  margin: 20px 0 0;
  color: var(--blue);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 700;
}

.hero-body {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

.primary-link {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(44, 95, 138, 0.24);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue);
}

.hero-stage {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(229, 224, 216, 0.9);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(248, 246, 242, 0.74)),
    var(--card);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(44, 95, 138, 0.08), transparent 24%, rgba(201, 123, 58, 0.06) 60%, transparent),
    repeating-linear-gradient(0deg, rgba(44, 95, 138, 0.06) 0 1px, transparent 1px 18px);
  mix-blend-mode: multiply;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.26;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.signal-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: min(210px, calc(100% - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(229, 224, 216, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(14px);
}

.signal-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signal-card strong {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 1.38rem;
}

.signal-card-a {
  top: 28px;
  right: 28px;
}

.signal-card-b {
  left: 28px;
  bottom: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-note {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.metrics-grid .section-heading {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.metric-card,
.leaderboard-panel,
.visual-panel,
.mesh-section,
.daily-section,
.winners-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-small);
}

.metric-card {
  position: relative;
  min-height: 178px;
  padding: 22px;
  overflow: hidden;
}

.metric-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(44, 95, 138, 0.16);
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(201, 123, 58, 0.18) 0 10%, transparent 12% 100%);
}

.metric-card span,
.metric-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 22px 0 10px;
  font-family: var(--mono);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1;
  color: var(--blue);
}

.metric-card small {
  color: var(--muted);
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.78fr);
  gap: 18px;
  margin: 18px 0;
}

.leaderboard-panel,
.visual-panel,
.mesh-section,
.daily-section {
  padding: 22px;
}

.filter-control {
  display: grid;
  gap: 6px;
  min-width: min(330px, 100%);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-control input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.filter-control input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.15);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(44, 95, 138, 0.045);
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  text-transform: uppercase;
}

.sort-btn::after {
  content: "↕";
  color: var(--copper);
  font-size: 0.75rem;
}

.site-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-name strong {
  font-weight: 800;
}

.site-name span,
.contact-list,
.muted-cell {
  color: var(--muted);
  font-size: 0.86rem;
}

.price-cell,
.mono-cell {
  font-family: var(--mono);
  font-weight: 700;
}

.status-pill,
.protocol-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.status-pill.good {
  background: rgba(90, 158, 111, 0.14);
  color: #316b43;
}

.status-pill.warn {
  background: rgba(201, 123, 58, 0.14);
  color: #8d501e;
}

.status-pill.bad {
  background: rgba(196, 90, 90, 0.14);
  color: #9b3939;
}

.empty-state {
  padding: 38px;
  color: var(--muted);
  text-align: center;
}

.visual-canvas,
.mesh-canvas {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(229, 224, 216, 0.95);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(44, 95, 138, 0.16), transparent 45%),
    linear-gradient(180deg, #fff, #f6f3ee);
}

.visual-fallback,
.mesh-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: inherit;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.model-list,
.comparison-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.model-row,
.comparison-row,
.winner-row,
.news-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.model-row,
.comparison-row {
  padding: 12px;
}

.model-row header,
.comparison-row header,
.winner-row header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.model-row strong,
.comparison-row strong,
.winner-row strong {
  min-width: 0;
}

.model-row code,
.comparison-row code {
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7dd;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--copper));
}

.mesh-section,
.daily-section {
  margin: 18px 0;
}

.mesh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.mesh-canvas {
  min-height: 470px;
}

.daily-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
}

.winners-card,
.news-card {
  padding: 18px;
}

.winner-row,
.news-row {
  padding: 14px;
}

.winner-row + .winner-row,
.news-row + .news-row {
  margin-top: 10px;
}

.winner-row small,
.news-row small {
  color: var(--muted);
}

.news-row a {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 700;
  text-decoration-color: rgba(44, 95, 138, 0.3);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 0 0;
}

.footer strong {
  color: var(--ink);
}

.footer a {
  color: var(--blue);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  transform: translateY(24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-small);
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

canvas {
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(44, 95, 138, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .panel-grid,
  .mesh-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-stage {
    min-height: 520px;
  }

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

  .metrics-grid .section-heading {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1480px);
  }

  .hero {
    min-height: auto;
  }

  .topbar,
  .topbar-actions,
  .section-heading.split,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding-bottom: 14px;
  }

  .topbar-actions {
    width: 100%;
  }

  .updated-pill,
  .language-switch {
    justify-content: center;
    width: 100%;
  }

  .hero-grid {
    padding-top: 24px;
  }

  .hero-copy {
    padding: 18px 0;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-stage {
    min-height: 440px;
  }

  .signal-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 16px;
  }

  .signal-card-b {
    margin-top: 0;
  }

  .metrics-grid,
  .daily-grid {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .metrics-grid .section-heading {
    min-height: 150px;
  }

  .leaderboard-panel,
  .visual-panel,
  .mesh-section,
  .daily-section {
    padding: 16px;
  }

  .visual-canvas,
  .mesh-canvas {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ================================================================
   Scroll-Reveal
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================================================================
   Stats Bar
   ================================================================ */
.stats-bar-section {
  margin: 18px 0;
  padding: 22px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.stats-bar-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stats-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1 1 120px;
  padding: 10px 20px;
}

.stats-bar-sep {
  width: 1px;
  height: 44px;
  background: var(--line);
  flex: 0 0 auto;
}

.stats-bar-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stats-bar-label {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.stats-bar-protocols {
  gap: 8px;
}

.protocol-dist {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.proto-dist-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
}

/* ================================================================
   三冠王奖章卡片
   ================================================================ */
.winners-section {
  margin: 18px 0;
}

.winners-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.medal-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.medal-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(44, 95, 138, 0.06), rgba(201, 123, 58, 0.05));
  border-bottom: 1px solid var(--line);
}

.medal-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.medal-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.medal-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.medal-site-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.medal-site-domain {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--mono);
}

.medal-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.medal-metrics span {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  padding: 2px 8px;
  background: var(--blue-soft);
  border-radius: 4px;
}

.medal-contact {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.medal-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ================================================================
   联系方式 Chips
   ================================================================ */
.contact-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.6;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.contact-chip--copy {
  background: rgba(44, 95, 138, 0.1);
  color: var(--blue);
  border: 1px solid rgba(44, 95, 138, 0.2);
}

.contact-chip--copy:hover {
  background: var(--blue);
  color: #fff;
}

.contact-chip--link {
  background: rgba(201, 123, 58, 0.1);
  color: var(--copper);
  border: 1px solid rgba(201, 123, 58, 0.2);
  text-decoration: none;
}

.contact-chip--link:hover {
  background: var(--copper);
  color: #fff;
}

.contact-chip--text {
  background: rgba(107, 107, 107, 0.08);
  color: var(--muted);
  border: 1px solid var(--line);
}

.no-contact {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ================================================================
   三榜 Tab + 协议筛选
   ================================================================ */
.board-tabs {
  display: flex;
  gap: 4px;
  margin: 14px 0 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: fit-content;
}

.board-tab {
  padding: 6px 16px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.board-tab.is-active {
  background: var(--card);
  color: var(--blue);
  box-shadow: var(--shadow-small);
}

.board-tab:hover:not(.is-active) {
  background: rgba(44, 95, 138, 0.06);
  color: var(--ink);
}

.filter-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

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

.filter-chip {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.contact-filter {
  margin-left: auto;
}

.contact-filter.is-active {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

/* ================================================================
   评分透明卡
   ================================================================ */
.score-section {
  margin: 18px 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.score-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.score-summary {
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(44, 95, 138, 0.06), rgba(201, 123, 58, 0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.score-formula {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
}

.score-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.score-pct {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0% calc(var(--pct) * 1%), #eee 0%);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  box-shadow: inset 0 0 0 6px var(--card);
}

.score-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-detail strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.score-detail small {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ================================================================
   避坑指南
   ================================================================ */
.pitfall-section {
  margin: 18px 0;
}

.pitfall-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.pitfall-card {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.pitfall-card h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--display);
}

.pitfall-source-item {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--blue);
  background: rgba(44, 95, 138, 0.04);
  border-radius: 0 4px 4px 0;
}

.pitfall-source-item:last-child {
  margin-bottom: 0;
}

.pitfall-source-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--ink);
}

.pitfall-source-item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.pitfall-tricks-ol,
.pitfall-checklist,
.pitfall-warning-ul {
  margin: 0;
  padding-left: 18px;
}

.pitfall-tricks-ol li,
.pitfall-checklist li,
.pitfall-warning-ul li {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.5;
}

.pitfall-tricks-ol li {
  color: var(--ink);
}

.pitfall-warning-ul {
  list-style: none;
  padding: 0;
}

.pitfall-warning-ul li {
  padding: 8px 10px;
  margin-bottom: 8px;
  border-left: 3px solid var(--red);
  background: rgba(196, 90, 90, 0.05);
  border-radius: 0 4px 4px 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ================================================================
   知识中心
   ================================================================ */
.knowledge-section {
  margin: 18px 0;
}

.knowledge-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 16px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.knowledge-tab {
  flex: 1 1 auto;
  padding: 7px 14px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.knowledge-tab.is-active {
  background: var(--card);
  color: var(--blue);
  box-shadow: var(--shadow-small);
}

.knowledge-tab:hover:not(.is-active) {
  background: rgba(44, 95, 138, 0.06);
  color: var(--ink);
}

.knowledge-content {
  min-height: 180px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

/* Terms grid */
.knowledge-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.knowledge-term-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow 0.15s ease;
}

.knowledge-term-card:hover {
  box-shadow: var(--shadow-small);
}

.knowledge-term-card h4 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  font-family: var(--display);
}

.knowledge-term-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Tips list */
.knowledge-tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.knowledge-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.tip-num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1;
  padding-top: 2px;
}

.knowledge-tip-item strong {
  font-size: 0.9rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.knowledge-tip-item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Signals */
.signals-warning {
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: rgba(196, 90, 90, 0.08);
  color: var(--red);
  font-weight: 600;
  font-size: 0.85rem;
}

.knowledge-signals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(196, 90, 90, 0.04);
}

.signal-icon {
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--red);
  line-height: 1.4;
}

.signal-item p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.5;
}

/* Sites grid */
.knowledge-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.knowledge-site-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow 0.15s ease;
}

.knowledge-site-card:hover {
  box-shadow: var(--shadow-small);
}

.k-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.k-site-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(44, 95, 138, 0.3);
}

.k-site-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.knowledge-site-card p {
  margin: 0;
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Checks list */
.knowledge-checks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.knowledge-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.check-num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  padding-top: 2px;
}

.knowledge-check-item strong {
  font-size: 0.9rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.knowledge-check-item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ================================================================
   Responsive additions
   ================================================================ */
@media (max-width: 900px) {
  .winners-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .score-items {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .board-tabs {
    width: 100%;
  }

  .board-tab {
    flex: 1 1 auto;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .stats-bar-item {
    flex: 1 1 80px;
  }

  .knowledge-terms-grid {
    grid-template-columns: 1fr;
  }

  .score-items {
    grid-template-columns: 1fr;
  }
}

/* 站点雷达表 展开更多按钮(默认8行) */
.rdr-more { display: flex; align-items: center; gap: 0.8rem; justify-content: center; padding: 1rem 0 0.2rem; }
.rdr-more-info { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.rdr-more-btn {
  border: 1px solid var(--blue); background: var(--card); color: var(--blue); cursor: pointer;
  padding: 0.5rem 1.3rem; border-radius: 999px; font-family: var(--body); font-weight: 600;
  font-size: 0.84rem; transition: all 0.15s;
}
.rdr-more-btn:hover { background: var(--blue); color: #fff; }
.rdr-more-btn.ghost { border-color: var(--line); color: var(--muted); }
.rdr-more-btn.ghost:hover { background: var(--line); color: var(--ink); }

/* 可点击行(点了弹官网) */
tr.row-clickable, .medal-card.row-clickable { cursor: pointer; transition: background 0.12s; }
tr.row-clickable:hover { background: rgba(44,95,138,0.07) !important; }
.medal-card.row-clickable:hover { box-shadow: 0 12px 32px rgba(44,95,138,0.18); transform: translateY(-2px); }
tr.row-clickable .site-name strong::after, tr.row-clickable td:nth-child(2)::after { content: " ↗"; color: var(--blue); font-size: 0.8em; opacity: 0; transition: opacity 0.12s; }
tr.row-clickable:hover td:nth-child(2)::after { opacity: 0.7; }
