/* 数字盲盒 · Digital Blind Box
   视觉基调：SvelteKit 默认模板那一路 —— 纯白底、超大字号、克制留白、单一强调色 #ff3e00
   质感来源：细网格背景 + 盲盒式数字格子 + 滚动进场 */

:root {
  --brand: #ff3e00;
  --brand-dark: #d83300;
  --brand-soft: #fff2ed;
  --ink: #14141a;
  --ink-2: #3d3d46;
  --muted: #75757f;
  --line: rgba(20, 20, 26, 0.09);
  --line-strong: rgba(20, 20, 26, 0.16);
  --paper: #ffffff;
  --mist: #fafafa;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 26, .05);
  --shadow-md: 0 10px 30px -12px rgba(20, 20, 26, .18), 0 2px 6px rgba(20, 20, 26, .04);
  --shadow-lg: 0 30px 70px -30px rgba(255, 62, 0, .35), 0 8px 22px -12px rgba(20, 20, 26, .12);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(255, 62, 0, .16); color: var(--ink); }

/* hidden 属性优先级最高，防止被 display:flex 等覆盖 */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(20, 20, 26, .16);
  border-radius: 999px;
  border: 3px solid #fff;
}
::-webkit-scrollbar-thumb:hover { background: rgba(20, 20, 26, .3); }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 20, 26, .5);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border-radius: 11px;
  filter: drop-shadow(0 4px 10px rgba(255, 62, 0, .32));
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.brand-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.nav-cta:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

/* ---------- Hero：SvelteKit 欢迎页气质 ---------- */

