/**
 * MAKE FUN · 全站共享样式（卡通风格版）
 * 职责：糖果色设计令牌、明亮/夜间双主题、页面骨架（Header/Hero/卡片/Footer）、
 *      广告位与打赏弹窗的通用外观、响应式与无障碍动效降级。
 * 设计语言：奶油底色 + 糖果强调色 + 深紫棕粗描边 + 大圆角 + 实心偏移阴影（贴纸/波普风）。
 * 契约说明：所有 class / id / data-* 选择器保持不变；仅改写视觉属性并新增装饰性伪元素。
 * 零外部资源依赖，file:// 双击可用。
 */

/* ========== 设计令牌：默认明亮卡通主题 ========== */
:root {
  color-scheme: light;

  /* 底色 */
  --bg-base: #FFF8EE;          /* 奶油白 */
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFF0D9;      /* 浅焦糖 */
  --bg-soft: #FFF3E6;

  /* 卡通描边（替代纯黑的深紫棕） */
  --ink: #3A2E5D;
  --ink-soft: #6E5F8E;
  --border-subtle: #EADFCB;
  --border-strong: var(--ink);
  --dot-color: rgba(138, 107, 255, .13);
  --bubble-bg: rgba(255, 255, 255, .68);

  /* 糖果强调色 */
  --accent-orange: #FF8A3D;
  --accent-pink: #FF5C8A;
  --accent-yellow: #FFC93C;
  --accent-teal: #2EC4B6;
  --accent-purple: #8A6BFF;
  /* 兼容旧令牌名，保证任何遗留引用都不会落空 */
  --accent-cyan: var(--accent-teal);
  --accent-indigo: var(--accent-purple);

  --brand-gradient: linear-gradient(135deg, #FFC93C, #FF8A3D);
  --brand-gradient-alt: linear-gradient(135deg, #FF8A3D, #FF5C8A);
  --candy-gradient: linear-gradient(135deg, #FF8A3D, #FF5C8A, #8A6BFF);

  /* 文字 */
  --text-primary: #3A2E5D;
  --text-muted: #7B6C97;

  /* 实心偏移阴影（贴纸风） */
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-card: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);

  /* 圆润字体：中文用圆润黑体，英文点缀回退 Comic Sans */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Comic Sans MS", "Helvetica Neue", Arial, sans-serif;
  /* 等宽字体仅用于金额 / 编号等数字 */
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", "JetBrains Mono", monospace;

  --radius: 24px;
  --radius-sm: 14px;
  --duration: .22s;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* 显式浅色分支：值继承自 :root，此处仅固定 color-scheme */
html[data-theme="light"] {
  color-scheme: light;
}

/* ========== 卡通夜间主题：深紫夜空 + 星星点缀 + 同样的糖果色 ========== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #2B2444;
  --bg-surface: #3B3159;
  --bg-elevated: #473B68;
  --bg-soft: #362D53;
  --ink: #17112B;
  --ink-soft: #241B3D;
  --border-subtle: rgba(255, 246, 232, .16);
  --border-strong: rgba(255, 246, 232, .34);
  --dot-color: rgba(255, 233, 160, .22);
  --bubble-bg: rgba(255, 246, 232, .10);
  --text-primary: #FFF6E8;
  --text-muted: #C6B8E4;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-card: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
}

/* ========== 基础 ========== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration) ease, color var(--duration) ease;
}

/* 纯 CSS 波点底纹 + 彩色糖霜光晕，替代原来的科技网格与霓虹辉光 */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background-image: radial-gradient(var(--dot-color) 2px, transparent 2.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}
body::after {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 201, 60, .26), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(255, 92, 138, .18), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(46, 196, 182, .16), transparent 46%);
}

/* 夜间：波点切换为闪烁星星（多层径向渐变模拟星空） */
html[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle, rgba(255, 246, 232, .85) 1.4px, transparent 1.9px),
    radial-gradient(circle, rgba(255, 201, 60, .75) 1.6px, transparent 2.1px),
    radial-gradient(circle, rgba(255, 255, 255, .55) 1px, transparent 1.6px);
  background-size: 132px 118px, 187px 163px, 79px 91px;
  background-position: 12px 18px, 64px 40px, 30px 72px;
  -webkit-mask-image: none;
  mask-image: none;
}
html[data-theme="dark"] body::after {
  background:
    radial-gradient(circle at 12% 8%, rgba(138, 107, 255, .28), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(255, 92, 138, .18), transparent 32%);
}

