/* ============================================================
   拂晓见月明 · 「晓月鎏金」华丽古风皮肤
   主题：珠光云锦 + 鎏金琉璃锦匣 + 月华流萤
   —— 保留原全部内容与功能，仅重做视觉层。
   三池色由数据注入 --pool-color；主强调色由 config 注入 --accent。
   数字统一 tabular-nums；动效尊重 prefers-reduced-motion。
   ============================================================ */

:root {
  color-scheme: light;

  /* 纸与墨 */
  --paper: #FBF4E8;
  --paper-2: #F4EAD8;
  --card: rgba(255, 252, 245, .82);
  --card-solid: #FFFDF8;
  --ink: #3A2E2B;
  --ink-soft: #6B5B52;
  --muted: #927F72;

  /* 主题色 */
  --accent: #B23A48;          /* 胭脂（JS 会覆盖为 config.accent） */
  --rouge: #B23A48;
  --cinnabar: #C8534B;
  --lotus: #F3C9CE;           /* 藕荷光 */
  --celadon: #8FB79B;         /* 青瓷 */
  --jade-deep: #5F8A72;
  --gold: #C9A063;
  --gold-light: #E6C27A;      /* 鎏金高光 */
  --gold-deep: #9A7437;

  --line: rgba(201, 160, 99, .52);
  --line-soft: rgba(59, 46, 43, .10);

  --ok: #6E8F62;
  --warn: #C68A3F;
  --err: #A63432;

  --radius: 12px;
  --radius-card: 22px;

  /* 卡片多层光：胭脂柔光 + 鎏金晕 + 内高光 */
  --glow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 0 0 1px rgba(255, 255, 255, .45) inset,
    0 10px 26px -14px rgba(178, 58, 72, .28),
    0 20px 44px -22px rgba(201, 160, 99, .38);
  --glow-hover:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 0 0 1px rgba(230, 194, 122, .55) inset,
    0 16px 34px -14px rgba(178, 58, 72, .38),
    0 28px 58px -22px rgba(201, 160, 99, .5);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "STSong", serif;
  --song: "Songti SC", "STSong", "SimSun", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { overflow-x: hidden; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* 珠光云锦底：绯霞 / 青霭 / 金晕 + 纸纹颗粒 */
body.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(60% 40% at 4% -2%, rgba(243, 201, 206, .7), transparent 64%),
    radial-gradient(52% 36% at 100% 2%, rgba(143, 183, 155, .42), transparent 66%),
    radial-gradient(70% 44% at 50% 108%, rgba(230, 194, 122, .34), transparent 70%),
    radial-gradient(34% 22% at 82% 52%, rgba(243, 201, 206, .34), transparent 72%),
    linear-gradient(180deg, rgba(255, 253, 248, .35), rgba(244, 234, 216, .28)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.28 0 0 0 0 0.22 0 0 0 0 0.16 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed, fixed, fixed, fixed, fixed, scroll;
}

a { color: inherit; text-decoration: none; }
.page { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; padding: 84px 20px 112px; }

/* 花枝水彩底层：顶部浓、向下渐隐 */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("./assets/bg-floral.jpg") center top / cover no-repeat;
  opacity: .38;
  filter: saturate(.9) contrast(.97);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .5) 44%, rgba(0, 0, 0, .08) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .5) 44%, rgba(0, 0, 0, .08) 82%, transparent 100%);
}

/* ---------- 流萤 + 绯樱：轻盈俏皮的氛围层 ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx { position: absolute; top: -8%; left: var(--x, 50%); display: block; opacity: 0; will-change: transform, opacity; }

.fx.firefly {
  width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #FFF3C4 0%, #E6C27A 45%, rgba(230, 194, 122, 0) 72%);
  box-shadow: 0 0 8px 2px rgba(230, 194, 122, .7);
  animation: floatDown var(--t, 10s) linear var(--d, 0s) infinite;
}
.fx.petal {
  width: 12px; height: 12px;
  background: linear-gradient(135deg, rgba(243, 201, 206, .95), rgba(178, 58, 72, .55));
  border-radius: 12px 1px 12px 1px;
  box-shadow: 0 2px 5px rgba(178, 58, 72, .18);
  animation: petalFall var(--t, 15s) linear var(--d, 0s) infinite;
}
@keyframes floatDown {
  0%   { opacity: 0; transform: translate3d(0, -6vh, 0) scale(calc(var(--s, 1) * .7)); }
  12%  { opacity: .9; }
  50%  { transform: translate3d(18px, 48vh, 0) scale(var(--s, 1)); }
  82%  { opacity: .75; }
  100% { opacity: 0; transform: translate3d(-12px, 104vh, 0) scale(calc(var(--s, 1) * .85)); }
}
@keyframes petalFall {
  0%   { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0deg); }
  10%  { opacity: .85; }
  50%  { transform: translate3d(26px, 50vh, 0) rotate(180deg); }
  90%  { opacity: .6; }
  100% { opacity: 0; transform: translate3d(-20px, 106vh, 0) rotate(360deg); }
}

/* ================= 页眉 ================= */
.site-head { margin-bottom: 30px; position: relative; }

/* 吉祥物贴纸：轻微浮动，像贴在笺纸上的小印 */
.site-head::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -18px;
  width: 138px;
  height: 164px;
  background: url("./assets/mascot.png?v=2") center / contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(59, 46, 43, .2));
  pointer-events: none;
  animation: mascotFloat 6s ease-in-out infinite;
  transform-origin: 50% 20%;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-7px) rotate(1.5deg); }
}

.site-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.back {
  font-size: 13px; color: var(--muted); font-family: var(--kai); letter-spacing: .08em;
  padding: 4px 10px 4px 6px; border-radius: 999px;
  transition: color .22s ease, transform .22s ease, background .22s ease;
}
.back:hover { color: var(--rouge); transform: translateX(-3px); background: rgba(243, 201, 206, .32); }

/* 分类标签 = 一枚朱砂小印 */
.badge {
  font-family: var(--kai);
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--cinnabar), var(--rouge));
  color: #FFF8EE;
  letter-spacing: .18em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 3px 8px -3px rgba(178, 58, 72, .6);
  position: relative;
  overflow: hidden;
}
.badge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: badgeShine 5.5s ease-in-out 1.2s infinite;
}
@keyframes badgeShine { 0%, 72% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }

.site-title {
  margin: 0 0 16px;
  padding: 0 150px 18px 0;
  font-family: var(--song);
  line-height: 1.3;
  position: relative;
  border-bottom: 1px solid var(--line);
}
/* 主题：大字鎏金渐变，字重对比 */
.site-title .st-main {
  display: inline-block;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: .06em;
  background: linear-gradient(165deg, #6E4A2C 0%, var(--gold-deep) 34%, var(--gold-light) 56%, #8A5E33 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(154, 116, 55, .3));
}
/* 分隔点：朱砂小印 */
.site-title .st-dot {
  display: inline-block; margin: 0 .34em;
  font-size: clamp(20px, 3vw, 28px); color: var(--cinnabar);
  vertical-align: .08em;
  text-shadow: 0 0 10px rgba(200, 83, 75, .35);
}
/* 副题：楷体、字距拉开、色阶次级 */
.site-title .st-tail {
  display: inline-block;
  font-family: var(--kai);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink-soft);
  white-space: nowrap;
}
/* 标题下的鎏金短线 + 朱砂起笔 */
.site-title::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 132px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cinnabar) 0%, var(--rouge) 22%, var(--gold-light) 100%);
  box-shadow: 0 0 12px rgba(201, 160, 99, .65);
}
/* 标题右上角小印章 */
.site-title::before {
  content: "晓";
  position: absolute; right: 150px; top: 4px;
  width: 32px; height: 32px; line-height: 32px; text-align: center;
  font-family: var(--kai); font-size: 16px; color: #FFF8EE;
  background: linear-gradient(145deg, var(--cinnabar), var(--rouge));
  border-radius: 6px; transform: rotate(6deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 10px -3px rgba(178, 58, 72, .65);
}
/* 副标题/导语：带朱砂竖线的题签 */
.site-sub {
  margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; letter-spacing: .04em;
  padding-left: 13px; border-left: 2px solid var(--gold-light);
}
.site-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.meta-text { color: var(--muted); }
.dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted);
  box-shadow: 0 0 0 3px rgba(146, 127, 114, .14);
}
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(110, 143, 98, .18), 0 0 8px rgba(110, 143, 98, .5); animation: dotPulse 2.8s ease-in-out infinite; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(198, 138, 63, .18); }
.dot.err { background: var(--err); box-shadow: 0 0 0 3px rgba(166, 52, 50, .18); }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ================= 卡片体系 ================= */
/* 看板栅格：12 栏，主次分明——顶部「导语+双大数」，中部整幅擂台与地图，底部双栏图鉴/微店 */
.modules {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
/* 默认整幅 */
.modules > .card { grid-column: 1 / -1; }

/* 第一行：左侧倒计时导语（跨两行）+ 右侧两张大数字卡 */
.modules > .card.countdown { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.modules > .card.metric:nth-child(2) { grid-column: 6 / -1; grid-row: 1; }
.modules > .card.metric:nth-child(3) { grid-column: 6 / -1; grid-row: 2; }

/* 购买区：微店直达 + 追加满赠（左栏上下），实时流水（右栏跨两行） */
/* 实时流水限高滚动（其余卡片单列整幅，避免 nth-child 定位错位） */
.modules > .card:nth-child(6) { max-height: 528px; overflow-y: auto; }

/* 入场：一张张错落浮现（仅一次编排） */
.site-head, .modules > .card, .site-foot {
  animation: riseIn .62s cubic-bezier(.22, .8, .25, 1) both;
}
.modules > .card:nth-child(1) { animation-delay: .06s; }
.modules > .card:nth-child(2) { animation-delay: .13s; }
.modules > .card:nth-child(3) { animation-delay: .20s; }
.modules > .card:nth-child(4) { animation-delay: .27s; }
.modules > .card:nth-child(5) { animation-delay: .34s; }
.modules > .card:nth-child(6) { animation-delay: .41s; }
.modules > .card:nth-child(7) { animation-delay: .48s; }
.modules > .card:nth-child(8) { animation-delay: .55s; }
.modules > .card:nth-child(9) { animation-delay: .62s; }
.modules > .card:nth-child(10) { animation-delay: .69s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--glow);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  transition: transform .38s cubic-bezier(.22, .8, .25, 1), box-shadow .38s ease, border-color .38s ease;
}
/* hover：轻轻托起，光晕增强 */
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-hover);
  border-color: rgba(201, 160, 99, .8);
}

/* 内层描金细线（双线锦匣感） */
.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 160, 99, .38);
  border-radius: calc(var(--radius-card) - 8px);
  pointer-events: none;
  box-shadow: inset 0 0 0 3px rgba(255, 253, 248, .5);
}

/* 左上 + 右下 描金卷草角饰 */
.card:not(.metric)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .62;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='none' stroke='%23C9A063' stroke-width='1.4' stroke-linecap='round'><path d='M2 2C18 5 30 12 36 25c4 9 2 18-4 24'/><path d='M2 13C14 17 22 24 26 35'/><path d='M26 43c6 3 13 3 19 0'/><circle cx='36' cy='25' r='2.4'/><circle cx='26' cy='35' r='1.8'/></g></svg>") top left / 46px 46px no-repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><g fill='none' stroke='%23C9A063' stroke-width='1.4' stroke-linecap='round'><path d='M62 62C46 59 34 52 28 39c-4-9-2-18 4-24'/><path d='M62 51C50 47 42 40 38 29'/><path d='M38 21c-6-3-13-3-19 0'/><circle cx='28' cy='39' r='2.4'/><circle cx='38' cy='29' r='1.8'/></g></svg>") bottom right / 46px 46px no-repeat;
}