.hero {
  position: relative;
  padding: clamp(28px, 5vw, 72px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(42% 48% at 50% 8%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(28% 30% at 50% 0%, rgba(255, 62, 0, .07), transparent 72%);
  pointer-events: none;
}

.hero-inner { position: relative; text-align: center; width: 100%; }

/* 3D 立体橙字 —— 仿 WELCOME */
.welcome-3d {
  margin: 0 auto 8px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(2px, .6vw, 8px);
  perspective: 900px;
  font-size: clamp(64px, 12.4vw, 148px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.06em;
  color: #ff3e00;
  user-select: none;
}
.welcome-3d span {
  display: inline-block;
  transform: rotateY(var(--ry, 0deg)) rotateX(18deg) translateZ(18px);
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, #ff8a5c 0%, #ff3e00 42%, #c92a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 #ffb089,
    0 8px 0 #d83300,
    0 16px 0 #b32600,
    0 28px 36px rgba(255, 62, 0, .32);
  filter: drop-shadow(0 18px 22px rgba(180, 40, 0, .28));
  animation: welcomePop .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes welcomePop {
  from { opacity: 0; transform: rotateY(var(--ry, 0deg)) rotateX(38deg) translateY(28px) translateZ(0); }
  to   { opacity: 1; transform: rotateY(var(--ry, 0deg)) rotateX(18deg) translateY(0) translateZ(18px); }
}

.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: #3a3a44;
  line-height: 1.2;
}
.hero-caption {
  margin: 14px 0 36px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: .01em;
}
.hero-caption b { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 号码卡 ---------- */

.ticket {
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto 26px;
  padding: 28px 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 62, 0, .035), rgba(255, 62, 0, 0) 120px),
    var(--paper);
  box-shadow: var(--shadow-md);
  transition: box-shadow .4s ease, border-color .4s ease, transform .4s cubic-bezier(.2,.8,.2,1);
}
.ticket[data-state="done"] { border-color: rgba(255, 62, 0, .28); box-shadow: var(--shadow-lg); }
.ticket[data-state="rolling"] { transform: scale(1.012); }

.ticket-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.ticket-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.ticket-flag {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: var(--mist); color: var(--muted);
  transition: background .3s ease, color .3s ease;
}
.ticket[data-state="done"] .ticket-flag { background: var(--brand-soft); color: var(--brand); }

/* 盲盒格子：可单张点击翻转 */
.digits {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1vw, 9px);
  perspective: 1000px;
}
.digit {
  position: relative;
  width: clamp(38px, 12vw, 86px);
  height: clamp(64px, 16vw, 116px);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2, .85, .3, 1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.digit.open { transform: rotateY(180deg); }

.digit .face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid var(--line);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-align: center;
  transition: color .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

/* 数独水印（弱化版）：一个 3×3 宫为一格，细线近乎不可见，只留两个淡数字作暗示 */
.digits {
  --sudoku: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg stroke='%2314141a' fill='none' stroke-opacity='.055' stroke-width='.7'%3E%3Cpath d='M.5 0V36M12.5 0V36M24.5 0V36M35.5 0V36M0 .5H36M0 12.5H36M0 24.5H36M0 35.5H36'/%3E%3C/g%3E%3Cg fill='%2314141a' fill-opacity='.05' font-family='Helvetica,Arial,sans-serif' font-size='8' text-anchor='middle'%3E%3Ctext x='6' y='9'%3E4%3C/text%3E%3Ctext x='30' y='33'%3E9%3C/text%3E%3C/g%3E%3C/svg%3E");
  --sudoku-hot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg stroke='%23ff3e00' fill='none' stroke-opacity='.12' stroke-width='.7'%3E%3Cpath d='M.5 0V36M12.5 0V36M24.5 0V36M35.5 0V36M0 .5H36M0 12.5H36M0 24.5H36M0 35.5H36'/%3E%3C/g%3E%3Cg fill='%23ff3e00' fill-opacity='.1' font-family='Helvetica,Arial,sans-serif' font-size='8' text-anchor='middle'%3E%3Ctext x='6' y='9'%3E4%3C/text%3E%3Ctext x='30' y='33'%3E9%3C/text%3E%3C/g%3E%3C/svg%3E");
}

/* 正面：未刮开的浅色卡 —— 干净底色 + 一层很淡的数独水印（边缘径向淡出） */
.digit .front {
  background-color: #fdfdfe;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(20, 20, 26, .035));
  color: #c2c2cc;
  font-size: clamp(28px, 6.4vw, 46px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -3px 0 rgba(20, 20, 26, .05),
    0 3px 8px -3px rgba(20, 20, 26, .12);
}
/* 水印独立成层，用 mask 往边缘淡出，避免整块被网格压满 */
.digit .front::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--sudoku);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 42%, #000 0%, rgba(0, 0, 0, .5) 58%, transparent 100%);
  mask-image: radial-gradient(125% 95% at 50% 42%, #000 0%, rgba(0, 0, 0, .5) 58%, transparent 100%);
  transition: opacity .25s ease;
}

/* 背面：数字 */
.digit .back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #fff6f2, #ffffff);
  border-color: rgba(255, 62, 0, .3);
  color: var(--brand);
  font-size: clamp(30px, 7.4vw, 58px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -3px 0 rgba(255, 62, 0, .1),
    0 10px 22px -12px rgba(255, 62, 0, .7);
}
/* 数字：保留格子底色，文字用纯橙 + 内高光（background-clip 会连底色一起裁掉，不能用） */
.digit .back.num {
  color: var(--brand);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85), 0 6px 14px rgba(255, 62, 0, .22);
}

/* 背面顶部的橙色光条，强化色块存在感 */
.digit .back::before {
  content: '';
  position: absolute;
  top: 0; left: 16%; right: 16%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .55;
}

/* 背面：彩蛋（按字数分级，绝不越框） */
.digit .back.egg {
  font-size: clamp(11px, 2.4vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  word-break: break-word;
}
.digit .back.egg.long {
  font-size: clamp(9.5px, 1.9vw, 13px);
  letter-spacing: -.02em;
}
.digit .back.egg.icon {
  font-size: clamp(20px, 4.6vw, 34px);
  font-weight: 400;
  line-height: 1;
}

/* 背面：品牌（后台图库 —— 有图显示 LOGO，无图降级为品牌色文字） */
.digit .back.brand {
  padding: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  word-break: break-word;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}
.digit .back.brand img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(20, 20, 26, .14));
}
.digit .back.brand.word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  font-size: clamp(14px, 3vw, 20px);
  letter-spacing: .04em;
  line-height: 1.12;
  word-break: keep-all;
}
.digit .back.brand.word .brand-line {
  display: block;
  white-space: nowrap;
}
.digit .back.brand.word.short {
  font-size: clamp(16px, 3.6vw, 24px);
}
.digit .back.brand.word.long {
  font-size: clamp(11px, 2.2vw, 15px);
  letter-spacing: .02em;
  gap: 0;
  line-height: 1.08;
}

