/* Started · yumeng · tan — site styles */
:root {
  --brand: #ef3b37;
  --brand2: #ff6a3d;
  --brand-dark: #c62828;
  --dark: #0b1120;
  --dark2: #151d32;
  --dark3: #1e293b;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --nav-h: 72px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ========== 导航 ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(11, 17, 32, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}

.nav.scrolled {
  background: rgba(11, 17, 32, .95);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-mark.sm { width: 24px; height: 24px; border-radius: 6px; }

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(239,59,55,.35);
}

.btn.primary:hover {
  box-shadow: 0 6px 24px rgba(239,59,55,.45);
}

.btn.ghost { background: #fff; }
.btn.nav-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  padding: 9px 18px;
}

.btn.nav-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
}

.btn.hero-outline {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}

.btn.hero-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-xl { padding: 16px 32px; font-size: 16px; border-radius: 12px; }

/* ========== 首屏 Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(239,59,55,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(255,106,61,.1) 0%, transparent 50%),
    linear-gradient(180deg, #0b1120 0%, #151d32 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(239,59,55,.12);
  border: 1px solid rgba(239,59,55,.25);
  color: #ff8a80;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #ff6a3d 0%, #ef3b37 50%, #ff8a65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  width: fit-content;
}

.stat-item {
  padding: 0 24px;
  text-align: center;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }

.stat-item strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-item span {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.1);
}

/* 产品 Mockup */
.hero-visual {
  position: relative;
}

.mockup {
  position: relative;
  z-index: 2;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 24px 64px rgba(0,0,0,.5),
    0 0 80px rgba(239,59,55,.08);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.mockup-title {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

.mockup-body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 56px;
  padding: 12px 8px;
  background: rgba(0,0,0,.2);
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-nav {
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.mock-nav.active {
  background: rgba(239,59,55,.2);
  border: 1px solid rgba(239,59,55,.3);
}

.mock-content { flex: 1; padding: 16px; }

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mock-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.mock-card span {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}

.mock-card em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.mock-card em.on { color: #4ade80; }
.mock-card.c1 { border-color: rgba(239,59,55,.2); }
.mock-card.c2 { border-color: rgba(74,222,128,.2); }
.mock-card.c3 { border-color: rgba(96,165,250,.2); }

.mock-table { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }

.mock-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.04);
  align-items: center;
}

.mock-row.head {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.35);
  font-size: 11px;
  font-weight: 600;
}

.mock-row:last-child { border-bottom: none; }

.chk {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,.15);
  display: inline-block;
}

.chk.on {
  background: var(--brand);
  border-color: var(--brand);
}

.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  text-align: center;
}

.tag.ok {
  background: rgba(74,222,128,.12);
  color: #4ade80;
}

.mockup-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  background: radial-gradient(circle, rgba(239,59,55,.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ========== 深度适配 ========== */
.trust-bar {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 32px 56px;
}

.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.trust-head {
  text-align: center;
  margin-bottom: 32px;
}

.trust-head .trust-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  background: rgba(239,59,55,.08);
  border: 1px solid rgba(239,59,55,.12);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.trust-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.trust-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 12px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  border-color: rgba(239,59,55,.2);
}

.trust-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.trust-icon img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 11px;
  object-fit: contain;
  background: #fff;
}

.trust-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ========== 通用区块 ========== */
.section {
  padding: 100px 32px;
}

.section-dark {
  background: var(--dark2);
  color: #fff;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head.light .section-title { color: #fff; }
.section-head.light .section-desc { color: rgba(255,255,255,.55); }
.section-head.light .section-tag { color: var(--brand2); border-color: rgba(255,106,61,.3); background: rgba(255,106,61,.08); }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  background: rgba(239,59,55,.08);
  border: 1px solid rgba(239,59,55,.15);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.2;
}

.section-title.left { text-align: left; }

.section-desc {
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  text-wrap: balance;
}

