/*
 * AI for Kids · 课程页共用设计系统
 *
 * 用法：
 *   <link rel="stylesheet" href="/lesson/lesson.css" />
 *   <body class="theme-play" data-lesson-id="douyin-attention">
 *   页面只需在 <style> 里覆盖 --l-accent / --l-accent-2 等主题变量。
 *
 * 两套外观：
 *   .theme-play   圆润活泼，用于「商业模式」系列
 *   .theme-paper  报刊克制，用于「社会议题 / 思维工具」系列
 */

:root {
  color-scheme: light;

  --l-max: 1120px;
  --l-radius: 10px;
  --l-radius-lg: 18px;

  --l-accent: #3867ff;
  --l-accent-2: #ffd358;
  --l-accent-deep: color-mix(in srgb, var(--l-accent) 78%, #10182c);
  --l-accent-tint: color-mix(in srgb, var(--l-accent) 12%, white);
  --l-accent-wash: color-mix(in srgb, var(--l-accent) 6%, white);

  --l-ink: #162032;
  --l-text: #405168;
  --l-muted: #6a7688;
  --l-line: rgba(22, 32, 50, 0.12);
  --l-paper: #ffffff;
  --l-bg: #f7f9fc;

  --l-shadow: 0 14px 38px color-mix(in srgb, var(--l-accent) 12%, transparent);
  --l-shadow-sm: 0 6px 18px color-mix(in srgb, var(--l-accent) 9%, transparent);

  --l-font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --l-font-head: var(--l-font-body);
  --l-weight-head: 800;
  --l-lh: 1.7;

  --l-gap: 18px;
  --l-section-y: 84px;
}

/* ── 主题：商业模式（圆润） ─────────────────────────────── */
.theme-play {
  --l-font-head: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
  --l-font-body: var(--l-font-head);
  --l-weight-head: 900;
  --l-radius: 10px;
  --l-radius-lg: 18px;
  --l-lh: 1.6;
  --l-line: rgba(22, 32, 50, 0.12);
}

.theme-play body,
body.theme-play {
  background:
    radial-gradient(circle at 10% 4%, color-mix(in srgb, var(--l-accent) 16%, transparent), transparent 30rem),
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--l-accent-2) 30%, transparent), transparent 26rem),
    linear-gradient(180deg, var(--l-accent-wash) 0%, #ffffff 46%, var(--l-accent-wash) 100%);
  background-attachment: fixed;
}

/* ── 主题：社会议题 / 思维工具（报刊） ─────────────────────── */
.theme-paper {
  --l-ink: #17202c;
  --l-text: #45505f;
  --l-muted: #78838f;
  --l-line: #dbe1e6;
  --l-bg: #f4f6f5;
  --l-radius: 14px;
  --l-radius-lg: 18px;
  --l-lh: 1.76;
  --l-weight-head: 800;
  --l-shadow: 0 18px 50px rgba(36, 52, 66, 0.09);
  --l-shadow-sm: 0 8px 24px rgba(36, 52, 66, 0.07);
}

body.theme-paper {
  background: var(--l-bg);
}

/* ── 基础 ──────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--l-ink);
  font-family: var(--l-font-body);
  line-height: var(--l-lh);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--l-font-head);
  font-weight: var(--l-weight-head);
  letter-spacing: 0;
}

p {
  color: var(--l-text);
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--l-accent) 55%, transparent);
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: color-mix(in srgb, var(--l-accent) 22%, transparent);
}

/* ── 进度条 ────────────────────────────────────────────── */
.l-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 5px;
  background: color-mix(in srgb, var(--l-accent) 14%, transparent);
}

.l-progress__fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--l-accent), var(--l-accent-2));
  transition: width 0.1s linear;
}

/* ── 顶栏 ──────────────────────────────────────────────── */
.l-topbar {
  position: sticky;
  top: 5px;
  z-index: 30;
}

.theme-play .l-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(var(--l-max), calc(100% - 28px));
  margin: 14px auto 0;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--l-accent) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--l-shadow-sm);
  backdrop-filter: blur(14px);
}

.theme-paper .l-topbar {
  top: 0;
  border-bottom: 1px solid var(--l-line);
  background: color-mix(in srgb, var(--l-bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.theme-paper .l-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--l-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 11px 0;
}

.l-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--l-accent-deep);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.theme-paper .l-brand {
  color: var(--l-ink);
}

.theme-paper .l-brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--l-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--l-accent) 14%, transparent);
}