.card-title {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  font-family: var(--kai);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
}
.card-title::before {
  content: "";
  flex: 0 0 auto;
  width: 5px; height: 17px;
  margin-right: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cinnabar), var(--rouge));
  box-shadow: 0 0 8px rgba(178, 58, 72, .45);
}
.card-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-left: 13px;
  background: linear-gradient(90deg, rgba(201, 160, 99, .7), rgba(201, 160, 99, 0));
}
.card-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ---------- 指标卡：烫金琉璃 ---------- */
.metric {
  padding: 26px 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(243, 201, 206, .5), transparent 55%),
    radial-gradient(110% 100% at 0% 100%, rgba(230, 194, 122, .3), transparent 55%),
    var(--card);
}
.metric::before {
  content: "";
  position: absolute; top: -40%; right: -12%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 194, 122, .35), transparent 68%);
  pointer-events: none;
}
.metric-label { font-family: var(--kai); font-size: 13px; color: var(--muted); letter-spacing: .14em; margin-bottom: 6px; }
.metric-row { display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap; position: relative; }
.metric-value {
  font-family: var(--song);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #7A5A2E 0%, var(--gold-deep) 38%, var(--gold-light) 62%, #9A7437 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(154, 116, 55, .25));
  font-variant-numeric: tabular-nums;
}
.delta {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(201, 160, 99, .16); color: var(--ink-soft);
  border: 1px solid rgba(201, 160, 99, .3);
  font-variant-numeric: tabular-nums;
}
.delta.up { color: #4F6B45; background: rgba(143, 183, 155, .3); border-color: rgba(110, 143, 98, .35); }
.delta.down { color: var(--err); background: rgba(166, 52, 50, .1); border-color: rgba(166, 52, 50, .25); }
.spark { width: 100%; height: 62px; display: block; margin-top: 14px; position: relative; overflow: visible; }
.spark-grid { stroke: rgba(59, 46, 43, .1); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.spark-area { stroke: none; }
.spark-line {
  fill: none; stroke: var(--rouge); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 3px rgba(178, 58, 72, .22));
}
.spark-tag { stroke: rgba(194, 78, 68, .22); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.spark-dot { fill: var(--cinnabar); stroke: #FFFDF8; stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* ---------- 卡片折叠（追加满赠 / 实时流水） ---------- */
.card-title.has-toggle::after { display: none; }
.collapse-btn {
  margin-left: auto; flex: 0 0 auto;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .8);
  color: var(--muted); font-family: var(--kai); font-size: 12px;
  letter-spacing: .08em; padding: 3px 12px; border-radius: 999px;
  cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.collapse-btn:hover { color: var(--rouge); border-color: var(--rouge); background: rgba(243, 201, 206, .25); }
.card.is-collapsed > *:not(.card-title) { display: none; }
.card.is-collapsed { padding-bottom: 18px; }

/* ---------- 快捷导航（吸顶） ---------- */
html { scroll-behavior: smooth; }
#top, #sec-pools, #sec-gifts, #sec-cards { scroll-margin-top: 62px; }
.quick-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap;
  padding: 10px 12px;
  margin: 0;
  background: rgba(246, 241, 229, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(59, 46, 43, .55);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.quick-nav::-webkit-scrollbar { display: none; }
.qn-item {
  flex: 0 0 auto;
  font-family: var(--kai); font-size: 14px; letter-spacing: .1em;
  color: var(--ink); text-decoration: none;
  padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .75);
  transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.qn-item:hover, .qn-item:active {
  color: #FFFDF8; border-color: transparent;
  background: linear-gradient(135deg, var(--cinnabar), var(--rouge));
  box-shadow: 0 8px 18px -10px rgba(178, 58, 72, .7);
}

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line-soft); }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--kai); letter-spacing: .1em; }
.table tbody tr { transition: background .2s ease; }
.table tbody tr:hover { background: linear-gradient(90deg, rgba(243, 201, 206, .28), rgba(230, 194, 122, .16)); }
.table td.num { font-family: var(--song); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 通用块 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(145deg, var(--cinnabar), var(--rouge));
  box-shadow: 0 0 0 4px rgba(178, 58, 72, .13), 0 0 8px rgba(178, 58, 72, .4);
}
.timeline .t-date { font-size: 12px; color: var(--muted); }
.timeline .t-title { font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 13px; }
.gallery .cell {
  background: linear-gradient(150deg, rgba(255, 253, 248, .9), rgba(244, 234, 216, .7));
  border-radius: var(--radius); padding: 15px; border: 1px solid rgba(201, 160, 99, .3);
  transition: transform .28s ease, box-shadow .28s ease;
}
.gallery .cell:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(201, 160, 99, .6); }
.gallery .cell h3 { margin: 0 0 5px; font-size: 14px; font-family: var(--kai); letter-spacing: .06em; }
.gallery .cell p { margin: 0; font-size: 13px; color: var(--muted); }

.cardlist { display: flex; flex-direction: column; gap: 6px; }
.cardlist .item {
  display: block; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 253, 248, .85), rgba(243, 233, 215, .6));
  transition: background .24s ease, border-color .24s ease, transform .24s ease, box-shadow .24s ease;
}
.cardlist .item::before { content: "❖"; color: var(--gold); margin-right: 10px; font-size: 11px; }
.cardlist .item:hover {
  background: linear-gradient(90deg, rgba(243, 201, 206, .45), rgba(230, 194, 122, .28));
  border-color: var(--rouge);
  transform: translateX(4px);
  box-shadow: 0 8px 18px -10px rgba(178, 58, 72, .5);
}
.cardlist .item h3 { display: inline; margin: 0; font-size: 13px; font-family: var(--kai); letter-spacing: .08em; }
.cardlist .item p { margin: 2px 0 0 20px; font-size: 11px; color: var(--muted); }

.progress { display: flex; flex-direction: column; gap: 9px; }
.progress-bar { height: 11px; border-radius: 999px; background: rgba(201, 160, 99, .18); overflow: hidden; box-shadow: inset 0 1px 2px rgba(59, 46, 43, .12); }
.progress-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--rouge));
  background-size: 200% 100%;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(201, 160, 99, .5);
  animation: barShimmer 3.4s linear infinite;
  transition: width .5s ease;
}
@keyframes barShimmer { to { background-position: -200% 0; } }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.muted { color: var(--muted); font-size: 13px; }
.site-foot {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center; letter-spacing: .04em;
}
.site-foot::before {
  content: "晓";
  display: inline-block;
  width: 22px; height: 22px; line-height: 22px;
  margin-right: 9px; vertical-align: -5px;
  background: linear-gradient(145deg, var(--cinnabar), var(--rouge));
  color: #FFF8EE;
  border-radius: 5px;
  font-family: var(--kai); font-size: 12px; letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 3px 8px -3px rgba(178, 58, 72, .6);
}

