/* ==========================================================
   发财羊 LP · 样式
   调色：奶油底 / 元宝金 / 羊角橙 / 深棕墨
   ========================================================== */
:root {
  --cream: #FFF7E8;
  --paper: #FFFDF8;
  --sand: #F6E6C8;
  --ink: #2B1A0E;
  --ink-2: #6B5240;
  --orange: #F5871F;
  --orange-d: #D9630F;
  --gold: #FFC531;
  --gold-d: #E79A12;
  --red: #E8402A;
  --pink: #FFB5A7;
  --green: #17C784;
  --violet: #7A5CFF;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --r: 22px;
  --display: "Yuanti SC", "YouYuan", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }

/* ---------- 滚动显现 ---------- */
.js .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 页面转场幕布（由 js/boot.js 在首帧前挂 class） ---------- */
html.cover body::before, html.leaving body::before, html.uncover body::before {
  content: ""; position: fixed; inset: 0; z-index: 100;
  background: var(--gold) url(../assets/mascot-sm.webp) center / 120px no-repeat;
}
html.cover body::before { animation: curtHop .5s ease-in-out infinite alternate; }
html.leaving body::before { animation: curtIn .4s cubic-bezier(.7, 0, .2, 1) both; }
html.uncover body::before { animation: curtOut .65s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes curtIn { from { transform: translateY(101%); } to { transform: none; } }
@keyframes curtOut { from { transform: none; } to { transform: translateY(-101%); } }
@keyframes curtHop { from { background-position: center 49%; } to { background-position: center 46%; } }
@keyframes hop { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-16px) rotate(4deg); } }

#coins { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap;
  background: var(--orange); color: #fff; border: var(--line); border-radius: 99px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s, background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--orange-d); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 18px; }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--gold); }
.btn-dark { background: var(--ink); color: var(--gold); box-shadow: 4px 4px 0 var(--orange-d); }
.btn-dark:hover { background: #000; box-shadow: 6px 6px 0 var(--orange-d); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1160px, 100% - 24px); display: flex; align-items: center; gap: 18px;
  padding: 8px 10px 8px 14px; background: rgba(255, 253, 248, .86); backdrop-filter: blur(14px);
  border: var(--line); border-radius: 99px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .35s ease;
}
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img:first-child { width: 44px; height: 44px; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover img:first-child { transform: rotate(-14deg) scale(1.12); }
.brand-word { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 99px; font-size: 14.5px; font-weight: 600; transition: background .2s; }
.nav-links a:hover, .nav-links a.on { background: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border: var(--line); border-radius: 50%; background: var(--gold); padding: 0; place-content: center; gap: 4px; }
.burger i { display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform .25s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: scaleX(0); }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; padding: 120px 0 80px; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.rays {
  position: absolute; z-index: -1; right: -30vmax; top: 50%; width: 120vmax; height: 120vmax; translate: 0 -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 197, 49, .34) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 72%); mask: radial-gradient(closest-side, #000 10%, transparent 72%);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.hero-inner { width: min(1160px, 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; font-size: 13.5px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(23, 199, 132, .7); } 100% { box-shadow: 0 0 0 10px rgba(23, 199, 132, 0); } }

.hero-title { font-family: var(--display); font-weight: 900; font-size: clamp(84px, 15vw, 200px); line-height: .95; letter-spacing: -.02em; margin: 18px 0 14px; display: flex; }
.hero-title .ch {
  display: inline-block; color: var(--orange);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  animation: chIn .9s var(--ease) both, chBob 3.2s ease-in-out infinite;
  animation-delay: calc(.45s + var(--i) * .12s), calc(1.6s + var(--i) * .25s);
  transition: color .2s;
}
html.first .hero-title .ch { animation-delay: calc(.55s + var(--i) * .12s), calc(1.65s + var(--i) * .25s); }
.hero-title .ch:nth-child(2) { color: var(--gold); }
.hero-title .ch:hover { color: var(--red); }
@keyframes chIn { from { opacity: 0; transform: translateY(80px) rotate(14deg) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes chBob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: -2deg; } }

.hero-sub { font-size: clamp(17px, 2vw, 22px); color: var(--ink-2); max-width: 30em; font-weight: 500; }
.hero-sub em { font-style: normal; font-weight: 800; color: var(--ink); background: linear-gradient(transparent 58%, var(--gold) 58%); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats li { background: var(--paper); border: var(--line); border-radius: 18px; padding: 12px 18px; min-width: 132px; box-shadow: 4px 4px 0 var(--ink); transition: transform .25s var(--ease); }
.hero-stats li:hover { transform: translateY(-6px) rotate(-2deg); }
.hero-stats b { display: block; font-family: var(--display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats span span, .hero-stats li > span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.hero-stats b span { font-size: inherit; color: inherit; }

.hero-stage { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-inline: auto; display: grid; place-items: center; }
.mascot { all: unset; cursor: pointer; width: 74%; position: relative; z-index: 3; animation: float 4.5s ease-in-out infinite; transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--mr, 0deg)); transition: transform .25s ease-out; -webkit-tap-highlight-color: transparent; }
.mascot img { width: 100%; height: auto; filter: drop-shadow(0 22px 0 rgba(43, 26, 14, .12)); transition: transform .25s var(--ease); }
.mascot:hover img { transform: scale(1.04); }
.mascot.poke img { animation: squish .5s var(--ease); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.14, .86); } 60% { transform: scale(.92, 1.1); } 100% { transform: scale(1); } }

.orbit { position: absolute; inset: 4%; border: 3px dashed rgba(43, 26, 14, .22); border-radius: 50%; animation: spin 26s linear infinite; }
.orbit.o2 { inset: -6%; animation-duration: 40s; animation-direction: reverse; border-style: dotted; }
.sat { position: absolute; width: 54px; height: 54px; top: -27px; left: calc(50% - 27px); animation: spin 26s linear infinite reverse; }
.o2 .sat { animation-duration: 40s; animation-direction: normal; }
.o1 .sat:nth-child(2) { top: auto; bottom: -27px; }
.o2 .sat:nth-child(2) { top: calc(50% - 27px); left: -27px; }
.o2 .sat:nth-child(3) { top: calc(50% - 27px); left: auto; right: -27px; }
.sat svg { width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 rgba(43, 26, 14, .35)); }
.s-fu { display: grid; place-items: center; background: var(--red); color: var(--gold); font-family: var(--display); font-weight: 900; font-size: 26px; border: var(--line); border-radius: 12px; rotate: 45deg; }
.cloud { position: absolute; z-index: 2; width: 150px; height: 46px; background: var(--paper); border: var(--line); border-radius: 99px; animation: drift 9s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--paper); border: var(--line); border-bottom: 0; border-radius: 99px 99px 0 0; }
.cloud::before { width: 62px; height: 36px; left: 20px; top: -31px; }
.cloud::after { width: 46px; height: 26px; right: 26px; top: -22px; }
.c1 { left: -6%; bottom: 14%; }
.c2 { right: -8%; top: 16%; scale: .72; animation-delay: -4s; }
@keyframes drift { from { translate: -14px 0; } to { translate: 22px 0; } }