.page-shell { position: relative; z-index: 1; }
.container { width: min(100% - 48px, 1280px); margin-inline: auto; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-pink);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ========== Header：贴纸导航栏 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ink);
  background: var(--bg-base); /* 不支持 color-mix 时的回退 */
  background: color-mix(in srgb, var(--bg-base) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  background: var(--brand-gradient-alt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 var(--ink));
  white-space: nowrap;
}
.brand span { opacity: .9; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link {
  padding: 8px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--duration) var(--bounce), background-color var(--duration) ease, color var(--duration) ease;
}
.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text-primary);
  border-color: var(--ink);
  background: var(--accent-yellow);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--bounce), box-shadow var(--duration) ease, background-color var(--duration) ease;
}
.icon-btn:hover { transform: translate(-2px, -2px) rotate(-6deg); box-shadow: 5px 5px 0 var(--ink); background: var(--accent-yellow); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.nav-toggle { display: none; }

/* ========== Hero：糖果盒 / 游乐场氛围 ========== */
.hero { position: relative; padding: 88px 0 56px; text-align: center; overflow: hidden; }
.hero--compact { padding: 72px 0 28px; }
.hero__inner { position: relative; }

/* 手绘感装饰 emoji（纯装饰，不参与交互） */
.hero__inner::before,
.hero__inner::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  animation: floaty 3.6s ease-in-out infinite;
}
.hero__inner::before { content: "⭐"; top: -6px; left: 1%; transform: rotate(-14deg); }
.hero__inner::after { content: "🍬"; top: 14px; right: 2%; animation-delay: .9s; }

.hero__eyebrow,
.section__kicker {
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .13em;
  color: var(--accent-orange);
  font-weight: 800;
}
.hero__eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 0 auto 38px;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-pink); box-shadow: 0 0 0 3px rgba(255, 92, 138, .22); }

.hero__title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(3.2rem, 10vw, 6.6rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--accent-yellow);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
}
/* 标题背后的彩色气泡贴纸 */
.hero__title::before {
  content: "";
  position: absolute;
  inset: -18px -34px;
  z-index: -1;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bubble-bg);
  box-shadow: 5px 5px 0 rgba(58, 46, 93, .20);
  transform: rotate(-1.5deg);
}
html[data-theme="dark"] .hero__title { color: var(--accent-pink); }
.hero__title--small { font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: 0; }

.hero__subtitle { margin: 24px 0 8px; font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 800; }
.hero__lead { margin: 0 auto; max-width: 640px; color: var(--text-muted); font-weight: 500; }
.hero__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__chip {
  padding: 7px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent-teal);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.hero__chip--ghost { background: var(--bg-surface); color: var(--text-muted); box-shadow: 3px 3px 0 var(--border-subtle); }
.hero__scroll {
  display: inline-block;
  margin-top: 44px;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--duration) ease;
}
.hero__scroll:hover { color: var(--accent-pink); }
.hero__scroll span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-9px) rotate(8deg); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ========== 区块与贴纸卡片 ========== */
.section { padding: 44px 0 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section__title {
  position: relative;
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -.01em;
}
/* 标题下方的糖果小条形码 */
.section__title::after {
  content: "";
  display: block;
  width: 68px;
  height: 9px;
  margin-top: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent-yellow);
}
.section__title--spaced { margin-top: 56px; }
.section__aside { margin: 0; text-align: right; color: var(--text-muted); font-size: .86rem; line-height: 1.6; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.game-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--duration) var(--bounce), box-shadow var(--duration) ease, border-color var(--duration) ease;
}
a.game-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--ink);
}
a.game-card:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.game-card--soon { opacity: .82; filter: saturate(.72); }