/* ================= 榜单悬浮入口 ================= */
.rank-entry {
  position: fixed;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 17px 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: linear-gradient(145deg, #E6C27A 0%, #C9A063 46%, #B23A48 100%);
  color: #FFF8EE;
  font-family: var(--kai);
  box-shadow: 0 10px 24px -10px rgba(178, 58, 72, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .22s ease;
  animation: rankBreathe 3.6s ease-in-out infinite;
}
.rank-entry:hover { transform: translateY(-2px) scale(1.04); }
.rank-entry:active { transform: scale(.97); }
.re-ico {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 248, 238, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}
.re-ico svg { width: 21px; height: 21px; fill: #FFF8EE; filter: drop-shadow(0 1px 2px rgba(90, 40, 20, .35)); }
.re-txt { display: flex; flex-direction: column; line-height: 1.16; }
.re-txt b { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.re-txt i { font-style: normal; font-size: 10px; letter-spacing: .12em; opacity: .86; }
@keyframes rankBreathe {
  0%, 100% { box-shadow: 0 10px 24px -10px rgba(178, 58, 72, .75), inset 0 1px 0 rgba(255, 255, 255, .55); }
  50%      { box-shadow: 0 12px 30px -8px rgba(178, 58, 72, .95), 0 0 0 5px rgba(230, 194, 122, .22), inset 0 1px 0 rgba(255, 255, 255, .55); }
}
@media (max-width: 520px) {
  .rank-entry { right: 12px; padding: 8px 13px 8px 8px; gap: 7px; }
  .re-ico { width: 30px; height: 30px; }
  .re-ico svg { width: 19px; height: 19px; }
  .re-txt b { font-size: 13px; }
}

/* ================= 分享图 · 入口 / 选择 / 预览 ================= */
.pk-share-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 18px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: linear-gradient(145deg, #E6C27A 0%, #C9A063 48%, #B23A48 120%);
  color: #FFF8EE;
  font-family: var(--kai); font-size: 15px; font-weight: 700; letter-spacing: .14em;
  cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(178, 58, 72, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pk-share-btn::before { content: "✦"; font-size: 15px; letter-spacing: 0; }
.pk-share-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(178, 58, 72, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.pk-share-btn:active { transform: scale(.985); }

.share-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(38, 28, 24, .58);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.share-overlay.is-on { opacity: 1; }
.share-panel {
  width: min(440px, 100%);
  max-height: 90vh; overflow-y: auto;
  padding: 20px 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 60px -24px rgba(59, 46, 43, .55);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}
.share-overlay.is-on .share-panel { transform: none; }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.share-head b { font-family: var(--song); font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.share-close {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(59, 46, 43, .06); color: var(--ink-soft);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.share-close:hover { background: rgba(178, 58, 72, .12); color: var(--rouge); }
.share-sub { margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.share-picker { display: flex; flex-direction: column; gap: 10px; }
.share-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px 9px 9px;
  text-align: left; cursor: pointer;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 253, 248, .85);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.share-opt:hover { transform: translateY(-1px); border-color: var(--line); box-shadow: 0 8px 18px -12px rgba(154, 116, 55, .8); }
.share-opt img {
  width: 46px; height: 92px; object-fit: cover; flex: 0 0 auto;
  border-radius: 9px; border: 1px solid var(--line); background: var(--paper-2);
}
.so-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.so-line { display: flex; align-items: center; gap: 7px; }
.so-key {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-style: normal; font-weight: 700; color: #FFF8EE;
  background: var(--pool-color, var(--rouge));
}
.so-name { font-family: var(--song); font-size: 16px; color: var(--ink); }
.so-slogan { font-family: var(--kai); font-size: 12.5px; color: var(--rouge); line-height: 1.5; }
.share-note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }
.share-img {
  display: block; width: 100%;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(59, 46, 43, .7);
}
.share-actions { display: flex; gap: 10px; margin-top: 14px; }
.share-btn {
  flex: 1; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .9);
  font-family: var(--kai); font-size: 14px; letter-spacing: .1em; color: var(--ink);
  transition: transform .2s ease, background .2s ease;
}
.share-btn:hover { background: #FFFDF8; transform: translateY(-1px); }
.share-btn.primary {
  border-color: transparent; color: #FFF8EE; font-weight: 700;
  background: linear-gradient(145deg, #E6C27A, #C9A063 50%, #B23A48);
  box-shadow: 0 10px 22px -12px rgba(178, 58, 72, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ================= 倒计时 · 主视觉导语面板 ================= */
.countdown {
  text-align: left;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100%; padding: 30px 32px;
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(243, 201, 206, .55), transparent 58%),
    radial-gradient(110% 90% at 0% 100%, rgba(230, 194, 122, .34), transparent 56%),
    var(--card);
}
/* 玉兔月相水印（抠图透明底） */
.countdown::after {
  content: ""; position: absolute; right: -26px; bottom: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: url("./assets/moon-rabbit.png?v=2") center / contain no-repeat;
  opacity: .16; filter: saturate(.6); pointer-events: none;
}
.cd-label {
  font-family: var(--kai); font-size: 14px; letter-spacing: .2em; color: var(--cinnabar);
  display: inline-flex; align-items: center; gap: 8px; position: relative;
}
.cd-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cinnabar); box-shadow: 0 0 0 4px rgba(200, 83, 75, .16), 0 0 10px rgba(200, 83, 75, .55);
  animation: dotPulse 2.8s ease-in-out infinite;
}
.cd-big {
  font-family: var(--song);
  font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: .01em;
  color: var(--ink); margin: 14px 0 10px;
  font-variant-numeric: tabular-nums; position: relative;
  background: linear-gradient(180deg, #6E4A2C 20%, var(--gold-deep) 55%, var(--gold-light) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(154, 116, 55, .25));
}
.cd-sub {
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 253, 248, .6); border: 1px solid rgba(201, 160, 99, .4);
  align-self: flex-start;
}

.demo-note {
  margin: 16px 0 0; font-size: 12px; line-height: 1.65;
  color: #7A5418;
  background: linear-gradient(90deg, rgba(244, 234, 216, .95), rgba(230, 194, 122, .35));
  border: 1px solid var(--line);
  border-left: 3px solid var(--cinnabar);
  border-radius: 9px;
  padding: 10px 13px;
}

/* ================= 三池对决 · 三军对垒 ================= */
.pool-key {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--pool-color, var(--accent)); color: #FFF8EE;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--kai); font-size: 14px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 10px -3px var(--pool-color, var(--accent));
}
.pool-name { font-family: var(--kai); letter-spacing: .1em; color: var(--ink); }
.pool-num {
  font-family: var(--song); font-size: 19px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink);
  margin: 3px 0 9px;
}
.pool-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed rgba(201, 160, 99, .5);
  font-size: 13px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ================= 三池对决 · 横向对拉 PK ================= */
.pk-arena { position: relative; padding-top: 8px; }

/* 顶端中央玉兔月相徽章 */
.pk-crest {
  width: 104px; height: 104px; margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pk-crest::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 194, 122, .28), rgba(230, 194, 122, 0) 70%);
  filter: blur(4px);
}
.pk-moon {
  width: 100%; height: 100%; object-fit: contain; display: block; position: relative;
  filter: drop-shadow(0 6px 12px rgba(178, 58, 72, .3)) drop-shadow(0 0 16px rgba(230, 194, 122, .5));
  animation: crestFloat 5.5s ease-in-out infinite;
}
@keyframes crestFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-5px) rotate(2deg); }
}

/* 三条战斗线 */
.pk-lanes { display: flex; flex-direction: column; gap: 16px; }
.pk-lane {
  display: grid; grid-template-columns: 68px 1fr 92px; align-items: center; gap: 14px;
  padding: 10px 14px 10px 8px; border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 253, 248, .55), rgba(244, 234, 216, .22));
  border: 1px solid rgba(201, 160, 99, .28);
  transition: transform .4s cubic-bezier(.22, .8, .25, 1), box-shadow .4s ease, border-color .4s ease, background .4s ease;
}
.pk-lane:hover { transform: translateY(-2px); }
.pk-lane.is-lead {
  background: linear-gradient(100deg, rgba(243, 201, 206, .42), rgba(230, 194, 122, .18));
  border-color: rgba(201, 160, 99, .72);
  box-shadow: 0 12px 28px -14px rgba(178, 58, 72, .45), inset 0 0 0 1px rgba(230, 194, 122, .4);
}