.bubble { position: absolute; z-index: 4; top: 6%; right: 2%; padding: 10px 16px; background: var(--paper); border: var(--line); border-radius: 20px 20px 20px 4px; font-family: var(--display); font-weight: 700; box-shadow: 4px 4px 0 var(--ink); animation: wobble 3s ease-in-out infinite; transform-origin: bottom left; }
.bubble.pop { animation: pop .45s var(--ease); }
@keyframes wobble { 0%, 100% { rotate: -3deg; } 50% { rotate: 4deg; } }
@keyframes pop { 0% { scale: .4; } 70% { scale: 1.12; } 100% { scale: 1; } }
.tag { position: absolute; z-index: 4; padding: 7px 14px; font-family: var(--display); font-weight: 700; font-size: 14px; border: var(--line); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); animation: wobble 4s ease-in-out infinite; }
.t1 { left: 0; top: 30%; background: var(--gold); rotate: -8deg; }
.t2 { right: -2%; bottom: 30%; background: var(--green); color: #fff; animation-delay: -1.3s; }
.t3 { left: 12%; bottom: 4%; background: var(--red); color: #fff; animation-delay: -2.4s; }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--ink-2); }
.scroll-hint span { width: 24px; height: 38px; border: 2.5px solid var(--ink); border-radius: 14px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 5px; height: 8px; margin-left: -2.5px; border-radius: 3px; background: var(--orange); animation: wheel 1.5s ease-in-out infinite; }
@keyframes wheel { 0% { translate: 0 0; opacity: 1; } 100% { translate: 0 14px; opacity: 0; } }

/* ---------- 跑马灯 ---------- */
.marquee { background: var(--ink); color: var(--gold); border-block: var(--line); overflow: hidden; rotate: -1.2deg; margin: -18px -2vw; position: relative; z-index: 3; }
.marquee.alt { background: var(--orange); color: var(--ink); rotate: 1.2deg; }
.marquee-track { display: flex; width: max-content; animation: mq 34s linear infinite; }
.marquee-track.rev { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px 14px 0; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.6vw, 32px); white-space: nowrap; }
.marquee-track svg { width: 30px; height: 30px; flex: none; animation: spin 6s linear infinite; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- 通用区块 ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .12em; padding: 5px 14px; background: var(--ink); color: var(--gold); border-radius: 99px; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 6.4vw, 78px); line-height: 1.08; letter-spacing: -.01em; }
.lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 36em; }
.sec-head.center .lead { margin-inline: auto; }
.fine { font-size: 12.5px; color: var(--ink-2); margin-top: 14px; }
.fine.light { color: rgba(255, 247, 232, .6); }
.sub-title { font-family: var(--display); font-size: 26px; margin: 70px 0 22px; }

/* ---------- IP ---------- */
.sec-ip { background: var(--paper); }
.ip-grid { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.idcard { position: relative; background: var(--gold); border: var(--line); border-radius: 28px; padding: 18px; box-shadow: 10px 10px 0 var(--ink); rotate: -3deg; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, rotate .4s var(--ease); will-change: transform; }
.idcard:hover { rotate: 0deg; }
.idcard-top { display: flex; justify-content: space-between; font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; }
.idcard-chip { background: var(--ink); color: var(--gold); padding: 2px 10px; border-radius: 99px; }
.idcard-photo { background: radial-gradient(circle at 50% 40%, #fff 0, var(--cream) 70%); border: var(--line); border-radius: 20px; padding: 18px; overflow: hidden; position: relative; }
.idcard-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .75) 50%, transparent 60%); translate: -100% 0; animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 60% { translate: -100% 0; } 100% { translate: 100% 0; } }
.idcard-photo img { width: 78%; margin-inline: auto; animation: float 4s ease-in-out infinite; }
.idcard dl { margin-top: 14px; display: grid; gap: 6px; }
.idcard dl div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 7px 12px; background: rgba(255, 253, 248, .75); border-radius: 12px; font-size: 14.5px; }
.idcard dt { font-weight: 800; color: var(--orange-d); }
.idcard dd { font-weight: 600; }
.idcard-stamp { position: absolute; right: 22px; bottom: 150px; width: 76px; height: 76px; display: grid; place-items: center; border: 4px solid var(--red); border-radius: 50%; color: var(--red); font-family: var(--display); font-weight: 900; font-size: 40px; rotate: 16deg; opacity: .85; background: rgba(255, 253, 248, .5); animation: stamp 1s var(--ease) both 1s; }
@keyframes stamp { from { scale: 3; opacity: 0; } to { scale: 1; opacity: .85; } }

.traits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trait { background: var(--cream); border: var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), background .3s; }
.trait:nth-child(2) { --d: .08s; } .trait:nth-child(3) { --d: .16s; } .trait:nth-child(4) { --d: .24s; }
.trait:hover { transform: translate(-3px, -6px) rotate(-1deg); background: #FFEFC7; }
.trait-ic { display: block; width: 62px; height: 62px; margin-bottom: 14px; transition: transform .4s var(--ease); }
.trait:hover .trait-ic { transform: rotate(-14deg) scale(1.18); }
.trait h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.trait p { color: var(--ink-2); font-size: 15px; }

.stickers { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.sticker { all: unset; cursor: pointer; position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--c, var(--cream)); border: var(--line); border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); transition: transform .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.sticker svg { width: 82%; height: 82%; transition: transform .3s var(--ease); }
.sticker:nth-child(odd) { rotate: -3deg; } .sticker:nth-child(even) { rotate: 3deg; }
.sticker:hover { transform: translateY(-10px) scale(1.08); z-index: 2; }
.sticker:hover svg { animation: wiggle .5s ease-in-out infinite; }
.sticker.boing { animation: boing .6s var(--ease); }
.sticker em { position: absolute; left: 50%; bottom: -12px; translate: -50% 0; font-style: normal; white-space: nowrap; font-size: 12px; font-weight: 800; background: var(--ink); color: var(--gold); padding: 2px 10px; border-radius: 99px; opacity: 0; transition: opacity .2s, bottom .2s; }
.sticker:hover em, .sticker:focus-visible em { opacity: 1; bottom: -16px; }
@keyframes wiggle { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes boing { 0% { scale: 1; } 35% { scale: 1.25 .8; } 65% { scale: .88 1.16; } 100% { scale: 1; } }

/* ---------- 入金分配 ---------- */
.sec-split { background: var(--cream); background-image: radial-gradient(rgba(43, 26, 14, .09) 1.6px, transparent 1.6px); background-size: 26px 26px; }
.split-panel { background: var(--paper); border: var(--line); border-radius: 32px; padding: clamp(20px, 4vw, 44px); box-shadow: 10px 10px 0 var(--ink); }
.split-input { display: grid; grid-template-columns: auto 1fr; gap: 6px 30px; align-items: center; margin-bottom: 30px; }
.split-input label { grid-column: 1 / -1; font-weight: 800; font-size: 14px; color: var(--ink-2); letter-spacing: .1em; }
.amt-row { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 900; }
.amt-row output { font-size: clamp(52px, 8vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.2ch; }
.amt-row span { font-size: 28px; color: var(--orange); }
.quick { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.quick button { padding: 6px 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--cream); font-weight: 700; font-size: 14px; transition: background .2s, transform .2s var(--ease); }
.quick button:hover { background: var(--gold); transform: translateY(-2px); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: linear-gradient(to right, var(--orange) var(--p, 0%), var(--sand) var(--p, 0%)); border: var(--line); border-radius: 99px; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border: 0; background: url(../assets/mascot-sm.webp) center/contain no-repeat; filter: drop-shadow(2px 3px 0 rgba(43, 26, 14, .5)); transition: scale .2s var(--ease); }
input[type=range]::-webkit-slider-thumb:hover { scale: 1.2; }
input[type=range]::-moz-range-thumb { width: 44px; height: 44px; border: 0; background: url(../assets/mascot-sm.webp) center/contain no-repeat; }

.split-bar { display: flex; height: 58px; border: var(--line); border-radius: 18px; overflow: hidden; }
.seg { width: 0; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 900; font-size: 18px; border-right: var(--line); transition: width 1.1s cubic-bezier(.2, .8, .2, 1), filter .2s, flex .3s; overflow: hidden; white-space: nowrap; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 12px, transparent 12px 24px); background-size: 34px 34px; animation: stripes 1.4s linear infinite; cursor: default; }
.seg:last-child { border-right: 0; }
.split-bar.dim .seg:not(.hot) { filter: saturate(.35) brightness(1.12); }
@keyframes stripes { to { background-position: 34px 0; } }

.pipes { height: 90px; margin: 0 4%; }
.pipes svg { width: 100%; height: 100%; overflow: visible; }
.pipes path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 3 12; animation: dash 1s linear infinite; vector-effect: non-scaling-stroke; }
@keyframes dash { to { stroke-dashoffset: -30; } }

.split-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.scard { position: relative; background: var(--cream); border: var(--line); border-radius: 20px; padding: 18px 14px 16px; text-align: center; box-shadow: 4px 4px 0 var(--c); transition: transform .3s var(--ease), box-shadow .3s; overflow: hidden; }
.scard:hover, .scard.hot { transform: translateY(-8px); box-shadow: 8px 8px 0 var(--c); }
.scard-pct { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 15px; padding: 2px 12px; border-radius: 99px; background: var(--c); color: #fff; }
.scard-val { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; }
.scard-val small { font-size: .5em; margin-left: 3px; color: var(--ink-2); }
.scard h3 { font-size: 16px; font-weight: 800; }
.scard p { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.scard.bump .scard-val { animation: bump .4s var(--ease); }
@keyframes bump { 40% { scale: 1.18; } }

/* ---------- LP 挖矿 ---------- */
.sec-mining { background: var(--gold); overflow: hidden; }
.sec-mining::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 255, 255, .22) 0 6deg, transparent 6deg 12deg); pointer-events: none; }
.sec-mining .wrap { position: relative; }
.sec-mining .lead { color: var(--ink); opacity: .78; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: end; }
.tier { all: unset; cursor: pointer; box-sizing: border-box; position: relative; display: grid; justify-items: center; gap: 6px; padding: 34px 20px 26px; background: var(--paper); border: var(--line); border-radius: 28px; box-shadow: var(--shadow); text-align: center; transition: transform .35s var(--ease), background .3s, box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.tier:nth-child(2) { --d: .1s; padding-block: 44px 34px; } .tier:nth-child(3) { --d: .2s; padding-block: 56px 42px; }
.tier:hover { transform: translateY(-8px) rotate(-1deg); }
.tier[aria-checked="true"] { background: var(--ink); color: var(--cream); box-shadow: 8px 8px 0 var(--orange-d); transform: translateY(-10px); }
.tier:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.tier-badge { position: absolute; top: -15px; left: 50%; translate: -50% 0; padding: 4px 16px; background: var(--orange); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; border: var(--line); border-radius: 99px; white-space: nowrap; }
.tier-badge.hot { background: var(--red); animation: wobble 1.6s ease-in-out infinite; }
.tier-horn { display: flex; gap: 2px; height: 46px; }
.tier-horn svg { width: 40px; height: 46px; animation: hornIn .6s var(--ease) both; }
.tier-horn svg:nth-child(2) { animation-delay: .1s; } .tier-horn svg:nth-child(3) { animation-delay: .2s; }
@keyframes hornIn { from { scale: 0; rotate: -90deg; } }
.tier-days { font-weight: 700; font-size: 16px; opacity: .75; }
.tier-days b { font-family: var(--display); font-size: 24px; }
.tier-rate { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--orange-d); }
.tier[aria-checked="true"] .tier-rate { color: var(--gold); }
.tier-rate b { font-size: clamp(56px, 7vw, 86px); letter-spacing: -.03em; }
.tier-rate small { font-size: 15px; margin-left: 4px; opacity: .7; }
.tier-note { font-size: 13.5px; font-weight: 700; opacity: .7; }