.game-card__cover {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
  font-size: 3.8rem;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  /* 保留 games-data.js 提供的 --cover 渐变，叠加糖果色滤镜与波点，秒变卡通封面 */
  background-color: var(--bg-elevated);
  background-image:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, .55) 0 6px, transparent 7px),
    radial-gradient(circle at 80% 68%, rgba(255, 255, 255, .42) 0 9px, transparent 10px),
    linear-gradient(rgba(255, 248, 238, .30), rgba(255, 248, 238, .30)),
    linear-gradient(135deg, rgba(255, 201, 60, .30), rgba(255, 92, 138, .24), rgba(46, 196, 182, .18)),
    var(--cover, var(--brand-gradient));
}
/* 顶部小胶带贴纸 */
.game-card__cover::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 64px;
  height: 17px;
  transform: translateX(-50%) rotate(-3deg);
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: rgba(255, 201, 60, .88);
}
.game-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 130%, rgba(255, 255, 255, .28), transparent 62%);
  pointer-events: none;
}
/* 封面中央 emoji：白色贴纸徽章 */
.game-card__cover > span[aria-hidden="true"] {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  font-size: 2.7rem;
  line-height: 1;
  transition: transform var(--duration) var(--bounce);
}
a.game-card:hover .game-card__cover > span[aria-hidden="true"] { transform: rotate(-8deg) scale(1.08); }

.game-card__index,
.game-card__status {
  position: absolute;
  top: 14px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}
.game-card__index { left: 14px; }
.game-card__status {
  right: 14px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-surface);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-sans);
}
.game-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.game-card__title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 900; }
.game-card__subtitle { margin: 0 0 10px; color: var(--accent-orange); font-size: .9rem; font-weight: 800; }
.game-card__desc { margin: 0 0 16px; color: var(--text-muted); font-size: .9rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
}
.game-card__footer { margin-top: auto; }
.game-card__footer .btn { width: 100%; }
.games-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  border: 3px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-muted);
  text-align: center;
}

/* ========== 按钮：药丸形 + 按压弹起 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--bounce), box-shadow var(--duration) ease, opacity var(--duration) ease, filter var(--duration) ease;
}
.btn:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn:disabled {
  opacity: .55;
  filter: grayscale(.8);
  cursor: not-allowed;
  box-shadow: 2px 2px 0 var(--border-subtle);
}
.btn--primary { background: var(--brand-gradient); color: var(--ink); }
.btn--ghost { background: var(--bg-surface); color: var(--text-primary); }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1rem; }
.btn--small { min-height: 36px; padding: 5px 14px; font-size: .84rem; }

/* ========== CTA 彩色横幅 / 页脚 ========== */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px 0 80px;
  padding: 34px 38px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(120deg, #FFE9C7, #FFD8E5);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
html[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #5A3F6B, #6B3F6B); }
.cta-band::before {
  content: "🎉";
  position: absolute;
  right: 190px;
  top: -10px;
  font-size: 3.2rem;
  opacity: .45;
  transform: rotate(12deg);
  pointer-events: none;
}
.cta-band__title { position: relative; margin: 6px 0 4px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 900; }
.cta-band__text { position: relative; margin: 0; color: var(--text-muted); font-size: .94rem; font-weight: 600; }
.cta-band .btn { position: relative; z-index: 1; flex-shrink: 0; }

.site-footer { border-top: 3px solid var(--ink); padding: 28px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--text-muted); font-size: .86rem; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-links a,
.footer-links button { color: var(--text-muted); text-decoration: none; font-weight: 700; }
.footer-links button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer-links a:hover,
.footer-links button:hover { color: var(--accent-pink); }
.footer-inner > span a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-inner > span a:hover { color: var(--accent-pink); }

/* ========== 正文排版（关于页） ========== */
.prose { max-width: 920px; }
.prose p { color: var(--text-muted); }
.prose code {
  padding: 2px 8px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: .86em;
  font-weight: 700;
}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 26px; }
.feature-card {
  position: relative;
  padding: 26px 24px 24px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--bounce), box-shadow var(--duration) ease;
}
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
/* 三张特性卡各配一个手绘感小图标 */
.feature-card:nth-child(1)::before { content: "🚀"; }
.feature-card:nth-child(2)::before { content: "🎈"; }
.feature-card:nth-child(3)::before { content: "🍬"; }
.feature-card::before {
  position: absolute;
  top: -18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
}
.feature-card__no {
  display: inline-block;
  padding: 2px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent-purple);
  color: #fff;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
}
.feature-card h3 { margin: 12px 0 6px; font-size: 1.14rem; font-weight: 900; }
.feature-card p { margin: 0; font-size: .9rem; }

