/* ============================================================
 * Coinbase 落地页 · 样式
 * ------------------------------------------------------------
 * 设计 token 取自 Coinbase 公开设计系统：
 *   单一品牌蓝 #0052ff · 白 / #f7f7f7 / #0a0b0d 三档表面 ·
 *   标题 weight 400（不是 700）+ 负字距 · 按钮 pill(100px) ·
 *   卡片 26px；区块 CTA 用黑色药丸，只有 hero / 弹窗用品牌蓝。
 * 移动优先：内容最大 480px 居中，桌面下即为「手机版」观感。
 * ============================================================ */

:root {
  /* 品牌 & 强调 */
  --brand: #0052ff;
  --brand-active: #003ecc;
  --brand-soft: rgba(0, 82, 255, 0.08);
  --brand-disabled: #a8b8cc;
  --accent-yellow: #f4b000;
  --teal: #0a7f5a;

  /* 三档表面 */
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #eef0f3;
  --surface-dark: #0a0b0d;
  --surface-dark-up: #16181c;

  /* 文字 */
  --ink: #0a0b0d;
  --body: #5b616e;
  --muted: #7c828a;
  --muted-soft: #a8acb3;
  --on-dark: #ffffff;
  --on-dark-soft: #a8acb3;

  /* 描边 */
  --hairline: #dee1e6;
  --hairline-soft: #eef0f3;

  /* 涨跌（Coinbase 原生语义色） */
  --up: #05b169;
  --down: #cf202f;

  /* 几何 */
  --r-card: 26px;
  --r-pill: 100px;
  --r-btn: 12px;
  --shadow: 0 1px 2px rgba(10, 11, 13, 0.06);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --font: "CoinbaseDisplay", "Coinbase Display", "CoinbaseSans",
    "Coinbase Sans", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
sup { font-size: 0.62em; line-height: 0; vertical-align: super; }

/* ---------- 版心 ---------- */
.app { max-width: 480px; margin: 0 auto; background: var(--canvas); }
.wrap { padding: 0 20px; }

/* ---------- 标题与正文 ---------- */
.h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.022em;
}

.h2.on-dark { color: var(--on-dark); }

.lede {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

.lede.on-dark { color: var(--on-dark-soft); }

/* 小号灰色免责 / 说明文字 */
.fine {
  margin: 16px 4px 0;
  font-size: 11.5px;
  line-height: 1.62;
  text-align: center;
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-active); }
.btn-primary:disabled { background: var(--brand-disabled); cursor: default; }

/* 区块 CTA：黑色药丸（源站手机版的主力按钮样式） */
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #23262c; }

/* 深色卡片上的白色药丸 */
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e9eaec; }

/* 品牌蓝底上的白色药丸 */
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eaf0ff; }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16.5px; }
.btn-full { width: 100%; }

/* ---------- 区块 ---------- */
.sec { padding: 42px 0; }
.sec-white { background: var(--canvas); }
.sec-soft { background: var(--surface-soft); }
.sec-dark { background: var(--surface-dark); }

.sec .btn { margin-top: 22px; }

/* ---------- 卡片 ---------- */
.card { border-radius: var(--r-card); }
.card-dark { background: var(--surface-dark); color: var(--on-dark); }
.card-soft { background: var(--surface-soft); }
.card-blue { background: var(--brand); }
.card-green { background: var(--teal); }

/* ---------- 小标题胶囊（COINBASE ONE / COINBASE WALLET） ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 26px 0 0;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.chip svg { width: 15px; height: 15px; flex: none; }
.chip + .h2 { margin-top: 14px; }

/* ============================================================
 * 顶部限时活动条（在导航之上，随页面滚走）
 * ============================================================ */
.promo-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 16px;
  border: 0;
  background: linear-gradient(100deg, #0052ff 0%, #0040cf 100%);
  font: inherit;
  text-align: left;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ps-ico { width: 18px; height: 18px; flex: none; opacity: 0.95; }

.ps-tx {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-cta {
  flex: none;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
 * 顶部导航
 * ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 58px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.nav.stuck { border-bottom-color: var(--hairline); }

.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-mark { width: 28px; height: 28px; flex: none; }

.brand-word {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }

/* 圆圈图标按钮（搜索 / 汉堡），灰底白字，跟源站一致 */
.nav-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s var(--ease);
}

.nav-ico:hover { background: var(--hairline); }
.nav-ico svg { width: 21px; height: 21px; }

/* ---------- 语言切换（两段式药丸） ---------- */
.langs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--surface-strong);
}