/* 左端：蕾丝卡头像（海棠窗棂框） */
.pk-avatar {
  position: relative; width: 62px; aspect-ratio: 2 / 3; justify-self: center;
  border-radius: 14px 14px 22px 22px; overflow: hidden;
  background: linear-gradient(160deg, #FFFDF8, #EFE1CC);
  padding: 3px;
  box-shadow: 0 7px 16px -6px rgba(59, 46, 43, .45), inset 0 0 0 1px rgba(230, 194, 122, .55);
  transition: transform .5s cubic-bezier(.22, .8, .25, 1), box-shadow .5s ease;
}
/* 海棠窗棂描金框：内外双线 + 四角回纹感 */
.pk-avatar::before {
  content: ""; position: absolute; inset: 3px; z-index: 2; pointer-events: none;
  border: 1.5px solid rgba(201, 160, 99, .8); border-radius: 12px 12px 20px 20px;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .75), inset 0 1px 3px rgba(59, 46, 43, .2);
}
.pk-avatar::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 50% -2%, var(--cinnabar) 0 3px, transparent 3.5px),
    radial-gradient(circle at 50% 102%, var(--cinnabar) 0 3px, transparent 3.5px);
}
.pk-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%;
  display: block; border-radius: 10px 10px 18px 18px;
}
.pk-avatar-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  font-family: var(--kai); font-size: 10px; letter-spacing: .08em; text-align: center;
  color: #FFF8EE; padding: 3px 0 2px;
  background: linear-gradient(0deg, rgba(59, 46, 43, .88), rgba(59, 46, 43, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.pk-lane.is-lead .pk-avatar {
  transform: scale(1.18);
  box-shadow: 0 14px 26px -8px rgba(178, 58, 72, .6), 0 0 0 2px rgba(230, 194, 122, .85), 0 0 22px rgba(230, 194, 122, .5);
}

/* 中部：横向进度条（自左向右增长） */
.pk-bar { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.pk-bar-track {
  position: relative; flex: 1 1 auto; height: 18px; min-width: 0;
  border-radius: 999px;
  background: rgba(201, 160, 99, .15);
  box-shadow: inset 0 1px 3px rgba(59, 46, 43, .14), inset 0 0 0 1px rgba(255, 255, 255, .4);
  overflow: hidden;
}
.pk-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  display: block; border-radius: 999px;
  background-color: var(--pool-color, var(--accent));
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
  background-size: 200% 100%;
  box-shadow: 0 0 14px var(--pool-color, var(--accent));
  animation: pkShimmer 3.2s linear infinite;
  transition: width .7s cubic-bezier(.22, .8, .25, 1);
}
@keyframes pkShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pk-lane.is-lead .pk-fill {
  box-shadow: 0 0 18px var(--pool-color), 0 0 8px rgba(230, 194, 122, .9);
}

/* 中央菱形分隔徽章 */
.pk-gem {
  flex: 0 0 auto; width: 30px; height: 30px; margin: 0; position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.pk-gem::before {
  content: ""; position: absolute; inset: 4px; transform: rotate(45deg);
  border-radius: 5px;
  background: linear-gradient(145deg, #FFFDF8, #EAD9BE);
  border: 1.5px solid rgba(201, 160, 99, .9);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 4px 10px -3px rgba(59, 46, 43, .5), 0 0 10px rgba(230, 194, 122, .5);
}
.pk-gem-core {
  position: relative; z-index: 1; font-family: var(--kai); font-size: 13px; font-weight: 700;
  color: var(--cinnabar); text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

/* 右端数值 */
.pk-value { display: flex; align-items: baseline; gap: 3px; justify-self: end; white-space: nowrap; }
.pk-num { font-family: var(--song); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.pk-unit { font-size: 11px; color: var(--muted); }
.pk-pct {
  margin-left: 4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 999px; background: rgba(201, 160, 99, .14);
}
.pk-lane.is-lead .pk-num {
  background: linear-gradient(135deg, var(--cinnabar), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ================= 解锁地图 · 古风水彩路引 ================= */
.um-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.um-cur { font-family: var(--kai); color: var(--ink); letter-spacing: .06em; }
.um-gap { color: var(--muted); }
.um-gap.done { color: var(--jade-deep); font-weight: 500; }

.um-map-scroll {
  width: 100%; overflow-x: auto; overflow-y: hidden;
  border-radius: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.um-stage {
  position: relative; width: 100%; min-width: 1100px; aspect-ratio: 2665 / 977;
  border-radius: 16px; overflow: hidden;
  background: url("./assets/map-bg-wide.jpg") center / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, .55), inset 0 0 42px rgba(59, 46, 43, .18), 0 12px 30px -16px rgba(59, 46, 43, .5);
}
.um-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.um-route polyline {
  fill: none; stroke: rgba(178, 58, 72, .6); stroke-width: .45;
  stroke-dasharray: 1.5 1.3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 .4px rgba(230, 194, 122, .8));
}

/* 地图站点 */
.um-stop {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center;
  cursor: default; z-index: 2;
}
.stop-card {
  position: relative; width: 70px; aspect-ratio: 16 / 9; border-radius: 6px;
  background: linear-gradient(160deg, #FFFDF8, #EFE1CC);
  padding: 4px;
  box-shadow: 0 6px 14px -5px rgba(59, 46, 43, .55);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--muted); text-align: center;
  filter: grayscale(.72) brightness(.86); opacity: .82;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.stop-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 3px; }

/* 海棠窗棂装饰边框：描金双线 + 四角回纹 + 顶底红宝石 */
.stop-frame { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.stop-frame::before {
  content: ""; position: absolute; inset: 2px; border-radius: 5px;
  border: 1px solid rgba(201, 160, 99, .95);
  box-shadow: inset 0 0 0 1.5px rgba(255, 253, 248, .9), 0 0 6px rgba(230, 194, 122, .5);
}
.sf-corner {
  position: absolute; width: 11px; height: 11px;
  border-color: rgba(201, 160, 99, .95); border-style: solid;
}
.sf-corner.tl { top: 2px; left: 2px; border-width: 2px 0 0 2px; border-radius: 5px 0 0 0; }
.sf-corner.tr { top: 2px; right: 2px; border-width: 2px 2px 0 0; border-radius: 0 5px 0 0; }
.sf-corner.bl { bottom: 2px; left: 2px; border-width: 0 0 2px 2px; border-radius: 0 0 0 5px; }
.sf-corner.br { bottom: 2px; right: 2px; border-width: 0 2px 2px 0; border-radius: 0 0 5px 0; }
.sf-gem {
  position: absolute; left: 50%; width: 6px; height: 6px; transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(145deg, var(--cinnabar), var(--rouge));
  box-shadow: 0 0 0 1px rgba(255, 253, 248, .85), 0 0 5px rgba(178, 58, 72, .6);
}
.sf-gem.top { top: -2px; }
.sf-gem.bottom { bottom: -2px; }

.um-stop:hover .stop-card { transform: scale(1.28) translateY(-5px) rotate(-2deg); z-index: 6; }

.um-stop.on .stop-card {
  filter: none; opacity: 1;
  box-shadow: 0 0 0 2px rgba(230, 194, 122, .9), 0 8px 20px -5px rgba(178, 58, 72, .6), 0 0 20px rgba(230, 194, 122, .65);
}
.um-stop.on .stop-frame::before { border-color: rgba(230, 194, 122, 1); box-shadow: inset 0 0 0 1.5px rgba(255, 253, 248, .95), 0 0 8px rgba(230, 194, 122, .85); }
.stop-at {
  margin-top: 5px; font-family: var(--song); font-size: 12px; font-weight: 700;
  color: #FFF8EE; font-variant-numeric: tabular-nums;
  padding: 1px 8px; border-radius: 999px;
  background: rgba(59, 46, 43, .78); border: 1px solid rgba(230, 194, 122, .45);
  box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .5);
}

/* 悬停提示：还差多少 / 已解锁 */
.stop-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: max-content; max-width: 210px; text-align: center;
  font-family: var(--font); font-size: 11px; line-height: 1.5; color: #FFF8EE;
  background: linear-gradient(145deg, rgba(59, 46, 43, .96), rgba(92, 70, 60, .96));
  border: 1px solid rgba(230, 194, 122, .6);
  padding: 7px 11px; border-radius: 9px;
  opacity: 0; pointer-events: none; z-index: 8;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .55);
  transition: opacity .25s ease, transform .25s ease;
}
.stop-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(82, 62, 53, .96);
}
.um-stop:hover .stop-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.um-stop.on .stop-tip { border-color: rgba(230, 194, 122, .85); }

.um-legend { display: flex; gap: 18px; justify-content: center; margin-top: 14px; font-size: 11px; color: var(--muted); }
.um-legend .lg { color: var(--jade-deep); }
.um-legend .lg.off { color: var(--muted); }

/* ================= 领先蕾丝卡 ================= */
.lace-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.lace-fig {
  width: 136px; aspect-ratio: 1 / 3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #FFFDF8, #F0E4D0);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -10px rgba(59, 46, 43, .35), inset 0 0 0 3px rgba(255, 255, 255, .6);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); text-align: center; padding: 6px;
  position: relative;
  transition: transform .42s cubic-bezier(.22, .8, .25, 1), box-shadow .42s ease;
}
.lace-fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .65) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform .7s ease;
  pointer-events: none;
}
.lace-fig:hover { transform: translateY(-5px) rotate(2deg); box-shadow: 0 18px 36px -12px rgba(178, 58, 72, .42); }
.lace-fig:hover::after { transform: translateX(130%); }
.lace-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lace-info { flex: 1 1 220px; min-width: 0; }
.lace-badge {
  display: inline-block; font-family: var(--kai);
  font-size: 12px; padding: 4px 13px; border-radius: 6px;
  color: #FFF8EE; background: linear-gradient(145deg, var(--cinnabar), var(--rouge));
  letter-spacing: .14em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 5px 12px -4px rgba(178, 58, 72, .65);
  margin-bottom: 12px;
}
.lace-name {
  margin: 0 0 10px; font-family: var(--kai);
  font-size: 26px; font-weight: 600; letter-spacing: .16em; color: var(--ink);
}
.lace-vals { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }
.lace-chip {
  font-size: 12px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 253, 248, .9), rgba(244, 234, 216, .6));
  font-variant-numeric: tabular-nums; color: var(--ink-soft);
  transition: transform .24s ease, box-shadow .24s ease;
}
.lace-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 12px -6px rgba(59, 46, 43, .4); }