.calc { margin-top: 36px; background: var(--paper); border: var(--line); border-radius: 28px; padding: clamp(20px, 3.4vw, 36px); box-shadow: 10px 10px 0 var(--ink); display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 40px; align-items: center; }
.calc label { display: block; font-weight: 800; font-size: 14px; color: var(--ink-2); letter-spacing: .08em; margin-bottom: 8px; }
.calc input[type=number] { width: 100%; font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--ink); background: var(--cream); border: var(--line); border-radius: 16px; padding: 10px 18px; font-variant-numeric: tabular-nums; }
.calc input:focus { outline: 0; box-shadow: 0 0 0 4px var(--gold); }
.calc-tip { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-out > div { background: var(--cream); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 18px; }
.calc-out span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.calc-out b { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--orange-d); word-break: break-all; }
.calc-out i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.calc-meter { grid-column: 1 / -1; height: 14px; border: 2px solid var(--ink); border-radius: 99px; background: var(--sand); overflow: hidden; }
.calc-meter i { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--gold), var(--orange), var(--red)); border-radius: 99px; transition: width .7s var(--ease); }
.calc .fine { grid-column: 1 / -1; margin: 0; }

/* ---------- 推荐 & FOMO ---------- */
.sec-rewards { background: var(--ink); color: var(--cream); }
.sec-head.light h2 { color: var(--cream); }
.sec-rewards .kicker { background: var(--gold); color: var(--ink); }
.rw-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.rw-card { background: #3A2516; border: 3px solid #5A3C26; border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.rw-card h3 { font-family: var(--display); font-size: 30px; color: var(--gold); margin-bottom: 8px; }
.rw-card p b { color: var(--gold); font-size: 1.15em; }
.rw-card > p { color: rgba(255, 247, 232, .78); max-width: 34em; }

.tree { position: relative; aspect-ratio: 520 / 300; margin: 26px 0 34px; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-line { fill: none; stroke: rgba(255, 197, 49, .5); stroke-width: 3; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite reverse; }
.tree-coins circle { fill: var(--gold); stroke: var(--gold-d); stroke-width: 2; }
.node { position: absolute; width: 17%; translate: -50% -50%; text-align: center; }
.node.s { width: 11.5%; }
.node span { display: block; aspect-ratio: 1; background: var(--cream); border: 3px solid var(--gold); border-radius: 50%; padding: 6%; animation: nodePulse 2.4s ease-in-out infinite; }
.node em { position: absolute; left: 50%; top: 100%; translate: -50% 4px; font-style: normal; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: var(--gold); color: var(--ink); padding: 1px 10px; border-radius: 99px; }
.n-you { left: 50%; top: 14%; } .n-you span { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(245, 135, 31, .28); }
.n-a { left: 25%; top: 56%; } .n-b { left: 75%; top: 56%; }
.n-c { left: 13.5%; top: 90%; } .n-d { left: 36.5%; top: 90%; } .n-e { left: 63.5%; top: 90%; } .n-f { left: 86.5%; top: 90%; }
.n-a span { animation-delay: .3s; } .n-b span { animation-delay: .6s; }
.tree-cap { position: absolute; left: 50%; top: 108%; translate: -50% -50%; font-size: 12.5px; font-weight: 800; background: var(--violet); color: #fff; padding: 2px 12px; border-radius: 99px; }
@keyframes nodePulse { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }

.jar { position: relative; margin: 36px auto 0; width: min(260px, 80%); }
.jar-glass { position: relative; aspect-ratio: 1 / 1.08; border: 4px solid var(--cream); border-radius: 26px 26px 70px 70px; overflow: hidden; background: rgba(255, 247, 232, .06); }
.jar::before { content: ""; position: absolute; left: 22%; right: 22%; top: -16px; height: 16px; border: 4px solid var(--cream); border-bottom: 0; border-radius: 10px 10px 0 0; }
.jar-fill { position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(var(--green), #0E8F5E); animation: fill 5s ease-in-out infinite alternate; }
.jar-fill svg { position: absolute; left: 0; bottom: calc(100% - 1px); width: 200%; height: 20px; fill: var(--green); animation: wave 2.2s linear infinite; }
@keyframes wave { to { translate: -50% 0; } }
@keyframes fill { from { height: 48%; } to { height: 78%; } }
.jar-coins i { position: absolute; bottom: -30px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid var(--gold-d); animation: bubbleUp var(--t, 4s) ease-in infinite; animation-delay: var(--dl, 0s); }
@keyframes bubbleUp { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 1; } 100% { translate: var(--dx, 10px) -230px; opacity: 0; rotate: 300deg; } }
.jar-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.jar-label b { font-family: var(--display); font-size: 64px; line-height: 1; }
.jar-label span { font-weight: 700; font-size: 13px; }
.jar-drop { position: absolute; top: -70px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--gold); border: 3px solid var(--gold-d); animation: drop 1.8s cubic-bezier(.5, 0, 1, .6) infinite; }
.d2 { animation-delay: .6s; margin-left: -34px; } .d3 { animation-delay: 1.2s; margin-left: 14px; }
@keyframes drop { 0% { translate: 0 0; opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { translate: 0 160px; opacity: 0; } }

/* ---------- 销毁飞轮 ---------- */
.sec-burn { background: var(--paper); overflow: hidden; }
.burn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.burn-grid .sec-head { margin-bottom: 0; }
.burn-steps { margin-top: 28px; display: grid; gap: 10px; }
.burn-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; font-weight: 700; transition: transform .25s var(--ease), background .25s; }
.burn-steps li:nth-child(2) { --d: .08s; } .burn-steps li:nth-child(3) { --d: .16s; } .burn-steps li:nth-child(4) { --d: .24s; }
.burn-steps li:hover { transform: translateX(10px); background: var(--gold); }
.burn-steps b { font-family: var(--display); color: var(--red); font-size: 20px; }

.wheel { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; }
.wheel-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.ring-a { fill: none; stroke: var(--ink); stroke-width: 3; }
.ring-b { fill: var(--cream); stroke: var(--orange); stroke-width: 5; stroke-dasharray: 14 12; }
.ring-text { font-family: var(--display); font-weight: 900; font-size: 22px; fill: var(--ink); letter-spacing: .14em; dominant-baseline: text-after-edge; }
.ring-text textPath { baseline-shift: 8px; }
.wheel-node { position: absolute; width: 84px; height: 84px; margin: -42px; display: grid; place-items: center; background: var(--paper); border: var(--line); border-radius: 50%; font-family: var(--display); font-weight: 900; font-size: 20px; box-shadow: 4px 4px 0 var(--ink); animation: lit 4s linear infinite; }
.w1 { left: 50%; top: 4%; } .w2 { left: 96%; top: 50%; animation-delay: 1s; } .w3 { left: 50%; top: 96%; animation-delay: 2s; } .w4 { left: 4%; top: 50%; animation-delay: 3s; }
@keyframes lit { 0%, 24% { background: var(--gold); scale: 1.14; } 25%, 100% { background: var(--paper); scale: 1; } }
.w3 { animation-name: litBurn; }
@keyframes litBurn { 0%, 24% { background: var(--red); color: #fff; scale: 1.14; } 25%, 100% { background: var(--paper); color: var(--ink); scale: 1; } }
.wheel-core { position: absolute; inset: 30%; display: grid; place-items: center; }
.wheel-core img { width: 82%; position: relative; z-index: 2; animation: float 3.6s ease-in-out infinite; }
.flame { position: absolute; left: 50%; bottom: 54%; width: 70%; height: 90%; translate: -50% 0; z-index: 1; filter: blur(.4px); }
.flame i { position: absolute; left: 50%; bottom: 0; width: 46%; aspect-ratio: 1 / 1.5; margin-left: -23%; background: var(--red); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 100%; animation: flick .5s ease-in-out infinite alternate; }
.flame i:nth-child(2) { width: 34%; margin-left: -40%; background: var(--orange); animation-duration: .38s; }
.flame i:nth-child(3) { width: 30%; margin-left: 6%; background: var(--gold); animation-duration: .44s; }
@keyframes flick { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.88, 1.2) rotate(5deg); } }

/* ---------- 参与 ---------- */
.sec-join { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: var(--paper); border: var(--line); border-radius: var(--r); padding: 44px 22px 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.steps li:nth-child(2) { --d: .08s; } .steps li:nth-child(3) { --d: .16s; } .steps li:nth-child(4) { --d: .24s; }
.steps li:hover { transform: translateY(-8px) rotate(1deg); }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 18px; border-top: 4px dotted var(--ink); z-index: 1; }
.step-n { position: absolute; top: -24px; left: 20px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--gold); border: var(--line); border-radius: 50%; font-family: var(--display); font-weight: 900; font-size: 24px; transition: transform .4s var(--ease), background .3s; }
.steps li:hover .step-n { transform: rotate(360deg); background: var(--orange); color: #fff; }
.steps h3 { font-family: var(--display); font-size: 21px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 14.5px; }

.join-cta { margin-top: 60px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: var(--orange); border: var(--line); border-radius: 36px; padding: clamp(24px, 4vw, 46px); box-shadow: 10px 10px 0 var(--ink); position: relative; overflow: hidden; }
.join-cta::before { content: ""; position: absolute; inset: -50%; background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 10deg, transparent 10deg 20deg); animation: spin 60s linear infinite; }
.join-cta > * { position: relative; }
.join-sheep { animation: hop .7s ease-in-out infinite alternate; }
.join-cta h3 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.15; color: #fff; text-shadow: 3px 3px 0 var(--ink); margin-bottom: 20px; }
.join-cta .btn { margin: 0 10px 10px 0; }
.join-cta .fine { color: rgba(43, 26, 14, .85); font-weight: 600; }
.join-cta code { font-family: ui-monospace, Menlo, monospace; background: rgba(255, 253, 248, .6); padding: 2px 8px; border-radius: 6px; word-break: break-all; }

/* ---------- FAQ ---------- */
.sec-faq { background: var(--paper); }
.faq { display: grid; gap: 14px; }
.faq details { background: var(--cream); border: var(--line); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; transition: background .3s; }
.faq details[open] { background: #FFEFC7; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 22px; font-family: var(--display); font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; font-size: 22px; line-height: 1; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--orange); color: #fff; }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); animation: faqIn .4s ease; }
@keyframes faqIn { from { opacity: 0; translate: 0 -8px; } }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 60px 0 110px; }
.footer-in { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-word { height: 34px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 8px 18px; border: 2px solid rgba(255, 247, 232, .4); border-radius: 99px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.socials a.off { opacity: .45; pointer-events: none; }
.risk { font-size: 13px; line-height: 1.8; color: rgba(255, 247, 232, .68); padding: 16px 18px; border: 1.5px dashed rgba(255, 247, 232, .3); border-radius: 16px; }
.risk b { color: var(--gold); }
.copy { font-size: 13px; color: rgba(255, 247, 232, .5); }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 6px; background: var(--gold); border: var(--line); border-radius: 99px; box-shadow: 4px 4px 0 var(--ink); font-family: var(--display); font-weight: 700; translate: 0 140%; transition: translate .45s var(--ease), transform .2s; }
.fab.show { translate: 0 0; }
.fab:hover { transform: scale(1.06) rotate(-2deg); }
.fab img { width: 42px; height: 42px; object-fit: contain; animation: hop .6s ease-in-out infinite alternate; }

.toast { border: 2px solid var(--gold); position: fixed; left: 50%; bottom: 90px; z-index: 60; translate: -50% 30px; padding: 10px 22px; background: var(--ink); color: var(--gold); font-weight: 700; border-radius: 99px; opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0; flex-direction: column; gap: 2px; padding: 12px; background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); opacity: 0; visibility: hidden; translate: 0 -12px; transition: opacity .25s, translate .3s var(--ease), visibility 0s .3s; }
  .nav-links.open { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
  .nav .btn-sm { margin-left: auto; }
  .burger { display: grid; }
  .ip-grid { grid-template-columns: 1fr; }
  .idcard { max-width: 400px; margin-inline: auto; }
  .stickers { grid-template-columns: repeat(4, 1fr); }
  .rw-grid, .burn-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 18px; }
  .steps li::after { display: none; }
}
@media (max-width: 820px) {
  .hero { padding-top: 104px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-stage { order: -1; width: min(78vw, 380px); }
  .hero-title, .hero-cta, .hero-stats { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .scroll-hint { display: none; }
  .sat { width: 40px; height: 40px; top: -20px; left: calc(50% - 20px); }
  .o2 .sat:nth-child(2), .o2 .sat:nth-child(3) { top: calc(50% - 20px); }
  .o2 .sat:nth-child(2) { left: -20px; } .o2 .sat:nth-child(3) { right: -20px; }
  .tag { font-size: 12px; padding: 5px 10px; }
  .cloud { scale: .6; } .c2 { scale: .45; }
  .pipes { display: none; }
  .split-bar { margin-bottom: 20px; height: 48px; }
  .seg { font-size: 14px; }
  .split-cards { grid-template-columns: 1fr 1fr; }
  .scard:first-child { grid-column: 1 / -1; }
  .split-input { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; gap: 28px; }
  .tier, .tier:nth-child(2), .tier:nth-child(3) { padding: 30px 20px 22px; grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; }
  .tier-horn { grid-row: span 3; align-self: center; }
  .calc { grid-template-columns: 1fr; }
  .join-cta { grid-template-columns: 1fr; text-align: center; }
  .join-sheep { width: 150px; margin-inline: auto; }
  .join-cta .btn { margin: 0 4px 10px; }
}
@media (max-width: 520px) {
  .brand-word { height: 21px; }
  .nav { gap: 8px; }
  .hero-stats li { min-width: 0; flex: 1 1 30%; padding: 10px 8px; }
  .hero-stats b { font-size: 24px; }
  .hero-stats li > span { font-size: 11.5px; }
  .hero-title .ch { -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 var(--ink); }
  .traits { grid-template-columns: 1fr; }
  .stickers { gap: 10px; }
  .sticker { border-radius: 18px; }
  .steps { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; }
  .node em, .tree-cap { font-size: 10.5px; padding: 0 7px; }
  .tree { aspect-ratio: 520 / 400; }
  .fab span { display: none; } .fab { padding: 6px; }
  .wheel-node { width: 64px; height: 64px; margin: -32px; font-size: 16px; }
  .ring-text { font-size: 20px; }
}

/* ==========================================================
   多页结构：子页页头 / 入口卡片 / 上下页 / 新组件
   ========================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 150px 0 70px; border-bottom: var(--line); }
.ph-gold { background: var(--gold); }
.ph-cream { background: var(--cream); }
.page-hero .rays { right: -40vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .3) 0 9deg, transparent 9deg 18deg); }
.ph-cream .rays { background: repeating-conic-gradient(from 0deg, rgba(255, 197, 49, .34) 0 9deg, transparent 9deg 18deg); }
.ph-in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; background: var(--ink); color: var(--gold); border-radius: 99px; font-size: 13.5px; font-weight: 700; margin-bottom: 20px; animation: phIn .6s var(--ease) both .35s; }
.crumb a { color: var(--cream); opacity: .8; } .crumb a:hover { opacity: 1; text-decoration: underline; }
.crumb i { font-style: normal; opacity: .5; }
.page-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 7.4vw, 96px); line-height: 1.05; letter-spacing: -.01em; animation: phIn .6s var(--ease) both .18s; }
.page-hero .lead { color: var(--ink); opacity: .8; animation: phIn .6s var(--ease) both .28s; }
@keyframes phIn { from { opacity: 0; transform: translateY(30px); } }
.ph-sheep { all: unset; cursor: pointer; width: clamp(150px, 22vw, 270px); aspect-ratio: 1; background: var(--paper); border: var(--line); border-radius: 36px; box-shadow: 10px 10px 0 var(--ink); rotate: 6deg; display: grid; place-items: center; animation: phSheep .8s var(--ease) both .6s, float 4.5s ease-in-out infinite 1.5s; transition: rotate .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.ph-sheep:hover { rotate: -4deg; }
.ph-sheep svg { width: 84%; height: 84%; }
.ph-sheep.boing svg { animation: boing .6s var(--ease); }
.ph-sheep:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
@keyframes phSheep { from { opacity: 0; scale: .3; rotate: -40deg; } }

.nav-links a.on { background: var(--ink); color: var(--gold); }

/* 首页入口 */
.sec-portals { background: var(--paper); }
.portals, .next-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.next-grid > * { grid-column: span 6; }
.p7 { grid-column: span 7; } .p5 { grid-column: span 5; } .p6 { grid-column: span 6; } .p4 { grid-column: span 4; }
.portal { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 280px; padding: 28px 28px 76px; background: var(--bg, var(--paper)); color: var(--fg, var(--ink)); border: var(--line); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .3s; }
.portal:hover { transform: translate(-4px, -8px) rotate(-.6deg); box-shadow: 14px 14px 0 var(--ink); }
.portal-no { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: 13px; letter-spacing: .14em; opacity: .6; }
.portal h3 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.portal > p { font-size: 16px; opacity: .82; font-weight: 500; }
.portal-go { position: absolute; right: 22px; bottom: 22px; width: 50px; height: 50px; border: var(--line); border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%232B1A0E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.portal:hover .portal-go { transform: rotate(-45deg) scale(1.15); background-color: var(--gold); }
.split-bar.mini { height: 44px; margin-top: auto; border-radius: 14px; }
.split-bar.mini .seg { font-size: 14px; }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; font-weight: 600; padding-right: 60px; }
.split-legend li { display: flex; align-items: center; gap: 6px; }
.split-legend i { width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--ink); }
.portal-faces { display: flex; margin-top: auto; }
.portal-faces span { width: 31%; max-width: 124px; aspect-ratio: 1; background: var(--paper); border: var(--line); border-radius: 22px; padding: 4px; margin-right: -12px; transition: transform .4s var(--ease); }
.portal-faces span:nth-child(1) { rotate: -8deg; } .portal-faces span:nth-child(3) { rotate: 8deg; }
.portal:hover .portal-faces span:nth-child(1) { transform: translate(-6px, -10px) rotate(-8deg); }
.portal:hover .portal-faces span:nth-child(2) { transform: translateY(-18px); }
.portal:hover .portal-faces span:nth-child(3) { transform: translate(6px, -10px) rotate(8deg); }
.portal-big { margin-top: auto; display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 900; color: var(--gold); line-height: 1; }
.portal-big b { font-size: clamp(48px, 5.6vw, 76px); letter-spacing: -.03em; }
.portal-big i { font-style: normal; font-size: 28px; opacity: .6; animation: nudge 1.2s ease-in-out infinite; }
.portal-big small { font-size: 15px; color: var(--cream); opacity: .7; }
@keyframes nudge { 50% { translate: 6px 0; } }
.portal-chips { margin-top: auto; display: flex; gap: 8px; }
.portal-chips span { padding: 6px 16px; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 99px; font-family: var(--display); font-weight: 900; font-size: 22px; animation: chBob 2.6s ease-in-out infinite; }
.portal-chips span:nth-child(2) { animation-delay: .3s; background: var(--gold); } .portal-chips span:nth-child(3) { animation-delay: .6s; }
.portal-fire { position: relative; margin-top: auto; width: 96px; height: 110px; }
.portal-fire .flame { bottom: 0; width: 100%; height: 100%; }
.portal-fire .flame i:first-child { background: var(--gold); }
.portal-fire .flame i:nth-child(2) { background: #FFE27A; } .portal-fire .flame i:nth-child(3) { background: var(--paper); }
.sec-portals .join-cta { margin-top: 70px; }
.sec-next { background: var(--cream); padding-block: clamp(60px, 8vw, 100px); }
.sec-next .portal { min-height: 230px; }

/* IP 页 */
a.trait { display: block; }
.trait em { display: inline-block; margin-top: 12px; font-style: normal; font-weight: 800; font-size: 14px; color: var(--orange-d); transition: translate .25s var(--ease); }
.trait:hover em { translate: 6px 0; }
.sec-stickers { background: var(--cream); }
.lead code, .fine code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: rgba(43, 26, 14, .08); padding: 1px 7px; border-radius: 6px; }

/* 挖矿对比表 */
.sec-cmp { background: var(--paper); }
.cmp-wrap { border: var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow-x: auto; background: var(--cream); }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 16px 20px; text-align: right; white-space: nowrap; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { background: var(--ink); color: var(--gold); font-size: 13.5px; letter-spacing: .08em; }
.cmp tbody tr { border-top: 2px solid rgba(43, 26, 14, .12); transition: background .3s; }
.cmp tbody td { font-weight: 600; }
.cmp tbody td:first-child { font-family: var(--display); font-weight: 900; font-size: 18px; }
.cmp tbody td:nth-child(n+4) { font-family: var(--display); font-weight: 900; font-size: 19px; }
.cmp tbody tr.on { background: var(--gold); }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.notes li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--cream); border: 2px solid var(--ink); border-radius: 20px; }
.notes li:nth-child(2) { --d: .08s; } .notes li:nth-child(3) { --d: .16s; }
.notes span { flex: none; width: 44px; height: 44px; }
.notes h3 { font-family: var(--display); font-size: 18px; } .notes p { font-size: 14px; color: var(--ink-2); }