/* ========== 广告位（仅游戏页使用；首页/关于页 0 个） ========== */
.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  margin: 30px 0 0;
  padding: 20px 16px 14px;
  border: 3px dashed var(--ink-soft);
  border-radius: 20px;
  background: var(--bg-soft);
  text-align: center;
}
.ad-slot__label {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 1px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.ad-slot__placeholder { color: var(--text-muted); font-size: .88rem; font-weight: 600; }

/* ========== 通用弹窗（打赏 / 游戏结算复用外观）：卡通贺卡 ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(43, 36, 68, .52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) ease, visibility 0s linear var(--duration);
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--duration) ease, visibility 0s linear 0s;
}
.modal {
  position: relative;
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  overflow-y: auto;
  padding: 34px 32px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--bg-surface);
  box-shadow: 10px 10px 0 var(--ink);
  transform: translateY(14px) scale(.96) rotate(-1deg);
  transition: transform .3s var(--bounce);
}
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1) rotate(0); }
/* 贺卡彩带装饰 */
.modal::before {
  content: "✦ ✧ ★";
  position: absolute;
  top: 12px;
  left: 20px;
  color: var(--accent-yellow);
  font-size: 1.1rem;
  letter-spacing: 8px;
  opacity: .85;
  pointer-events: none;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent-pink);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.modal__close:hover { transform: translate(-1px, -1px); background: var(--accent-orange); }
.modal__close:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.modal__kicker {
  position: relative;
  margin: 0 0 8px;
  color: var(--accent-orange);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.modal__title { position: relative; margin: 0 0 8px; font-size: 1.6rem; font-weight: 900; }
.modal__text { position: relative; margin: 0 0 22px; color: var(--text-muted); }
.qr-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.qr-item { text-align: center; }
.qr-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  padding: 12px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(135deg, #FFE9C7, #FFD8E5);
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 700;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .qr-placeholder { background: linear-gradient(135deg, #5A3F6B, #6B3F6B); }
.qr-item p { margin: 10px 0 0; font-size: .84rem; font-weight: 800; color: var(--text-primary); }
.modal__note { position: relative; margin: 22px 0 0; font-size: .78rem; color: var(--text-muted); text-align: center; }

/* ========== 收藏引导弹窗：快捷键说明（kbd 令牌） ========== */
.bookmark-keys {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 18px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.bookmark-keys p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  color: var(--text-primary);
  font-size: .9rem;
  font-weight: 700;
}
.bookmark-keys strong { color: var(--text-primary); font-weight: 900; }
.bookmark-keys kbd {
  display: inline-block;
  min-width: 30px;
  padding: 3px 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .container { width: min(100% - 32px, 1280px); }
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 16px 18px;
    border-bottom: 3px solid var(--ink);
    background: var(--bg-surface);
    box-shadow: var(--shadow-card);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 12px 16px; text-align: center; }
  .site-nav__link:hover,
  .site-nav__link.is-active { transform: none; }
  .hero { padding: 64px 0 40px; }
  .hero__inner::before, .hero__inner::after { display: none; }
  .section { padding: 32px 0 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section__aside { text-align: left; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 26px 22px; margin-bottom: 56px; }
  .cta-band::before { right: 14px; top: -6px; font-size: 2.4rem; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1280px); }
  .games-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero__lead br { display: none; }
  .hero__title { -webkit-text-stroke-width: 2px; text-shadow: 3px 3px 0 var(--ink); }
  .hero__title::before { inset: -12px -18px; }
  .game-card__cover { height: 148px; }
  .modal { padding: 28px 20px; }
  .qr-grid { gap: 10px; }
  .qr-placeholder { font-size: .7rem; border-width: 2px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ========== 无障碍：尊重减少动效偏好 ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ================================================================
 * 主页专属：独立杂志编辑风（Editorial）
 * ----------------------------------------------------------------
 * 作用域：所有规则均以 body.home-editorial 限定，绝不污染通用卡通风样式。
 * 因此 about.html 与 games/** 保持原有视觉零改动。
 * 功能契约：id / class / data-* 全部沿用，site.js 无需任何改动。
 * 设计语言：暖纸白 + 近黑墨色 + 单一朱砂强调色；衬线标题、细线分隔、
 *           不对称左对齐版式、大量留白；无 emoji、无贴纸、无弹性动效。
 * ================================================================ */

/* ---------- 1. 主页设计令牌（覆盖卡通变量，仅作用于主页） ---------- */
body.home-editorial {
  /* 纸感底色与墨色文字 */
  --bg-base: #F6F3EC;
  --bg-surface: #FBF9F4;
  --bg-elevated: #EEEAE0;
  --bg-soft: #F1EDE3;

  --ink: #1C1B19;
  --ink-soft: #5C5952;
  --border-subtle: #D8D3C8;
  --border-strong: #1C1B19;
  --text-primary: #1C1B19;
  --text-muted: #5C5952;

  /* 单一强调色：朱砂 / 印章红 */
  --accent: #B23A2E;
  --accent-orange: var(--accent);
  --accent-pink: var(--accent);
  --accent-yellow: var(--accent);
  --accent-teal: var(--accent);
  --accent-purple: var(--accent);
  --accent-cyan: var(--accent);
  --accent-indigo: var(--accent);
  --brand-gradient: var(--accent);
  --brand-gradient-alt: var(--accent);
  --candy-gradient: var(--accent);

  /* 去掉贴纸阴影与圆润造型 */
  --shadow-sm: none;
  --shadow-card: none;
  --shadow-lg: none;
  --dot-color: transparent;
  --bubble-bg: transparent;
  --radius: 2px;
  --radius-sm: 2px;
  --duration: .2s;
  --bounce: ease; /* 统一消解通用规则里的弹性曲线 */

  /* 系统字体栈，零网络请求 */
  --font-sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Songti SC", "Noto Serif CJK SC", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] body.home-editorial {
  --bg-base: #16171C;
  --bg-surface: #1D1E24;
  --bg-elevated: #24262E;
  --bg-soft: #202127;
  --ink: #EDE9DF;
  --ink-soft: #B8B3A7;
  --border-subtle: rgba(237, 233, 223, .18);
  --border-strong: rgba(237, 233, 223, .42);
  --text-primary: #F4F1E8;
  --text-muted: #B8B3A7;
  --accent: #D96A5B; /* 同色系提亮，保证深底对比度 */
}

/* 移除全站波点 / 彩色光晕 / 夜间星空，主页只留纯净纸面 */
body.home-editorial::before,
body.home-editorial::after {
  content: none !important;
  display: none !important;
}

body.home-editorial :focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 2. 页头：细底线 + 文字导航 + 低调图标 ---------- */
body.home-editorial .site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(246, 243, 236, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html[data-theme="dark"] body.home-editorial .site-header {
  background: rgba(22, 23, 28, .92);
}
body.home-editorial .header-inner { min-height: 88px; }

body.home-editorial .brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: .06em;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text-primary);
  filter: none;
}
body.home-editorial .brand span {
  font-style: italic;
  color: var(--accent);
  opacity: 1;
}

body.home-editorial .site-nav { gap: 26px; }
body.home-editorial .site-nav__link {
  position: relative;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color var(--duration) ease;
}
body.home-editorial .site-nav__link:hover,
body.home-editorial .site-nav__link.is-active {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
  transform: none;
}
body.home-editorial .site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
}

body.home-editorial .header-actions { gap: 8px; }
body.home-editorial .icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 400;
  transition: color var(--duration) ease, border-color var(--duration) ease;
}
body.home-editorial .icon-btn:hover {
  border-color: var(--accent);
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  transform: none;
}
body.home-editorial .icon-btn:active {
  box-shadow: none;
  transform: none;
}

/* ---------- 3. Hero：杂志封面式左对齐版式 ---------- */
body.home-editorial .hero {
  padding: clamp(72px, 9vw, 132px) 0 0;
  text-align: left;
  overflow: visible;
}
body.home-editorial .hero__inner {
  position: relative;
  padding-bottom: clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--border-subtle);
}
/* 去掉 ⭐ / 🍬 漂浮伪元素 */
body.home-editorial .hero__inner::before,
body.home-editorial .hero__inner::after {
  content: none !important;
  display: none !important;
}

body.home-editorial .hero__folio {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  margin-bottom: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--ink);
}
body.home-editorial .hero__eyebrow {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
}
body.home-editorial .hero__dateline {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.9;
  text-align: right;
}

body.home-editorial .hero__title {
  display: block;
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 10.5vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
body.home-editorial .hero__title::before {
  content: none !important;
  display: none !important;
}
html[data-theme="dark"] body.home-editorial .hero__title { color: var(--text-primary); }

body.home-editorial .hero__subtitle {
  margin: clamp(24px, 4vw, 42px) 0 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.5;
}
body.home-editorial .hero__lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
}
body.home-editorial .hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 34px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .04em;
}
body.home-editorial .hero__meta span { display: inline-flex; align-items: center; }
body.home-editorial .hero__meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 16px;
  background: var(--border-subtle);
}
body.home-editorial .hero__scroll {
  display: inline-block;
  margin-top: 56px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 400;
  text-decoration: none;
  transition: color var(--duration) ease, border-color var(--duration) ease;
}
body.home-editorial .hero__scroll:hover {
  border-color: var(--accent);
  color: var(--accent);
}
body.home-editorial .hero__scroll span {
  margin-left: 6px;
  animation: none;
}