/* ================= 小卡图鉴 ================= */
.dex-tabs { display: flex; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }
.dex-tab {
  padding: 8px 18px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 253, 248, .8);
  font-family: var(--kai); font-size: 13px; letter-spacing: .1em;
  color: var(--ink-soft);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.dex-tab:hover { background: rgba(243, 201, 206, .45); transform: translateY(-2px); }
.dex-tab:active { transform: scale(.94); }
.dex-tab.on {
  background: var(--pool-color, var(--rouge));
  border-color: var(--pool-color, var(--rouge));
  color: #FFF8EE;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 14px -5px var(--pool-color, var(--rouge));
  transform: translateY(-1px);
}
.dex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.dex-cell { transition: transform .3s cubic-bezier(.22, .8, .25, 1); }
.dex-cell:hover { transform: translateY(-6px) rotate(-1.5deg); }
.dex-fig {
  aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden;
  background: linear-gradient(160deg, #FFFDF8, #F0E4D0);
  border: 1px solid rgba(201, 160, 99, .45);
  box-shadow: 0 4px 12px -5px rgba(59, 46, 43, .3), inset 0 0 0 2px rgba(255, 255, 255, .65);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); text-align: center; padding: 6px;
  position: relative;
}
.dex-fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform .65s ease;
  pointer-events: none;
}
.dex-cell:hover .dex-fig::after { transform: translateX(130%); }
.dex-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dex-no { font-size: 11px; color: var(--gold-deep); margin-top: 8px; font-family: var(--mono); letter-spacing: .04em; }
.dex-name { font-size: 12px; font-family: var(--kai); letter-spacing: .08em; color: var(--ink-soft); }

/* 图片占位降级（figure() 默认 ph 类） */
.ph { display: flex; align-items: center; justify-content: center; }