.l-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--l-accent) 12%, white);
  color: var(--l-accent-deep);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.l-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.l-nav::-webkit-scrollbar {
  display: none;
}

.l-nav a {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--l-muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.l-nav a:hover {
  background: white;
  color: var(--l-ink);
}

/* ── 布局 ──────────────────────────────────────────────── */
.l-wrap {
  width: min(var(--l-max), calc(100% - 32px));
  margin: 0 auto;
}

.l-section {
  padding: var(--l-section-y) 0;
}

.l-band {
  border-top: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
  background: rgba(255, 255, 255, 0.6);
}

.theme-play .l-band {
  border: 0;
  background: rgba(255, 255, 255, 0.5);
}

/* ── Hero ──────────────────────────────────────────────── */
.l-hero {
  padding: 76px 0 56px;
}

.theme-play .l-hero {
  padding: 88px 0 62px;
}

.l-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--l-accent) 22%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--l-accent-deep);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.theme-paper .l-eyebrow {
  padding: 0;
  border: 0;
  background: none;
  color: var(--l-accent);
  font-size: 12px;
  letter-spacing: 0.07em;
}

.theme-paper .l-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.l-hero h1 {
  max-width: 15em;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.1;
}

.theme-play .l-hero h1 {
  line-height: 1.02;
}

.l-hero__lede {
  max-width: 44em;
  margin-top: 20px;
  color: var(--l-text);
  font-size: clamp(16px, 1.7vw, 19px);
}

.l-hero__question {
  max-width: 880px;
  margin-top: 30px;
  padding: 24px 26px;
  border-left: 7px solid var(--l-accent);
  border-radius: var(--l-radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--l-shadow);
}

.l-hero__question strong {
  display: block;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: var(--l-weight-head);
  line-height: 1.5;
}

.l-hero__question span {
  display: block;
  margin-top: 9px;
  color: var(--l-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── 章节标题 ──────────────────────────────────────────── */
.l-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(260px, 0.44fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.l-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--l-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.l-section-head h2 {
  max-width: 15em;
  font-size: clamp(25px, 3.3vw, 42px);
  line-height: 1.18;
}

.l-section-note {
  color: var(--l-muted);
  font-size: 15px;
  line-height: 1.65;
}

.l-lead {
  max-width: 46em;
  margin-bottom: 22px;
  font-size: 17px;
}

/* ── 卡片与网格 ────────────────────────────────────────── */
.l-grid {
  display: grid;
  gap: var(--l-gap);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

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

.l-card > strong,
.l-card > h3 {
  display: block;
  font-family: var(--l-font-head);
  font-size: 18px;
  font-weight: var(--l-weight-head);
  line-height: 1.35;
}

.l-card > span,
.l-card > p {
  display: block;
  margin-top: 9px;
  color: var(--l-muted);
  font-size: 15px;
  line-height: 1.6;
}

.l-card small {
  display: block;
  margin-top: 10px;
  color: var(--l-muted);
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.85;
}

.l-card--accent {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--l-accent) 11%, transparent), transparent 62%),
    var(--l-paper);
}

.l-card--warm {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--l-accent-2) 30%, transparent), transparent 62%),
    var(--l-paper);
}

.l-num {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--l-accent) 13%, white);
  color: var(--l-accent-deep);
  font-family: var(--l-font-head);
  font-size: 15px;
  font-weight: 900;
}

/* 大数字统计卡 */
.l-stat b {
  display: block;
  color: var(--l-accent-deep);
  font-family: var(--l-font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.l-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
}

/* ── 面板 / 高亮块 ─────────────────────────────────────── */
.l-panel {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-lg);
  background: var(--l-paper);
  box-shadow: var(--l-shadow);
}

.l-callout {
  padding: 22px 24px;
  border-left: 6px solid var(--l-accent);
  border-radius: var(--l-radius);
  background: color-mix(in srgb, var(--l-accent) 7%, white);
}

.l-callout strong {
  display: block;
  font-family: var(--l-font-head);
  font-size: 18px;
  font-weight: var(--l-weight-head);
  line-height: 1.45;
}