/* ---------- 4. 栏目区：眉题 + 衬线标题 + 编辑说明 ---------- */
body.home-editorial .section { padding: clamp(72px, 8vw, 110px) 0; }
body.home-editorial .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
  gap: 40px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}
body.home-editorial .section__kicker {
  display: block;
  width: auto;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
}
body.home-editorial .section__title {
  margin: 0;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}
body.home-editorial .section__title::after {
  content: none !important;
  display: none !important;
}
body.home-editorial .section__aside {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.9;
  text-align: right;
}

/* ---------- 5. 游戏条目：纸白面 + 细线 + 微圆角，无贴纸阴影 ---------- */
body.home-editorial .games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
body.home-editorial .game-card {
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: var(--bg-surface);
  box-shadow: none;
  overflow: hidden;
  transition: border-color var(--duration) ease, transform var(--duration) ease;
}
body.home-editorial a.game-card:hover {
  border-color: var(--accent);
  box-shadow: none;
  transform: translateY(-2px);
}
body.home-editorial a.game-card:active {
  box-shadow: none;
  transform: none;
}
body.home-editorial .game-card--soon { opacity: .72; filter: none; }

body.home-editorial .game-card__cover {
  height: 128px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-soft));
}
/* 去掉胶带贴纸与糖霜光晕 */
body.home-editorial .game-card__cover::before,
body.home-editorial .game-card__cover::after {
  content: none !important;
  display: none !important;
}
/* emoji 弱化呈现（保留 DOM 节点，不删除） */
body.home-editorial .game-card__cover > span[aria-hidden="true"] {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  filter: grayscale(.7);
  font-size: 1.5rem;
  line-height: 1;
  opacity: .5;
  transition: none;
}
body.home-editorial a.game-card:hover .game-card__cover > span[aria-hidden="true"] { transform: none; }