.lang-btn {
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--body);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.lang-btn.on {
  background: var(--canvas);
  color: var(--brand);
  box-shadow: var(--shadow);
}

/* 抽屉里的大号版本 */
.langs-full { display: flex; margin-top: 12px; }
.langs-full .lang-btn { flex: 1; height: 34px; font-size: 13px; }

/* 窄屏：收紧导航内距，保证「品牌 + 语言 + 搜索 + 按钮 + 汉堡」一行放得下 */
@media (max-width: 400px) {
  .nav { gap: 8px; padding: 0 12px; }
  .nav-right { gap: 6px; }
  .nav .btn-sm { padding: 0 12px; font-size: 13px; }
  .nav-ico { width: 34px; height: 34px; }
  .nav-ico svg { width: 19px; height: 19px; }
  .lang-btn { min-width: 26px; padding: 0 5px; font-size: 11px; }
}

/* ============================================================
 * 抽屉菜单
 * ============================================================ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0s linear 0.24s;
}

.drawer.on {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.24s var(--ease), visibility 0s;
}

.drawer-mask { position: absolute; inset: 0; background: rgba(10, 11, 13, 0.5); }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-radius: var(--r-card) 0 0 var(--r-card);
  box-shadow: -8px 0 32px rgba(10, 11, 13, 0.14);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
}

.drawer.on .drawer-panel { transform: none; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 4px;
}

.drawer-title { font-size: 13px; font-weight: 700; color: var(--muted); }

.drawer-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.drawer-x:hover { background: var(--surface-strong); }
.drawer-x svg { width: 18px; height: 18px; }

.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 8px 0; overscroll-behavior: contain; }

.dnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
}

.dnav:hover { background: var(--surface-soft); }
.dnav-tx b { display: block; font-size: 15px; font-weight: 600; }
.dnav-tx i { display: block; font-size: 12.5px; font-style: normal; color: var(--muted); }
.dnav svg { width: 18px; height: 18px; flex: none; color: var(--muted-soft); }

.drawer-foot {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline-soft);
}

.drawer-signin {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}

/* ============================================================
 * Hero（浅色，源站手机版的首页首屏）
 * ============================================================ */
.hero { padding: 20px 0 42px; background: var(--canvas); }

.hero-h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero .btn { margin-top: 20px; }

/* ---------- 深色铭牌卡：点阵 + 品牌药丸 + SYSTEM UPDATE ---------- */
.hero-card {
  position: relative;
  height: 336px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(64, 122, 255, 0.62) 1.4px,
    transparent 1.5px
  );
  background-size: 21px 21px;
}

.glow { position: absolute; border-radius: 50%; filter: blur(24px); }

.g1 {
  left: -14px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.95), rgba(0, 82, 255, 0) 70%);
}

.g2 {
  left: 78px;
  bottom: -36px;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle, rgba(88, 146, 255, 0.8), rgba(0, 82, 255, 0) 70%);
}

.plaque {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plaque-brand {
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plaque-tag {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #c6c9cf;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

/* ============================================================
 * 股票 / 金属永续卡（深色 + 蓝色代码云）
 * ============================================================ */
.perps-card { padding: 0 22px 26px; overflow: hidden; }

.cloud {
  position: relative;
  height: 178px;
  margin: 0 -22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3),
    #000 34%,
    #000 84%,
    rgba(0, 0, 0, 0.15)
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3),
    #000 34%,
    #000 84%,
    rgba(0, 0, 0, 0.15)
  );
}

.tk {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--mono);
  font-size: var(--s);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #4d7cfe;
  opacity: var(--o);
  white-space: nowrap;
}

.perps-body { position: relative; }
.perps-body .btn { margin-top: 20px; }

/* ============================================================
 * 限时空投宣传区
 * ============================================================ */