/* ========== 功能卡片（5 卡：左大右四小） ========== */
.feature-bento {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.feature-card-main {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: 100%;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s;
}

.feature-card-sm {
  padding: 24px 22px;
}

.feature-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.feature-card.featured {
  background: linear-gradient(160deg, #fff 0%, #fff8f8 100%);
  border-color: rgba(239,59,55,.15);
  box-shadow: 0 8px 32px rgba(239,59,55,.08);
  padding: 40px 36px;
}

.feature-card-main h3 {
  font-size: 24px;
}

.feature-card-main p {
  font-size: 15px;
}

.feature-card-sm h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card-sm p {
  font-size: 13px;
  line-height: 1.7;
}

.feature-card-sm .feature-num {
  margin-bottom: 12px;
}

.feature-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  opacity: .6;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.feature-tags {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags li {
  padding: 5px 12px;
  background: rgba(239,59,55,.08);
  color: var(--brand);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== 流程步骤 ========== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}

.step-no {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(239,59,55,.3);
}

.step h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

.step-arrow {
  padding-top: 18px;
  font-size: 24px;
  color: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* ========== 注册区 ========== */
.register-section {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

.register-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 36px;
}

.register-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-perks li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(239,59,55,.1);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.register-perks strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.register-perks span {
  font-size: 13px;
  color: var(--muted);
}

.register-wrap { width: 100%; }

.register-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}

.register-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.register-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.field { margin-bottom: 18px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(239,59,55,.1);
  background: #fff;
}

.form-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.form-msg.error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
.form-msg.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.form-msg.info { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

.success-flow { text-align: center; }

/* ========== 注册成功 · 幸运转盘 ========== */
.lottery-panel {
  animation: lotteryIn .5s cubic-bezier(.22, 1, .36, 1);
}

@keyframes lotteryIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.lottery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  background: linear-gradient(135deg, #fff8f0, #fff5f5 55%, #fff);
  border: 1px solid rgba(239,59,55,.22);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(239,59,55,.08);
}

.lottery-badge-icon {
  flex-shrink: 0;
  color: #f5b942;
}

.modal-dialog .lottery-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(135deg, #1e293b 20%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lottery-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.wheel-stage {
  position: relative;
  width: 336px;
  height: 336px;
  margin: 0 auto 26px;
}

.wheel-aura {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,59,55,.1) 0%, transparent 70%);
  pointer-events: none;
}

.wheel-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe082 0%, #ffb300 45%, #ff8f00 55%, #ffe082 100%);
  box-shadow:
    0 12px 32px rgba(239,59,55,.18),
    inset 0 2px 4px rgba(255,255,255,.55),
    inset 0 -3px 6px rgba(0,0,0,.08);
  pointer-events: none;
}

.wheel-rim::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(239,59,55,.08);
}

.wheel-pointer {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(239,59,55,.35));
}

.wheel-spin {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  transition: transform 4.4s cubic-bezier(.12, .72, .08, 1);
  will-change: transform;
  z-index: 2;
}

.wheel-plate {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.95);
}

.wheel-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wheel-labels {
  display: none;
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
}

.wheel-hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff 0%, #fff8f5 100%);
  border: 3px solid #fff;
  box-shadow:
    0 4px 16px rgba(239,59,55,.22),
    inset 0 -1px 4px rgba(239,59,55,.06);
}

.wheel-hub-text {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--brand);
}

.lottery-spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spin-btn-icon {
  font-size: 14px;
  opacity: .9;
}

.lottery-spin-btn:disabled {
  opacity: .75;
}

.wheel-spin.is-spinning {
  filter: brightness(1.02);
}

/* ========== 中奖揭晓 ========== */
.reward-panel {
  position: relative;
  overflow: hidden;
  padding: 12px 0 4px;
  animation: rewardIn .6s cubic-bezier(.22, 1, .36, 1);
}

@keyframes rewardIn {
  from { opacity: 0; transform: translateY(16px) scale(.92); }
  to { opacity: 1; transform: none; }
}

.reward-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245,185,66,.22) 0%, rgba(239,59,55,.12) 45%, transparent 72%);
  pointer-events: none;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece,
.confetti-dot,
.confetti-ribbon {
  position: absolute;
  top: -12px;
  opacity: 0;
  animation: confettiFall 2.6s ease-out forwards;
}

.confetti-piece {
  width: 8px;
  height: 12px;
  border-radius: 2px;
}

.confetti-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.confetti-ribbon {
  width: 8px;
  height: 18px;
  border-radius: 2px;
}

@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translateY(340px) rotate(720deg) scale(.6); }
}

.reward-icon-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.reward-rays {
  position: absolute;
  inset: -20px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(245,185,66,.45) 0deg 10deg,
    transparent 10deg 20deg
  );
  border-radius: 50%;
  animation: rewardRaysSpin 12s linear infinite;
  opacity: .75;
}

@keyframes rewardRaysSpin {
  to { transform: rotate(360deg); }
}

.reward-medal {
  position: relative;
  z-index: 1;
  display: block;
  margin: 6px auto 0;
  animation: rewardBounce .8s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 8px 18px rgba(212,146,10,.35));
}

@keyframes rewardBounce {
  0% { transform: scale(0) rotate(-12deg); opacity: 0; }
  55% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.modal-dialog .reward-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #d4920a, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reward-prize {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.reward-prize strong {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .02em;
}

.reward-desc {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ========== 注册弹窗 ========== */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, .55);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: modalIn .25s ease;
}