body.home-editorial .game-card__index {
  top: 12px;
  left: 14px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .85;
}
body.home-editorial .game-card__status {
  top: 16px;
  right: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 400;
  letter-spacing: .12em;
}

body.home-editorial .game-card__body { padding: 18px 20px 20px; }
body.home-editorial .game-card__title {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
}
body.home-editorial .game-card__subtitle {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .02em;
}
body.home-editorial .game-card__desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .86rem;
  font-weight: 400;
  line-height: 1.75;
}
body.home-editorial .tag-list {
  gap: 0;
  margin-bottom: 20px;
}
body.home-editorial .tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
}
body.home-editorial .tag + .tag::before {
  content: "/";
  margin: 0 8px;
  color: var(--border-subtle);
}
body.home-editorial .game-card__footer { margin-top: auto; }

body.home-editorial .btn {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color var(--duration) ease, color var(--duration) ease, border-color var(--duration) ease;
}
body.home-editorial .btn--primary {
  background: transparent;
  color: var(--accent);
}
body.home-editorial .btn--ghost {
  border-color: var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
}
body.home-editorial .btn--lg {
  min-height: 44px;
  padding: 8px 18px;
  font-size: .86rem;
}
body.home-editorial .btn--small {
  min-height: 34px;
  padding: 5px 12px;
  font-size: .76rem;
}
body.home-editorial .btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  color: #fff;
  transform: none;
}
body.home-editorial .btn:active:not(:disabled) {
  background: var(--accent);
  box-shadow: none;
  transform: none;
}
body.home-editorial .btn:disabled {
  background: transparent;
  box-shadow: none;
  filter: none;
  opacity: .5;
}

