/* ============================================================
   EveryGPT 抽奖活动 · 样式表
   ============================================================ */

:root {
  --blue: #3d6df5;
  --blue-2: #5b8bff;
  --blue-dark: #2f57d8;
  --blue-soft: #eef3ff;
  --ink: #1a1f36;
  --ink-2: #5b6478;
  --ink-3: #939bb0;
  --line: #edf0f8;
  --bg: #f6f8fd;
  --white: #ffffff;

  --violet-bg: #f1ecff; --violet-fg: #6d4de0;
  --indigo-bg: #e9f0ff; --indigo-fg: #3d5fe0;
  --green-bg:  #e5f7ee; --green-fg:  #1f9d63;
  --amber-bg:  #fdf2e0; --amber-fg:  #c9860a;
  --pink-bg:   #fdecf2; --pink-fg:   #d94a77;
  --gray-bg:   #f1f3f8; --gray-fg:   #8b93a7;

  --shadow-sm: 0 1px 2px rgba(26, 31, 54, .04);
  --shadow-md: 0 8px 28px rgba(26, 31, 54, .07);
  --shadow-lg: 0 24px 64px rgba(26, 31, 54, .14);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ---------------------------- 背景装饰 ---------------------------- */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-decor::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, #e8efff 0%, rgba(246, 248, 253, 0) 62%),
    linear-gradient(180deg, #f4f7ff 0%, #f7f9fd 42%, #f6f8fd 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
}

.blob-1 { width: 460px; height: 460px; top: -190px; left: -120px; background: #cfdcff; }
.blob-2 { width: 380px; height: 380px; top: -150px; right: -100px; background: #dbe6ff; }
.blob-3 { width: 520px; height: 320px; top: 120px; right: -180px; background: #e6ecff; opacity: .4; }

.bg-arc {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 1400px;
  height: 620px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(120, 155, 255, .16);
  opacity: .9;
}

.bg-arc.arc-2 {
  width: 1100px;
  height: 480px;
  top: -20px;
  border-color: rgba(120, 155, 255, .12);
}

/* ------------------------------ 导航 ------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26, 31, 54, .05);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 62px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; display: block; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14.5px;
  color: var(--ink-2);
  margin-left: 8px;
}

.nav-links a {
  position: relative;
  padding: 21px 0;
  transition: color .18s;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-right { margin-left: auto; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all .18s;
}

.user-chip:hover { border-color: #d8e0f5; box-shadow: var(--shadow-sm); }

.user-chip .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.user-chip .badge-chance {
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.user-menu {
  position: absolute;
  top: 54px;
  right: 24px;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: none;
  z-index: 50;
}

.user-menu.open { display: block; }

.user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.user-menu button:hover { background: #f5f7fd; color: var(--ink); }

/* ------------------------------ 页面 ------------------------------ */

.page {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 24px 80px;
}

.hero { text-align: center; margin-bottom: 38px; }

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: .5px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.5px;
}

.hero-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ------------------------------ 布局 ------------------------------ */

.board {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

/* --------------------------- 奖品一览卡片 --------------------------- */

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.panel-head .ph-icon {
  width: 22px; height: 22px;
  color: var(--blue);
  flex: none;
  margin-top: 3px;
}

.panel-head h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

.carousel { overflow: hidden; }

.track {
  display: flex;
  transition: transform .48s cubic-bezier(.4, 0, .2, 1);
}

.slide { min-width: 100%; }

.prize-wrap {
  display: grid;
  gap: 14px;
}

/* 奖项数量决定列数：1 个单列、2/4 个两列、其余三列 */
.prize-wrap[data-cols="1"] { grid-template-columns: 1fr; }
.prize-wrap[data-cols="2"] { grid-template-columns: 1fr 1fr; }
.prize-wrap[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }

/* 5 个奖项时沿用设计稿的「1 大 + 2×2」布局 */
.prize-wrap.feature-layout { grid-template-columns: 1.02fr 1fr; }

.prize-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.prize-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.tile-visual {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.tile-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 50% 110%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0));
}

.tile-visual svg { position: relative; z-index: 1; }

/* 视觉区高度按卡片尺寸分级；flex:1 让同一行的卡片自动等高 */
.tile-visual { flex: 1; }

.lg .tile-visual       { min-height: 260px; }
.lg .tile-visual svg   { width: 200px; height: 200px; }
.feature .tile-visual  { min-height: 240px; }
.feature .tile-visual svg { width: 200px; height: 200px; }
.md .tile-visual       { min-height: 168px; }
.md .tile-visual svg   { width: 92px; height: 92px; }
.sm .tile-visual       { min-height: 116px; }
.sm .tile-visual svg   { width: 62px; height: 62px; }
.mini .tile-visual     { min-height: 92px; }
.mini .tile-visual svg { width: 56px; height: 56px; }

.tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 7px;
}

.mini .tile-foot .tag { padding: 2px 8px; font-size: 11px; }

.stock-tag { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.stock-tag b { color: var(--blue); font-weight: 600; }
.stock-tag.out b { color: var(--ink-3); }

/* 卡片视觉区底色跟随奖项配色（后台可改） */
[data-color="violet"] .tile-visual { background: linear-gradient(160deg, #f2eeff, #e7dfff); }
[data-color="indigo"] .tile-visual { background: linear-gradient(160deg, #eef3ff, #e2ebff); }
[data-color="blue"]   .tile-visual { background: linear-gradient(160deg, #edf4ff, #dbe8ff); }
[data-color="green"]  .tile-visual { background: linear-gradient(160deg, #edfaf3, #e0f5ea); }
[data-color="amber"]  .tile-visual { background: linear-gradient(160deg, #fef7ec, #fcefd9); }
[data-color="pink"]   .tile-visual { background: linear-gradient(160deg, #fef1f6, #fce6ee); }
[data-color="red"]    .tile-visual { background: linear-gradient(160deg, #fef2f2, #fce4e4); }
[data-color="gray"]   .tile-visual { background: linear-gradient(160deg, #f6f8fc, #ebeff7); }

.tile-body { padding: 13px 15px 15px; }

.feature .tile-body { padding: 16px 18px 18px; }

.tile-name {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}

.feature .tile-name { font-size: 16.5px; }

.tile-desc {
  margin: 0 0 11px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.tag.violet { background: var(--violet-bg); color: var(--violet-fg); }
.tag.indigo { background: var(--indigo-bg); color: var(--indigo-fg); }
.tag.blue   { background: #e8f1ff; color: #2f6fe0; }
.tag.green  { background: var(--green-bg);  color: var(--green-fg); }
.tag.amber  { background: var(--amber-bg);  color: var(--amber-fg); }
.tag.pink   { background: var(--pink-bg);   color: var(--pink-fg); }
.tag.red    { background: #fdecec; color: #d94a4a; }
.tag.gray   { background: var(--gray-bg);   color: var(--gray-fg); }

.prize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.stock-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #eef1f8;
  overflow: hidden;
}

.stock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
}

/* --------------------------- 概率公示 --------------------------- */

.slide-rules h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.slide-rules > p {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.prob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.prob-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0 0 9px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.prob-table td {
  padding: 9px 0;
  border-bottom: 1px solid #f5f7fc;
  color: var(--ink-2);
}

.prob-table td:last-child,
.prob-table th:last-child { text-align: right; }

.prob-table .p-name { color: var(--ink); font-weight: 500; }

.prob-note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
  background: #f8fafe;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}

/* ------------------------------ 圆点 ------------------------------ */

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #dfe4f0;
  transition: all .25s;
}

.dots button.on {
  width: 20px;
  background: var(--blue);
}

/* --------------------------- 右侧参与卡片 --------------------------- */

.side-card { position: relative; overflow: hidden; }

.side-gift {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 118px;
  height: 118px;
  opacity: .95;
  pointer-events: none;
}

.side-head {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.side-head .sh-icon { width: 20px; height: 20px; color: var(--blue); flex: none; }

.side-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.side-head h3 { margin: 0; font-size: 15px; font-weight: 700; }

.steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.steps li {
  display: flex;
  gap: 13px;
  padding-bottom: 20px;
  position: relative;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 1.5px;
  background: linear-gradient(180deg, #dbe4fb, #eef1f9);
}

.steps li:last-child::before { display: none; }

.step-num {
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 600;
  background: #f2f5fd;
  color: var(--blue);
  border: 1.5px solid #e3eafb;
  position: relative;
  z-index: 1;
  transition: all .25s;
}

.steps li.done .step-num {
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  border-color: transparent;
  color: #fff;
}

.step-text { padding-top: 3px; }
.step-text b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.step-text span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

.step-reward {
  margin-left: auto;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-fg);
  background: var(--green-bg);
  padding: 2px 8px;
  border-radius: 999px;
  flex: none;
}

.divider { height: 1px; background: var(--line); margin: 22px 0; }

.side-block { position: relative; z-index: 1; }

.draw-time {
  margin: 14px 0 5px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.hint { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.6; }

.countdown {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.countdown .cd-cell {
  flex: 1;
  background: #f6f8fd;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 0;
  text-align: center;
}

.countdown .cd-num {
  display: block;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.countdown .cd-lb { font-size: 10.5px; color: var(--ink-3); }

.cta {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b8bff 0%, #3d6df5 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(61, 109, 245, .32);
  transition: all .2s;
  position: relative;
  z-index: 1;
}

.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(61, 109, 245, .4); }
.cta:active { transform: translateY(0); }
.cta:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.cta svg { width: 17px; height: 17px; }

.participants {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  position: relative;
  z-index: 1;
}

.participants b { color: var(--blue); font-weight: 600; }

/* ------------------------------ 弹窗 ------------------------------ */

.mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 26, 45, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.mask.open { display: flex; animation: fade .22s ease; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  position: relative;
  animation: pop .3s cubic-bezier(.34, 1.4, .64, 1);
  margin: auto;
}

.modal.wide { max-width: 520px; }

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f4f6fb;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all .18s;
}

.modal-close:hover { background: #eaeef8; color: var(--ink); }

.modal h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.modal .modal-sub { margin: 0 0 22px; font-size: 13px; color: var(--ink-3); }

.tabs {
  display: flex;
  gap: 4px;
  background: #f4f6fb;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  transition: all .18s;
}

.tabs button.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: var(--shadow-sm); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }

.field input {
  width: 100%;
  height: 44px;
  border: 1px solid #e3e8f4;
  border-radius: 11px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: all .18s;
  font-family: inherit;
}

.field input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(61, 109, 245, .12); }

.btn-primary {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b8bff, #3d6df5);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  transition: all .2s;
  margin-top: 6px;
}

.btn-primary:hover { box-shadow: 0 8px 20px rgba(61, 109, 245, .34); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  height: 42px;
  padding: 0 20px;
  border: 1px solid #e3e8f4;
  border-radius: 11px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .18s;
  white-space: nowrap;
  flex: none;
}

.btn-ghost:hover { border-color: #cfdaf5; color: var(--ink); }

.form-tip { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-3); text-align: center; line-height: 1.6; }

.form-msg {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #d94a4a;
  background: #fdf0f0;
  border-radius: 9px;
  padding: 9px 12px;
  display: none;
}

.form-msg.show { display: block; }
.form-msg.ok { color: var(--green-fg); background: var(--green-bg); }

/* ---------------------------- 九宫格抽奖 ---------------------------- */

.grid-wrap { position: relative; padding: 4px 0 8px; }

.nine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.grid-cell {
  height: 88px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  transition: all .12s;
  position: relative;
  overflow: hidden;
}

.grid-cell svg { width: 30px; height: 30px; }

.grid-cell .gc-name {
  font-size: 11px;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

.grid-cell.active {
  border-color: var(--blue);
  background: #eef3ff;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(61, 109, 245, .22);
}

.grid-cell.win {
  border-color: #f0b429;
  background: linear-gradient(150deg, #fff8e6, #ffeecd);
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(240, 180, 41, .35);
}

.grid-cell.dim { opacity: .4; }

.grid-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc((100% - 18px) / 3);
  height: 88px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(140deg, #5b8bff, #3d6df5);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 8px 22px rgba(61, 109, 245, .38);
  transition: all .2s;
  z-index: 2;
}

.grid-center:hover { transform: translate(-50%, -50%) scale(1.03); }
.grid-center:disabled { opacity: .55; cursor: not-allowed; transform: translate(-50%, -50%); }

.grid-center b { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.grid-center small { font-size: 10.5px; opacity: .88; }

/* 抽奖结果 */

.draw-result { display: none; text-align: center; padding: 6px 0 2px; }
.draw-result.show { display: block; animation: pop .34s cubic-bezier(.34, 1.4, .64, 1); }

.result-icon {
  width: 82px; height: 82px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eef3ff, #dfe8ff);
}

.result-icon svg { width: 48px; height: 48px; }

.result-level {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.result-name { margin: 0 0 18px; font-size: 21px; font-weight: 700; letter-spacing: -.3px; }

.code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f8fd;
  border: 1px dashed #ccd8f2;
  border-radius: 13px;
  padding: 13px 13px 13px 16px;
  margin-bottom: 14px;
}

.code-box code {
  flex: 1;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--blue-dark);
  text-align: left;
  word-break: break-all;
}

.copy-btn {
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 15px;
  flex: none;
  transition: all .18s;
}

.copy-btn:hover { background: var(--blue-dark); }
.copy-btn.done { background: var(--green-fg); }

.result-tip { margin: 0 0 20px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

.result-actions { display: flex; gap: 10px; }
.result-actions .btn-primary { margin: 0; flex: 1; width: auto; }

.lose-icon { background: linear-gradient(150deg, #f4f6fb, #e9edf7); }

/* ---------------------------- 任务中心 ---------------------------- */

.task-list { display: flex; flex-direction: column; gap: 10px; }

.task-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbfcfe;
  transition: all .2s;
}

.task-item.done { background: #f7fbf9; border-color: #dff0e7; }

.task-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.task-ico svg { width: 19px; height: 19px; }
.task-item.done .task-ico { background: var(--green-bg); color: var(--green-fg); }

.task-info { flex: 1; min-width: 0; }
.task-info b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.task-info span { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

.task-act {
  flex: none;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 15px;
  transition: all .18s;
}

.task-act:hover { background: var(--blue-dark); }
.task-act:disabled { background: #eef1f8; color: var(--ink-3); cursor: not-allowed; }

/* ---------------------------- 我的奖品 ---------------------------- */

.records { display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto; }

.record-item {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
}

.record-item .r-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
}

.record-item .r-ico svg { width: 20px; height: 20px; }

.record-item .r-info { flex: 1; min-width: 0; }
.record-item .r-info b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }

.record-item .r-code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: .8px;
  color: var(--blue-dark);
  background: #f6f8fd;
  border-radius: 6px;
  padding: 2px 7px;
  display: inline-block;
}

.record-item .r-time { font-size: 11px; color: var(--ink-3); margin-top: 5px; display: block; }

.empty {
  text-align: center;
  padding: 44px 0;
  color: var(--ink-3);
  font-size: 13px;
}

.empty svg { width: 56px; height: 56px; margin-bottom: 12px; opacity: .5; }

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translate(-50%, 20px);
  background: rgba(26, 31, 54, .93);
  color: #fff;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 999px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all .28s cubic-bezier(.34, 1.4, .64, 1);
  box-shadow: 0 12px 30px rgba(20, 26, 45, .28);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------- 参与弹窗 ---------------------------- */

.cd-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #eef3ff, #e4ecff);
  border: 1px solid #e2e9fb;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.cd-banner-lb { font-size: 12.5px; color: var(--ink-2); }

.cd-banner-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}

.ticket-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: #fbfcfe;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 11px;
}

.ticket-count { color: var(--blue); font-weight: 600; }

.ticket-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 138px;
  overflow-y: auto;
}

.ticket {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px dashed #c6d4f2;
  border-radius: 9px;
  padding: 6px 11px;
}

.ticket-empty { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.draw-result .ticket-list { justify-content: center; }
.draw-result .ticket-head { justify-content: center; }

.empty-row { text-align: center; color: var(--ink-3); padding: 30px 0 !important; }

.prize-wrap .empty {
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  padding: 60px 0;
  margin: 0;
}

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

@media (max-width: 1024px) {
  .board { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .feature .tile-visual { height: 210px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .page { padding: 30px 16px 60px; }
  .hero h1 { font-size: 26px; }
  .card { padding: 20px; }
  /* 小屏一律单列，避免奖项多了挤成一团 */
  .prize-wrap,
  .prize-wrap[data-cols="1"],
  .prize-wrap[data-cols="2"],
  .prize-wrap[data-cols="3"],
  .prize-wrap.feature-layout { grid-template-columns: 1fr; }
  .prize-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .lg .tile-visual { min-height: 180px; }
  .md .tile-visual { min-height: 130px; }
  .modal { padding: 24px; }
  .cd-banner-num { font-size: 15px; }
}