.l-callout p {
  margin-top: 8px;
  font-size: 15px;
}

.l-punch {
  margin: 26px 0;
  padding: clamp(24px, 3.6vw, 40px);
  border-radius: var(--l-radius-lg);
  background: linear-gradient(135deg, var(--l-accent-deep), var(--l-accent));
  color: white;
  text-align: center;
}

.l-punch strong {
  display: block;
  font-family: var(--l-font-head);
  font-size: clamp(20px, 2.8vw, 31px);
  font-weight: 900;
  line-height: 1.35;
}

.l-punch span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

/* ── 对照两列 ──────────────────────────────────────────── */
.l-versus {
  display: grid;
  gap: var(--l-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 正反方三列（问题 | 一方 | 另一方） */
.l-debate {
  display: grid;
  gap: 14px;
}

.l-debate__row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-lg);
  background: var(--l-paper);
}

.l-debate__q {
  font-family: var(--l-font-head);
  font-size: 17px;
  font-weight: var(--l-weight-head);
  line-height: 1.4;
}

.l-debate__side small {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.l-debate__side p {
  font-size: 14.5px;
  line-height: 1.62;
}

.l-debate__side--a small {
  background: color-mix(in srgb, var(--l-accent) 14%, white);
  color: var(--l-accent-deep);
}

.l-debate__side--b small {
  background: color-mix(in srgb, var(--l-accent-2) 34%, white);
  color: #6b4a05;
}

/* ── 时间线 ────────────────────────────────────────────── */
.l-timeline {
  display: grid;
  gap: 14px;
}

.l-tl {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-lg);
  background: var(--l-paper);
}

.l-tl__year {
  color: var(--l-accent-deep);
  font-family: var(--l-font-head);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.1;
}

.l-tl__body strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--l-font-head);
  font-size: 17px;
  font-weight: var(--l-weight-head);
  line-height: 1.4;
}

.l-tl__body p {
  font-size: 15px;
}

/* ── 流程步骤 ──────────────────────────────────────────── */
.l-flow {
  display: grid;
  gap: 12px;
}

.l-flow__step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius);
  background: var(--l-paper);
}

.l-flow__step > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--l-accent);
  color: white;
  font-family: var(--l-font-head);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.l-flow__step strong {
  display: block;
  font-family: var(--l-font-head);
  font-size: 16.5px;
  font-weight: var(--l-weight-head);
}

.l-flow__step p {
  margin-top: 5px;
  font-size: 14.5px;
}

/* ── 标签条 ────────────────────────────────────────────── */
.l-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.l-chip {
  padding: 9px 14px;
  border: 1px solid var(--l-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 750;
}

/* ── 互动实验室 ────────────────────────────────────────── */
.l-lab {
  margin: 24px 0;
  border: 1px solid color-mix(in srgb, var(--l-accent) 26%, transparent);
  border-radius: var(--l-radius-lg);
  background: var(--l-paper);
  box-shadow: var(--l-shadow);
  overflow: hidden;
}

.l-lab__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--l-accent-deep), var(--l-accent));
  color: white;
}

.l-lab__head strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--l-font-head);
  font-size: 17px;
  font-weight: 900;
}

.l-lab__head strong::before {
  content: "动手";
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.l-lab__head span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
}

.l-lab__body {
  padding: clamp(18px, 2.6vw, 26px);
}

.l-lab__foot {
  padding: 14px 22px;
  border-top: 1px dashed var(--l-line);
  background: color-mix(in srgb, var(--l-accent) 5%, white);
  color: var(--l-text);
  font-size: 14.5px;
  line-height: 1.6;
}

.l-lab__foot strong {
  color: var(--l-accent-deep);
}

/* 控件 */
.l-btn {
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--l-accent);
  color: white;
  font-family: var(--l-font-head);
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.l-btn:hover {
  filter: brightness(1.07);
}

.l-btn:active {
  transform: scale(0.97);
}

.l-btn--ghost {
  border-color: var(--l-line);
  background: white;
  color: var(--l-text);
}

.l-btn--sm {
  padding: 7px 14px;
  font-size: 13.5px;
}

.l-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.l-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--l-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--l-accent) 6%, white);
}

.l-toggle button {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 14px;
  font-weight: 800;
  color: var(--l-muted);
  cursor: pointer;
}