/* 推荐计算器 */
.sec-refcalc { background: var(--cream); }
.calc.ref { margin-top: 0; }
.calc-out.three { grid-template-columns: 1fr 1fr; }
.calc-out .sum { grid-column: 1 / -1; background: var(--ink); }
.calc-out .sum span, .calc-out .sum i { color: rgba(255, 247, 232, .7); } .calc-out .sum b { color: var(--gold); }

.faq details p a { font-weight: 800; color: var(--orange-d); white-space: nowrap; }
.faq details p a:hover { text-decoration: underline; }

/* 上下页 */
.pager { background: var(--cream); border-top: var(--line); padding: 34px 0; }
.pager-in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; }
.pager-a { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--paper); border: var(--line); border-radius: 24px; box-shadow: 4px 4px 0 var(--ink); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.pager-a:hover { transform: translate(-3px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.pager-a.next { justify-content: space-between; background: var(--gold); }
.pager-a.next:hover { background: var(--orange); color: #fff; }
.pager-a span { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .3s var(--ease); }
.pager-a.prev span { rotate: 180deg; }
.pager-a.prev:hover span { transform: translateX(5px); } .pager-a.next:hover span { transform: translateX(5px); }
.pager-a small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; opacity: .65; }
.pager-a b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; }
.pager-a em { display: block; font-style: normal; font-size: 14px; opacity: .75; }

.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; font-size: 14.5px; }
.footer-nav a { opacity: .75; transition: opacity .2s, color .2s; } .footer-nav a:hover { opacity: 1; color: var(--gold); }