.promo {
  padding: 40px 0 44px;
  background: linear-gradient(158deg, #0052ff 0%, #0037b4 100%);
  color: #fff;
}

.promo-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-h2 {
  margin: 14px 0 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
}

.promo-sub {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.promo-lab {
  margin: 24px 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.promo-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pc-cell {
  padding: 12px 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
}

.pc-cell b {
  display: block;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.pc-cell span {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
}

.promo-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.promo-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.promo .btn { margin-top: 26px; }

/* ============================================================
 * 加密行情：标题 + 黑色 CTA + 深色行情卡
 * ============================================================ */
.rot { transition: opacity 0.26s var(--ease); }
.rot.out { opacity: 0; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--canvas);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--body);
}

.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-soft);
}

.live[data-state="live"] { background: rgba(5, 177, 105, 0.1); border-color: transparent; color: #05734a; }

.live[data-state="live"] .live-dot {
  background: var(--up);
  animation: livePulse 2s ease-out infinite;
}

.live[data-state="fail"] { background: rgba(244, 176, 0, 0.14); border-color: transparent; color: #8a6300; }
.live[data-state="fail"] .live-dot { background: var(--accent-yellow); }

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 177, 105, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(5, 177, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 177, 105, 0); }
}

/* ---------- 行情卡 ---------- */
.mkt { margin-top: 20px; padding: 16px 16px 6px; }

.mkt-head { display: flex; align-items: center; gap: 8px; }

.tabs {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 2px;
}

.tabs::-webkit-scrollbar { display: none; }

/* 横滑超出时右侧渐隐（只在 ≤330 这种极窄屏才会触发）。
   不支持 mask 的浏览器只是不渐隐，布局不受影响。 */
.tabs.scroll {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}

.tab {
  flex: none;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #b8bcc4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.tab.on { background: #fff; color: var(--ink); }

.mkt-more {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1b1e23;
  color: #b8bcc4;
}

.mkt-more svg { width: 16px; height: 16px; }

/* ⚠️ 官方手机版的这一行本来就只露两个 tab（「Tradable」「Top gainers」+ 圆形箭头），
   其余分类靠横滑。390 宽塞不下三个 15px 的英文大药丸，硬塞会把「Top losers」
   切掉半截看起来像故障 —— 所以窄屏照官方只留两个。
   中文标签只有三个字，塞得下，就不用砍。宽屏三种语言都放三个。 */
@media (max-width: 479px) {
  html[lang="en"] .tab[data-sort="losers"] { display: none; }
}

/* ≤340 的极窄屏再收一档 */
@media (max-width: 340px) {
  .tab { padding: 0 12px; font-size: 14px; }
}

.rows { margin-top: 2px; }

/* 行版式照官方：图标 + 币种代码（大号粗体）+ 右侧「价格／涨跌」两行，
   整行只有一处文字（官方没有副标题那行），所以行体更高、字更重。 */
.row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #1c1f24;
}

.row:first-child { border-top: 0; }

.row .coin { width: 36px; height: 36px; }

.row-tx {
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-px { text-align: right; }
.row-px b {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}

.row-px i {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.row-px i svg { width: 10px; height: 10px; flex: none; }

.coin { display: block; border-radius: 50%; }

.up { color: var(--up); }
.down { color: var(--down); }

/* ============================================================
 * 进阶工具：深色设备 mockup（纯 CSS）
 * ============================================================ */
.dev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  align-items: end;
  gap: 12px;
  padding: 20px 18px;
}

.dev-lap {
  padding: 7px 7px 8px;
  border: 1.5px solid rgba(60, 96, 224, 0.85);
  border-radius: 10px;
  background: #06070a;
  box-shadow: 0 0 20px rgba(0, 82, 255, 0.3);
}

.dev-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 7px;
}