/* 悬停：灰块变橙、抬起、外发光 */
.digit:not(.open):hover { transform: translateY(-4px); }
.digit:not(.open):hover .front {
  color: var(--brand);
  border-color: rgba(255, 62, 0, .45);
  background-color: #fff7f4;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 62, 0, .075));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -3px 0 rgba(255, 62, 0, .12),
    0 14px 26px -12px rgba(255, 62, 0, .85);
}
/* 悬停时水印换成淡橙色版（依然克制，只做呼应） */
.digit:not(.open):hover .front::after {
  background-image: var(--sudoku-hot);
  opacity: .9;
}
.digit:not(.open):active { transform: translateY(0) scale(.97); }

/* 开盒滚动中：正面数字跳动 */
.ticket[data-state="rolling"] .digit .front { color: var(--ink); }

.ticket-meta { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

.ticket-sub {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 12.5px; color: var(--muted);
}
.code {
  font-family: var(--mono);
  letter-spacing: .06em;
  cursor: pointer;
  user-select: all;
  transition: color .18s ease;
}
.code:hover { color: var(--brand); }
.copy-group { display: flex; gap: 14px; }
.link-btn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--brand);
  border-bottom: 1px solid rgba(255, 62, 0, .32);
  transition: border-color .18s ease;
}
.link-btn:hover { border-bottom-color: var(--brand); }

.ticket-warn {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.ticket-warn b { color: var(--brand); }

/* ---------- 按钮 ---------- */

.actions { margin: 28px 0 18px; }

.btn-primary {
  position: relative;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  padding: 19px 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5320, var(--brand));
  box-shadow:
    0 12px 26px -10px rgba(255, 62, 0, .55),
    0 2px 4px rgba(255, 62, 0, .2),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, opacity .2s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 62, 0, .28), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0) scale(.985); }
.btn-primary:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-primary:disabled::after { opacity: 0; }

.hint { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.nick-wrap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 26px;
}
.nick-input {
  width: min(340px, 100%);
  padding: 12px 16px;
  font: inherit; font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nick-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 62, 0, .1); }
.btn-ghost {
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  transition: all .18s ease;
}
.btn-ghost:hover {
  border-color: var(--brand); color: var(--brand);
  box-shadow: 0 6px 16px -12px rgba(255, 62, 0, .8);
  transform: translateY(-1px);
}
.nick-tip { font-size: 13px; color: var(--muted); }
.nick-tip.ok { color: var(--brand); }

/* ---------- 号池进度 ---------- */

.pool { width: min(640px, 100%); margin: 0 auto; text-align: left; }
.pool-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--muted); margin-bottom: 9px;
}
.pool-head strong { color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.pool-bar {
  height: 7px; border-radius: 999px; background: var(--mist);
  border: 1px solid var(--line); overflow: hidden;
}
.pool-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #ff7a3d, var(--brand));
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}

/* ---------- 区块 ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.alt { background: var(--mist); border-block: 1px solid var(--line); }

/* 玩法块内容整体上挪：上半留白收窄，下半保持 */
#rules { padding-top: clamp(28px, 3.6vw, 48px); }
#rules .h2 { margin-bottom: 34px; }