#stYumengRegisterModal .field-row {
  grid-template-columns: 1fr;
  gap: 0;
}

#stYumengRegisterModal .register-captcha-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

#stYumengRegisterModal .register-captcha-inline .captcha-image {
  flex-shrink: 0;
  width: 120px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  object-fit: cover;
  background: #f9fafb;
}

#stYumengRegisterModal .register-captcha-inline input {
  flex: 1;
  min-width: 0;
}

#stYumengRegisterModal #stTanRegisterBtn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover { background: #e2e8f0; color: var(--text); }

.modal-dialog h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.modal-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.captcha-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

#captchaCanvas,
.captcha-image {
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  cursor: pointer;
  object-fit: cover;
}

.captcha-refresh {
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1;
}

.captcha-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

body.modal-open { overflow: hidden; }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
}

.admin-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.membership-pay-modal .admin-modal-dialog,
.membership-pay-dialog {
  max-width: 420px;
  padding: 24px;
}

.membership-pay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.membership-pay-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.membership-pay-close {
  border: none;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.membership-pay-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.membership-pay-order {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted, #6b7280);
  word-break: break-all;
}

.pay-status-panel {
  text-align: center;
  margin: 8px 0 16px;
}

.pay-state {
  padding: 12px 8px;
}

.pay-state-title {
  margin: 12px 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #111827);
}

.pay-state-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #6b7280);
}

.pay-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 3px solid #fee2e2;
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: paySpin 0.8s linear infinite;
}

@keyframes paySpin {
  to { transform: rotate(360deg); }
}

.pay-state-success .pay-success-icon {
  font-size: 52px;
  color: #16a34a;
}

.membership-pay-modal.is-success .membership-pay-head h3 {
  color: #16a34a;
}

.membership-pay-hint {
  text-align: center;
  margin: 0 0 12px;
}

.pay-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.pay-done-btn {
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.membership-pay-body {
  text-align: center;
}

/* ========== 下载 CTA ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, #1a1030 100%);
  padding: 80px 32px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(239,59,55,.2) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.cta-text h2 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}

.cta-text p {
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,.55);
}

.cta-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 32px rgba(239,59,55,.4);
  flex-shrink: 0;
}

.cta-note {
  position: relative;
  margin: 24px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* ========== 页脚 ========== */
.st-yumeng-site-footer:not(.st-yumeng-site-footer) {
  background: #070b14;
  color: #94a3b8;
}

.st-yumeng-site-footer:not(.st-yumeng-site-footer) .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: .5px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 32px;
  text-align: center;
  font-size: 13px;
  color: #475569;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero h1 { font-size: 40px; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .feature-card-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .register-section { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .nav-ghost { display: none; }
  .nav-inner { padding: 0 20px; }
  .hero { padding: calc(var(--nav-h) + 40px) 20px 60px; min-height: auto; }
  .hero h1 { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; width: 100%; }
  .stat-divider { display: none; }
  .stat-item { padding: 8px 16px; }
  .section { padding: 72px 20px; }
  .section-title { font-size: 28px; }
  .feature-bento { grid-template-columns: 1fr; }
  .feature-card-main { grid-column: auto; grid-row: auto; padding: 32px 28px; }
  .feature-card-main h3 { font-size: 20px; }
  .steps { flex-direction: column; align-items: center; gap: 24px; }
  .step-arrow { transform: rotate(90deg); padding: 0; }
  .field-row { grid-template-columns: 1fr; }
  .st-yumeng-site-footer:not(.st-yumeng-site-footer) .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-head h3 { font-size: 20px; }
  .trust-bar { padding: 36px 20px 40px; }
  .error-inner h1 { font-size: 32px; }
  .error-code { font-size: 88px; }
  .error-actions { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .error-actions .btn { width: 100%; }
}

/* ========== 404 错误页 ========== */
.error-page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  overflow: hidden;
}

.error-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark2) 45%, #1a1030 100%);
}

.error-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.error-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(135deg, #fff 20%, var(--brand2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-inner h1 {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.error-desc {
  margin: 0 auto 32px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.62);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* 会员开通页 */
.membership-body {
  background: linear-gradient(180deg, #fff7f7 0%, #fff 240px);
}

.membership-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.membership-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.membership-head .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.membership-head .logo-text {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.membership-head .logo-mark {
  box-shadow: 0 2px 8px rgba(239, 59, 55, 0.18);
}

.membership-head .btn.nav-ghost {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.membership-head .btn.nav-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.membership-hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
}

.membership-hero p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.membership-card,
.membership-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.membership-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 14px;
}

.membership-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.membership-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  overflow: hidden;
}

.packages-grid .empty-hint {
  grid-column: 1 / -1;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 220px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 16px 20px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
  contain: layout paint;
  isolation: isolate;
  z-index: 0;
}