.totop { position: fixed; right: 22px; bottom: 82px; z-index: 45; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; background: var(--paper); border: var(--line); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); opacity: 0; visibility: hidden; translate: 0 14px; transition: opacity .3s, translate .35s var(--ease), visibility 0s .35s, background .2s; }
.totop.show { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.totop:hover { background: var(--gold); }

@media (max-width: 1020px) {
  .p7, .p5 { grid-column: span 12; } .p4 { grid-column: span 6; } .p4:last-child { grid-column: span 12; }
  .notes { grid-template-columns: 1fr; }
  .nav-links a.on { background: var(--gold); color: var(--ink); }
}
@media (max-width: 820px) {
  .page-hero { padding: 120px 0 50px; }
  .ph-in { grid-template-columns: 1fr; }
  .ph-sheep { position: absolute; right: 16px; top: -14px; width: 96px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .ph-in { position: relative; }
  .crumb { margin-bottom: 26px; }
  .next-grid > *, .p4, .p4:last-child, .p6 { grid-column: span 12; }
  .portal { min-height: 220px; }
  .pager-in { grid-template-columns: 1fr; }
  .pager-a.prev { order: 2; padding: 14px 20px; }
  .calc-out.three { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .totop { right: 14px; bottom: 76px; }
  .split-legend { padding-right: 0; padding-bottom: 6px; }
}

/* ==========================================================
   DApp 页 / 管理后台
   ========================================================== */
.app { padding: 120px 0 80px; min-height: 100svh; background: var(--cream); background-image: radial-gradient(rgba(43, 26, 14, .07) 1.6px, transparent 1.6px); background-size: 26px 26px; }
.app .wrap { display: grid; gap: 22px; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.app-head .crumb { animation: none; margin-bottom: 10px; }
.app-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; }
.wallet, .wallet-info, .panel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wallet-info[hidden], .dev-acc[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.gold { background: var(--gold); } .chip.dark { background: var(--ink); color: var(--gold); } .chip.bad { background: var(--red); color: #fff; }
.dev-acc, .panel select { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); color: var(--ink); }
.banner { padding: 14px 20px; background: #FFE9A8; border: var(--line); border-radius: 18px; font-weight: 600; box-shadow: 4px 4px 0 var(--ink); }
.banner[hidden] { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats.six { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--paper); border: var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); min-width: 0; }
.stat span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.stat.warn { background: var(--red); color: #fff; } .stat.warn span, .stat.warn i { color: rgba(255, 255, 255, .85); }

.app-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.side { display: grid; gap: 22px; }
.panel { background: var(--paper); border: var(--line); border-radius: 26px; padding: clamp(18px, 2.6vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.panel h2 { font-family: var(--display); font-weight: 900; font-size: 24px; margin-bottom: 14px; }
.panel h2 small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-left: 8px; }
.panel h3 { font-family: var(--display); font-size: 18px; margin-bottom: 6px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.hint { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 13.5px; font-weight: 800; margin-bottom: 7px; }
.field label small { font-weight: 600; color: var(--ink-2); }
.panel input[type=text], .panel select { width: 100%; font: inherit; font-weight: 700; font-size: 17px; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 11px 14px; min-width: 0; font-variant-numeric: tabular-nums; }
.panel input[type=text]:focus, .panel select:focus { outline: 0; box-shadow: 0 0 0 4px var(--gold); }
.panel input[readonly] { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.panel input::placeholder { color: rgba(43, 26, 14, .32); font-weight: 600; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.mini { flex: none; padding: 0 16px; min-height: 44px; font-weight: 800; font-size: 14px; background: var(--gold); border: 2px solid var(--ink); border-radius: 14px; transition: background .2s, transform .15s; }
.mini:hover { background: var(--orange); color: #fff; } .mini:active { transform: scale(.95); }
.slide { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; margin-top: 12px; }
.slide output { min-width: 3.4em; text-align: right; font-family: var(--display); font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.slide .quick { grid-column: 1 / -1; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.field-row > .field:nth-last-child(1):nth-child(2) { grid-column: span 2; }
.field.narrow { width: 110px; }
.full { width: 100%; justify-content: center; }
.btn:disabled, .mini:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: 2px 2px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; } .btn-row .btn { flex: 1; justify-content: center; }
.panel > .fine { margin-top: 12px; }

.tier-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.tier-pick button { display: grid; gap: 2px; padding: 12px 8px; background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; text-align: center; transition: transform .2s var(--ease), background .2s; }
.tier-pick button:hover { transform: translateY(-3px); }
.tier-pick b { font-family: var(--display); font-size: 19px; } .tier-pick span { font-size: 13px; font-weight: 700; color: var(--orange-d); }
.tier-pick [aria-checked="true"] { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--orange-d); }
.tier-pick [aria-checked="true"] span { color: var(--gold); }
.preview { display: grid; gap: 6px; margin-bottom: 18px; }
.preview:empty { display: none; }
.preview li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; background: var(--cream); border-radius: 12px; font-size: 14px; }
.preview b { font-variant-numeric: tabular-nums; }
.preview .hl { background: var(--gold); font-weight: 700; }

.fomo-panel { background: var(--ink); color: var(--cream); }
.fomo-pool { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.fomo-pool b { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fomo-pool i { font-style: normal; font-weight: 700; opacity: .7; }
.fomo-row, .kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1.5px dashed rgba(128, 128, 128, .35); font-size: 14.5px; }
.fomo-row span, .kv span { opacity: .7; font-weight: 600; } .fomo-row b, .kv b { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.fomo-panel h2 small { color: rgba(255, 247, 232, .6); }
.fomo-panel .btn { margin-top: 12px; }
.kv a { text-decoration: underline; text-underline-offset: 3px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }

.pos-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--ink-2); background: var(--cream); border: 2px dashed rgba(43, 26, 14, .3); border-radius: 18px; }
.pos { background: var(--cream); border: 2px solid var(--ink); border-radius: 20px; padding: 16px; display: grid; gap: 10px; }
.pos.done { background: #FFEFC7; }
.pos-top { display: flex; align-items: center; gap: 10px; }
.pos-top > b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; } .pos-top small { font-family: var(--body); font-size: 12px; color: var(--ink-2); }
.pos-rate { margin-left: auto; font-weight: 800; color: var(--orange-d); font-size: 14px; white-space: nowrap; }
.badge { padding: 2px 10px; background: var(--ink); color: var(--gold); border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge.gift { background: var(--violet); color: #fff; }
.pos-bar { height: 10px; background: var(--sand); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.pos-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--orange)); }
.pos-meta, .pos-act { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pos-act { color: var(--ink); font-size: 14px; } .pos-act b { font-family: var(--display); font-size: 18px; } .pos-act div { display: flex; gap: 8px; }

/* 管理后台 */
body.admin .app { background-color: #F1E7D3; }
body.admin .app-head .crumb { background: var(--red); color: #fff; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.admin-grid .wide { grid-column: 1 / -1; }
.tiers-table { min-width: 460px; }
.tiers-table td, .tiers-table th { text-align: left !important; padding: 10px 14px; }
.tiers-table input[type=text] { max-width: 120px; padding: 7px 10px; font-size: 15px; background: var(--paper); }
.tiers-table input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--orange); }
.tiers-table .mini { min-height: 36px; }
.owner-only { background: #FFF0EC; border-style: dashed; }
body.admin:not(.is-owner) .owner-only { opacity: .55; }
.owner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

@media (max-width: 1020px) {
  .app-grid, .admin-grid { grid-template-columns: 1fr; }
  .owner-grid { grid-template-columns: 1fr; }
  .stats, .stats.six { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .app { padding-top: 100px; }
  .kv-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; } .field-row > .field { grid-column: auto !important; } .field.narrow { width: auto; }
  .pos-list { grid-template-columns: 1fr; }
  .wallet .btn { width: 100%; justify-content: center; } .wallet { width: 100%; }
}

/* 导航右上角的钱包按钮 + 连接弹窗（js/wallet.js） */
.wallet-mount { display: flex; align-items: center; flex: none; }
.wallet-mount .wallet-on { gap: 8px; font-variant-numeric: tabular-nums; }
.wallet-mount .wallet-bad { background: var(--red); }
.wm-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(43, 26, 14, .55); backdrop-filter: blur(4px); animation: wmFade .2s ease both; }
.wm-box { width: min(400px, 100%); max-height: min(86svh, 640px); overflow-y: auto; background: var(--paper); border: var(--line); border-radius: 28px; box-shadow: 10px 10px 0 var(--ink); padding: 22px; animation: wmPop .35s var(--ease) both; }
.wm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wm-head h2 { font-family: var(--display); font-weight: 900; font-size: 24px; }
.wm-x { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: var(--cream); border: 2px solid var(--ink); border-radius: 50%; font-size: 20px; line-height: 1; transition: background .2s, transform .2s var(--ease); }
.wm-x:hover { background: var(--gold); transform: rotate(90deg); }
.wm-sub { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; color: var(--ink-2); margin: 16px 0 8px; }
.wm-list { display: grid; gap: 8px; }
.wm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; background: var(--cream); border: 2px solid var(--ink); border-radius: 16px; font-weight: 700; font-size: 16px; text-align: left; transition: transform .2s var(--ease), background .2s, box-shadow .2s; }
.wm-item:hover { background: var(--gold); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.wm-item img, .wm-item .wm-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.wm-item .wm-ic { display: grid; place-items: center; background: var(--ink); color: var(--gold); font-family: var(--display); font-weight: 900; font-size: 16px; }
.wm-item small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.wm-item.busy { opacity: .6; pointer-events: none; }
.wm-note { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.wm-err { margin-top: 12px; padding: 10px 14px; background: #FFE1DB; border: 2px solid var(--red); border-radius: 14px; font-size: 13.5px; font-weight: 600; }
.wm-acct { text-align: center; }
.wm-acct .wm-avatar { width: 84px; margin: 4px auto 10px; }
.wm-acct b { display: block; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.wm-acct code { display: block; margin-top: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink-2); word-break: break-all; }
.wm-acct .btn-row { margin-top: 18px; }
@keyframes wmFade { from { opacity: 0; } }
@keyframes wmPop { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@media (max-width: 1020px) { .wallet-mount { margin-left: auto; } }
@media (max-width: 520px) {
  .wallet-mount .btn { padding: 9px 12px; font-size: 13px; }
  .wm-overlay { place-items: end center; padding: 0; }
  .wm-box { width: 100%; border-radius: 28px 28px 0 0; border-bottom: 0; box-shadow: none; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation-name: wmSheet; }
}
@keyframes wmSheet { from { transform: translateY(100%); } }

/* 邀请：绑定弹窗 + 我的邀请链接卡片 */
.inv-box .btn-row { flex-direction: column; } .inv-box .btn-row .btn { flex: none; width: 100%; }
.sec-invite { background: var(--paper); padding-block: clamp(60px, 8vw, 100px); }
.invite-card { background: var(--gold); box-shadow: 10px 10px 0 var(--ink); display: grid; gap: 18px; }
.invite-head { display: flex; align-items: center; gap: 20px; }
.invite-face { flex: none; width: clamp(84px, 12vw, 130px); aspect-ratio: 1; background: var(--paper); border: var(--line); border-radius: 26px; padding: 6px; rotate: -6deg; }
.invite-card .kicker { margin-bottom: 8px; }
.invite-card h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 6px; line-height: 1.1; }
.invite-card .hint { margin: 0; color: var(--ink); opacity: .85; font-size: 15px; } .invite-card .hint a { font-weight: 800; text-decoration: underline; }
.invite-card > .btn { justify-self: start; }
.invite-card .input-row input { background: var(--paper); color: var(--ink); font-size: 14.5px; }
.invite-card .mini { background: var(--ink); color: var(--gold); padding: 0 20px; }
.invite-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.invite-stats div { background: rgba(255, 253, 248, .7); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 16px; }
.invite-stats span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.invite-stats b { font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .invite-head { align-items: flex-start; gap: 14px; } .invite-card > .btn { justify-self: stretch; justify-content: center; } .invite-card .input-row { flex-direction: column; } .invite-card .mini { min-height: 46px; } }

/* 入金金库页（mining.html）：页头 + 金库 */
.vault-hero { padding-bottom: 56px; }
.vault-hero .wallet { margin-top: 26px; animation: phIn .7s var(--ease) both .7s; }
.page-hero + .app { padding-top: 40px; min-height: 0; }
.app .notes { margin-top: 0; }
.app .notes li { background: var(--paper); }
.stat, .panel, .pos, .chip { overflow-wrap: anywhere; }

/* ---------- 移动端补充适配 ---------- */
@media (max-width: 820px) {
  .vault-hero h1 { padding-right: 104px; }
  .panel-head { align-items: flex-start; }
  .cmp th, .cmp td { padding: 12px 14px; }
}
@media (max-width: 520px) {
  .wrap, .wrap.narrow, .hero-inner { width: calc(100% - 28px); }
  .nav { top: 10px; padding: 6px 8px 6px 10px; }
  .nav .btn-sm { padding: 9px 14px; }
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 34px; }
  .page-hero { padding: 104px 0 40px; }
  .page-hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .ph-sheep { width: 82px; top: -6px; right: 4px; }
  .vault-hero h1 { padding-right: 92px; }
  .vault-hero .wallet-info { width: 100%; }
  .btn-lg { padding: 14px 22px; font-size: 16.5px; }
  .hero-cta .btn, .join-cta .btn { flex: 1 1 auto; justify-content: center; }
  .stats, .stats.six { gap: 10px; }
  .stat { padding: 12px 14px; border-radius: 16px; }
  .stat b { font-size: 21px; }
  .panel { border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
  .panel h2 { font-size: 21px; } .panel h2 small { display: block; margin: 4px 0 0; }
  .panel input[type=text], .panel select { font-size: 16px; }      /* 16px 起，避免 iOS 聚焦时放大页面 */
  .calc input[type=number] { font-size: 28px; }
  .tier-pick { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tier-pick button { padding: 10px 4px; } .tier-pick b { font-size: 17px; } .tier-pick span { font-size: 12px; }
  .preview li { padding: 8px 12px; font-size: 13.5px; }
  .quick button { flex: 1; padding: 8px 0; }
  .pos-act { flex-direction: column; align-items: stretch; }
  .pos-act div { display: grid; grid-template-columns: 1fr 1fr; } .pos-act .btn { justify-content: center; }
  .pos-act div:has(.btn:only-child) { grid-template-columns: 1fr; }
  .panel-tools { width: 100%; justify-content: space-between; }
  .fomo-row, .kv { font-size: 13.5px; }
  .split-panel, .calc, .join-cta { box-shadow: 5px 5px 0 var(--ink); border-radius: 24px; }
  .amt-row output { font-size: 46px; }
  .portal { padding: 22px 22px 70px; border-radius: 24px; }
  .rw-card { border-radius: 22px; }
  .faq summary { font-size: 16px; padding: 16px 54px 16px 18px; }
  .faq details p { padding: 0 18px 18px; font-size: 14.5px; }
  .pager { padding: 22px 0; } .pager-a { padding: 14px 16px; border-radius: 20px; }
  .footer { padding: 44px 0 90px; }
  .footer-nav { gap: 6px 16px; }
  .toast { max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
  .owner-grid { gap: 22px; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (hover: none) {
  /* 触屏设备上不保留 hover 位移，避免点完之后卡在悬停状态 */
  .portal:hover, .trait:hover, .steps li:hover, .tier:hover, .hero-stats li:hover, .pager-a:hover, .sticker:hover, .scard:hover { transform: none; }
  .btn:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  #coins { display: none; }
  html.cover body::before, html.leaving body::before, html.uncover body::before { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

.rec-table { min-width: 860px; } .rec-table td, .rec-table th { padding: 11px 14px; font-size: 14px; } .rec-table a { text-decoration: underline; }
.msig { border-color: var(--red); }
.ms-item { padding: 16px 18px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); margin-top: 12px; display: grid; gap: 10px; }
.ms-item b { word-break: break-all; }
.ms-history { margin-top: 16px; } .ms-history summary { cursor: pointer; font-weight: 700; } .ms-history .kv span { word-break: break-all; padding-right: 12px; }
.ms-item .btn-row { align-items: center; margin: 0; } .ms-item .btn-row .btn { flex: 0 0 auto; }

/* ============ 管理后台 · 布局整理 ============ */
body.admin .app-head h1 { font-size: clamp(30px, 4vw, 44px); }
body.admin .panel h2 small { font-family: var(--body, inherit); font-weight: 700; font-size: 12.5px; padding: 3px 10px; margin-left: 8px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); vertical-align: middle; white-space: nowrap; }
body.admin [hidden] { display: none !important; }
.tabs { display: flex; gap: 8px; padding: 8px; background: var(--paper); border: var(--line); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 15px; font-weight: 800; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button:hover { background: var(--cream); }
.tabs button[aria-current="true"] { background: var(--ink); color: var(--gold); }
.tab-badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--red); color: #fff; border-radius: 99px; font-size: 12.5px; font-style: normal; font-weight: 800; }
/* 预览模式（金库未部署）：功能都显示，底纹提示还不能操作 */
body.preview .admin-grid .panel, body.preview #msig { background-image: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(43, 26, 14, .03) 14px 28px); }
/* 上线进度 */
.setup { background: #FFF6DC; }
.setup-steps { list-style: none; counter-reset: st; display: grid; gap: 10px; margin: 6px 0 0; padding: 0; }
.setup-steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; border: 2px solid rgba(43, 26, 14, .18); border-radius: 16px; background: var(--paper); }
.setup-steps li::before { content: counter(st); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-family: var(--display); font-weight: 900; background: var(--cream); }
.setup-steps li b { font-size: 16px; } .setup-steps li span { font-size: 13.5px; color: var(--ink-2); } .setup-steps li span a { font-weight: 800; text-decoration: underline; color: var(--ink); }
.setup-steps li.done { opacity: .62; } .setup-steps li.done::before { content: "✓"; background: #17C784; color: #fff; }
.setup-steps li.cur { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); } .setup-steps li.cur::before { background: var(--gold); }
/* 面板等高、按钮贴底 */
body.admin .admin-grid { align-items: stretch; }
body.admin .admin-grid .panel { display: flex; flex-direction: column; margin: 0; }
body.admin .admin-grid .panel > .btn.full:last-child, body.admin .admin-grid .panel > .btn-row:last-child { margin-top: auto; }
body.admin .admin-grid .panel > .btn.full { margin-top: 6px; }
.field-row.two { grid-template-columns: 1fr 1fr; }
body.admin .field select { width: 100%; }
.sub { font-family: var(--display); font-size: 17px; margin: 24px 0 10px; }
/* 多签 */
.msig { border-color: var(--ink); }
.ms-item { box-shadow: 3px 3px 0 var(--ink); }
.ms-done { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 10px 2px; border-top: 2px dashed rgba(43, 26, 14, .14); font-size: 14.5px; }
.ms-done span:nth-child(2) { word-break: break-all; } .ms-done b.ok { color: #0E8F5F; } .ms-done b.off { color: var(--ink-2); }
/* 入金记录 */
.rec-filter { display: grid; grid-template-columns: 170px 1fr 130px; gap: 12px; align-items: end; margin: 18px 0 14px; }
.pager-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pager-row .btn { flex: none; }
body.admin .cmp-wrap { border-radius: 16px; border-width: 2px; box-shadow: none; }
body.admin .cmp th, body.admin .cmp td { padding: 11px 14px; }
body.admin .cmp tbody td, body.admin .cmp tbody td:first-child, body.admin .cmp tbody td:nth-child(n+4) { font-family: inherit; font-size: 14.5px; font-weight: 600; }
.cell-empty { text-align: center !important; padding: 26px 14px !important; color: var(--ink-2); }
body.admin #rcNote { margin: 12px 0 0; }
/* 签名人 */
.signer-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.signer-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid rgba(43, 26, 14, .18); border-radius: 14px; background: var(--cream); }
.signer-list code { font-size: 13.5px; word-break: break-all; }
@media (max-width: 820px) {
  .rec-filter { grid-template-columns: 1fr 1fr; } .rec-filter .field:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .field-row.two { grid-template-columns: 1fr 1fr; }
  .tabs { border-radius: 18px; } .tabs button { padding: 10px 14px; font-size: 14px; }
}
.tabs button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.tabs button[aria-current="true"] { background: var(--ink); color: var(--gold); }
.field-row.two > .field { grid-column: auto !important; }
body.admin .admin-grid .panel > h2 + .btn.full { margin-top: 6px; }
@media (max-width: 820px) { body.admin .panel h2 small { display: inline-block; width: auto; margin: 6px 0 0 6px; } }

/* ============ 管理后台 · 登录页 ============ */
body.login-page { min-height: 100vh; min-height: 100dvh; margin: 0; background: #F1E7D3 radial-gradient(rgba(43, 26, 14, .07) 1.5px, transparent 1.5px) 0 0 / 22px 22px; }
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(440px, 100%); padding: clamp(24px, 5vw, 38px); background: var(--paper); border: var(--line); border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); display: grid; gap: 4px; }
.login-sheep { width: 96px; height: 96px; margin: -74px auto 6px; padding: 8px; background: var(--gold); border: var(--line); border-radius: 28px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); }
.login-sheep svg { width: 100%; height: 100%; display: block; }
.login-kicker { justify-self: center; padding: 4px 14px; background: var(--red); color: #fff; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.login-card h1 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 6vw, 34px); line-height: 1.15; text-align: center; margin: 10px 0 4px; }
.login-lead { text-align: center; font-size: 14.5px; color: var(--ink-2); margin: 0 0 18px; }
.login-card .field { margin-bottom: 14px; }
.login-card input { width: 100%; min-width: 0; font: inherit; font-weight: 700; font-size: 17px; color: var(--ink); background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 14px; }
.login-card input:focus { outline: 0; box-shadow: 0 0 0 4px var(--gold); }
.login-card .mini { background: var(--cream); }
.login-msg { margin: 0 0 12px; padding: 11px 14px; background: #FFE3DC; border: 2px solid var(--red); border-radius: 14px; font-size: 14.5px; font-weight: 700; color: #A32313; }
.login-foot { text-align: center; margin: 16px 0 0; font-size: 14px; } .login-foot a { font-weight: 700; text-decoration: underline; }

/* 入金币种按钮：左边币种图标，右边名称和起投额 */
.cur-pick { grid-template-columns: 1fr 1fr; }
.cur-pick button { grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: center; align-items: center; column-gap: 10px; row-gap: 0; text-align: left; padding: 12px 10px; }
.cur-pick .coin-ic { grid-row: 1 / span 2; width: 34px; height: 34px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.cur-pick [aria-checked="true"] .coin-ic { box-shadow: 0 0 0 2px var(--cream); }
.cur-pick .coin-ic svg { width: 100%; height: 100%; display: block; }
.cur-pick b { align-self: end; line-height: 1.1; } .cur-pick span { align-self: start; }
@media (max-width: 520px) { .cur-pick .coin-ic { width: 30px; height: 30px; } .cur-pick button { column-gap: 8px; padding: 10px 6px; } }