.l-toggle button[aria-pressed="true"] {
  background: var(--l-accent);
  color: white;
}

.l-range {
  display: grid;
  gap: 8px;
}

.l-range label {
  color: var(--l-muted);
  font-size: 13.5px;
  font-weight: 750;
}

input[type="range"] {
  width: 100%;
  height: 26px;
  margin: 0;
  accent-color: var(--l-accent);
  cursor: pointer;
}

.l-readout {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.l-readout div {
  padding: 14px 16px;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius);
  background: color-mix(in srgb, var(--l-accent) 5%, white);
}

.l-readout b {
  display: block;
  color: var(--l-accent-deep);
  font-family: var(--l-font-head);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.l-readout span {
  display: block;
  margin-top: 5px;
  color: var(--l-muted);
  font-size: 13px;
}

/* 条形图（通用） */
.l-bars {
  display: grid;
  gap: 10px;
}

.l-bar {
  display: grid;
  grid-template-columns: minmax(72px, 108px) minmax(0, 1fr) minmax(48px, auto);
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.l-bar__track {
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--l-accent) 10%, white);
  overflow: hidden;
}

.l-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--l-accent), var(--l-accent-2));
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.l-bar__val {
  color: var(--l-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* 堆叠条（钱去哪了） */
.l-stack {
  display: flex;
  width: 100%;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--l-line);
}

.l-stack__seg {
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: flex-grow 0.4s ease;
  cursor: pointer;
}

/* ── 结语 / 来源 ───────────────────────────────────────── */
.l-closing {
  padding: clamp(26px, 3.6vw, 42px);
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-lg);
  background: var(--l-paper);
  box-shadow: var(--l-shadow);
}

.l-closing h2 {
  max-width: 18em;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.25;
}

.l-closing p {
  max-width: 52em;
  margin-bottom: 12px;
  font-size: 16px;
}

.l-oneline {
  margin-top: 22px;
  padding: 18px 22px;
  border-left: 6px solid var(--l-accent);
  border-radius: var(--l-radius);
  background: color-mix(in srgb, var(--l-accent) 8%, white);
  font-family: var(--l-font-head);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: var(--l-weight-head);
  line-height: 1.5;
}

.l-sources {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--l-line);
  color: var(--l-muted);
  font-size: 13px;
  line-height: 1.75;
}

.l-sources strong {
  display: block;
  margin-bottom: 8px;
  color: var(--l-text);
  font-size: 13px;
}

.l-sources a {
  color: var(--l-muted);
}

.l-note {
  margin-top: 16px;
  color: var(--l-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ── 底部课程导航（由 lesson.js 渲染） ───────────────────── */
.l-more {
  padding: 52px 0 72px;
}

.l-more__title {
  margin-bottom: 16px;
  color: var(--l-muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.l-more__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}

.l-more__card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--l-line);
  border-left: 5px solid var(--card-accent, var(--l-accent));
  border-radius: var(--l-radius);
  background: var(--l-paper);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.l-more__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--l-shadow-sm);
}

.l-more__card b {
  font-family: var(--l-font-head);
  font-size: 16px;
  font-weight: var(--l-weight-head);
}

.l-more__card span {
  color: var(--l-muted);
  font-size: 13px;
}

/* ── 滚动动画 ──────────────────────────────────────────── */
.l-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ── 响应式 ────────────────────────────────────────────── */
@media (max-width: 940px) {
  :root {
    --l-section-y: 62px;
  }

  .l-grid {
    grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr));
  }

  .l-section-head,
  .l-debate__row,
  .l-tl {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .l-tl__year {
    margin-bottom: -6px;
  }
}

@media (max-width: 640px) {
  :root {
    --l-section-y: 48px;
    --l-gap: 14px;
  }

  .theme-play .l-topbar {
    width: min(100% - 20px, var(--l-max));
    border-radius: 16px;
  }

  .l-wrap {
    width: min(100% - 22px, var(--l-max));
  }

  .l-hero {
    padding-top: 42px;
  }

  .l-grid,
  .l-versus {
    grid-template-columns: 1fr;
  }

  .l-card {
    padding: 18px;
  }

  .l-badge {
    display: none;
  }

  .l-flow__step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .l-stack {
    height: 44px;
  }

  .l-stack__seg {
    font-size: 11px;
  }
}

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