/* ================= 灯箱 · 大图翻看 ================= */
.lb-overlay {
  position: fixed; inset: 0; z-index: 999;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(38, 28, 24, .78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 22px; gap: 16px;
  opacity: 0; transition: opacity .28s ease;
}
.lb-overlay.show { opacity: 1; }
.lb-top {
  width: 100%; max-width: 720px; display: flex; align-items: center; gap: 12px;
  color: #FFF8EE;
}
.lb-title { font-family: var(--kai); font-size: 17px; letter-spacing: .1em; flex: 1; text-shadow: 0 1px 3px rgba(0,0,0,.5); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-counter { font-family: var(--mono); font-size: 13px; opacity: .82; font-variant-numeric: tabular-nums; }
.lb-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12); color: #FFF8EE; font-size: 20px; line-height: 1; cursor: pointer;
  transition: background .2s ease, transform .25s ease;
}
.lb-close:hover { background: rgba(200,83,75,.85); transform: rotate(90deg); }
.lb-stage { display: flex; align-items: center; gap: 14px; max-width: 100%; }
.lb-nav {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  color: #FFF8EE; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-nav:hover { background: rgba(201,160,99,.85); transform: scale(1.08); }
.lb-imgbox {
  position: relative; max-width: min(72vw, 520px); max-height: 72vh;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #FFFDF8, #EFE1CC);
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(230,194,122,.7), 0 24px 60px -18px rgba(0,0,0,.7), 0 0 40px rgba(230,194,122,.4);
}
.lb-imgbox img { display: block; max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 9px; transition: opacity .22s ease; }
.lb-flip { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.lb-flip-btn {
  padding: 7px 22px; border: none; background: transparent; color: rgba(255,248,238,.78);
  font-family: var(--kai); font-size: 13px; letter-spacing: .16em; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lb-flip-btn.on { background: linear-gradient(145deg, var(--cinnabar), var(--rouge)); color: #FFF8EE; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* 可点击图的放大镜提示 */
.dex-fig-clickable { cursor: zoom-in; position: relative; }
.dex-fig-clickable::before {
  content: "🔍"; position: absolute; right: 6px; top: 6px; z-index: 4;
  font-size: 10px; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 50%; background: rgba(255,253,248,.88); color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .25s ease;
}
.dex-fig-clickable:hover::before, .dex-fig-clickable:focus-visible::before { opacity: 1; transform: scale(1); }

/* ================= 满赠卡面预览 ================= */
.gd-section { margin-top: 22px; }
.gd-section:first-child { margin-top: 0; }
.gd-section-title {
  margin: 0 0 14px; font-family: var(--kai); font-size: 15px; letter-spacing: .12em; color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.gd-section-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--cinnabar), var(--rouge)); box-shadow: 0 0 6px rgba(178,58,72,.4); }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.gd-cell { transition: transform .3s cubic-bezier(.22,.8,.25,1); }
.gd-cell:hover { transform: translateY(-5px) rotate(-1.2deg); }
.gd-fig {
  aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #FFFDF8, #F0E4D0);
  border: 1px solid rgba(201,160,99,.45);
  box-shadow: 0 4px 12px -5px rgba(59,46,43,.3), inset 0 0 0 2px rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--muted); text-align: center; padding: 4px;
  transition: filter .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.gd-cell:not(.on) .gd-fig { filter: grayscale(.55) brightness(.92); opacity: .8; }
.gd-cell.on .gd-fig { box-shadow: 0 0 0 2px rgba(230,194,122,.85), 0 8px 20px -6px rgba(178,58,72,.45), 0 0 18px rgba(230,194,122,.5); }
.gd-fig img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 5px; }
.gd-tier { margin-top: 7px; font-size: 11px; color: var(--gold-deep); font-family: var(--mono); letter-spacing: .02em; text-align: center; }
.gd-card-name { font-size: 12px; font-family: var(--kai); letter-spacing: .06em; color: var(--ink-soft); text-align: center; margin-top: 3px; }
.gd-status { margin-top: 3px; font-size: 11px; text-align: center; color: var(--muted); }
.gd-status.on { color: var(--jade-deep); font-weight: 600; }
.gd-tier-row { margin-bottom: 20px; }
.gd-tier-row:last-child { margin-bottom: 0; }
.gd-tier-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.gd-tier-at { font-family: var(--kai); font-size: 14px; font-weight: 600; color: var(--cinnabar); letter-spacing: .06em; }
.gd-tier-name { font-size: 12px; color: var(--ink-soft); }

/* ================= 个人满赠 · 自录解锁地图 ================= */
.pg-panel {
  background: linear-gradient(150deg, rgba(255,253,248,.9), rgba(244,234,216,.6));
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  margin-bottom: 20px;
}
.pg-rows { display: flex; flex-direction: column; gap: 10px; }
.pg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-key {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  background: var(--pool-color, var(--accent)); color: #FFF8EE;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--kai); font-size: 13px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 8px -3px var(--pool-color, var(--accent));
}
.pg-name { font-family: var(--kai); font-size: 14px; letter-spacing: .08em; color: var(--ink); min-width: 54px; }
.pg-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #FFFDF8, #F0E4D0); color: var(--ink);
  font-size: 17px; line-height: 1; cursor: pointer; font-family: var(--song);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .15s ease;
}
.pg-btn:hover { background: rgba(243,201,206,.55); }
.pg-btn:active { transform: scale(.92); }
.pg-input {
  width: 62px; height: 30px; text-align: center; border: 1px solid var(--line); border-radius: 8px;
  background: #FFFDF8; font-family: var(--song); font-size: 16px; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums; padding: 0 4px;
}
.pg-input:focus { outline: none; border-color: var(--pool-color, var(--cinnabar)); box-shadow: 0 0 0 3px rgba(201,160,99,.25); }
.pg-unit { font-size: 12px; color: var(--muted); }
.pg-total { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(201,160,99,.5); font-size: 14px; color: var(--ink-soft); }
.pg-total-num { font-family: var(--song); font-size: 24px; font-weight: 800; color: var(--cinnabar); font-variant-numeric: tabular-nums; margin: 0 2px; }
.pg-reset {
  margin-left: auto; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,253,248,.7); color: var(--muted); font-size: 12px; cursor: pointer; font-family: var(--kai);
  transition: background .2s ease, color .2s ease;
}
.pg-reset:hover { background: rgba(166,52,50,.12); color: var(--err); }

.pg-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.pg-cur { font-family: var(--kai); color: var(--ink); letter-spacing: .06em; }
.pg-gap { color: var(--muted); }
.pg-gap.done { color: var(--jade-deep); font-weight: 500; }

.pg-map-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; border-radius: 16px; -webkit-overflow-scrolling: touch; }
.pg-stage {
  position: relative; width: 100%; min-width: 560px; aspect-ratio: 16 / 7;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,253,248,.85), rgba(244,234,216,.55));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(255,253,248,.55), inset 0 0 42px rgba(59,46,43,.12), 0 12px 30px -16px rgba(59,46,43,.45);
}
.pg-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pg-route polyline { fill: none; stroke: rgba(178,58,72,.55); stroke-width: .5; stroke-dasharray: 1.5 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 .4px rgba(230,194,122,.8)); }

.pg-stop { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.pg-stop-card {
  position: relative; width: 92px; aspect-ratio: 2 / 3; border-radius: 8px;
  background: linear-gradient(160deg, #FFFDF8, #EFE1CC); padding: 4px;
  box-shadow: 0 6px 14px -5px rgba(59,46,43,.55);
  display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--muted); text-align: center;
  filter: grayscale(.7) brightness(.86); opacity: .82;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .35s ease, box-shadow .35s ease, opacity .35s ease;
}
.pg-stop-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 5px; }
.pg-stop:hover .pg-stop-card { transform: scale(1.22) translateY(-4px) rotate(-2deg); z-index: 6; }
.pg-stop.on .pg-stop-card {
  filter: none; opacity: 1;
  box-shadow: 0 0 0 2px rgba(230,194,122,.9), 0 8px 20px -5px rgba(178,58,72,.6), 0 0 20px rgba(230,194,122,.65);
}
.pg-stop-at { margin-top: 5px; font-family: var(--song); font-size: 11px; font-weight: 700; color: #FFF8EE; font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 999px; background: rgba(59,46,43,.78); border: 1px solid rgba(230,194,122,.45); box-shadow: 0 3px 8px -3px rgba(0,0,0,.5); }

.pg-gal-title { margin: 24px 0 12px; font-family: var(--kai); font-size: 15px; letter-spacing: .12em; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.pg-gal-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--cinnabar), var(--rouge)); box-shadow: 0 0 6px rgba(178,58,72,.4); }
.pg-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.pg-gal-cell { transition: transform .3s ease; }
.pg-gal-cell:hover { transform: translateY(-4px); }
.pg-gal-fig {
  aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #FFFDF8, #F0E4D0);
  border: 1px solid rgba(201,160,99,.45);
  box-shadow: 0 4px 12px -5px rgba(59,46,43,.3), inset 0 0 0 2px rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); text-align: center; padding: 6px;
  transition: filter .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.pg-gal-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-gal-cell:not(.on) .pg-gal-fig { filter: grayscale(.6) brightness(.9); opacity: .72; }