.kicker {
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand);
}
.kicker::before {
  content: '';
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--brand);
}
.h2 {
  margin: 0 0 44px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.03em;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease, border-color .24s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 62, 0, .3);
  box-shadow: 0 18px 40px -24px rgba(255, 62, 0, .5), var(--shadow-md);
}
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 20px;
  border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 14px; font-weight: 800;
  transition: background .24s ease, color .24s ease, transform .24s ease;
}
.card:hover .step { background: var(--brand); color: #fff; transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 19.5px; font-weight: 700; letter-spacing: -.02em; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.card strong { color: var(--brand); }

/* 零费用承诺：整卡强调 */
.card.promise {
  border-color: rgba(255, 62, 0, .32);
  background: linear-gradient(180deg, #fff7f4, #fff);
  box-shadow: 0 16px 36px -28px rgba(255, 62, 0, .7);
}
.card.promise .step { background: var(--brand); color: #fff; }
.card.promise h3 { color: var(--brand); }
.card.promise:hover { border-color: var(--brand); }
.card .free {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
}

/* ---------- 兑奖须知 ---------- */

.cs {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 26px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 62, 0, .22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff7f4, #fff);
  box-shadow: var(--shadow-sm);
}
.notice-icon { font-size: 26px; line-height: 1.2; }
.notice-body { font-size: 14.5px; color: var(--ink-2); }
.notice-body strong { display: block; margin-bottom: 9px; font-size: 16.5px; color: var(--ink); }
.notice-body ul { margin: 0; padding-left: 20px; }
.notice-body li { margin: 5px 0; }
.notice-body b { color: var(--brand); }

/* ---------- 兑奖自检 ---------- */

.verify {
  margin-top: 22px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.verify h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.verify-tip { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.verify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.v-input {
  flex: 1 1 210px;
  padding: 12px 16px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.v-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 62, 0, .1); }
.verify-result { margin: 16px 0 0; min-height: 20px; font-size: 14px; color: var(--muted); }
.verify-result.good { color: var(--brand); font-weight: 700; }
.verify-result.ok { color: var(--ink); }
.verify-result.bad { color: #c0392b; }

/* ---------- 倒计时 ---------- */

.countdown { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cd-unit {
  position: relative;
  min-width: 108px;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfbfc);
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cd-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 62, 0, .55), transparent);
}
.cd-unit b {
  display: block;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.cd-unit span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.cd-note { margin: 0 0 48px; font-size: 14px; color: var(--muted); }

/* ---------- 中奖名单 ---------- */

.winners {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.winners-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px; flex-wrap: wrap;
}
.winners-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.period {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px;
}

.winner-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.win {
  position: relative;
  padding: 26px 12px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff7f4, #fff);
  border: 1px solid rgba(255, 62, 0, .2);
  text-align: center;
  overflow: hidden;
  animation: rise .5s cubic-bezier(.2,.8,.2,1) backwards;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}
.win::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: .5;
}
.win:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(255, 62, 0, .7); }
.win b {
  display: block;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--brand);
}
.win span { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); }
.win.mine {
  background: linear-gradient(180deg, #ff3e00, #ff6a2a);
  border-color: transparent;
  box-shadow: 0 14px 30px -16px rgba(255, 62, 0, .8);
}
.win.mine b, .win.mine span { color: #fff; }
.win.mine::before { background: rgba(255, 255, 255, .55); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.empty { padding: 26px 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 往期 ---------- */

.history { display: grid; gap: 12px; }
.hist {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color .2s ease, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.hist:hover {
  transform: translateX(3px);
  border-color: rgba(255, 62, 0, .28);
  box-shadow: var(--shadow-sm);
}
.hist-period { font-size: 13px; font-weight: 700; color: var(--ink); min-width: 88px; }
.hist-date { font-size: 12.5px; color: var(--muted); }
.hist-nums { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.hist-nums code {
  font-family: var(--mono);
  font-size: 13px; font-weight: 700;
  padding: 5px 10px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-2);
}
.muted { color: var(--muted); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translate(-50%, 20px);
  max-width: min(560px, calc(100% - 40px));
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(20, 20, 26, .94);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 40px -20px rgba(20, 20, 26, .8);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动进场 ---------- */

/* 仅当 JS 可用时才隐藏，避免脚本加载失败导致内容不可见 */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s cubic-bezier(.2,.8,.2,1), transform .62s cubic-bezier(.2,.8,.2,1);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .winner-list { grid-template-columns: repeat(2, 1fr); }
  .nav a { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .ticket { padding: 24px 18px 22px; }
  .ticket-sub { flex-direction: column; gap: 8px; }
  .digits { gap: 5px; }
  .btn-primary { width: 100%; padding: 18px 20px; }
  .cd-unit { min-width: calc(50% - 7px); }
  .winners { padding: 24px 20px; }
  .hist-nums { margin-left: 0; }
  .brand-text em { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .notice { padding: 22px 20px; gap: 12px; }
  .verify { padding: 22px 20px; }
  .verify-form { flex-direction: column; }
  .ticket-sub { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Hero v2（eyebrow + 超大标题 + lede，对齐设计稿）---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 62, 0, .22);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--brand-dark);
}
.eyebrow .dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 62, 0, .14);
}

.title {
  margin: 0 auto;
  font-size: clamp(44px, 8.4vw, 118px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
}
.title .accent {
  display: inline-block;
  background: linear-gradient(180deg, #ff8a5c 0%, #ff3e00 42%, #c92a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 22px rgba(200, 45, 0, .30));
}

.lede {
  margin: 28px auto 38px;
  max-width: 780px;
  font-size: clamp(15px, 1.75vw, 19px);
  line-height: 1.75;
  color: var(--ink-2);
}
.lede strong { color: var(--ink); font-weight: 700; }
.lede .range {
  color: var(--brand);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .eyebrow { font-size: 11.5px; padding: 7px 12px; letter-spacing: 0; margin-bottom: 18px; }
  .lede { margin: 22px auto 30px; }
}