.dev-dots { display: inline-flex; gap: 3px; margin-right: auto; }
.dev-dots i { width: 4px; height: 4px; border-radius: 50%; background: #2b2f36; }
.dev-px { font-size: 8.5px; font-weight: 700; color: #fff; font-family: var(--mono); }
.dev-chg { font-size: 8px; font-weight: 700; }

.dev-chart { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 6px; }

.chart { height: 92px; }
.chart svg { width: 100%; height: 100%; }
.gridlines line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }

.dev-book { display: grid; gap: 3px; align-content: start; padding-top: 4px; }

.bk { display: flex; align-items: baseline; justify-content: space-between; gap: 3px; }
.bk span { font-size: 6.5px; font-family: var(--mono); color: rgba(255, 255, 255, 0.34); }
.bk b { font-size: 6.5px; font-family: var(--mono); }

.dev-foot { display: flex; align-items: center; gap: 5px; padding: 8px 2px 0; }

.dev-tab {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 7.5px;
  font-weight: 700;
  color: #8a8f98;
}

.dev-tab.on { background: rgba(0, 82, 255, 0.22); color: #7ea2ff; }

.dev-buy {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(5, 177, 105, 0.18);
  font-size: 7.5px;
  font-weight: 700;
  color: var(--up);
}

.dev-phone {
  padding: 6px;
  border: 1.5px solid rgba(60, 96, 224, 0.85);
  border-radius: 12px;
  background: #06070a;
  box-shadow: 0 0 16px rgba(0, 82, 255, 0.26);
}

.dev-ph-bar { display: block; font-size: 7px; color: #6f747d; font-family: var(--mono); }

.dev-candles {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  margin-top: 7px;
}

.cd { flex: 1; border-radius: 1px; background: var(--up); opacity: 0.62; }
.cd:nth-child(3n) { background: var(--down); }
.cd:nth-child(4n) { opacity: 0.38; }

.dev-ph-pill {
  display: block;
  margin-top: 7px;
  padding: 3px 0;
  border-radius: var(--r-pill);
  background: rgba(5, 177, 105, 0.16);
  font-size: 7.5px;
  font-weight: 700;
  text-align: center;
  color: var(--up);
}

/* ============================================================
 * Coinbase One：浅灰卡 + 白色手机 mockup
 * ============================================================ */
.one-card {
  position: relative;
  padding: 0 24px 26px;
  overflow: hidden;
}

.ph {
  width: 212px;
  margin: -16px auto 0;
  padding: 13px 14px 18px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 34px rgba(10, 11, 13, 0.1);
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  color: var(--ink);
}

.ph-sig { display: inline-flex; align-items: flex-end; gap: 2px; }
.ph-sig i { width: 2.5px; border-radius: 1px; background: #c7cad0; }
.ph-sig i:nth-child(1) { height: 4px; }
.ph-sig i:nth-child(2) { height: 6px; }
.ph-sig i:nth-child(3) { height: 8px; }

.ph-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 16px auto 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.ph-check svg { width: 24px; height: 24px; }

.ph-t { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.ph-got { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }

.ph-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  padding: 9px 10px;
  border: 1px solid var(--hairline-soft);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  box-shadow: 0 2px 8px rgba(10, 11, 13, 0.1);
}

.ph-note b { font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ph-mini { width: 14px; height: 14px; flex: none; }
.ph-note span { font-size: 9px; line-height: 1.35; color: var(--body); }

.ph-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  box-shadow: 0 2px 8px rgba(10, 11, 13, 0.09);
}

.ph-card-tx { flex: 1; min-width: 0; }
.ph-card-tx b { display: block; font-size: 10.5px; font-weight: 700; }
.ph-card-tx span { display: block; margin-top: 3px; font-size: 9px; line-height: 1.4; color: var(--muted); }
.ph-card-tx i { display: block; margin-top: 5px; font-size: 9px; font-weight: 600; font-style: normal; color: var(--brand); }

.ph-bot {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #9dbbff, #0052ff 60%, #001f66);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.28);
}

/* ============================================================
 * Coinbase 钱包：青绿卡 + 三台手机
 * ============================================================ */
.wal-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 24px 14px;
  overflow: hidden;
  background: linear-gradient(170deg, #0d7b58 0%, #0a5b44 100%);
}

.wp {
  flex: 1;
  min-width: 0;
  padding: 10px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.wp-side { opacity: 0.7; }
.wp-side b { display: block; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.wp-side .wchip { margin-top: 7px; }

.wp-main {
  flex: 1.45;
  padding: 14px 11px;
  background: rgba(4, 33, 24, 0.42);
}

.wp-lb { display: block; font-size: 8.5px; color: rgba(255, 255, 255, 0.68); }

.wp-bal {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wp-chips { display: flex; gap: 5px; margin-top: 9px; }

.wchip {
  display: inline-block;
  padding: 3px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.wchip.up { color: #8ef0c0; }
.wchip.down { color: #ffb0b0; }

/* ============================================================
 * 入门学习：深色轨道插画卡
 * ============================================================ */
.orbit { margin-top: 26px; padding: 24px 20px; }
.orbit svg { display: block; width: 100%; height: auto; }
.orb-dash { stroke: #2b2f36; }

/* ============================================================
 * 文章块（同一片浅灰底，脚本渲染）
 * ============================================================ */
.posts { margin-top: 44px; }
.post + .post { margin-top: 44px; }

.post .lede { margin: 10px 0 0; }
.post .illo { margin: 22px 0 0; padding: 24px 20px; }
.post .h2 { margin: 22px 0 0; }
.illo svg { display: block; width: 100%; height: auto; }

/* ============================================================
 * FAQ
 * ============================================================ */
.faq { margin-top: 20px; }
.qa { border-bottom: 1px solid var(--hairline); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform 0.2s var(--ease); }
.qa[open] summary svg { transform: rotate(180deg); }

.qa p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body);
}

/* ============================================================
 * 信任区块
 * ============================================================ */
.trust-list { margin-top: 20px; }

.trust {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.line-ico { width: 26px; height: 26px; color: var(--brand); }
.trust-tx b { display: block; font-size: 16px; font-weight: 600; }

.trust-tx p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* ============================================================
 * 开户三步
 * ============================================================ */
.steps { margin-top: 20px; }

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.step-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.step-tx b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }

.step-tx p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* ============================================================
 * 下载 App
 * ============================================================ */
.stores { display: grid; gap: 12px; margin-top: 22px; }

.store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 14px;
  background: #fff;
}

.store img { width: 26px; height: 26px; flex: none; }
.store span { display: block; line-height: 1.15; }
.store i { display: block; font-size: 10.5px; font-style: normal; color: var(--muted); }

.store b { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

.rate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--on-dark-soft);
}

.rate-stars { color: var(--accent-yellow); letter-spacing: 2px; }
.rate-tx b { color: #fff; }

/* ============================================================
 * 结尾 CTA
 * ============================================================ */
.final { padding: 52px 0 60px; background: var(--surface-dark); }
.final .btn { margin-top: 24px; }

/* ============================================================
 * 页脚
 * ============================================================ */
.foot {
  padding: 40px 0 calc(28px + 84px + env(safe-area-inset-bottom));
  background: var(--surface-dark);
  border-top: 1px solid #1c1f24;
}

.brand-foot { margin-bottom: 20px; }
.brand-foot .brand-word { color: #fff; }

.socials { display: flex; gap: 10px; margin-bottom: 28px; }

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-dark-up);
}

.socials a:hover { background: #23262c; }
.socials img { width: 17px; height: 17px; filter: brightness(0) invert(1); opacity: 0.9; }

.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }

.fcol b { display: block; margin-bottom: 10px; font-size: 13px; color: #fff; }

.fcol a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--on-dark-soft);
}

.fcol a:hover { color: #fff; }

.foot-note {
  margin: 24px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #6b7078;
}

.foot-copy {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: #5c6169;
}

/* ============================================================
 * 底部领取条
 * ============================================================ */
.abar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  transform: translateY(115%);
  transition: transform 0.3s var(--ease);
}

.abar.on { transform: none; }

.abar-in {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 448px;
  margin: 0 auto;
}

.abar-tx { flex: 1; min-width: 0; line-height: 1.25; }
.abar-tx b { display: block; font-size: 14.5px; font-weight: 700; }
.abar-tx span { display: block; font-size: 11.5px; color: var(--muted); }

.abar .btn {
  flex: none;
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  white-space: nowrap;
}

/* ============================================================
 * 空投弹窗
 * ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0s linear 0.26s;
}

.modal.on {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.26s var(--ease), visibility 0s;
}

.modal-mask { position: absolute; inset: 0; background: rgba(10, 11, 13, 0.62); }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 22px 22px;
  border-radius: var(--r-card);
  background: var(--canvas);
  box-shadow: 0 16px 48px rgba(10, 11, 13, 0.28);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.3s var(--ease);
}

.modal.on .modal-card { transform: none; }

.mstate { text-align: center; }

.m-x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
}

.m-x:hover { background: var(--surface-strong); }
.m-x svg { width: 16px; height: 16px; }

.m-mark { display: inline-block; margin-bottom: 12px; }
.m-mark svg { width: 40px; height: 40px; }

.m-kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.m-title {
  margin: 6px 0 0;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.m-sub {
  margin: 10px auto 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}

/* 结果卡里的大号金额 */
.m-amt {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.m-form { margin-top: 22px; text-align: left; }

.fi { display: block; }
.fi + .fi { margin-top: 14px; }

.fi-lb {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.fi-ctrl { position: relative; display: block; }

.fi-ctrl input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  background: var(--canvas);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.fi-ctrl input::placeholder { color: var(--muted-soft); }

.fi-ctrl input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.14);
}

.fi-err {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--down);
}

.fi.err input { border-color: var(--down); }
.fi.err input:focus { box-shadow: 0 0 0 3px rgba(207, 32, 47, 0.14); }

.m-form .btn { margin-top: 20px; }

.m-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- 领取中 ---------- */
.ring-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  margin: 22px auto 0;
}

.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-strong); stroke-width: 9; }

.ring-fg {
  fill: none;
  stroke: var(--brand);
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s linear;
}

.ring-tx {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
}

.ring-tx b { font-size: 38px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.ring-tx i { font-size: 12px; font-style: normal; color: var(--muted); }

.prog {
  height: 5px;
  margin: 20px 0 0;
  border-radius: 3px;
  background: var(--surface-strong);
  overflow: hidden;
}

.prog span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--brand);
  transition: width 0.9s linear;
}

.steps-list { margin-top: 22px; text-align: left; }

.step-line {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 13.5px;
  color: var(--muted-soft);
  transition: color 0.3s var(--ease);
}

.step-line::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-strong);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step-line.on { color: var(--ink); font-weight: 600; }
.step-line.on::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---------- 完成 ---------- */
.m-ok {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 4px auto 16px;
  border-radius: 50%;
  background: rgba(5, 177, 105, 0.12);
  color: var(--up);
}

