/* ========== 变量 ========== */
:root {
  --bg: #0f1222;
  --bg-2: #161a30;
  --bg-3: #1d2240;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf6;
  --muted: #9aa0c3;
  --orange: #f7931a;
  --orange-2: #ffb547;
  --radius: 14px;
  --header-h: 64px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 780px; }
.center { text-align: center; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #1a1206;
  box-shadow: 0 6px 18px rgba(247, 147, 26, .35);
}
.btn--primary:hover { box-shadow: 0 8px 24px rgba(247, 147, 26, .5); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .25); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--success { background: rgba(34, 197, 94, .15); border-color: #22c55e; color: #22c55e; cursor: default; }
.btn--success:active { transform: none; }
body:not(.is-auth) [data-auth="user"],
body.is-auth [data-auth="guest"] { display: none; }
.btn--block { width: 100%; padding: 13px; }

/* ========== 头部 ========== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: rgba(15, 18, 34, .6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.header.scrolled { background: rgba(15, 18, 34, .95); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; }
.logo__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff; font-size: 20px;
  transform: rotate(-12deg);
}
.logo__text b { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__link { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav__link:hover { color: var(--text); }
.nav__auth { display: flex; gap: 10px; }
.lang {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 8px; font-size: 13px;
}

.burger {
  display: none; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ========== 主视觉 ========== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 60px) 0 70px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(247, 147, 26, .18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(90, 100, 255, .15), transparent 50%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__title { font-size: clamp(40px, 7vw, 72px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; }
.hero__title span {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 18px 0 14px; font-size: 18px; color: var(--muted); }
.hero__lead strong { color: var(--orange); }
.hero__list { list-style: none; display: grid; gap: 8px; margin-bottom: 28px; }
.hero__list li { padding-left: 26px; position: relative; }
.hero__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(247, 147, 26, .18); color: var(--orange);
  font-size: 11px; display: grid; place-items: center;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 400px; justify-self: center; width: 100%; }
.coin {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd08a, var(--orange) 55%, #b86400);
  box-shadow: 0 0 80px rgba(247, 147, 26, .5), inset -10px -14px 30px rgba(0, 0, 0, .3);
  display: grid; place-items: center;
  animation: float 4s ease-in-out infinite;
}
.coin__face {
  font-size: clamp(80px, 16vw, 150px); font-weight: 800; color: #fff;
  transform: rotate(-12deg); text-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.orbit { position: absolute; border: 1px dashed rgba(247, 147, 26, .35); border-radius: 50%; }
.orbit--1 { inset: 6%; animation: spin 30s linear infinite; }
.orbit--2 { inset: -4%; border-color: rgba(255, 255, 255, .08); animation: spin 50s linear infinite reverse; }
.orbit--1::after {
  content: ""; position: absolute; top: 10%; left: 12%;
  width: 12px; height: 12px; border-radius: 50%; background: var(--orange-2);
  box-shadow: 0 0 12px var(--orange-2);
}
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 数据栏 ========== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 30px 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__icon {
  position: relative;
  width: 112px; height: 112px; margin: 0 auto 16px; padding: 12px;
  border-radius: 24px;
  display: grid; place-items: center;
  /* 渐变描边：内层底色 + 外层渐变边框 */
  background:
    radial-gradient(circle at 50% 40%, rgba(160, 110, 255, .28), transparent 70%) padding-box,
    linear-gradient(160deg, #262c52, #191d38) padding-box,
    linear-gradient(140deg, rgba(247, 147, 26, .9), rgba(140, 90, 255, .55) 50%, rgba(255, 255, 255, .08)) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .35),
    0 0 28px rgba(140, 90, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .3s, box-shadow .3s;
}
.stat__icon img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  transition: transform .3s;
}
.stat:hover .stat__icon {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .4), 0 0 36px rgba(247, 147, 26, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.stat:hover .stat__icon img { transform: scale(1.06); }
.stat__num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 14px; }

/* ========== 通用区块 ========== */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section__title { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; margin-bottom: 12px; }
.section__title span { color: var(--orange); }
.section__desc { color: var(--muted); margin-bottom: 22px; }

/* ========== 功能 ========== */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 50px; margin-bottom: 60px;
}
.feature--reverse .feature__media { order: 2; }
.feature__media { display: flex; justify-content: center; }
.illus {
  width: 100%; max-width: 300px; aspect-ratio: 4 / 3;
  border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  color: #7d86d9;
}
.illus svg { width: 46%; }
.feature__body h3 { font-size: 24px; margin-bottom: 10px; }
.feature__body p { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(247, 147, 26, .4); }
.card__icon { font-size: 30px; margin-bottom: 12px; }
.card h4 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }

/* ========== 比特币抽奖 ========== */
.lottery {
  position: relative; overflow: hidden; padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 22% 40%, rgba(247, 147, 26, .22), transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(247, 147, 26, .1), transparent 45%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 32px 32px,
    #0b0a10;
}
.lottery__main { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }

.wheel { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.wheel__glass {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 4;
  border: 2px solid rgba(255, 255, 255, .16);
  background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .14), transparent 45%);
  transform: rotate(-18deg) scaleY(.94);
}
.wheel__glass::after {
  content: ""; position: absolute; inset: -3%; border-radius: 50%;
  border: 2px solid rgba(255, 181, 71, .55);
  box-shadow: 0 0 18px rgba(247, 147, 26, .5);
  transform: rotate(24deg) scaleX(.9);
}
.wheel__rim {
  position: absolute; inset: 6%; border-radius: 50%; padding: 5.5%;
  background: radial-gradient(circle at 30% 25%, #ffe1a3, var(--orange) 45%, #8a4a00);
  box-shadow: 0 0 70px rgba(247, 147, 26, .55), 0 0 0 3px rgba(255, 200, 120, .45), inset 0 0 18px rgba(0, 0, 0, .5);
}
.wheel__disc {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  /* 12 格，第 0 格（金色）居中于正上方 */
  background: repeating-conic-gradient(from -15deg, #f6d9a8 0 30deg, #1b130b 30deg 60deg);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .6);
  will-change: transform;
}
.wheel__seg { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 30deg)); }
.wheel__seg::before {
  content: "₿"; position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  font-weight: 800; font-size: clamp(14px, 3.4vw, 24px); color: #b86400;
}
.wheel__seg:nth-child(even)::before { content: none; }
.wheel__dots { position: absolute; inset: 0; pointer-events: none; }
.wheel__dots span { position: absolute; inset: 0; transform: rotate(calc(var(--i) * 18deg)); }
.wheel__dots span::before {
  content: ""; position: absolute; top: 1.3%; left: 48.5%; width: 3%; height: 3%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d8, #c87400);
  box-shadow: 0 0 6px rgba(255, 210, 140, .8);
}
.lottery.is-spinning .wheel__dots span::before { animation: blink .4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.06s); }
.wheel__pointer {
  position: absolute; top: 2%; left: 50%; z-index: 3;
  width: 9%; height: 11%; transform: translateX(-50%);
  background: linear-gradient(#fff3d6, var(--orange));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.wheel__hub {
  position: absolute; inset: 35%; z-index: 2; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffd08a, var(--orange) 55%, #b86400);
  box-shadow: 0 0 0 4px rgba(255, 220, 160, .6), 0 0 34px rgba(247, 147, 26, .65), inset -6px -8px 16px rgba(0, 0, 0, .3);
  color: #fff; font-weight: 800; font-size: clamp(40px, 9vw, 76px);
  text-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.wheel__hub span { transform: rotate(-12deg); }
@keyframes blink { to { opacity: .35; } }

.lottery__title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.15; }
.lottery__title span { color: var(--orange); }
.lottery__sub { color: var(--muted); font-size: 18px; margin: 10px 0 30px; }
.lottery__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.lottery__btn { width: 100%; padding: 16px; font-size: 18px; }
.lottery__btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.lottery__left { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.lottery__left b { color: var(--orange-2); }

.pool {
  position: relative; text-align: center; padding: 16px 12px 18px; border-radius: 16px;
  background: linear-gradient(160deg, #fff4dc, #f6d6a0); color: #1a1206;
  border: 1px solid rgba(255, 220, 160, .8);
  box-shadow: 0 0 30px rgba(247, 147, 26, .35);
}
.pool::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; width: 34px; height: 3px;
  margin-left: -17px; border-radius: 2px; background: var(--orange);
}
.pool__coin {
  position: absolute; top: -12px; right: -10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 30% 30%, #ffd08a, var(--orange) 60%, #b86400);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.pool__label { font-size: 14px; opacity: .75; }
.pool__num { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.countdown {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding: 14px 22px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.lottery.is-spinning .countdown { border-color: rgba(247, 147, 26, .55); box-shadow: 0 0 24px rgba(247, 147, 26, .2); }
.countdown__label { font-weight: 600; }
.countdown__time { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.countdown__time span {
  min-width: 1.1em; padding: 0 4px; text-align: center; border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; line-height: 1.3;
}
.countdown__time span:nth-child(-n+2) { color: var(--orange-2); }
.countdown__time i { font-style: normal; font-size: 28px; font-weight: 800; color: var(--muted); }

.ticker {
  display: flex; align-items: center; gap: 12px; margin-top: 50px; padding: 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.ticker__badge {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #1a1206;
}
.ticker__badge svg { width: 20px; }
.ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker__track.is-empty { animation: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: flex; align-items: center; gap: 8px; padding: 6px 22px;
  white-space: nowrap; font-size: 15px; color: var(--muted);
}
.ticker__item + .ticker__item { border-left: 1px solid var(--line); }
.ticker__addr { color: var(--orange-2); font-family: ui-monospace, Menlo, monospace; }
.ticker__amt { color: var(--text); }
@keyframes ticker { to { transform: translateX(-50%); } }

.lot-result { text-align: center; }
.lot-result__icon {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 38px; font-weight: 800; color: #fff;
  background: radial-gradient(circle at 30% 30%, #ffd08a, var(--orange) 55%, #b86400);
  box-shadow: 0 0 30px rgba(247, 147, 26, .5);
}
.lot-result:not(.is-win) .lot-result__icon { filter: grayscale(.8); box-shadow: none; }
.lot-result h3 { margin-bottom: 8px; }
.lot-result__amount { font-size: 32px; font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.lot-result__text { color: var(--muted); margin: 8px 0 22px; }
.lot-result__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lot-result__actions .btn { flex: 1; }
.lot-result:not(.is-win) .lot-result__actions .btn--ghost { display: none; }
.lot-claim { text-align: left; }
.lot-claim input { font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.lot-claim input[aria-invalid="true"] { border-color: #ef4444; }
.lot-claim__err { color: #ef4444; font-size: 13px; margin-top: -6px; }
.lot-claim__err:empty { display: none; }
.lot-claim__tip { color: var(--muted); font-size: 12px; margin-top: -6px; }
.lot-result:not(.is-win) .lot-claim,
.lot-result.is-claimed .lot-claim,
.lot-result.is-win:not(.is-claimed) .lot-result__actions { display: none; }
.lot-result__addr { word-break: break-all; font-family: ui-monospace, Menlo, monospace; color: var(--text); font-size: 13px; }

/* ========== 邀请奖励 ========== */
.invite { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.invite__card, .invite__rules {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
}
.invite__label { display: block; font-weight: 600; margin-bottom: 10px; }
.invite__copy { display: flex; gap: 10px; }
.invite__input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-size: 16px; outline: none;
}
.invite__input:focus { border-color: var(--orange); }
.invite__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.invite__stats div { background: var(--bg-2); border-radius: 12px; padding: 14px; text-align: center; }
.invite__stats b { display: block; font-size: 22px; color: var(--orange); font-variant-numeric: tabular-nums; }
.invite__stats span { color: var(--muted); font-size: 13px; }
.invite__rules h3 { font-size: 20px; margin-bottom: 16px; }
.invite__rules ol { list-style: none; counter-reset: rule; display: grid; gap: 14px; }
.invite__rules li { counter-increment: rule; position: relative; padding-left: 38px; color: var(--muted); }
.invite__rules li::before {
  content: counter(rule); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(247, 147, 26, .18); color: var(--orange); font-size: 13px; font-weight: 700;
}

/* ========== 关于 ========== */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 14px; }
.about__text .btn { margin-top: 8px; }
.about__chain { display: flex; flex-direction: column; align-items: center; gap: 0; }
.block {
  width: 160px; padding: 16px; text-align: center; font-weight: 700;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px;
  position: relative; margin-bottom: 26px;
}
.block:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -27px;
  width: 2px; height: 26px; background: rgba(247, 147, 26, .5);
}
.block--hl { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 24px rgba(247, 147, 26, .25); margin-bottom: 0; }

/* ========== FAQ ========== */
.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq__item {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 20px;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 28px 18px 0;
  font-weight: 600; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--orange); transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); padding-bottom: 18px; }

/* ========== 其他水龙头 ========== */
.faucets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.faucet {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.faucet:hover { border-color: var(--c, var(--orange)); transform: translateY(-2px); }
.faucet__dot {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--c, var(--orange)); color: #fff;
}
.faucet__name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 页脚 ========== */
.footer {
  padding: 50px 0 calc(30px + env(safe-area-inset-bottom));
  text-align: center; border-top: 1px solid var(--line);
}
.footer__join { color: var(--muted); margin-bottom: 16px; }
.social { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); transition: background .2s;
}
.social a:hover { background: var(--orange); }
.social svg { width: 20px; fill: currentColor; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--orange); }
.footer__copy { color: var(--muted); font-size: 13px; opacity: .7; }

/* ========== 弹窗 ========== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 7, 15, .7); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative; width: 100%; max-width: 400px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 24px; box-shadow: var(--shadow);
  transform: translateY(20px); transition: transform .25s;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.modal.open .modal__box { transform: none; }
.modal__box h3 { font-size: 22px; margin-bottom: 20px; }
.modal__close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  background: none; border: 0; font-size: 26px; color: var(--muted); cursor: pointer;
}
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  font-size: 16px; /* 防止 iOS 聚焦时自动缩放 */
  outline: none; transition: border-color .2s;
}
.form input:focus { border-color: var(--orange); }
.form__link { font-size: 13px; color: var(--orange); justify-self: end; }
.form__switch { text-align: center; font-size: 14px; color: var(--muted); }
.form__switch a { color: var(--orange); }

/* ========== 提示 ========== */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--bg-3); border: 1px solid var(--orange);
  padding: 12px 20px; border-radius: 999px; font-size: 14px;
  transition: .3s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ========== 滚动渐显 ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== RTL（阿拉伯语） ========== */
[dir="rtl"] .hero__list li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .hero__list li::before { left: auto; right: 0; }
[dir="rtl"] .stat + .stat { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .countdown__time { direction: ltr; }
[dir="rtl"] .ticker__viewport { direction: ltr; }
[dir="rtl"] .ticker__item { direction: rtl; }
[dir="rtl"] .ticker__badge svg { transform: scaleX(-1); }
[dir="rtl"] .lot-claim { text-align: right; }
[dir="rtl"] .invite__rules li { padding-left: 0; padding-right: 38px; }
[dir="rtl"] .invite__rules li::before { left: auto; right: 0; }
[dir="rtl"] .faq__item summary { padding: 18px 0 18px 28px; }
[dir="rtl"] .faq__item summary::after { right: auto; left: 0; }
[dir="rtl"] .modal__close { right: auto; left: 14px; }
[dir="rtl"] .invite__input,
[dir="rtl"] .lot-claim input,
[dir="rtl"] .lot-result__addr,
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="password"] { direction: ltr; }

/* ========== 平板 ========== */
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: calc(var(--header-h) + env(safe-area-inset-top)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(15, 18, 34, .98); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__auth { margin-top: 16px; }
  .nav__auth .btn { flex: 1; }
  .lang { margin-top: 12px; padding: 10px; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { order: -1; max-width: 260px; }
  .hero__list { justify-items: center; }
  .hero__cta { justify-content: center; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  [dir="rtl"] .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .lottery__main { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .wheel { max-width: 320px; }
  .countdown { text-align: left; }
  [dir="rtl"] .countdown { text-align: right; }
  .invite { grid-template-columns: 1fr; }

  .about { grid-template-columns: 1fr; }
  .about__chain { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .block { width: auto; flex: 1; min-width: 60px; margin: 0; }
  .block::after { display: none; }
}

/* ========== 手机 ========== */
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 30px); padding-bottom: 50px; }
  .hero__lead { font-size: 16px; }
  .hero__list li { font-size: 15px; }
  .hero__cta .btn { flex: 1; }

  .stat { padding: 22px 6px; }
  .stat__icon { width: 84px; height: 84px; padding: 8px; border-radius: 18px; margin-bottom: 12px; }
  .stat__num { font-size: 20px; }
  .stat__label { font-size: 12px; }

  .section { padding: 56px 0; }
  .section__head { margin-bottom: 36px; }

  .feature { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; text-align: center; }
  .feature--reverse .feature__media { order: 0; }
  .illus { max-width: 220px; }
  .feature__body h3 { font-size: 20px; }

  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 20px; }
  .card__icon { grid-row: span 2; margin: 0; }

  .lottery { padding: 56px 0 44px; }
  .lottery__sub { font-size: 15px; margin-bottom: 24px; }
  .lottery__row { gap: 12px; }
  .lottery__btn { padding: 14px; font-size: 16px; }
  .pool { padding: 12px 8px 16px; }
  .pool__num { font-size: 20px; }
  .countdown { padding: 12px 16px; }
  .countdown__label { font-size: 14px; }
  .countdown__time span { font-size: 26px; }
  .ticker { margin-top: 36px; }
  .ticker__badge { width: 36px; height: 36px; }
  .ticker__item { font-size: 13px; padding: 4px 14px; }
  .invite__card, .invite__rules { padding: 20px; }

  .faucets { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .faucet { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
