.mobile-full {
  width: 100%;
  max-width: 100%;
}
:root {
  --bg: 222 248 255;
  --ink: 18 29 43;
  --teal: 20 184 166;
  --cyan: 56 189 248;
  --glass-bg: 255 255 255 / 0.55;
  --glass-stroke: 255 255 255 / 0.35;
  --shadow: 2px 8px 26px rgba(9, 38, 62, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: rgb(var(--ink));
  background: #ffffff;
  overflow-x: hidden;
}

/* 全局排版 */
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -0.02em; }
.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.main-shell {
  width: min(1280px, 96vw);
  margin: 0 auto;
}
.section.narrow { max-width: min(900px, 90vw); }
.abstract-card {
  margin: 28px auto 0;
  padding: 32px 36px;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
.abstract-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #0f172a;
  font-weight: 400;
}
.abstract-card em {
  font-style: italic;
  color: #2563eb;
}
.abstract-card strong {
  color: #111;
}
.main-shell { width: min(1280px, 95vw); margin: 0 auto; }
.section { padding: 96px 0; position: relative; font-size: 20px;}
.section h2 { font-size: 32px; font-weight: 800; text-align: center; }
.section.container::before {
  content: ""; position: absolute; top: 0; left: 24px; width: calc(100% - 48px); height: 1px;
  background: rgba(15, 23, 42, 0.08);
}
.section .section-head p { color: #556; opacity: .8; text-align: center; margin-bottom: 32px;}
.qa-text { word-break: break-word; }

@media (min-width: 1280px) {
  .container {
    width: min(1100px, 60vw);
    max-width: min(1100px, 60vw);
  }
  .main-shell { width: min(1280px, 70vw); }
  .section.narrow { max-width: calc(min(1100px, 60vw) * 0.85); }
}

/* 按钮通用 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(var(--ink), .08);
  background: rgba(255,255,255,.6); backdrop-filter: blur(8px);
  color: rgb(var(--ink)); text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow); transition: all .3s cubic-bezier(.2,.8,.2,1);
  font-size: 18px; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(9, 38, 62, 0.25); }
.btn.primary { background: linear-gradient(135deg, rgb(var(--teal)) 0%, rgb(var(--cyan)) 100%); color: white; border-color: transparent; }
.btn-arxiv {
  background: linear-gradient(135deg, #f9a8d4, #fb7185);
  color: #fff;
  border-color: transparent;
}
.btn-code {
  background: linear-gradient(135deg, #475569, #0f172a);
  color: #f8fafc;
  border-color: transparent;
}
.btn-hf-model,
.btn-hf-data {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
  border-color: transparent;
}

/* 玻璃卡片 */
.glass {
  background: rgba(var(--glass-bg));
  border: 1px solid rgb(var(--glass-stroke));
  box-shadow: var(--shadow); backdrop-filter: saturate(180%) blur(14px);
  border-radius: var(--radius);
}

/* ================== 修改1：侧边栏优化 ================== */
.sidebar {
  position: fixed; left: 20px; top: 76px; bottom: 20px; width: 240px; z-index: 40;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
/* 默认收起状态 (通过 body class 控制) */
body.sidebar-collapsed .sidebar { transform: translateX(-280px); }
/* 展开状态 (移除 class 后自动恢复) */

.sidebar-inner { height: 100%; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.brand { font-weight: 900; font-size: 25px; }
.toc { display: flex; flex-direction: column; gap: 8px; }
.toc a { padding: 10px 12px; border-radius: 10px; color: rgb(var(--ink)); text-decoration: none; opacity: .8; transition: all .3s; }
.toc a:hover { background: rgba(255,255,255,.6); transform: translateX(2px); }
.toc a.active { background: linear-gradient(135deg, rgba(var(--teal), .15), rgba(var(--cyan), .15)); opacity: 1; font-weight: 700; }

.sidebar-toggle {
  position: fixed; left: 24px; top: 24px; z-index: 45; width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer; box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgb(var(--cyan)), rgb(var(--teal)));
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sidebar-toggle:active { transform: translateY(1px) scale(.98); }

/* 箭头逻辑修正：默认指向右(收起时)，展开指向左 */
.sidebar-toggle .arrow {
  width: 12px; height: 12px; border-right: 3px solid #fff; border-top: 3px solid #fff;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  transform: translateX(-2px) rotate(45deg); /* 默认朝右 */
}
.sidebar-toggle[aria-expanded="true"] .arrow {
  transform: translateX(2px) rotate(225deg); /* 展开时朝左 */
}

/* ================== 修改1：回到顶部按钮优化 ================== */
.back-to-top {
  position: fixed; right: 32px; bottom: 32px; z-index: 50; width: 52px; height: 52px;
  border-radius: 50%; /* 圆形更现代 */
  border: 1px solid rgba(255,255,255,.45); color: white;
  background: linear-gradient(145deg, rgb(var(--cyan)), rgb(var(--teal)));
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
  opacity: 0; transform: translateY(16px);
  pointer-events: none; transition: all .35s cubic-bezier(.2,.8,.2,1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 184, 166, 0.5); }
.back-to-top svg { width: 24px; height: 24px; }

/* Hero Section */
.hero { min-height: 86vh; display: grid; place-items: center; padding: 60px 0 96px; }
.hero-inner { position: relative; text-align: center; width: 100%; max-width: min(1100px, 60vw); padding: 24px; }
.title { font-size: clamp(27px, 5vw, 41px); font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.title-highlight {
  display: inline-block;
  background: linear-gradient(120deg, #0ea5e9, #22d3ee, #c084fc, #0ea5e9);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: titleGradient 8s linear infinite;
}
@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.author-block {
  margin-top: 18px;
  color: #111;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}
.author-list {
  margin: 0 0 12px;
}
.author-link {
  color: #111;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.author-link:hover {
  opacity: 0.85;
}
.affiliation {
  margin: 2px 0;
  color: #111;
}
.affiliation:not(:last-child) {
  font-weight: 500;
}
.affiliation.note {
  font-style: italic;
  color: #111;
  margin-top: 6px;
}
.meta { margin-top: 18px; color: #4a5568; }
.cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.teaser-figure {
  background: transparent;
  box-shadow: none;
  border: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.teaser-image {
  width: 90%;
  max-width: 1100px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
  border-radius: 24px;
}
.teaser-image:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}
.single-lab {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: rgba(248,250,255,.9);
}
.single-picker-wrap { display: flex; justify-content: center; }
.single-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.single-visual {
  margin: 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15,23,42,0.12);
}
.single-image {
  display: block;
  width: 100%;
  height: auto;
}
.single-playground .compare-container {
  height: 100%;
}
.single-qa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.single-fade {
  opacity: 0;
  transform: translateY(6px);
}
.results-figure {
  margin: 32px auto 0;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}
.results-image {
  width: 100%;
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s cubic-bezier(.2,.8,.2,1);
}
.results-image:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.2);
}
.exp-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}
.exp-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  padding: 18px;
  border: 1px solid rgba(15,23,42,0.05);
}
.exp-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.exp-card figcaption {
  margin-top: 10px;
  font-size: 16px;
  color: #1f2937;
  text-align: center;
}
.exp-card-wide img {
  max-height: 420px;
  object-fit: contain;
  background: #fff;
}
.exp-card-half {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-card-half img {
  flex: 1;
  object-fit: contain;
}
.exp-grid {
  grid-template-columns: 1fr;
}
.exp-card-half {
  padding: 18px;
}
.exp-card-half figcaption {
  margin-top: 0;
}
.exp-card-half img {
  max-height: 260px;
}
.exp-card-half figcaption,
.exp-card figcaption {
  font-weight: 500;
}

@media (min-width: 960px) {
  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exp-card-wide {
    grid-column: 1 / -1;
  }
  .exp-card-half {
    padding: 18px;
  }
}

/* ================== 修改2：Method 动画优化 ================== */
.method-intro { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.method-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
}
.method-visual-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.15);
}
.method-visual-note {
  background: rgba(248,250,255,0.95);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
}
.method-visual-note strong { color: #111; }
.method-visual-note em { color: #2563eb; font-style: italic; }
.method-experience { padding: 32px; display: flex; flex-direction: column; gap: 24px; background: rgba(255,255,255,.68); border: 1px solid rgba(var(--ink), .05); }
.method-hint {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.02em;
}
.method-track { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.method-node {
  border: none; background: transparent; color: rgb(var(--ink)); padding: 10px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; cursor: pointer;
  transition: all .3s; opacity: 0.6;
}
.method-node-dot { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; transition: all .3s; }
.method-node:hover { opacity: 1; transform: translateY(-1px); }
.method-node.active { opacity: 1; background: white; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.method-node.active .method-node-dot { background: rgb(var(--teal)); transform: scale(1.2); }

.method-detail {
  background: rgba(255,255,255,.92); border-radius: 12px; padding: 28px;
  min-height: 200px; /* 防止高度跳动 */
}
/* 淡入淡出动画类 */
.method-content { transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateY(5px); }
.method-content.fade-in { opacity: 1; transform: translateY(0); }

.method-detail-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: #6b7280; margin: 0; }
.method-detail h3 { margin: 8px 0; font-size: 28px; }
.method-detail p { margin: 0 0 12px; color: #475569; }
.method-detail ul { margin: 0; padding-left: 20px; color: #1f2937; }

/* ================== 修改3：Anchor Visualization 重构 ================== */
/* 3.1 居中按钮与动画 */
.variant-picker-wrap { display: flex; justify-content: center; margin-bottom: 8px; }
.variant-picker { background: rgba(255,255,255,0.5); padding: 6px; border-radius: 999px; display: inline-flex; gap: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
.chip {
  border: none; padding: 8px 24px; border-radius: 999px; background: transparent;
  cursor: pointer; font-weight: 600; font-size: 16px; color: #64748b;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.chip:hover { color: rgb(var(--ink)); background: rgba(255,255,255,0.5); }
.chip[aria-selected="true"] {
  color: white; background: linear-gradient(135deg, rgb(var(--teal)), rgb(var(--cyan)));
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3); transform: scale(1.05);
}

.anchor-lab { padding: 32px; display: flex; flex-direction: column; gap: 32px; background: rgba(248,250,255,.85); }
.anchor-panels-container { position: relative; min-height: 300px; }

/* 3.2 面板切换动画 */
.vc-panel { display: none; opacity: 0; transition: opacity 0.4s ease; }
.vc-panel.visible { display: block; opacity: 1; animation: fadeInPanel 0.5s ease forwards; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.variant-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.variant-row-split {
  grid-template-columns: 0.5fr 1.5fr;
  gap: 24px;
  align-items: center;
}
.variant-visual { margin: 0; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.variant-image { width: 100%; display: block; height: auto; } /* 防止压扁 */
.variant-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.variant-copy-split { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.qa-block-wide {
  margin-top: 20px;
  width: 100%;
}

/* QA Block Styling (保持原样微调) */
.qa-block { padding: 18px 20px; border-radius: 12px; background: #ffffff; border: 1px solid rgba(0,0,0,0.05); margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.qa-label { font-size: 16px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.qa-label-question { color: #2563eb; }
.qa-label-answer { color: #ea580c; }
.tag, .token { display: inline-block; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 15px; margin: 0 2px; }
.tag-think { background: #fef9c3; color: #854d0e; }
.tag-answer { background: #dcfce7; color: #166534; }
.token { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.tag-visual-token { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.token-clickable {
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: tokenPulse 4s ease-in-out infinite;
}
.token-clickable:hover,
.token-clickable:focus-visible {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.2), 0 6px 16px rgba(15,23,42,0.15);
  outline: none;
}
.token-clickable::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  border: 1px solid rgba(20,184,166,0);
  transition: border-color 0.3s ease;
  pointer-events: none;
}
.token-clickable:hover::after,
.token-clickable:focus-visible::after {
  border-color: rgba(20,184,166,0.35);
}

@keyframes tokenPulse {
  0% { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
  50% { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 0 10px rgb(120, 219, 255, 0.8); }
  100% { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
}

.token-popover {
  position: fixed;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.token-popover.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.2s ease;
}
.token-popover-inner {
  width: min(260px, calc(100vw - 48px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  padding: 12px;
  border: 1px solid rgba(15,23,42,0.08);
}
.token-popover-inner img {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.token-popover-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(15,23,42,0.08);
  border-top: 1px solid rgba(15,23,42,0.08);
  transform: rotate(45deg);
  box-shadow: 0 10px 25px rgba(15,23,42,0.15);
}
.token-popover.above .token-popover-arrow {
  bottom: -7px;
  left: calc(50% - 7px);
}
.token-popover.below .token-popover-arrow {
  top: -7px;
  left: calc(50% - 7px);
  transform: rotate(45deg);
}
.token-popover.below .token-popover-inner {
  margin-top: 16px;
}
.token-popover.above .token-popover-inner {
  margin-bottom: 16px;
}

/* 3.3 全新设计的 Slider (无 input) */
.anchor-playground { padding: 24px; background: white; border-radius: 12px; }
.anchor-playground-head { text-align: center; margin-bottom: 24px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.compare-grid[data-mode="dual"] [data-slot="tertiary"] { display: none; }
.compare-grid[data-mode="triple"] {
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 20px;
}
.compare-grid[data-mode="triple"] [data-slot="tertiary"] { display: block; }
.compare-grid[data-mode="triple"] .compare-container {
  max-width: 280px;
  margin: 0 auto;
}
.compare-wrap { position: relative; }

.compare-container {
  position: relative;
  width: 100%;
  /* 关键：移除固定 aspect-ratio，防止压扁 */
  /* 使用 padding-bottom 或让图片撑开，这里选择让图片撑开 */
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  user-select: none;
  touch-action: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.compare-container img {
  display: block; width: 100%; height: auto; /* 保持原图比例 */
  max-height: 400px; object-fit: cover; /* 如果需要限制高度 */
  pointer-events: none;
}

.img-back { width: 100%; }
.img-front-wrapper {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  /* 默认裁剪一半，后续 JS 控制 */
  clip-path: inset(0 50% 0 0);
  will-change: clip-path; /* 性能优化 */
}
.img-front { width: 100%; height: 100%; object-fit: cover; }

/* 标签 Badge */
.label-badge {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: white; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); pointer-events: none;
  z-index: 2;
}
.label-badge.original { left: auto; right: 12px; }
.label-badge.edited { left: 12px; right: auto; } /* 注意：这个在 wrapper 里，实际上是相对于 wrapper 定位 */

/* 拖动手柄 Handle */
.handle {
  position: absolute; top: 0; bottom: 0; left: 50%; /* JS 会更新这个 left */
  width: 4px; pointer-events: auto; z-index: 10;
  will-change: left;
  cursor: ew-resize;
}
.handle-line {
  position: absolute; left: -1px; width: 2px; height: 100%;
  background: white; box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.handle-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: white; color: rgb(var(--teal));
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
}
.handle-circle svg { width: 20px; height: 20px; }

/* ================== 修改4：More Results 优化 ================== */
.results-module { padding: 32px 64px 48px; position: relative; }
.results-stage {
  overflow: hidden;
  padding: 20px 0;
  perspective: 1000px; /* 增加一点透视感 */
  min-height: 280px;
  display: flex;
  align-items: center;
}
.results-module::before {
  content: '';
  position: absolute;
  top: 120px; /* anchor position for nav buttons */
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
}
.results-track {
  display: flex;
  align-items: center;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
  position: relative;
}

.result-card {
  flex: 0 0 240px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.45;
  filter: grayscale(60%);
  transform: scale(var(--scale, 0.85));
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.result-card img { width: 100%; height: 100%; object-fit: cover; }

/* 中间高亮状态 */
.result-card.active {
  --scale: 1.05;
  opacity: 1;
  filter: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  z-index: 10;
  border: 2px solid rgba(255,255,255,0.8);
}

.results-nav {
  position: absolute;
  top: 140px;
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  cursor: pointer; z-index: 20; transition: all 0.2s; font-size: 24px;
}
.results-nav:hover { transform: scale(1.1); background: rgb(var(--teal)); color: white; }
.results-nav.prev { left: 20px; }
.results-nav.next { right: 20px; }

.results-caption {
  margin-top: 32px;
  border: none;
  background: rgba(255,255,255,0.92);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.qa-block.compact {
  margin: 0;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.qa-block.compact .qa-text { margin: 0; font-size: 18px; }
.qa-block.compact code { font-size: 14px; }

.footer {
  text-align: center;
  padding-bottom: 40px;
}
.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-icon img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.footer-icon svg {
  width: 20px;
  height: 20px;
  fill: rgba(15,23,42,0.6);
}
.footer-icon:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.12);
}

/* 响应式调整 */
@media (max-width: 960px) {
  .container,
  .main-shell {
    max-width: 100%;
    width: 100%;
    padding: 0 16px;
  }
  .section,
  .hero {
    padding: 72px 0;
  }
  .section.narrow { max-width: 100%; }
  .hero-inner { max-width: 100%; }
  .teaser-image { width: 100%; }
  .author-block { font-size: 16px; }
  .variant-picker { flex-wrap: wrap; row-gap: 8px; }
  .anchor-lab,
  .single-lab { padding: 24px; }
  .variant-row { grid-template-columns: 1fr; }
  .variant-row-split { grid-template-columns: 1fr; }
  .variant-copy,
  .variant-copy-split { text-align: left; }
  .qa-block-wide { margin-top: 16px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid[data-mode="triple"] {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
  }
  .compare-grid[data-mode="triple"] .compare-container {
    max-width: 100%;
  }
  .single-grid { grid-template-columns: 1fr; }
  .single-qa { grid-template-columns: 1fr; }
  .results-module { padding: 24px 16px 72px; }
  .results-stage { min-height: 220px; }
  .results-nav {
    top: auto;
    bottom: 16px;
  }
  .results-nav.prev { left: calc(50% - 80px); }
  .results-nav.next { right: calc(50% - 80px); }
  .results-caption { grid-template-columns: 1fr; }
  .result-card.active { flex: 0 0 220px; height: 180px; }
}

@media (max-width: 600px) {
  .title { font-size: 30px; }
  .cta { flex-direction: column; align-items: stretch; }
  .variant-picker { width: 100%; justify-content: center; }
  .chip { flex: 1 1 calc(50% - 8px); text-align: center; }
  .label-badge { font-size: 11px; }
  .compare-container img { max-height: 320px; }
  .results-nav {
    width: 44px;
    height: 44px;
  }
  .variant-copy { text-align: center; }
  .anchor-playground,
  .single-lab,
  .results-module { padding: 20px; }
}