body.home-editorial .games-empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  border: 1px dashed var(--border-subtle);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-weight: 400;
  text-align: center;
}

/* ---------- 6. CTA：编辑式引文块，非彩色横幅 ---------- */
body.home-editorial .cta-band {
  display: block;
  margin: 0 0 clamp(88px, 10vw, 130px);
  padding: 8px 0 8px 28px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
html[data-theme="dark"] body.home-editorial .cta-band { background: transparent; }
body.home-editorial .cta-band::before {
  content: none !important;
  display: none !important;
}
body.home-editorial .cta-band__title {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.5;
}
body.home-editorial .cta-band__text {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.9;
}
body.home-editorial .cta-band .btn {
  min-height: 0;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font-size: .86rem;
}
body.home-editorial .cta-band .btn:hover {
  border-color: var(--text-primary);
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
  transform: none;
}

/* ---------- 7. 页脚：细线 + 安静小字 ---------- */
body.home-editorial .site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 44px;
}
body.home-editorial .footer-inner {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 400;
}
body.home-editorial .footer-links { gap: 18px; }
body.home-editorial .footer-links a,
body.home-editorial .footer-links button {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 400;
}
body.home-editorial .footer-links a:hover,
body.home-editorial .footer-links button:hover { color: var(--accent); }
/* site.js 注入的共享页脚文案在主页做纯视觉级替换，不改动 JS 本体 */
body.home-editorial .footer-inner > span:first-child { font-size: 0; }
body.home-editorial .footer-inner > span:first-child::after {
  content: "© 2026 MAKE FUN · 一份持续更新的小实验清单";
  font-size: .78rem;
}
body.home-editorial .footer-links button[data-tip-trigger] { font-size: 0; }
body.home-editorial .footer-links button[data-tip-trigger]::after {
  content: "支持作者";
  font-size: .78rem;
}

