/* ============================================================
   群像盲盒 —— 样式表
   ============================================================ */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #6B6B66;
  --text-3: #A8A49E;
  --accent: #C4532A;
  --accent-soft: #F7EDE7;
  --spot: #3B6D4F;
  --spot-soft: #EAF0E9;
  --line: #EBE7E1;
  --radius: 24px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D8D3CA; border-radius: 5px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #C4BFB6; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 背景：沂蒙晨雾弥散（暖橙 + 灰蓝） ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); will-change: transform;
}
.blob-1 { width: 55vmax; height: 55vmax; background: #F5D4C3; top: -20%; left: -14%; opacity: .5; animation: drift1 26s ease-in-out infinite; }
.blob-2 { width: 48vmax; height: 48vmax; background: #D3E2F2; bottom: -20%; right: -14%; opacity: .42; animation: drift2 32s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vh) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw,-4vh) scale(.94); } }
.grid-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26,26,26,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,26,26,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 42%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 42%, black 0%, transparent 72%);
}

/* ---------- 噪点颗粒（纸感） ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

/* ---------- 导航 ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  background: rgba(250,248,245,.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(235,231,225,.6);
  transition: box-shadow .3s, background .3s;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(26,26,26,.06); }


.pill-group {
  position: relative; display: flex; gap: 2px;
  background: #F0EDE8; border-radius: 999px; padding: 3px;
}
.pill-group .slider {
  position: absolute; top: 3px; bottom: 3px; border-radius: 999px;
  background: var(--surface); box-shadow: 0 1px 3px rgba(26,26,26,.08), 0 4px 10px rgba(26,26,26,.06);
  transition: left .32s var(--ease-spring), width .32s var(--ease-spring);
  z-index: 1;
}
.pill {
  position: relative; z-index: 2;
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; color: var(--text-2); font-family: inherit;
  padding: 7px 18px; border-radius: 999px;
  transition: color .2s;
}
.pill.active { color: var(--text); font-weight: 500; }

/* ---------- 两栏版式 ---------- */
main { position: relative; z-index: 1; flex: 1 0 auto; display: flex; }
.layout {
  max-width: 1060px; margin: 0 auto;
  padding: 120px 48px 64px;
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
  min-height: 100%;
}
.col-left { text-align: left; }

/* ---------- Hero（左栏） ---------- */
.hero-eyebrow {
  font-size: 12px; letter-spacing: 4px; color: var(--accent);
  font-weight: 500; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700; letter-spacing: 2px; line-height: 1.26;
}
.hero h1 .accent { color: var(--accent); transition: color .35s; }
.hero h1.spot-mode .accent { color: var(--spot); }
.hero h1 span { display: inline-block; transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.hero h1.swapping span { opacity: 0; transform: translateY(10px); }
.slogan {
  margin-top: 16px; font-size: 15px; color: var(--text-2);
  height: 22px; letter-spacing: 0.5px;
}
.caret {
  display: inline-block; width: 2px; height: 15px; margin-left: 3px;
  background: var(--accent); vertical-align: -2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 收藏编号 ---------- */
.draw-info { margin-top: clamp(30px, 5vh, 52px); }
.draw-label {
  font-size: 11px; letter-spacing: 3px; color: var(--text-3);
  margin-bottom: 6px;
}
.draw-no {
  display: flex; align-items: baseline; gap: 0;
  font-variant-numeric: tabular-nums;
}
.no-mark { font-size: 38px; font-weight: 800; letter-spacing: 1px; margin-right: 3px; }
.draw-no b { font-size: 38px; font-weight: 800; letter-spacing: 1px; display: inline-block; }
.draw-no.bump { animation: noBump .45s var(--ease-spring); }
@keyframes noBump { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 推荐卡（右栏） ---------- */
.card {
  position: relative;
  width: 100%; background: var(--surface);
  border: 1px solid rgba(26,26,26,.05);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(26,26,26,.04),
    0 4px 12px rgba(26,26,26,.05),
    0 24px 48px -12px rgba(26,26,26,.10);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .38s var(--ease-out), opacity .3s var(--ease-out);
}
.card.leaving { transform: scale(.96) translateY(10px) !important; opacity: 0; }
.card.entering { animation: pop .45s var(--ease-spring); }
@keyframes pop {
  from { transform: scale(.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.card-media {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s;
  overflow: hidden;
}
.card-media.spot { background: var(--spot-soft); }
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--accent); transition: color .4s;
}
.card-media.spot .photo-placeholder { color: var(--spot); }
.ph-icon { opacity: .5; }
.ph-name { font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.wm {
  position: absolute; right: -10px; bottom: -38px;
  font-size: 190px; font-weight: 700; line-height: 1;
  color: var(--accent); opacity: .06;
  user-select: none; pointer-events: none;
  transition: color .4s;
}
.card-media.spot .wm { color: var(--spot); }
.badge {
  position: absolute; top: 18px; left: 18px;
  font-size: 12px; font-weight: 500; letter-spacing: 1px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  color: var(--accent);
  padding: 5px 12px; border-radius: 999px;
  transition: color .4s;
}
.card-media.spot .badge { color: var(--spot); }
.loading-text {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--text-2); letter-spacing: 1px;
  opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
.loading-text.show { opacity: .85; }


.card-body { padding: 30px 34px 34px; }
.meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.meta h2 { font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.tag {
  font-size: 12px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; letter-spacing: 1px;
}
.desc { font-size: 15px; line-height: 1.85; color: var(--text-2); }
.tip {
  margin-top: 18px; padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 13px; color: var(--text-3); line-height: 1.7;
  transition: border-color .4s;
}
.tip.spot { border-left-color: var(--spot); }

/* ---------- 操作区（左栏） ---------- */
.actions { margin-top: clamp(24px, 4vh, 38px); display: flex; }
.btn-primary {
  border: none; cursor: pointer; font-family: inherit;
  background: var(--text); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: 2px;
  padding: 14px 44px; border-radius: 999px;
  transition: transform .18s var(--ease-out), box-shadow .25s, background .25s;
  box-shadow: 0 4px 14px rgba(26,26,26,.14);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,26,26,.18); background: var(--accent); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.counter {
  margin-top: 20px; font-size: 13px; color: var(--text-3); letter-spacing: 1px;
}
.counter b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 页脚 ---------- */
footer {
  position: relative; z-index: 1;
  flex-shrink: 0;
  padding: 32px 24px 40px; text-align: center;
  font-size: 12px; color: var(--text-3); letter-spacing: 1px;
}
footer .line { margin-bottom: 8px; }
footer a { color: var(--text-3); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--accent); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); animation: reveal .7s var(--ease-out) forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .25s; }
.reveal.d3 { animation-delay: .4s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- 响应式：回落单列 ---------- */
@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 112px 24px 56px;
    gap: 36px;
    min-height: auto;
  }
  .col-left { text-align: center; }
  .hero-eyebrow, .hero h1, .slogan, .counter,   .draw-info { text-align: center; }
  .actions { justify-content: center; }
  .draw-no { justify-content: center; }
  .grid-layer {
    -webkit-mask-image: radial-gradient(ellipse at 50% 28%, black 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 28%, black 0%, transparent 72%);
  }
  .card-body { padding: 22px 22px 26px; }
  .meta h2 { font-size: 24px; }
  .wm { font-size: 140px; bottom: -26px; }
}
@media (max-width: 560px) {
  nav { padding: 12px 16px; }
  .draw-no b { font-size: 32px; }
}