.m-ok svg { width: 28px; height: 28px; }

.m-receipt {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r-btn);
  background: var(--surface-soft);
  text-align: left;
}

.rc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 13.5px;
}

.rc-row + .rc-row { border-top: 1px solid var(--hairline-soft); }
.rc-row span { flex: none; color: var(--body); }
.rc-row b { text-align: right; font-weight: 600; word-break: break-word; }

#mDone .btn { margin-top: 20px; }
#mClaimed .btn { margin-top: 20px; }

/* ---------- 已领取：中性色版本，跟「刚领到」的绿色态区分开 ---------- */
.m-ok.is-idle { background: var(--surface-strong); color: var(--brand); }
.m-amt.is-idle { color: var(--ink); }

/* ============================================================
 * 已领取状态：把「领取」类入口降级成中性色，避免还在喊领
 * （根节点由 JS 打上 .is-claimed）
 * ============================================================ */
.is-claimed .promo-strip {
  background: linear-gradient(100deg, #3f444c 0%, #23262b 100%);
}

.is-claimed .promo-strip .ps-cta {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.is-claimed .promo .btn-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.is-claimed .abar .btn-primary {
  background: var(--surface-strong);
  color: var(--muted);
}

/* 页脚的「重置示范数据」，只在已领取时出现 */
.foot-reset {
  display: block;
  margin: 18px auto 0;
  padding: 6px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.foot-reset[hidden] { display: none; }
.foot-reset:hover { color: var(--brand); }

/* ============================================================
 * 动效偏好
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* 比 480px 宽的窗口：把「手机版」居中，两侧用浅灰衬托，避免露白边 */
@media (min-width: 481px) {
  body { background: var(--surface-soft); }
  .app { box-shadow: 0 0 0 1px var(--hairline); }
}
