:root {
  --bg: #0b0d12;
  --bg-2: #0f1420;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  --accent: #7c3aed;
  --accent-2: #22c55e;
  --max: 1100px;

  --radius: 16px;
  --radius-sm: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fc;
    --bg-2: #ffffff;
    --panel: rgba(2, 6, 23, 0.04);
    --panel-2: rgba(2, 6, 23, 0.06);
    --text: rgba(2, 6, 23, 0.9);
    --muted: rgba(2, 6, 23, 0.65);
    --border: rgba(2, 6, 23, 0.12);
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.12);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(124, 58, 237, 0.35), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(34, 197, 94, 0.20), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.55;
}

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

code,
pre {
  font-family: var(--mono);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg-2) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 20%, black));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.28);
  color: white;
  font-size: 14px;
}

.brand-text {
  font-size: 15px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.nav-toggle {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-title {
  margin: 10px 0 18px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  /* max-width: 32ch; */
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-figure {
  margin: 0;
  padding: 16px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.hero-title,
.hero-authors,
.hero-venue {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
}

h1 {
  margin: 12px 0 10px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.meta {
  margin: 18px 0 20px;
  padding: 14px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.meta-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 8px 6px;
}

.meta-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.meta-value {
  font-weight: 650;
  font-size: 13px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
  user-select: none;
}

.btn:hover {
  background: var(--panel-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--accent) 60%, white);
  outline-offset: 2px;
}

.btn.primary {
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--accent) 70%, black),
    var(--accent)
  );
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.20);
}

.btn.small {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-card .card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--border));
  font-weight: 800;
  font-size: 12px;
}

.pill.subtle {
  background: var(--panel-2);
  border-color: var(--border);
  color: var(--muted);
  font-weight: 750;
}

.card-title {
  margin: 8px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card-body {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.stat-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.stat-k {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.stat-v {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link {
  color: color-mix(in oklab, var(--accent) 65%, var(--text));
  font-weight: 800;
  font-size: 13px;
}
.link:hover {
  text-decoration: underline;
}

.section {
  padding: 42px 0;
}
.section-alt {
  background: color-mix(in oklab, var(--bg-2) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: none;
  margin-top: 10px;
}

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

.callout {
  padding: 14px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.callout h3 {
  margin: 2px 0 6px;
  font-size: 15px;
}
.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h3 {
  margin: 0 0 8px;
}
.panel p {
  margin: 0 0 12px;
  color: var(--muted);
}

.figure {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel-2);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}
th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-weight: 800;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* 整行 hover 变灰 */
.results-table tbody tr:hover td {
  background: color-mix(in oklab, var(--panel-2) 80%, #ffffff);
}

/* 单元格 hover 更明显（如果你想要“格子变灰”而不是整行，可以用这一条 */
.results-table td:hover {
  background: color-mix(in oklab, var(--panel-2) 95%, #ffffff);
}

/* STORM 行高亮（可选） */
.results-table .row-storm td {
  background: color-mix(in oklab, var(--accent-2) 12%, var(--panel-2));
  font-weight: 800;
}

.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.resource {
  display: block;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: transform 0.06s ease, background 0.15s ease;
}
.resource:hover {
  transform: translateY(-1px);
  background: var(--panel-2);
}
.resource-title {
  font-weight: 900;
  margin-bottom: 2px;
}
.resource-desc {
  color: var(--muted);
  font-size: 13px;
}

.results-card {
  margin-top: 18px;
}

.results-card-inner {
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg-2) 75%, transparent);
  padding: 18px;
  box-shadow: var(--shadow);
}

.results-preview {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel-2);
}

.results-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.results-preview:hover img {
  transform: scale(1.02);
}

.results-preview-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 20%, black));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.results-preview-btn:hover {
  transform: translate(-50%, -52%);
}

.results-caption {
  margin-top: 10px;
}

.results-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.results-modal.open {
  display: flex;
}

.results-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.results-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 96vw);
  max-height: min(80vh, 750px);
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.results-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.results-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.results-modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.results-modal-body {
  padding: 10px 14px 14px;
  overflow: auto;
}

.results-modal-body img {
  display: block;
  width: 100%;
  height: auto;
}

.citation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.codeblock {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}
.codeblock code {
  font-size: 13px;
}

.site-footer {
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .callouts {
    grid-template-columns: 1fr;
  }
  .resource-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    right: 20px;
    top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 190px;
  }
  .nav-links a {
    padding: 10px 10px;
  }
  .nav-links.open {
    display: flex;
  }
  .meta-row {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .resource-list {
    grid-template-columns: 1fr;
  }
}


.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;  /* 两个 link 之间的距离，按需调大/调小 */
}