.pg-gal-cell:not(.on) .pg-gal-fig::after { content: "🔒"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(255,255,255,.9); background: rgba(59,46,43,.3); }
.pg-gal-cell.on .pg-gal-fig { box-shadow: 0 0 0 2px rgba(230,194,122,.85), 0 8px 20px -6px rgba(178,58,72,.45), 0 0 18px rgba(230,194,122,.5); }
.pg-gal-tag { margin: 6px auto 0; width: fit-content; font-size: 11px; text-align: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.7); color: var(--muted); }
.pg-gal-tag.on { color: #FFF8EE; background: linear-gradient(145deg, var(--cinnabar), var(--rouge)); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.pg-gal-name { font-size: 12px; font-family: var(--kai); letter-spacing: .06em; color: var(--ink-soft); text-align: center; margin-top: 3px; }

/* 个人满赠卡：按素材自然比例完整展示，横向卡不被竖版裁切 */
.gd-fig.fig-natural,
.pg-gal-fig.fig-natural { aspect-ratio: auto; }
.gd-fig.fig-natural img,
.pg-gal-fig.fig-natural img { height: auto; object-fit: contain; }
.pg-gal-grid { align-items: start; }
.pg-stop-card.fig-natural { aspect-ratio: auto; height: auto; }
.pg-stop-card.fig-natural img { height: auto; object-fit: contain; }

/* ================= 响应式 ================= */
@media (max-width: 680px) {
  /* 顶部固定导航约占 57px，页面留白要盖住它，否则标题与吉祥物会被压住 */
  .page { padding: 66px 15px 60px; }
  /* 看板栅格：移动端全部单列，恢复自然顺序 */
  .modules { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .modules > .card { min-width: 0; }
  /* 用 !important 压过桌面的跨列规则（.card.metric:nth-child(2)、:nth-child(9) 等），否则移动端卡片会被放到不存在的列、宽度塌成一条 */
  .modules > .card { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .modules > .card:nth-child(6) { max-height: none !important; overflow: visible !important; }
  .modules > .card:nth-child(5) { max-height: none !important; overflow: visible !important; }
  .site-title { padding: 0 80px 14px 0; }
  .site-title .st-main { font-size: 29px; }
  .site-title .st-tail { font-size: 17px; letter-spacing: .08em; white-space: normal; }
  .site-title::before { right: 80px; width: 26px; height: 26px; line-height: 26px; font-size: 13px; top: 2px; }
  /* 吉祥物下移进标题区，避免被吸顶导航盖住 */
  .site-head::after { width: 66px; height: 78px; top: 0; right: 0; }
  .metric-value { font-size: 37px; }
  .cd-big { font-size: 28px; }
  .countdown { padding: 24px 22px; min-height: auto; }
  .countdown::after { width: 150px; height: 150px; right: -18px; bottom: -22px; opacity: .12; }
  .lace-fig { width: 112px; }
  .card { padding: 18px 18px; border-radius: 18px; }
  .card::after { inset: 5px; border-radius: 14px; }
  .card:not(.metric)::before { opacity: .42; background-size: 34px 34px, 34px 34px; }
  .metric { padding: 20px 20px; }
  .fx.firefly, .fx.petal { display: none; }

  /* 横向对拉 PK：移动端收紧头像与数值列 */
  .pk-crest { width: 78px; height: 78px; }
  .pk-lanes { gap: 12px; }
  .pk-lane { grid-template-columns: 46px minmax(0, 1fr) 52px; gap: 6px; padding: 8px 6px 8px 3px; border-radius: 12px; }
  .pk-avatar { width: 44px; }
  .pk-avatar-name { font-size: 9px; }
  .pk-gem { width: 22px; height: 22px; flex-basis: 22px; margin: 0; }
  .pk-gem-core { font-size: 11px; }
  .pk-bar { gap: 6px; }
  .pk-bar-track { height: 14px; }
  .pk-value { gap: 1px; }
  .pk-num { font-size: 15px; }
  .pk-unit { font-size: 9px; }
  .pk-pct { display: none; }
  .pool-key { width: 24px; height: 24px; font-size: 12px; }
  .pool-name { font-size: 12px; }

  /* 吸顶导航：四个入口排不下时横向滑动 */
  .quick-nav { justify-content: flex-start; padding: 8px 10px; gap: 6px; }
  .qn-item { font-size: 13px; padding: 5px 13px; letter-spacing: .06em; }

  /* 地图：缩小站点卡面并拉开画布，避免站牌重叠（仍可横向滑动） */
  .um-stage { min-width: 700px; }
  .stop-card { width: 46px; padding: 3px; border-radius: 5px; }
  .sf-corner { width: 7px; height: 7px; }
  .sf-gem { width: 5px; height: 5px; }
  .stop-at { font-size: 9px; padding: 0 6px; margin-top: 3px; }
  .stop-tip { font-size: 10px; max-width: 170px; }

  /* 满赠卡面：横向卡，一行三张 */
  .gd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .gd-tier { font-size: 10px; margin-top: 5px; }
  .gd-status { font-size: 10px; }

  /* 小卡图鉴：手机端一行四张 */
  .dex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .dex-no { font-size: 10px; margin-top: 6px; }
  .dex-name { font-size: 10px; }

  /* 个人满赠地图：缩小卡帧，保持横向滚动 */
  .pg-stage { min-width: 540px; }
  .pg-stop-card { width: 70px; }
  .pg-stop-at { font-size: 10px; }
  .pg-panel { padding: 14px; }
  .pg-input { width: 54px; font-size: 15px; }
  .pg-total-num { font-size: 20px; }

  /* 灯箱：窄屏收紧内边距与图幅 */
  .lb-overlay { padding: 14px; gap: 12px; }
  .lb-imgbox { max-width: 86vw; max-height: 62vh; padding: 4px; }
  .lb-imgbox img { max-height: 62vh; }
  .lb-nav { width: 36px; height: 36px; font-size: 22px; }
  .lb-flip-btn { padding: 6px 16px; font-size: 12px; }
  .lb-title { font-size: 15px; }
}

@media (max-width: 400px) {
  .site-title { font-size: 22px; padding-right: 74px; }
  .site-head::after { width: 60px; height: 72px; top: 0; }
  .metric-value { font-size: 32px; }
  .card-title { font-size: 16px; }
}

/* ================= 降低动效偏好 ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    animation-delay: 0s !important;
    transition: none !important;
  }
  .fx-layer { display: none; }
}

/* ================= 数据刷新按钮 ================= */
.card.metric { position: relative; }
.fx-refresh {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1;
  color: var(--rouge);
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(166, 61, 64, .35);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.fx-refresh:hover { background: rgba(166, 61, 64, .08); border-color: var(--rouge); }
.fx-refresh:active { transform: scale(.96); }
.fx-refresh .fx-ico { font-size: 13px; display: inline-block; }
.fx-refresh.is-loading { opacity: .75; pointer-events: none; }
.fx-refresh.is-loading .fx-ico { animation: fxspin .8s linear infinite; }
@keyframes fxspin { to { transform: rotate(360deg); } }

.fx-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  padding: 8px 16px;
  font-size: 13px;
  color: #fff;
  background: rgba(59, 51, 48, .88);
  border-radius: 999px;
  z-index: 9999;
  animation: fxfade .25s ease;
}
@keyframes fxfade { from { opacity: 0; transform: translate(-50%, 6px); } }

@media (max-width: 680px) {
  .fx-refresh { top: 10px; right: 10px; padding: 4px 8px; font-size: 11px; }
  .fx-refresh .fx-txt { display: none; }
}
