/* 打圆卡 · dayuanka.com — 零依赖静态样式 */
:root {
  --bg: #f5f2e9;
  --surface: #fffdf7;
  --surface-2: #efebe0;
  --ink: #1d2b26;
  --muted: #6c7a73;
  --line: #ddd8ca;
  --green: #123b32;
  --green-soft: #e4efe8;
  --gold: #e9b53f;
  --gold-deep: #a8791c;
  --shadow: 0 10px 30px rgba(24, 44, 36, .09);
  --radius: 16px;
}
body[data-theme="dark"] {
  --bg: #101a17;
  --surface: #17241f;
  --surface-2: #1e2e27;
  --ink: #eef3ec;
  --muted: #9cb0a6;
  --line: #2d4038;
  --green: #8fd4ae;
  --green-soft: #20362c;
  --gold: #f0c45c;
  --gold-deep: #e0aa45;
  --shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(233, 181, 63, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(18, 59, 50, .07), transparent 60%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__coin {
  width: 30px; height: 30px; display: block; flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.16));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 16px; letter-spacing: .04em; }
.brand__text small { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 7px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: .18s; }
.nav a:hover { background: var(--green-soft); color: var(--green); }
.nav a.is-active { background: var(--green); color: #fff; font-weight: 600; }
body[data-theme="dark"] .nav a.is-active { color: #10231c; }
.theme-toggle {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-deep); }

/* 通用组件 */
main { min-height: 62vh; padding-block: 40px 64px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 16px; }
h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 10px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.lead { font-size: 17px; color: var(--muted); max-width: 58ch; }
.section { margin-top: 56px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section__head p { color: var(--muted); margin: 0; }
.card-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600;
  transition: transform .16s, box-shadow .16s, border-color .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn--primary { background: var(--green); color: #fff; border-color: var(--green); }
body[data-theme="dark"] .btn--primary { color: #10231c; }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(18, 59, 50, .25); }
.btn--tiny { padding: 5px 12px; font-size: 12px; }
.btn--ghost { background: transparent; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
  white-space: nowrap;
}
.badge--gold { background: rgba(233, 181, 63, .16); border-color: rgba(233, 181, 63, .5); color: var(--gold-deep); }
.badge--green { background: var(--green-soft); border-color: transparent; color: var(--green); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }

/* 首页 Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 18px 12px; }
.hero__copy .lead { margin-bottom: 24px; }
.hero__stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: 26px; line-height: 1.2; }
.hero__stat span { color: var(--muted); font-size: 12px; }
.hero__art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero__art::before {
  content: ''; position: absolute; width: 330px; height: 330px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 181, 63, .35), transparent 68%); filter: blur(8px);
}
.hero__art .coin { width: min(310px, 74vw); animation: float 6s ease-in-out infinite; }
.hero__label {
  position: absolute; bottom: 6px; right: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: 12px; box-shadow: var(--shadow); color: var(--muted);
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .hero__art .coin { animation: none; } }

.searchbar {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); max-width: 640px; margin-top: 28px;
}
.searchbar input { flex: 1; border: 0; background: transparent; outline: none; min-width: 0; }
.searchbar .btn { flex: 0 0 auto; }
.kbd {
  font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 6px; color: var(--muted); background: var(--surface-2);
}

/* 圆卡面 */
.coin {
  --coin-bg: radial-gradient(circle at 32% 24%, #4a4130, #1b1813 62%);
  --coin-ink: #f6e7b4;
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 25deg, #b8862c, #ffe9a4, #d9a93a, #6f5219, #f7d774, #ffe9a4, #b8862c);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), inset 0 0 0 5px rgba(255,255,255,.22), 0 10px 22px rgba(20, 30, 25, .2);
  overflow: hidden; isolation: isolate;
}
.coin::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  background: var(--coin-bg);
  box-shadow: inset 0 0 0 2px rgba(255, 236, 176, .45), inset 0 0 26px rgba(0,0,0,.6);
}
.coin::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(125deg, transparent 32%, rgba(255,255,255,.42) 46%, transparent 58%);
  mix-blend-mode: screen; pointer-events: none;
}
.coin--hidden   { --coin-bg: radial-gradient(circle at 32% 24%, #7a5a16, #241a08 66%); --coin-ink: #ffe9a4; }
.coin--platinum { --coin-bg: radial-gradient(circle at 32% 24%, #e8f1f5, #7d939f 68%); --coin-ink: #16323f;
  background: conic-gradient(from 25deg, #9fb6c4, #ffffff, #c9d8df, #6d8794, #eef6f9, #9fb6c4); }
.coin--black    { --coin-bg: radial-gradient(circle at 32% 24%, #4a4130, #14110d 66%); --coin-ink: #f3d787; }
.coin--ultimate { --coin-bg: radial-gradient(circle at 32% 24%, #5b3fa0, #1c1330 68%); --coin-ink: #e7d9ff;
  background: conic-gradient(from 25deg, #8b6bd8, #e0ccff, #6a48b8, #2c1b53, #b79af0, #8b6bd8); }
.coin--special  { --coin-bg: radial-gradient(circle at 32% 24%, #2e6aad, #122a49 68%); --coin-ink: #d9ecff;
  background: conic-gradient(from 25deg, #4b8fd8, #cde7ff, #2f6fb8, #16335c, #86baf0, #4b8fd8); }
.coin--rare     { --coin-bg: radial-gradient(circle at 32% 24%, #3e8a5c, #173324 68%); --coin-ink: #dff5e6;
  background: conic-gradient(from 25deg, #4f9e6a, #cdf0d8, #2f7a4c, #163b26, #86c99e, #4f9e6a); }
.coin--classic  { --coin-bg: radial-gradient(circle at 32% 24%, #8b8f86, #353832 68%); --coin-ink: #f0f2ec;
  background: conic-gradient(from 25deg, #9aa096, #e7e9e2, #6e746a, #3a3d37, #b9beb4, #9aa096); }
.coin--pending { filter: saturate(.35); opacity: .82; }
.coin__ring {
  position: absolute; inset: 15px; border-radius: 50%; z-index: 1;
  border: 1px dashed rgba(255, 236, 176, .35); pointer-events: none;
}
.coin__text {
  position: absolute; inset: 16px; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--coin-ink);
  padding: 8px;
}
.coin__code { font-size: clamp(8px, 1.1vw, 11px); letter-spacing: .1em; opacity: .78; }
.coin__name {
  font-size: clamp(12px, 1.5vw, 18px); font-weight: 800; line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,.55);
}
.coin__tag { font-size: clamp(9px, 1vw, 11px); opacity: .85; border-top: 1px solid currentColor; padding-top: 4px; margin-top: 3px; }
.coin__img { position: absolute; inset: 4px; z-index: 3; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: cover; border-radius: 50%; }
.coin--xl { width: min(340px, 78vw); }
.coin--sm { width: 46px; }
.list-row .tile__own { position: static; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 24px 18px; }
.tile { position: relative; display: block; }
.tile .coin { transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover .coin { transform: translateY(-5px) rotate(-3deg); box-shadow: 0 16px 30px rgba(20, 30, 25, .24); }
.tile__meta { text-align: center; margin-top: 10px; }
.tile__name { display: block; font-weight: 700; font-size: 14px; line-height: 1.4; }
.tile__id { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.tile__badges { display: flex; justify-content: center; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.tile__own {
  position: absolute; top: 2px; right: 2px; z-index: 4;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--muted);
}
.tile__own.is-on { background: var(--green); color: #fff; border-color: var(--green); }
body[data-theme="dark"] .tile__own.is-on { color: #10231c; }
.tile__own:hover { transform: scale(1.1); }

/* 图鉴工具栏 */
.toolbar {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px;
  align-items: center; padding: 16px; margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.field input, .field select {
  width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); outline: none; font-size: 14px;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.toolbar__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--green); }
.results__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 14px; flex-wrap: wrap; }
.results__head h3 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* 列表视图 */
.list-view { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: grid; grid-template-columns: 54px 1.4fr 1fr .8fr auto; gap: 12px; align-items: center;
  padding: 9px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.list-row:hover { border-color: var(--gold); }
.list-row__id { font-size: 12px; color: var(--muted); }
.list-row__name { font-weight: 700; }
.list-row__stat { font-size: 13px; color: var(--muted); }

/* 进度条 */
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .3s; }
.progress-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

/* 详情页 */
.detail { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 44px; align-items: start; }
.detail__art { position: sticky; top: 96px; text-align: center; }
.detail__art .coin { margin-inline: auto; }
.detail__caption { margin-top: 14px; font-size: 12px; color: var(--muted); }
.detail h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 6px; }
.detail__id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.spec-table th, .spec-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: top; }
.spec-table th { width: 108px; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.stat-bars { display: grid; gap: 12px; margin-top: 18px; }
.stat-bar__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.stat-bar__top strong { font-variant-numeric: tabular-nums; }
.note-box {
  margin-top: 20px; padding: 16px 18px; border-radius: 12px;
  background: var(--green-soft); border-left: 3px solid var(--green); font-size: 14px;
}
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pager a { font-size: 13px; color: var(--muted); max-width: 48%; }
.pager a:hover { color: var(--gold-deep); }

/* 玩法 */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rule-card { display: flex; flex-direction: column; }
.rule-card__head { display: flex; gap: 12px; align-items: flex-start; }
.rule-card__no {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 800; font-size: 14px;
}
body[data-theme="dark"] .rule-card__no { color: #10231c; }
.rule-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0 46px; }
.rule-card ol { margin: 16px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.rule-card ol li { margin-bottom: 6px; }
.rule-card__tip {
  margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--gold-deep);
  border-top: 1px dashed var(--line);
}
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px; }
.glossary__item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.glossary__item dt { font-weight: 700; font-size: 14px; }
.glossary__item dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* 系列 / 表格 */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.series-card h3 { font-size: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th { background: var(--surface-2); font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.data-table tbody tr:hover { background: var(--surface-2); }
.rarity-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* 卡册 */
.collection-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.big-number { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.big-number small { font-size: 18px; color: var(--muted); font-weight: 500; }
.rarity-progress { display: grid; gap: 14px; }
.rarity-progress__row { display: grid; grid-template-columns: 92px 1fr 62px; gap: 12px; align-items: center; font-size: 13px; }
.rarity-progress__row span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 关于 */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 32px; }
.prose ul { padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 6px; }
.callout {
  padding: 18px 20px; border-radius: 12px; background: var(--surface-2);
  border: 1px dashed var(--line); font-size: 14px; color: var(--muted); margin-top: 18px;
}

/* 页脚 / toast */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 2px 0; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--green); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 响应式 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero__art { min-height: 260px; order: -1; }
  .hero__art .coin { width: min(230px, 60vw); }
  .hero__label { position: static; display: inline-block; margin-top: 12px; font-size: 11px; }
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .detail__art { position: static; }
  .toolbar { grid-template-columns: repeat(2, 1fr); }
  .toolbar .field:first-child { grid-column: 1 / -1; }
  .collection-hero { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .topbar__inner { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .nav a { white-space: nowrap; }
  .theme-toggle { margin-left: auto; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 12px; }
  .coin__name { font-size: 12px; }
  .toolbar { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 46px 1fr auto; }
  .list-row__stat, .list-row__id { display: none; }
  .section { margin-top: 40px; }
  .card-panel { padding: 18px; }
}

/* 快速收卡：悬浮按钮 + 底部弹层 */
.fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px 12px 16px; border: 0; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 28px rgba(18, 59, 50, .28); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(18, 59, 50, .34); }
.fab:active { transform: translateY(0) scale(.97); }
body[data-theme="dark"] .fab { color: #0f221b; }
.fab__plus { font-size: 20px; line-height: 1; }

body.is-sheet { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(9, 18, 14, .48); backdrop-filter: blur(2px); }
.sheet__panel {
  position: relative; width: min(760px, 100%); max-height: min(86vh, 760px); overflow: auto;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 44px rgba(0, 0, 0, .22); animation: sheetUp .2s ease-out;
}
@keyframes sheetUp { from { transform: translateY(26px); opacity: .55; } to { transform: translateY(0); opacity: 1; } }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sheet__head h2 { margin: 0 0 4px; font-size: 21px; }
.sheet__head p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.sheet__close {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 20px; line-height: 1; cursor: pointer;
}
.sheet__close:hover { border-color: var(--gold); color: var(--gold-deep); }

.quick__rarities { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 6px; scrollbar-width: none; }
.quick__rarities::-webkit-scrollbar { display: none; }
.quick__rarity {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.quick__rarity .rarity-dot { margin-right: 2px; }
.quick__rarity.is-on { border-color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); background: var(--surface); font-weight: 700; }
.quick__count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.quick__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; font-size: 13px; }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.quick__cell {
  position: relative; text-align: left; padding: 9px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  line-height: 1.35; transition: border-color .12s, background .12s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.quick__cell:hover { border-color: var(--gold); }
.quick__cell:active { transform: scale(.97); }
.quick__no { display: block; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.quick__nm { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick__tick { position: absolute; top: 7px; right: 9px; font-size: 12px; color: var(--gold-deep); opacity: 0; }
.quick__cell.is-on { border-color: var(--gold); background: var(--green-soft); }
.quick__cell.is-on .quick__no { color: var(--gold-deep); }
.quick__cell.is-on .quick__tick { opacity: 1; }

@media (max-width: 680px) {
  .fab { padding: 11px 17px 11px 14px; font-size: 14px; }
  .quick__grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; }
  .quick__cell { padding: 8px 9px; }
}

/* 长按收卡：避免触发系统图片菜单 / 文字选择 */
.tile a { -webkit-touch-callout: none; }
.tile .coin { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* 家长视角：三分钟看懂 / 童年溯源 / 问答 */
.parent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.parent-card {
  display: block; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s;
}
.parent-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.parent-card__no { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold-deep); }
.parent-card h3 { font-size: 16px; margin: 8px 0 6px; }
.parent-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }

.timeline-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.timeline-strip__item { background: var(--surface); padding: 14px 12px; }
.timeline-strip__item span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.timeline-strip__item strong { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-card__no { font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; }
.step-card h3 { margin: 8px 0 6px; }
.step-card p { margin: 0; color: var(--muted); }

.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qa-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 16px 18px;
}
.qa-card h3 { font-size: 15px; margin: 0 0 6px; }
.qa-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.callout--warn { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); color: var(--ink); }

.memory-timeline { list-style: none; margin: 0 0 0 8px; padding: 0; border-left: 2px solid var(--line); }
.memory-timeline li { position: relative; padding: 0 0 22px 22px; }
.memory-timeline li:last-child { padding-bottom: 0; }
.memory-timeline li::before {
  content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--surface);
}
.memory-timeline__era { display: block; font-size: 11px; letter-spacing: .08em; color: var(--gold-deep); }
.memory-timeline strong { display: block; font-size: 16px; margin: 2px 0 4px; }
.memory-timeline p { margin: 0; color: var(--muted); font-size: 13.5px; }

.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.name-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.name-card h3 { font-size: 15px; margin: 0 0 4px; }
.name-card p { margin: 0; font-size: 13px; color: var(--muted); }

.essay-grid { display: grid; gap: 20px; }
.essay {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px); max-width: 72ch;
}
.essay h2 { font-size: clamp(20px, 2.4vw, 26px); }
.essay p { font-size: 15.5px; line-height: 1.95; }
.essay p:last-child { margin-bottom: 0; color: var(--muted); }

.talk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.talk-card { display: flex; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 16px; }
.talk-card span {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 12px; display: grid; place-items: center;
}
body[data-theme="dark"] .talk-card span { color: #10231c; }
.talk-card p { margin: 0; font-size: 13.5px; }
.site-footer__slogan { margin-top: 8px !important; color: var(--gold-deep); letter-spacing: .04em; }

@media (max-width: 900px) {
  .parent-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-strip { grid-template-columns: repeat(3, 1fr); }
  .steps3, .qa-grid { grid-template-columns: 1fr; }
  .name-grid { grid-template-columns: repeat(2, 1fr); }
  .talk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .parent-grid, .name-grid { grid-template-columns: 1fr; }
  .timeline-strip { grid-template-columns: repeat(2, 1fr); }
  .essay p { font-size: 15px; }
}