.package-card > * {
  min-width: 0;
  max-width: 100%;
}

.package-card:hover {
  border-color: rgba(239, 59, 55, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.package-card.recommended {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(239, 59, 55, 0.12);
}

.package-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.pkg-days {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 14px;
}

.pkg-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: auto;
  padding-bottom: 18px;
  line-height: 1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint;
}

.pkg-price-symbol {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}

.pkg-price-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.package-card .pkg-buy-btn {
  width: 100%;
  margin-top: auto;
}

.pkg-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

#packagePayTypeRow {
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.captcha-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.captcha-img {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.membership-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.empty-hint {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.pay-qr-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.pay-qr-wrap img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.pay-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 20px;
}

.pay-type-row > .hint {
  width: 100%;
  text-align: center;
  margin: 0;
}

.pay-method-btn,
.pay-type-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 100px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #111827);
  transition: border-color 0.2s, background 0.2s;
}

.pay-method-btn i {
  font-size: 28px;
  line-height: 1;
}

.pay-method-btn.active,
.pay-type-btn.active {
  border-color: #ef4444;
  background: #fff5f5;
}

.pay-open-link {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

.pay-type-btn.active,
.membership-tab.pay-type-btn.active {
  background: #fff5f5 !important;
  border-color: #ef4444 !important;
  color: var(--text, #111827) !important;
}

.card-purchase-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border);
}

.card-purchase-section h3,
.card-redeem-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.card-purchase-actions {
  margin: 14px 0 10px;
}

.card-purchase-url {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.card-redeem-section .hint {
  margin: 0 0 16px;
}

/* ========== 官网多页 · Started 风格扩展 ========== */
.logo-ver {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  padding: 2px 8px;
  margin-left: 4px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hero-compact {
  min-height: auto;
  padding: calc(var(--nav-h) + 48px) 32px 64px;
}

.hero-compact .hero-inner {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero-compact .hero-copy {
  max-width: 820px;
  margin: 0 auto;
}

.hero-compact .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-compact .hero-actions {
  justify-content: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.hero-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.nav-links a.active {
  color: #fff;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 2px;
}

.subpage-main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.subpage-hero {
  padding: 56px 32px 40px;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  color: #fff;
  text-align: center;
}

.subpage-hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
}

.subpage-hero p {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
}

.subpage-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.section-block {
  margin-bottom: 56px;
}

.section-block-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-block-head h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
}

.section-block-head p {
  margin: 0;
  color: var(--muted);
}

.st-tan-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 14px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  border-color: rgba(239,59,55,.25);
}

.app-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
}

.app-card-icon img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
}

.app-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.app-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.app-dl-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(239,59,55,.08);
}

.app-dl-link:hover {
  background: rgba(239,59,55,.14);
}

.app-dl-muted {
  font-size: 12px;
  color: var(--muted);
}

.client-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: #fff;
  margin-bottom: 40px;
}

.client-download-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.client-download-card p {
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 14px;
}

.brokers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.broker-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
}

.broker-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.broker-icon img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.broker-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.broker-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.btn.sm {
  padding: 10px 20px;
  font-size: 13px;
}

.broker-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.7;
}

.tutorial-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.tutorial-block-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tutorial-no {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  opacity: .7;
}

.tutorial-block h3 {
  margin: 0;
  font-size: 20px;
}

.tutorial-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tutorial-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.tutorial-steps li:last-child {
  border-bottom: none;
}

.step-idx {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(239,59,55,.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.contact-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.contact-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.contact-qr-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

.contact-qr-placeholder small {
  margin-top: 8px;
  font-size: 11px;
  opacity: .8;
}

.contact-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row strong {
  min-width: 72px;
  color: var(--text);
}

.contact-copy {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-chips a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(239,59,55,.08);
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.membership-body .nav {
  position: sticky;
}

.membership-body .subpage-main {
  padding-top: 0;
}

.membership-body .membership-page .btn.nav-ghost,
.membership-body .membership-page .btn.nav-ghost.sm {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.membership-body .membership-page .btn.nav-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

@media (max-width: 1024px) {
  .st-tan-apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card-extra { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(11, 17, 32, .98);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links a.active::after { display: none; }
  body.nav-open .nav-links { display: flex; }
  .nav-actions { display: none; }
  body.nav-open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(var(--nav-h) + 200px);
    left: 20px;
    right: 20px;
    flex-direction: column;
  }
  .hero h1 { font-size: 34px; }
  .st-tan-apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brokers-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .client-download-card { flex-direction: column; text-align: center; }
  .subpage-hero h1 { font-size: 28px; }
  .subpage-body { padding: 32px 20px 64px; }
}