/* ---------- 8. 打赏弹窗：主页内沿用编辑风外观（DOM 契约不变） ---------- */
body.home-editorial .modal-backdrop { background: rgba(28, 27, 25, .44); }
body.home-editorial .modal {
  padding: 32px 30px;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--bg-surface);
  box-shadow: none;
  font-family: var(--font-sans);
  transform: translateY(8px);
  transition: transform var(--duration) ease;
}
body.home-editorial .modal-backdrop.is-open .modal {
  transform: none;
}
body.home-editorial .modal::before {
  content: none !important;
  display: none !important;
}
body.home-editorial .modal__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}
body.home-editorial .modal__close:hover {
  border-color: var(--accent);
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  transform: none;
}
body.home-editorial .modal__kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
}
body.home-editorial .modal__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}
body.home-editorial .modal__text,
body.home-editorial .modal__note {
  font-family: var(--font-sans);
  font-weight: 400;
}
/* site.js 注入的共享弹窗文案在主页做纯视觉级替换：DOM / id / data-* 契约不变，
   生成内容参与可访问名称计算，屏幕阅读器读到的仍是等价中文文案。 */
body.home-editorial .modal__kicker { font-size: 0; }
body.home-editorial .modal__kicker::after {
  content: "随记 / 关于支持";
  font-size: .7rem;
}
body.home-editorial .modal__title { font-size: 0; }
body.home-editorial .modal__title::after {
  content: "如果这里让你度过了一段还算愉快的闲工夫。";
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}
body.home-editorial .modal__text { font-size: 0; }
body.home-editorial .modal__text::after {
  content: "它们一直免费，也没有广告。若愿意，可以请作者喝一杯——完全随缘。";
  font-size: .95rem;
}
body.home-editorial .qr-grid .qr-placeholder {
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  background: var(--bg-elevated);
  box-shadow: none;
  color: var(--text-muted);
}
body.home-editorial .qr-grid .qr-item p {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 400;
}

/* ---------- 9. 响应式：桌面双栏 / 移动端优雅单列 ---------- */
@media (max-width: 900px) {
  body.home-editorial .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body.home-editorial .section__aside { text-align: left; }
}

@media (max-width: 768px) {
  body.home-editorial .header-inner { min-height: 72px; }
  body.home-editorial .site-nav {
    top: 72px;
    border: 1px solid var(--border-subtle);
    border-top: 0;
    border-radius: 0;
    background: var(--bg-surface);
    box-shadow: none;
    padding: 8px 0 14px;
  }
  body.home-editorial .site-nav__link {
    padding: 12px 16px;
    text-align: left;
  }
  body.home-editorial .site-nav__link.is-active::after { display: none; }
  body.home-editorial .hero { padding-top: 56px; }
  body.home-editorial .hero__folio { margin-bottom: 56px; }
  body.home-editorial .hero__dateline { font-size: .66rem; }
  body.home-editorial .games-grid { grid-template-columns: 1fr; }
  body.home-editorial .section { padding: 64px 0; }
  body.home-editorial .cta-band { padding-left: 20px; }
  body.home-editorial .modal { padding: 28px 20px; }
}

@media (max-width: 480px) {
  body.home-editorial .hero__title { font-size: clamp(2.8rem, 13vw, 4rem); }
  body.home-editorial .hero__folio {
    flex-direction: column;
    gap: 8px;
  }
  body.home-editorial .hero__dateline { text-align: left; }
  body.home-editorial .hero__lead br { display: none; }
  body.home-editorial .hero__meta span + span::before { margin: 0 10px; }
  body.home-editorial .game-card__cover { height: 110px; }
  body.home-editorial .footer-inner { flex-direction: column; align-items: flex-start; }
}
