* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --bg2: #0f1014;
  --surface: #151518;
  --surface2: #1d1d22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f4f5;
  --muted: #9ca3af;

  --cta: #0ea5e9;
  --cta-deep: #0284c7;
  --cta-text: #fff;
  --sky: #38bdf8;
  --online: #22c55e;
  --money: #f59e0b;
  --rose: #f472b6;

  --danger: #ef4444;
  --radius: 14px;
  --max: 1080px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html, body { min-height: 100%; }

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) rgba(255, 255, 255, 0.04);
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.55);
}

body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 85% -5%, rgba(14, 165, 233, 0.09), transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 100%, rgba(245, 158, 11, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 32px;
}

/* ── 顶栏 ── */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 9, 11, 0.96);
  border-bottom: 1px solid transparent;
}
body.modal-open .hdr {
  background: rgba(9, 9, 11, 0.98);
}
.hdr.scrolled { border-bottom-color: var(--line); }

.hdr-brand em { font-style: normal; color: var(--sky); }
.hdr-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-user {
  font-size: 13px;
  color: var(--muted);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-sm {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm.gold {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  border-color: transparent;
}
.btn-sm.ghost {
  color: var(--muted);
  background: transparent;
}
.btn-sm.logout {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
}
.btn-sm.logout:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.36);
}
.btn-sm:hover { filter: brightness(1.08); }

/* 顶栏操作：统一低调描边，避免实心蓝/红抢眼 */
.hdr-actions .hdr-refresh-btn,
.hdr-actions .hdr-center-btn,
.hdr-actions .btn-sm.logout {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none !important;
  transform: none;
}
.hdr-actions .hdr-refresh-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.hdr-actions .hdr-center-btn,
.hdr-actions .btn-sm.gold.hdr-center-btn {
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.08);
  color: var(--sky);
}
.hdr-actions .btn-sm.logout {
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}
.hdr-actions .hdr-refresh-btn:hover,
.hdr-actions .hdr-center-btn:hover,
.hdr-actions .btn-sm.gold.hdr-center-btn:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.14);
  box-shadow: none !important;
  transform: none;
  filter: none;
}
.hdr-actions .btn-sm.logout:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(239, 68, 68, 0.16);
  box-shadow: none !important;
  transform: none;
  filter: none;
}

/* ── 主内容区间距 ── */
.content-gap { margin-bottom: 20px; }

/* ── 下载区（与邀请区同款卡片） ── */
.dl-section { margin-bottom: 20px; }
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.dl-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}
.dl-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dl-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 20px 12px 16px;
  min-height: 148px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.18) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.dl-item.on:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.dl-item.on:active { transform: scale(0.98); }
.dl-item .ico {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dl-item .ico img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
.dl-item .ico-windows {
  background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.35), rgba(2, 132, 199, 0.18));
}
.dl-item .ico-android {
  background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.32), rgba(21, 128, 61, 0.16));
}
.dl-item .ico-macos {
  background: radial-gradient(circle at 30% 30%, rgba(244, 244, 245, 0.18), rgba(113, 113, 122, 0.14));
}
.dl-item .ico-ios {
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.3), rgba(14, 165, 233, 0.12));
}
.dl-item .info strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.dl-item .info small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.dl-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(14, 165, 233, 0.08);
  color: var(--sky);
  font-size: 11px;
  font-weight: 700;
}

/* ── 使用步骤（最底部） ── */
.steps-section { margin-bottom: 24px; }
.steps-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--online);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.steps-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ── 顶部品牌区（独立风格，非竞品模板） ── */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: linear-gradient(145deg, #16161a 0%, #12141c 55%, #101218 100%);
  box-shadow: var(--shadow);
}
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--online), var(--money));
  opacity: 0.85;
}
.banner::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 140%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 65%);
}
.banner-inner {
  position: relative;
  z-index: 1;
  padding: 22px 20px 20px;
}
.banner-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.banner-mark { display: none; }
.banner-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
  font-style: normal;
  animation: pulse 2s ease infinite;
}
.banner-inner h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #f4f4f5 30%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.banner-rule {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: 2px;
  margin-bottom: 12px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.banner-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}
.banner-inner h1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.banner-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}
.banner-desc {
  font-size: 13px;
  color: #71717a;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 14px;
}
.feat-chip {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--chip-text, #d4d4d8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}
.feat-chip:nth-child(1) { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.25); }
.feat-chip:nth-child(2) { color: #86efac; border-color: rgba(34, 197, 94, 0.25); }
.feat-chip:nth-child(3) { color: #fcd34d; border-color: rgba(251, 191, 36, 0.25); }
.banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 登录 / 注册 ── */
.auth-section { margin-bottom: 16px; }
.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth-actions .btn-action {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.15s, border-color 0.15s, background 0.15s;
}
.auth-actions .btn-login {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}
.auth-actions .btn-register {
  background: rgba(56, 189, 248, 0.06);
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.25);
}
.auth-actions .btn-register:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
}
.auth-actions .btn-login:hover { filter: brightness(1.06); }

.hdr-simple .hdr-brand { width: 100%; }

/* ── 邀请返利 ── */
.invite-section { margin-bottom: 20px; }
.invite-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--money);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.invite-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}
.invite-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.invite-card-simple h3 { margin-bottom: 14px; }
.invite-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.invite-code-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.invite-code-lbl {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.invite-code-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--sky);
  letter-spacing: 0.04em;
  word-break: break-all;
}
.invite-simple-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.invite-detail-body .modal-hint {
  text-align: left;
  margin-bottom: 10px;
}
.invite-highlight-tip {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
}
.invite-highlight-tip strong { color: #fbbf24; font-weight: 800; }
.invite-highlight-mark {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  vertical-align: 1px;
}
.invite-strip-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.invite-detail-modal {
  max-width: 420px;
}
.invite-wallet-box {
  margin-top: 14px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.invite-wallet-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.invite-wallet-hd strong {
  font-size: 14px;
  color: var(--text);
}
.invite-wallet-hd span {
  font-size: 12px;
  color: var(--muted);
}
.invite-wallet-hd b { color: #fbbf24; }
.invite-wallet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.invite-wallet-tab {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.invite-wallet-tab.on {
  color: var(--cta-text);
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  border-color: transparent;
}
.invite-wallet-pane { display: none; }
.invite-wallet-pane.on { display: block; }
.invite-wallet-tip {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.invite-wallet-tip.warn { color: #fbbf24; }
.invite-wallet-tip.muted { margin-top: 10px; margin-bottom: 0; }
.invite-wallet-tip b { color: var(--text); }
.invite-wallet-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 600;
}
.invite-wallet-pane .input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  margin-bottom: 10px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(14, 165, 233, 0.06);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.invite-wallet-pane select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--sky) 50%), linear-gradient(135deg, var(--sky) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
  cursor: pointer;
}
.invite-wallet-pane select.input option {
  background: #151518;
  color: var(--text);
}
.invite-wallet-pane .input:focus {
  border-color: rgba(56, 189, 248, 0.45);
}
.invite-wallet-pane .input:disabled {
  opacity: 0.55;
}
.invite-wallet-pane .btn {
  width: 100%;
  margin-top: 4px;
}
.invite-wallet-pane .err,
.invite-wallet-pane .ok {
  text-align: left;
  min-height: 16px;
  margin-top: 10px;
  font-size: 12px;
}
.invite-wallet-pane .ok { color: #4ade80; }

.withdraw-records {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.withdraw-records-compact .withdraw-records-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.withdraw-records-compact .invite-wallet-label {
  margin: 0;
}
.withdraw-records-empty {
  font-size: 12px;
  color: var(--muted);
}
.withdraw-records-link {
  border: none;
  background: transparent;
  color: var(--sky);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.withdraw-records-link:hover { text-decoration: underline; }
.withdraw-record-latest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  color: var(--muted);
}
.withdraw-record-latest b { color: var(--text); font-weight: 700; }
.withdraw-record-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 8px;
}
.withdraw-record-item:last-child { margin-bottom: 0; }
.withdraw-record-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.withdraw-record-main strong {
  font-size: 15px;
  color: var(--text);
}
.withdraw-record-status {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--sky);
  background: rgba(14, 165, 233, 0.1);
  flex-shrink: 0;
}
.withdraw-record-item.status-pending .withdraw-record-status,
.withdraw-record-latest.status-pending .withdraw-record-status {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}
.withdraw-record-item.status-rejected .withdraw-record-status,
.withdraw-record-latest.status-rejected .withdraw-record-status {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.1);
}
.withdraw-record-item.status-paid .withdraw-record-status,
.withdraw-record-item.status-done .withdraw-record-status,
.withdraw-record-latest.status-paid .withdraw-record-status,
.withdraw-record-latest.status-done .withdraw-record-status {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.withdraw-record-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.withdraw-records-modal-body { max-height: min(60vh, 420px); overflow-y: auto; }
.withdraw-records-summary {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.withdraw-records-summary b { color: var(--text); }
.withdraw-records-list { margin-bottom: 12px; }
.withdraw-records-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.withdraw-records-page {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.withdraw-records-pager .page-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.invite-agent-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
}
.invite-agent-box strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--sky);
}
.invite-agent-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.invite-agent-note {
  margin-top: 8px !important;
  font-size: 12px !important;
}
.invite-agent-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  text-decoration: none;
}
.invite-agent-link:hover { text-decoration: underline; }
.invite-stats-modal {
  margin-bottom: 0;
}
.invite-rebate-link {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 0 2px;
  border: none;
  background: transparent;
  color: var(--sky);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
}
.invite-rebate-link:hover { text-decoration: underline; }
.rebate-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rebate-detail-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
}
.rebate-detail-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rebate-detail-account {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.rebate-detail-get {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--money);
}
.rebate-detail-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .invite-simple {
    flex-direction: column;
    align-items: stretch;
  }
  .invite-simple-actions {
    width: 100%;
  }
  .invite-simple-actions .btn-sm {
    flex: 1;
    justify-content: center;
  }
}

.invite-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.invite-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.invite-stats .item {
  text-align: center;
  padding: 10px 4px;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.invite-stats .item b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.invite-stats .item:nth-child(1) b { color: var(--sky); }
.invite-stats .item:nth-child(2) b { color: var(--text); }
.invite-stats .item:nth-child(3) b,
.invite-stats .item:nth-child(4) b { color: var(--money); }
.invite-stats .item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.invite-link-row {
  display: flex;
  gap: 8px;
}
.invite-link-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
  background: var(--surface2);
  color: var(--muted);
}
.invite-link-row button {
  flex-shrink: 0;
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
.invite-link-row button:hover { filter: brightness(1.06); }
.invite-gen {
  margin-top: 10px;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--sky);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.invite-gen:hover { border-color: rgba(56, 189, 248, 0.35); }
.invite-code-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.invite-code-label strong { color: var(--sky); }

@media (max-width: 480px) {
  .invite-stats { grid-template-columns: repeat(2, 1fr); }
}

.account-wide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.account-wide-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.account-wide-hd strong { font-size: 16px; }
.account-wide-hd span { font-size: 13px; color: var(--muted); }

/* ── 首页账户仪表盘：套餐主、账户次、邀请弱 ── */
.dash-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 套餐：视觉主角 */
.dash-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 20px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.16) 0%, var(--surface) 48%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-left: 5px solid var(--cta);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.06);
}
.dash-plan-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(14, 165, 233, 0.18);
  color: var(--sky);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.dash-plan-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.dash-plan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.dash-plan-meta-row span {
  position: relative;
}
.dash-plan-meta-row span + span::before {
  content: "·";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.25);
}
.dash-plan-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
}
.dash-plan-tips p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.dash-plan-tips b {
  font-weight: 800;
}
.dash-plan-tips .tip-renew {
  color: var(--sky);
}
.dash-plan-tips .tip-order {
  color: #f59e0b;
}
.dash-plan-tips strong {
  color: var(--text);
  font-weight: 700;
}
.dash-plan-actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 10px;
  min-width: 128px;
}
.dash-btn-renew,
.dash-btn-order {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.dash-btn-renew {
  border: none;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.38);
}
.dash-btn-renew:hover { filter: brightness(1.06); }
.dash-btn-order {
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
}
.dash-btn-order:hover { filter: brightness(1.06); }
.dash-plan-empty { border-left-color: var(--money); }
.dash-plan-empty .dash-plan-badge {
  background: rgba(245, 158, 11, 0.14);
  color: var(--money);
}

/* 账户：压缩次要信息 */
.dash-account {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dash-account-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-user-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.dash-user-email {
  flex-shrink: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  word-break: break-all;
}
.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dash-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.dash-metric-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}
.dash-metric b {
  font-size: 16px;
  font-weight: 800;
  color: var(--sky);
  line-height: 1.2;
  word-break: break-all;
}
.dash-metric b.accent-green { color: #4ade80; }
.dash-metric b.accent-amber { color: #fbbf24; }
.dash-metric b.accent-sky { color: #38bdf8; }
.dash-metric-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}
.dash-metric-btn {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dash-metric-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
}
.dash-metric-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 2px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--sky);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  vertical-align: 1px;
}
.traffic-reset-explain {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.traffic-reset-explain p {
  margin: 0;
  line-height: 1.55;
}
.traffic-reset-explain strong { color: var(--text); }
.dash-traffic {
  margin-top: 8px;
}
.dash-traffic-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--muted);
}
.dash-traffic-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.dash-traffic-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cta), #4ade80);
  transition: width 0.35s ease;
}

@media (max-width: 560px) {
  .dash-plan-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }
  .dash-plan-name { font-size: 19px; }
  .dash-plan-actions {
    flex-direction: row;
    min-width: 0;
  }
  .dash-btn-renew,
  .dash-btn-order { flex: 1; height: 44px; }
  .dash-account-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .dash-user-email { text-align: left; }
}

/* ── 邀请条：弱化，放在套餐/账户之后 ── */
.invite-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 8px 12px;
  min-height: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.invite-strip-tag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.invite-strip-code {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  word-break: break-all;
}
.invite-strip-hint {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}
.invite-strip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.invite-strip-btn {
  height: 30px;
  min-width: 72px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.invite-strip-btn.primary {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
  color: var(--sky);
}
.invite-strip-btn.money {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}
.invite-strip-btn:hover {
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.18);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}
.invite-strip-btn.primary:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}
.invite-strip-btn.money:hover {
  color: #111;
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.32);
}
.invite-strip-guest { justify-content: space-between; }

@media (max-width: 520px) {
  .invite-strip-actions {
    width: 100%;
    margin-left: 0;
  }
  .invite-strip-btn { flex: 1; }
}

.field-hint {
  font-size: 11px;
  color: #55556a;
  margin-top: 4px;
}

.ok-msg {
  min-height: 16px;
  margin-top: 10px;
  color: #34d399;
  font-size: 13px;
  text-align: center;
}

/* 账户 */
.account {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.account.guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.account.guest:hover { border-color: rgba(255, 255, 255, 0.15); }
.account-guest-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.account-guest-text span {
  font-size: 13px;
  color: var(--muted);
}
.account-guest-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.account-logged {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.account-logged .item {
  text-align: center;
  padding: 6px 8px 10px;
}
.account-logged .item + .item {
  border-left: 1px solid var(--line);
}
.account-logged .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
}
.account-logged .lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.account-email {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  word-break: break-all;
}

/* 步骤列表 */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}
.step-row + .step-row { border-top: 1px solid var(--line); }
.step-n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-row:nth-child(1) .step-n { color: var(--sky); border-color: rgba(56, 189, 248, 0.25); }
.step-row:nth-child(2) .step-n { color: var(--online); border-color: rgba(34, 197, 94, 0.25); }
.step-row:nth-child(3) .step-n { color: var(--money); border-color: rgba(251, 191, 36, 0.25); }
.step-t {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  padding-top: 3px;
}
.step-t b { color: var(--text); font-weight: 600; }

.foot {
  text-align: center;
  font-size: 13px;
  color: #55556a;
  line-height: 1.8;
  padding: 4px 0 8px;
}
.foot a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}

/* ── 平板 ── */
@media (min-width: 600px) {
  .shell { padding: 0 24px 40px; }
  .banner-inner { padding: 32px 28px 28px; }
  .banner-inner h1 { font-size: 30px; }
  .dl-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .dl-item { min-height: 120px; padding: 20px 12px; }
  .steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .step-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--surface2);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .step-row + .step-row { border-top: none; }
  .step-t { padding-top: 0; }
}

/* ── 电脑宽屏：步骤三列平铺 + 下载四列平铺 ── */
@media (min-width: 900px) {
  .shell { padding: 0 32px 48px; }

  .hdr { padding: 18px 0; }
  .hdr-brand { font-size: 17px; }

  .banner { border-radius: 20px; margin-bottom: 16px; }
  .invite-strip { margin-bottom: 16px; }
  .auth-section { margin-bottom: 24px; }
  .dash-board { gap: 12px; }
  .dash-plan-card { padding: 26px 28px; border-radius: 20px; }
  .dash-plan-name { font-size: 24px; }
  .dash-btn-renew,
  .dash-btn-order { height: 50px; min-width: 132px; }
  .invite-section { margin-bottom: 24px; }
  .dl-section { margin-bottom: 24px; }
  .banner-inner { padding: 36px 38px 32px; }
  .banner-inner h1 { font-size: 34px; }
  .banner-tag { font-size: 16px; }

  .account-logged .num { font-size: 32px; }

  .dl-card, .steps-card, .invite-card { padding: 24px 26px; border-radius: 18px; }
  .dl-item { min-height: 156px; padding: 22px 14px 18px; }
  .dl-item .ico { width: 56px; height: 56px; }
  .dl-item .ico img { width: 26px; height: 26px; }

  .steps-card { padding: 24px 26px; }
  .steps-list { gap: 16px; }
  .step-row { padding: 20px 14px; }
  .step-n { width: 32px; height: 32px; font-size: 14px; }

  .foot { text-align: center; padding: 4px 0 16px; }

  .shop-page-wrap { max-width: 820px; }
  .shop-block { padding: 26px 30px; }
}

/* ── 大屏 ── */
@media (min-width: 1200px) {
  :root { --max: 1140px; }
  .banner-inner h1 { font-size: 38px; }
  .dl-item { min-height: 140px; }
}

/* ── 弹窗（避免 backdrop-filter，移动端更流畅） ── */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  contain: layout style paint;
}
.modal-mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-hd h2 { font-size: 18px; font-weight: 800; }
.modal-close {
  width: auto;
  min-width: 64px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.1));
  color: var(--sky);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  letter-spacing: 0.04em;
}
.modal-close:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  filter: brightness(1.05);
}
.modal-close-text {
  /* 兼容旧类名，样式已并入 .modal-close */
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  background: var(--surface2);
  color: var(--text);
}
.field input::placeholder { color: #55556a; }
.field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.visible .eye-open { display: none; }
.pw-toggle.visible .eye-off { display: block; }

.captcha-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
}
.captcha-canvas {
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  display: block;
}
.captcha-refresh {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--sky);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}
.captcha-row input {
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.panel-captcha {
  min-height: 65px;
}

/* ── 套餐：当前 + 订购 ── */
.plan-section,
.shop-section { margin-bottom: 20px; }

.plan-card,
.shop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.plan-current { border-left: 3px solid var(--online); }
.shop-card { border-left: 3px solid #a78bfa; }

.plan-current-hd,
.shop-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.plan-current-hd h3,
.shop-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
}
.shop-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.plan-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.plan-status.on { color: var(--online); border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); }
.plan-status.off { color: #f87171; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.08); }
.plan-status.idle { color: var(--muted); }

.plan-current-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}
.plan-current-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.plan-current-grid .item {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.plan-current-grid .item b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--sky);
  margin-bottom: 4px;
}
.plan-current-grid .item span {
  font-size: 11px;
  color: var(--muted);
}
.plan-empty {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 8px 0 2px;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-item {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 14px;
}
.shop-item-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.shop-item-hd strong {
  flex: 1;
  font-size: 15px;
  line-height: 1.35;
}
.shop-toggle-icon {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.shop-item-hd:has(+ .shop-item-detail.open) .shop-toggle-icon {
  transform: rotate(180deg);
}
.shop-item-detail {
  display: none;
  margin-bottom: 12px;
}
.shop-item-detail.open {
  display: block;
}
.shop-flow {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--money);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 8px;
  border-radius: 8px;
}
.shop-item-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.shop-item-content {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
  max-height: 160px;
  overflow-y: auto;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.shop-item-content b,
.shop-item-content strong { color: var(--text); font-weight: 600; }
.shop-item-content font { color: inherit; }
.period-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.period-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.period-chip.on {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
}
.shop-buy {
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}
.shop-buy:hover { filter: brightness(1.05); }

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

/* 安卓/苹果下载教程：恢复原先小窗（顶对齐 + 自适应高度） */
/* Windows 大窗仅 .download-detail-modal--win */
#downloadDetailModal.modal-mask {
  align-items: flex-start;
  justify-content: center;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#downloadDetailModal .download-detail-modal.modal,
#downloadDetailModal .download-detail-modal {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 440px;
  height: auto;
  max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px));
  padding: 26px 24px 24px;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#downloadDetailModal .download-detail-modal > .modal-hd {
  margin-bottom: 22px;
}
#downloadDetailModal .download-detail-body {
  min-height: 0;
  padding-top: 0;
}
#downloadDetailModal .dl-pane {
  min-height: 0;
}
#downloadDetailModal .dl-pane[data-dl-pane="idshare"] {
  overflow: visible;
}
#downloadDetailModal .dl-tab {
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
}

/* Windows / Mac：宽窗，但上下距离与 iOS/安卓一致 */
#downloadDetailModal.modal-mask.is-win-dl {
  align-items: flex-start;
  justify-content: center;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#downloadDetailModal .download-detail-modal.download-detail-modal--win {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  width: 100%;
  max-width: min(960px, 94vw);
  height: auto;
  max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px));
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  box-sizing: border-box;
}
#downloadDetailModal .download-detail-modal--win > .modal-hd {
  flex: 0 0 auto;
  margin-bottom: 22px;
}
#downloadDetailModal .download-detail-modal--win .download-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 4px;
  touch-action: pan-y;
}
#downloadDetailModal .win-edition {
  display: block;
  min-height: min-content;
}
#downloadDetailModal .win-edition-note,
#downloadDetailModal .win-edition-tabs {
  position: sticky;
  z-index: 2;
  background: var(--surface);
}
#downloadDetailModal .win-edition-note {
  top: 0;
}
#downloadDetailModal .win-edition-tabs {
  top: 0;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
#downloadDetailModal .win-edition-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, var(--surface) 85%, rgba(21, 21, 24, 0.92));
  padding-bottom: 6px;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  #downloadDetailModal .download-detail-modal.download-detail-modal--win {
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px));
    padding: 14px 12px 12px;
    border-radius: 16px;
  }
}


.checkout-summary {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
}
.checkout-line span { color: var(--muted); }
.checkout-line.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
}
.checkout-line.total strong { font-size: 18px; color: var(--money); }
.checkout-plan-content {
  margin-top: 12px;
  max-height: 140px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pay-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.pay-methods { margin-bottom: 12px; }
.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.pay-method:disabled { opacity: 0.72; cursor: wait; }
.pay-method-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.pay-method-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pay-method-main strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.pay-method-fee {
  font-size: 11px;
  color: var(--muted);
}
.pay-method-go {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.pay-combo {
  border-color: #2f9e6e;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.32) 0%, rgba(22, 119, 255, 0.28) 100%);
  box-shadow: 0 4px 18px rgba(7, 193, 96, 0.16), 0 4px 18px rgba(22, 119, 255, 0.12);
}
.pay-combo .pay-method-icon {
  background: linear-gradient(135deg, #07c160 0%, #07c160 48%, #1677ff 52%, #1677ff 100%);
}
.pay-combo .pay-method-main strong { color: #d8ffe8; }
.pay-combo .pay-method-go {
  background: linear-gradient(90deg, #07c160, #1677ff);
  color: #fff;
}
.pay-alipay {
  border-color: #1677ff;
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.34) 0%, rgba(22, 119, 255, 0.14) 100%);
  box-shadow: 0 4px 18px rgba(22, 119, 255, 0.2);
}
.pay-alipay .pay-method-icon {
  background: linear-gradient(135deg, #3c9aff, #0958d9);
}
.pay-alipay .pay-method-main strong { color: #91caff; }
.pay-alipay .pay-method-go {
  background: #1677ff;
  color: #fff;
}
.pay-wechat {
  border-color: #07c160;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.34) 0%, rgba(7, 193, 96, 0.14) 100%);
  box-shadow: 0 4px 18px rgba(7, 193, 96, 0.2);
}
.pay-wechat .pay-method-icon {
  background: linear-gradient(135deg, #2dd47a, #059a4c);
}
.pay-wechat .pay-method-main strong { color: #95f5b8; }
.pay-wechat .pay-method-go {
  background: #07c160;
  color: #fff;
}
.pay-card {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.34) 0%, rgba(139, 92, 246, 0.14) 100%);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.2);
}
.pay-card .pay-method-icon {
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
}
.pay-card .pay-method-main strong { color: #ddd6fe; }
.pay-card .pay-method-go {
  background: #8b5cf6;
  color: #fff;
}
.pay-default {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32) 0%, rgba(245, 158, 11, 0.12) 100%);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.18);
}
.pay-default .pay-method-icon {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.pay-default .pay-method-main strong { color: #fde68a; }
.pay-default .pay-method-go {
  background: #f59e0b;
  color: #111;
}
.pay-method.on,
.pay-method:hover:not(:disabled) {
  transform: translateY(-1px);
}
.pay-combo.on, .pay-combo:hover:not(:disabled) {
  border-color: #4dd4a0;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.24), 0 8px 24px rgba(22, 119, 255, 0.2);
}
.pay-alipay.on, .pay-alipay:hover:not(:disabled) {
  border-color: #69b1ff;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.32);
}
.pay-wechat.on, .pay-wechat:hover:not(:disabled) {
  border-color: #3ddc84;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.32);
}
.pay-card.on, .pay-card:hover:not(:disabled) {
  border-color: #c4b5fd;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.32);
}
.pay-default.on, .pay-default:hover:not(:disabled) {
  border-color: #fbbf24;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}
.checkout-qr {
  text-align: center;
  margin-bottom: 12px;
}
.checkout-qr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.checkout-qr-head.pay-alipay {
  border-color: rgba(22, 119, 255, 0.45);
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.18) 0%, rgba(22, 119, 255, 0.06) 100%);
}
.checkout-qr-head.pay-wechat {
  border-color: rgba(7, 193, 96, 0.45);
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.18) 0%, rgba(7, 193, 96, 0.06) 100%);
}
.checkout-qr-head.pay-combo {
  border-color: rgba(7, 193, 96, 0.35);
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.14) 0%, rgba(22, 119, 255, 0.12) 100%);
}
.checkout-qr-badge {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.checkout-qr-head.pay-alipay .checkout-qr-badge {
  background: linear-gradient(135deg, #3c9aff, #0958d9);
}
.checkout-qr-head.pay-wechat .checkout-qr-badge {
  background: linear-gradient(135deg, #2dd47a, #059a4c);
}
.checkout-qr-head.pay-combo .checkout-qr-badge {
  background: linear-gradient(135deg, #07c160 0%, #07c160 48%, #1677ff 52%, #1677ff 100%);
}
.checkout-qr-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.checkout-qr-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.checkout-qr-copy b {
  color: var(--text);
}
.checkout-qr img {
  max-width: 220px;
  width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.checkout-qr-cashier {
  margin-top: 4px;
  overflow: hidden;
}
.checkout-pay-shell {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.checkout-pay-shell.is-loading .checkout-pay-frame {
  opacity: 0;
}
.checkout-pay-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  z-index: 1;
}
.checkout-pay-shell:not(.is-loading) .checkout-pay-loading {
  display: none;
}
.checkout-pay-frame-clip {
  overflow: hidden;
  width: 100%;
  background: var(--surface);
}
.checkout-pay-frame {
  display: block;
  width: calc(100% + 22px);
  max-width: none;
  margin-right: -22px;
  height: min(82vh, 720px);
  min-height: 560px;
  border: 0;
  background: #fff;
  transition: opacity 0.2s ease;
  vertical-align: top;
}
.checkout-page .shop-block,
.checkout-qr-cashier {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) rgba(255, 255, 255, 0.04);
}
.checkout-page .shop-block::-webkit-scrollbar,
.checkout-qr-cashier::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.checkout-page .shop-block::-webkit-scrollbar-track,
.checkout-qr-cashier::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.checkout-page .shop-block::-webkit-scrollbar-thumb,
.checkout-qr-cashier::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
}
.checkout-page .shop-block::-webkit-scrollbar-thumb:hover,
.checkout-qr-cashier::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.55);
}
.checkout-pay-foot {
  margin: 12px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.checkout-pay-refresh {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 4px;
  min-height: 44px;
}
.checkout-open-pay-btn {
  width: 100%;
  max-width: 320px;
  margin: 4px auto 8px;
}
.checkout-pay-frame-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.checkout-pay-frame-fallback {
  margin-top: 4px;
}
.btn-ghost {
  margin-top: 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }
.account-compact .account-wide-hd { margin-bottom: 0; }

/* ── 功能菜单 ── */
.menu-section { margin-bottom: 16px; }
.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.menu-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}
.menu-ico { font-size: 22px; line-height: 1; }

.plan-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.plan-mini.empty span { font-size: 13px; color: var(--muted); }
.plan-mini-main { min-width: 0; }
.plan-mini-main strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-mini-main span { font-size: 12px; color: var(--muted); }
.plan-renew-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--sky);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.plan-renew-btn:hover { background: rgba(56, 189, 248, 0.18); }
.plan-mini-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.plan-order-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.plan-order-btn:hover { border-color: rgba(56, 189, 248, 0.35); }
.plan-mini.empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dl-item.off { opacity: 0.72; pointer-events: auto; cursor: pointer; }

/* 下载与教程弹窗 */
.download-detail-body { padding-top: 0; }
.dl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.dl-tabs.dl-tabs-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.dl-tab {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dl-tab.on {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.12);
  color: var(--sky);
}
.dl-pane { display: none; }
.dl-pane.on { display: block; }
.dl-id-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-id-expired .btn {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}
.dl-id-warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.55;
}
.dl-id-notice {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.35));
}
.dl-id-notice-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fecaca;
  letter-spacing: 0.02em;
}
.dl-id-notice-title.dl-id-notice-sub {
  margin-top: 12px;
  color: #7dd3fc;
}
.dl-id-notice-list {
  margin: 0;
  padding-left: 18px;
  color: #f1f5f9;
  font-size: 12px;
  line-height: 1.6;
}
.dl-id-notice-list li { margin-bottom: 6px; }
.dl-id-notice-list li:last-child { margin-bottom: 0; }
.dl-id-notice-list strong { color: #fecaca; }
.dl-id-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dl-id-toolbar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.dl-id-refresh {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.14);
  color: var(--sky);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.dl-id-refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}
.dl-id-refresh:active:not(:disabled) { transform: scale(0.98); }
.dl-id-hint,
.dl-id-foot {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.dl-id-frame-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 220px;
  contain: layout paint;
}
.dl-id-frame-wrap-extra {
  margin-top: 12px;
}
.dl-id-frame {
  display: block;
  width: 100%;
  height: min(52vh, 380px);
  border: 0;
  background: #fff;
}
.dl-quiz {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface2);
}
.dl-quiz-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.dl-quiz-progress i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  display: inline-block;
}
.dl-quiz-progress i.on {
  background: var(--sky);
}
.dl-quiz-progress i.dim {
  opacity: 0.45;
}
.dl-quiz-step { display: none; }
.dl-quiz-step.on { display: block; }
.dl-quiz-q {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-align: center;
}
.dl-quiz-tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.dl-quiz-pics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dl-quiz-pic {
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.dl-quiz-pic:active { transform: scale(0.98); }
.dl-quiz-pic:hover { border-color: rgba(56, 189, 248, 0.45); }
.dl-quiz-pic img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}
.dl-quiz-shot {
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: visible;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.35);
}
.dl-quiz-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
}
.dl-quiz-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dl-quiz-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.dl-quiz-btn.primary {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.16);
  color: var(--sky);
}
.dl-quiz-rules {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.dl-quiz-rules li { margin-bottom: 6px; }
.dl-quiz-rules strong { color: #fecaca; }
.dl-quiz-reveal {
  width: 100%;
  min-height: 44px;
}
@media (max-width: 420px) {
  .dl-tabs.dl-tabs-3 { gap: 6px; }
  .dl-tabs.dl-tabs-3 .dl-tab { font-size: 12px; height: 36px; padding: 0 4px; }
  .dl-quiz-pic img { max-height: none; }
  .dl-quiz-shot img { max-height: none; }
  .dl-id-frame { height: min(58vh, 420px); }
}
.dl-sub-tip {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.dl-sub-tip strong { color: var(--sky); }
.dl-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.dl-sub-qr-card,
.dl-sub-import-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.4);
  text-align: center;
  min-height: 200px;
}
.dl-sub-qr-card canvas {
  width: 168px;
  height: 168px;
  border-radius: 10px;
  background: #fff;
}
.dl-sub-qr-cap,
.dl-sub-import-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
.dl-sub-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 8px 12px;
  border-radius: 14px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.dl-sub-app:active { transform: scale(0.97); }
.dl-sub-app:hover { background: rgba(14, 165, 233, 0.1); }
.dl-sub-app img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.dl-sub-app-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.dl-sub-app-act {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
}
@media (max-width: 420px) {
  .dl-sub-grid { grid-template-columns: 1fr; }
  .dl-sub-qr-card,
  .dl-sub-import-card { min-height: 0; }
}
.dl-download-box {
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dl-download-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dl-download-url {
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 8px;
}
.dl-download-actions {
  display: flex;
  gap: 8px;
}
.dl-download-actions .btn {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.dl-guide p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}
.dl-guide p:last-child { margin-bottom: 0; }
.dl-guide-video {
  margin-top: 4px;
  margin-bottom: 0;
}
.dl-guide-video-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  max-height: min(72vh, 680px);
  box-sizing: border-box;
  /* 上下也留黑边，避免画面贴顶 */
  padding: 14px 12px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-guide-video-player {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  background: #000;
  display: block;
  object-fit: contain;
  object-position: center center;
}
/* hide native browser play overlay / controls (esp. iOS Safari) */
.dl-guide-video-player::-webkit-media-controls {
  display: none !important;
}
.dl-guide-video-player::-webkit-media-controls-enclosure {
  display: none !important;
}
.dl-guide-video-player::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}
.dl-guide-video-player::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}
.dl-guide-video-tap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 46px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dl-guide-video-wrap.is-paused .dl-guide-video-tap {
  background: rgba(0, 0, 0, 0.28);
}
.dl-guide-video-playicon {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.dl-guide-video-playicon::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.dl-guide-video-wrap.is-paused .dl-guide-video-playicon {
  display: block;
}
.dl-guide-video-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.72) 100%);
}
.dl-guide-video-seek {
  flex: 1 1 auto;
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: #4ea1ff;
}
.dl-guide-video-time {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dl-guide-video-fs {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dl-guide-video-fs .dl-fs-icon {
  display: block;
}
.dl-guide-video-fs .dl-fs-compress {
  display: none;
}
.dl-guide-video-wrap.is-fs .dl-guide-video-fs .dl-fs-expand,
.dl-guide-video-wrap.is-expanded .dl-guide-video-fs .dl-fs-expand {
  display: none;
}
.dl-guide-video-wrap.is-fs .dl-guide-video-fs .dl-fs-compress,
.dl-guide-video-wrap.is-expanded .dl-guide-video-fs .dl-fs-compress {
  display: block;
}
.dl-guide-video-speeds {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px auto 0;
  width: 100%;
}
.dl-guide-video-speeds-label {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}
.dl-guide-speed-btn {
  min-width: 46px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dl-guide-speed-btn.on {
  color: #fff;
  border-color: rgba(78, 161, 255, 0.7);
  background: rgba(78, 161, 255, 0.28);
}
.dl-guide-video-wrap.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}
body.dl-video-expanded {
  overflow: hidden;
}
@media (max-width: 480px) {
  .dl-guide-video-wrap {
    width: 100%;
    max-height: min(78vh, 740px);
    border-radius: 12px;
    padding: 12px 10px 50px;
  }
  .dl-guide-speed-btn {
    min-width: 42px;
    height: 36px;
  }
}

.modal-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: center;
}
.modal-tip { max-width: 360px; }
.tip-card {
  position: relative;
  text-align: center;
  padding: 28px 22px 22px;
}
.tip-card .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.tip-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.tip-icon-amber {
  color: #fbbf24;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18);
}
.tip-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}
.tip-body {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.tip-body p { margin: 0 0 10px; }
.tip-body p:last-child { margin-bottom: 0; }
.tip-body strong { color: var(--text); font-weight: 700; }
.tip-note {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
.tip-compare {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.tip-compare-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
}
.tip-compare-item span {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.tip-compare-item strong {
  font-size: 13px;
  text-align: right;
  word-break: break-all;
}
.tip-compare-ok {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
}
.tip-compare-ok strong { color: #4ade80; }
.tip-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tip-actions .btn { width: 100%; }
.support-lines { margin-top: 8px; }
.support-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.support-line span { color: var(--muted); }
.support-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  text-decoration: none;
  font-weight: 700;
}
.steps-compact { padding: 14px 16px !important; margin-bottom: 12px !important; }
.steps-compact-text {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ── 套餐订购独立页面 ── */
.shop-page-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.shop-page,
.checkout-page,
.unpaid-page {
  padding-bottom: 32px;
}

.page-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 4px;
}

.page-back {
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.1));
  color: var(--sky);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.page-back:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  filter: brightness(1.05);
}
.page-refresh,
.hdr-refresh-btn {
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.page-refresh:hover,
.hdr-refresh-btn:hover {
  color: #111;
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
  transform: translateY(-1px);
}
.checkout-pay-wait { margin-bottom: 14px; }
.pay-wait-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-align: center;
}
.pay-wait-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--sky);
  font-size: 15px;
}
.pay-wait-box p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.pay-wait-box .pay-wait-sub {
  margin-top: -6px;
  margin-bottom: 10px;
  font-size: 11px;
}
.pay-wait-box .pay-wait-reopen {
  display: inline-block;
  margin: 0 auto 10px;
  min-height: 38px;
  line-height: 38px;
  padding: 0 14px;
}
.pay-wait-box .btn {
  width: auto;
  min-width: 140px;
  margin: 0 auto;
  min-height: 42px;
}

.page-top-main { flex: 1; min-width: 0; }
.page-top-main h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-steps span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.page-steps span.on {
  color: var(--cta-text);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
}
.page-steps span.done {
  color: var(--online);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}
.page-steps i {
  width: 16px;
  height: 1px;
  background: var(--line);
  flex-shrink: 0;
}

.shop-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  margin-bottom: 14px;
}
.shop-block-hd {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-block-hd h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
}
.shop-block-hd p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* 当前选择摘要 */
.shop-selection-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.shop-selection-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.shop-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.shop-sel-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.shop-sel-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.shop-amount-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.shop-amount-row span { color: var(--muted); flex-shrink: 0; }
.shop-amount-row strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.shop-amount-row.is-deduct strong { color: var(--online); }
.shop-amount-row.is-pay {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.shop-amount-row.is-pay span { font-weight: 700; color: var(--text); }
.shop-sel-price {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--money) !important;
  white-space: nowrap;
}

.plan-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 套餐列表行 */
.plan-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, rgba(29, 29, 34, 0.95), rgba(21, 21, 24, 0.98));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 14px 0;
  cursor: pointer;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.plan-row:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}
.plan-row:active { transform: scale(0.995); }
.plan-row-accent {
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sky), var(--cta-deep));
  opacity: 0.85;
}
.plan-row-body { flex: 1; min-width: 0; padding-left: 12px; display: flex; flex-direction: column; gap: 8px; }
.plan-row-info { min-width: 0; }
.plan-row-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}
.plan-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.plan-row-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--money);
  white-space: nowrap;
}
.plan-row-price small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}
.plan-row-cta {
  display: none;
}
.plan-row-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cta-text);
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
  transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.plan-row:hover .plan-row-action {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.38);
}
.plan-row:active .plan-row-action { transform: scale(0.97); }
.plan-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.plan-row-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.plan-unit.is-active .plan-card {
  margin-bottom: 0;
}

.plan-period-panel {
  margin-top: 10px;
  padding: 14px 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
}
.plan-period-panel .shop-selection-box {
  margin-top: 12px;
  margin-bottom: 12px;
}
.plan-period-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 10px;
}

.plan-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface2);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 13px;
  cursor: pointer;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.plan-card.readonly {
  cursor: default;
  border-color: rgba(56, 189, 248, 0.4);
}
.plan-card:not(.on):not(.readonly):hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}
.plan-card.on {
  border-color: var(--cta);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.22), 0 6px 20px rgba(14, 165, 233, 0.1);
}

.plan-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cta-text);
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.plan-card-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.plan-card-hd strong {
  font-size: 16px;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.plan-card-price {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--money);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.plan-card-meta {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.plan-card-meta li {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  min-width: 0;
}
.plan-card-meta span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}
.plan-card-meta b {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.plan-card-body {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.plan-card-body.is-collapsed {
  display: none;
}
.plan-card-body b,
.plan-card-body strong { color: var(--text); }

.plan-card-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.plan-card-list {
  border-width: 1px;
}

.shop-plan-modal {
  max-width: 460px;
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 22px 20px 20px;
}
.shop-plan-modal-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.shop-plan-modal-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.shop-plan-modal-title strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.shop-plan-modal-price {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--money);
  white-space: nowrap;
}
.shop-plan-modal-price small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}
.shop-plan-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.shop-plan-modal-tags span {
  font-size: 11px;
  font-weight: 600;
  color: var(--sky);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 4px 9px;
  border-radius: 999px;
}
.shop-plan-modal-section {
  margin-bottom: 16px;
}
.shop-plan-modal-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.shop-plan-modal-detail {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.35) rgba(255, 255, 255, 0.04);
}
.shop-plan-modal-detail::-webkit-scrollbar {
  width: 6px;
}
.shop-plan-modal-detail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
.shop-plan-modal-detail::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 999px;
}
.shop-plan-modal-detail::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.55);
}
.shop-plan-modal-detail.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.shop-plan-modal-detail b,
.shop-plan-modal-detail strong { color: var(--text); }
.shop-plan-modal-detail ul,
.shop-plan-modal-detail ol {
  padding-left: 1.2em;
  margin: 0.4em 0;
}
.shop-plan-modal-detail li { margin: 0.25em 0; }
.shop-plan-modal-detail p { margin: 0.35em 0; }
.shop-plan-modal-detail p:first-child { margin-top: 0; }
.shop-plan-modal-detail p:last-child { margin-bottom: 0; }
.shop-plan-modal .plan-period-label {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}
.shop-plan-modal .shop-selection-box {
  margin-bottom: 12px;
}
.shop-plan-modal .shop-foot {
  padding-top: 4px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, var(--surface) 24%);
  margin: 0 -4px;
  padding-bottom: 2px;
}

.plan-detail-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 6px 0;
}

.period-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}

/* 弹窗内周期：手机单列全宽，避免最后一项单边空着 */
.shop-plan-modal .period-grid-modal {
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
.shop-plan-modal .period-grid-modal .period-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
  border-color: rgba(56, 189, 248, 0.16);
  background: rgba(14, 165, 233, 0.04);
}
.shop-plan-modal .period-grid-modal .period-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.08);
}
.shop-plan-modal .period-grid-modal .period-card.on {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 165, 233, 0.14);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18);
}
.shop-plan-modal .period-grid-modal .period-card-mark {
  color: var(--sky);
}
.shop-plan-modal .period-grid-modal .period-card.on .period-card-label {
  color: var(--sky);
}
.shop-plan-modal .period-grid-modal .period-card-label {
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.shop-plan-modal .period-grid-modal .period-card-price {
  font-size: 17px;
  text-align: right;
  flex-shrink: 0;
}
.period-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font: inherit;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  justify-self: stretch;
}
.period-card:hover { border-color: rgba(56, 189, 248, 0.35); }
.period-card.on {
  border-color: var(--cta);
  background: rgba(14, 165, 233, 0.1);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.15);
}
.period-card-reset {
  border-style: dashed;
  border-color: rgba(251, 191, 36, 0.35);
}
.period-card-reset .period-card-label { color: #fbbf24; }
.period-card-reset.on {
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.1);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.18);
}
.period-card-mark {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--cta);
  line-height: 1;
}
.period-card-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  flex: 1;
  min-width: 0;
}
.period-card.on .period-card-label { color: var(--text); }
.period-card-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--money);
  flex-shrink: 0;
  white-space: nowrap;
}

.shop-foot { padding-top: 2px; }
/* 套餐弹窗底部：与待支付页同结构，强制竖排 + 固定间隔 */
.shop-plan-modal .shop-plan-actions,
.shop-plan-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin-top: 16px !important;
  padding-top: 0 !important;
}
.shop-plan-actions .shop-next-btn,
.shop-plan-actions .shop-close-btn {
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}
.shop-btn-spacer {
  display: block !important;
  width: 100%;
  height: 14px !important;
  min-height: 14px !important;
  flex: 0 0 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none;
}
.shop-plan-actions .shop-next-btn {
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
/* 退出：与「关闭订单」同款蓝描边 */
.shop-close-btn.btn-exit,
.shop-plan-actions .btn-exit,
.btn-exit {
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0.08)) !important;
  color: var(--sky) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.btn-exit:hover,
.shop-plan-actions .btn-exit:hover,
.shop-close-btn.btn-exit:hover {
  color: #fff !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep)) !important;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.32) !important;
}

.shop-balance-hint-wrap:empty { display: none; }
.wallet-hint {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.wallet-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 9px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.wallet-tag-commission {
  color: #d4a574;
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.22);
}
.wallet-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 4px;
}
.wallet-note b { color: var(--text); font-weight: 700; }
.checkout-summary .wallet-hint {
  margin-top: 10px;
  padding-top: 10px;
}

.hdr-center-btn { font-weight: 700; }

.user-center-modal { max-width: 520px; }
.uc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.uc-tab {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.uc-tab.on {
  color: var(--cta-text);
  border-color: transparent;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
}
.uc-body { min-height: 120px; }
.uc-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.uc-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.uc-info-item span { color: var(--muted); flex-shrink: 0; }
.uc-info-item strong {
  text-align: right;
  word-break: break-word;
  line-height: 1.35;
}
.uc-money { color: var(--money) !important; }
.uc-tip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.uc-orders { max-height: 360px; overflow-y: auto; }
.uc-order-item {
  display: block;
  width: 100%;
  position: relative;
  padding: 12px 14px 12px 14px;
  padding-right: 64px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.uc-order-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.06);
}
.uc-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.uc-order-top strong { font-size: 14px; line-height: 1.35; }
.uc-order-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.uc-order-status.pending {
  color: var(--money);
  background: rgba(245, 158, 11, 0.12);
}
.uc-order-status.done {
  color: var(--online);
  background: rgba(34, 197, 94, 0.12);
}
.uc-order-status.cancel {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}
.uc-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}
.uc-order-price { color: var(--sky); font-weight: 700; }
.uc-order-go {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
}
.uc-back-btn {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}
.uc-order-detail-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.uc-order-detail-hd strong {
  font-size: 16px;
  line-height: 1.35;
}
.uc-order-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface2);
}
.uc-order-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
}
.uc-order-detail-row + .uc-order-detail-row {
  border-top: 1px solid var(--line);
}
.uc-order-detail-row span { color: var(--muted); flex-shrink: 0; }
.uc-order-detail-row strong {
  text-align: right;
  word-break: break-all;
  font-weight: 600;
}
.uc-order-detail-row.total {
  background: rgba(14, 165, 233, 0.08);
}
.uc-order-detail-row.total strong {
  color: var(--sky);
  font-size: 16px;
  font-weight: 800;
}
.uc-order-status-text.pending { color: var(--money); }
.uc-order-status-text.done { color: var(--online); }
.uc-order-detail .btn-gold { width: 100%; }

.shop-period-inner {
  width: 100%;
  min-width: 0;
}
.shop-block-period {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.shop-period-hd { margin-bottom: 12px; }

.checkout-line-credit strong { color: #4ade80; }
.checkout-line-muted strong { color: var(--muted); font-weight: 600; }
.checkout-surplus-tip {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 12px;
  line-height: 1.5;
}
.checkout-free-tip {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.checkout-free-tip b { color: #4ade80; }
.checkout-cancel-btn { margin-top: 10px; }

.page-hint,
.page-empty-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
  padding: 20px 10px;
}
.unpaid-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.unpaid-actions .btn,
.unpaid-actions .btn-ghost,
.unpaid-actions #unpaidPayBtn,
.unpaid-actions #unpaidCancelBtn {
  margin: 0 !important;
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  flex: none;
}
.unpaid-actions #unpaidPayBtn {
  border: 1px solid transparent;
}
.checkout-cancel-btn,
#unpaidCancelBtn.btn-ghost,
.unpaid-actions .btn-ghost,
.unpaid-actions #unpaidCancelBtn {
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0.08)) !important;
  color: var(--sky) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.checkout-cancel-btn {
  margin-top: 14px !important;
}
.checkout-cancel-btn:hover,
#unpaidCancelBtn.btn-ghost:hover,
.unpaid-actions .btn-ghost:hover,
.unpaid-actions #unpaidCancelBtn:hover {
  color: #fff !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(135deg, var(--cta), var(--cta-deep)) !important;
  filter: none;
  transform: translateY(-1px);
}

@media (min-width: 520px) {
  .shop-page-wrap { max-width: 640px; }
  .shop-plan-modal .period-grid-modal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shop-plan-modal .period-grid-modal .period-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 14px 10px;
    text-align: center;
  }
  .shop-plan-modal .period-grid-modal .period-card-label {
    text-align: center;
    flex: none;
    width: 100%;
  }
  .shop-plan-modal .period-grid-modal .period-card-price {
    text-align: center;
  }
  /* 奇数个选项时，最后一项横跨两列，样式与其它卡片保持一致 */
  .shop-plan-modal .period-grid-modal .period-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .shop-plan-modal .period-grid-modal .period-card-price { font-size: 17px; }
}

@media (min-width: 768px) {
  .shop-page-wrap { max-width: 760px; }
  .shop-page,
  .checkout-page,
  .unpaid-page { padding-bottom: 48px; }
  .shop-block {
    padding: 24px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(21, 21, 24, 0.98), rgba(15, 16, 20, 0.99));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  }
  .shop-block-hd h2 { font-size: 18px; }
  .shop-block-hd p { font-size: 13px; }
  .page-top { margin-bottom: 24px; }
  .page-top-main h1 { font-size: 24px; }
  .page-steps span { font-size: 12px; padding: 6px 12px; }
  .plan-stack { gap: 12px; }
  .plan-row {
    padding: 18px 22px 18px 0;
    border-radius: 18px;
  }
  .plan-row-accent { width: 5px; }
  .plan-row-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-left: 16px;
  }
  .plan-row-name { font-size: 16px; margin-bottom: 10px; }
  .plan-row-side {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }
  .plan-row-price { font-size: 20px; }
  .plan-row-action {
    min-width: 72px;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 11px;
  }
  .shop-plan-modal.modal,
  .modal.shop-plan-modal {
    max-width: 540px;
    padding: 28px 28px 24px;
  }
  .shop-plan-modal-detail { max-height: 240px; font-size: 14px; }
  .shop-plan-modal-title strong { font-size: 19px; }
  .shop-plan-modal-price { font-size: 22px; }
  .shop-plan-modal .period-grid-modal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .shop-plan-modal .period-grid-modal .period-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  /* 3列布局下最后一项落单时拉满一行，但仍保持居中竖排 */
  .shop-plan-modal .period-grid-modal .period-card:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
  .plan-card { padding: 16px 15px; }
  .plan-card-body { max-height: 240px; font-size: 13px; }
}

@media (min-width: 900px) {
  .shop-page-wrap { max-width: 820px; }
  .plan-row {
    padding: 20px 24px 20px 0;
  }
  .plan-row-name { font-size: 17px; }
  .plan-row-tags span { font-size: 12px; padding: 5px 10px; }
  .plan-row-price { font-size: 22px; }
  .modal.shop-plan-modal,
  .shop-plan-modal.modal {
    max-width: 600px;
    padding: 30px 32px 26px;
  }
  .shop-plan-modal-detail { max-height: 280px; padding: 14px 16px; }
  .shop-plan-modal .period-grid-modal {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 12px;
  }
  .shop-plan-modal .period-grid-modal .period-card {
    min-height: 84px;
    padding: 14px 10px;
  }
  .shop-plan-modal .period-grid-modal .period-card-label { font-size: 13px; }
  .shop-plan-modal .period-grid-modal .period-card-price { font-size: 18px; }
  .shop-sel-price { font-size: 22px !important; }
  .checkout-summary-page { padding: 18px 20px; }
  .unpaid-actions {
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    gap: 12px;
  }
  .unpaid-actions .btn,
  .unpaid-actions .btn-ghost,
  .unpaid-actions #unpaidPayBtn,
  .unpaid-actions #unpaidCancelBtn {
    flex: 1 1 0;
    max-width: none;
    width: auto;
    margin: 0 !important;
  }
}

@media (min-width: 1200px) {
  .shop-page-wrap { max-width: 860px; }
  .plan-stack { gap: 14px; }
}

@media (min-width: 768px) {
  .uc-info-grid { grid-template-columns: 1fr 1fr; }
  .user-center-modal { max-width: 560px; }
}

@media (max-width: 480px) {
  .shop-amount-row.is-pay .shop-sel-price { font-size: 22px !important; }
}

@media (max-width: 380px) {
  .plan-card-meta b { font-size: 10px; }
  .plan-card-price { font-size: 11px; padding: 3px 6px; }
  .shop-sel-price { font-size: 20px !important; }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  color: var(--cta-text);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover {
  transform: none;
  filter: none;
}

/* ── 全局可点击按钮悬停：统一成主题蓝高亮 ── */
.btn-sm,
.page-back,
.modal-close,
.dash-btn-renew,
.dash-btn-order,
.dash-metric-btn,
.period-card,
.plan-row,
.dl-item,
.pay-method,
.uc-order-item,
.invite-wallet-tab,
.uc-tab,
.dl-tab,
.btn-ghost,
.btn-exit,
.checkout-cancel-btn,
.auth-actions .btn-login,
.auth-actions .btn-register {
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.btn-sm:hover:not(:disabled),
.page-back:hover,
.modal-close:hover,
.btn-ghost:hover,
.checkout-cancel-btn:hover,
#unpaidCancelBtn.btn-ghost:hover,
.unpaid-actions .btn-ghost:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(135deg, var(--cta), var(--cta-deep));
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.32);
  transform: translateY(-1px);
  filter: none;
}

.btn-sm.gold:hover:not(:disabled),
.dash-btn-renew:hover,
.dash-btn-order:hover,
.auth-actions .btn-login:hover,
.auth-actions .btn-register:hover,
.shop-next-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.38);
}

.btn-sm.logout:hover {
  color: #fff;
  background: linear-gradient(135deg, #f87171, #dc2626);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
  filter: none;
}

/* 顶栏按钮：压过全局实心悬停，保持低调描边 */
.hdr-actions .btn-sm:hover:not(:disabled),
.hdr-actions .btn-sm.gold:hover:not(:disabled),
.hdr-actions .hdr-refresh-btn:hover,
.hdr-actions .hdr-center-btn:hover {
  color: var(--text) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  background: rgba(14, 165, 233, 0.14) !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}
.hdr-actions .btn-sm.logout:hover {
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  background: rgba(239, 68, 68, 0.16) !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

.period-card:hover,
.dash-metric-btn:hover,
.invite-wallet-tab:hover:not(.on),
.uc-tab:hover:not(.on),
.dl-tab:hover:not(.on) {
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.1);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.plan-row:hover,
.dl-item.on:hover,
.uc-order-item:hover,
.pay-method:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.err {
  min-height: 16px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

.modal-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
}
.modal-foot a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
}


/* ========== entry announcement (ported from main x-ann, sealed palette) ========== */
html.s-ann-open,
body.s-ann-open {
  overflow: hidden;
}
html.s-ann-open #app {
  content-visibility: hidden;
  pointer-events: none;
}

#s-ann-root {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  background: rgba(6, 8, 12, 0.82);
  contain: layout style paint;
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

#s-ann-root #s-ann-card,
#s-ann-root #s-ann-card * {
  box-sizing: border-box;
}

#s-ann-card {
  max-width: 28rem;
  width: 100%;
  max-height: min(92vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(145deg, #0ea5e9, #0369a1 55%, #f59e0b);
  border-radius: 20px;
  padding: 2px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.18);
  contain: layout style paint;
}

#s-ann-inner {
  position: relative;
  background: linear-gradient(180deg, #1a1b22 0%, #121317 100%);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

#s-ann-title {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.3;
}

#s-ann-warn-line {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.12);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fbbf24;
  line-height: 1.45;
  word-break: keep-all;
}

@media (min-width: 480px) {
  #s-ann-warn-line {
    font-size: 1.15rem;
    padding: 0.75rem 1rem;
  }
}

#s-ann-p1 {
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

#s-ann-p2 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  font-weight: 600;
}

#s-ann-p3 {
  margin: 0 0 1.35rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #8b93a7;
}

#s-ann-coop {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(14, 165, 233, 0.07));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 1px 0 rgba(14, 165, 233, 0.1);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #7dd3fc;
  text-align: center;
  font-weight: 500;
}

@media (min-width: 480px) {
  #s-ann-coop {
    font-size: 0.875rem;
    padding: 0.75rem 0.95rem;
  }
}

#s-ann-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 0.35rem;
}

#s-ann-actions .s-ann-b {
  display: block;
  width: 100%;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s, color 0.15s;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
}

#s-ann-root #s-ann-actions .s-ann-btn-site {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff !important;
  border: 2px solid #0369a1 !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

#s-ann-root #s-ann-actions .s-ann-btn-site:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  border-color: #0ea5e9 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
}

#s-ann-root #s-ann-actions .s-ann-btn-go {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(22, 163, 74, 0.18) 100%);
  color: #86efac !important;
  border: 2px solid rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.12);
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

#s-ann-root #s-ann-actions .s-ann-btn-go:hover {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.32) 0%, rgba(22, 163, 74, 0.26) 100%);
  border-color: rgba(74, 222, 128, 0.55) !important;
  color: #bbf7d0 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2);
}

#s-ann-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(244, 244, 245, 0.62);
  text-align: center;
  align-self: center;
  max-width: 28rem;
  width: 100%;
  line-height: 1.45;
  padding: 0 2px;
}

@media (min-width: 480px) {
  #s-ann-title { font-size: 1.5rem; }
  #s-ann-inner { padding: 1.6rem 1.5rem 1.35rem; }
}

@media (max-width: 479px) {
  #s-ann-title { font-size: 1.25rem; }
  #s-ann-inner { padding: 1.25rem 1rem 1.1rem; }
}


/* ========== Windows inline guides (login + import) ========== */
.wg-doc {
  padding: 6px 4px 12px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  max-height: none;
  overflow: visible;
}
.wg-h {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--sky);
}
.wg-h:first-child { margin-top: 0; }
.wg-ol, .wg-ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}
.wg-ol li, .wg-ul li { margin-bottom: 0.45rem; }
.wg-step {
  margin: 1rem 0 0.5rem;
  color: var(--text);
  font-size: 0.98rem;
}
.wg-muted {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.wg-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.wg-alert {
  margin: 0 0 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface2);
}
.wg-alert-title {
  margin: 0 0 0.4rem;
  font-weight: 800;
}
.wg-alert-sky {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0.05));
}
.wg-alert-sky .wg-alert-title { color: #7dd3fc; }
.wg-alert-amber {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.05));
  color: #fcd34d;
}
.wg-alert-rose {
  border-color: rgba(244, 114, 182, 0.3);
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.1), rgba(239, 68, 68, 0.06));
}
.wg-alert-rose .wg-alert-title { color: #fda4af; }
.wg-shots { margin: 0 0 0.85rem; }
.wg-shots-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: flex-start;
}
.wg-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0c10;
  margin: 0 0 0.85rem;
  image-rendering: auto;
}
.wg-img.half {
  width: calc(50% - 6px);
  margin: 0;
}
.wg-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #7dd3fc;
}
.dl-download-extra {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
/* 桌面：更大字号与图 */
@media (min-width: 900px) {
  .wg-doc { font-size: 1rem; }
  .wg-h { font-size: 1.15rem; }
  .wg-img { max-width: 880px; margin-left: auto; margin-right: auto; }
}
/* 手机：自适应收窄，内容可滚动 */
@media (max-width: 720px) {
  .wg-doc {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .wg-h { font-size: 1rem; }
  .wg-shots-row { flex-direction: column; gap: 8px; }
  .wg-img.half { width: 100%; }
}




/* =========================================================
   Windows 教程 / 下载 / 订阅 — 布局（电脑宽屏 + 手机自适应）
   ========================================================= */
.wx-shell {
  --wx-radius: 16px;
  --wx-gap: 14px;
  color: var(--text);
}

.wx-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 14px;
  padding: 0 0 10px;
  background: linear-gradient(180deg, var(--surface) 70%, rgba(21, 21, 24, 0.88));
}

.wx-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
    rgba(14, 165, 233, 0.06);
  font-size: 0.9rem;
  line-height: 1.55;
}
.wx-notice p { margin: 0; color: #dbeafe; }
.wx-notice b { color: #7dd3fc; font-weight: 800; }
.wx-notice-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

/* 顶部双版本选择 */
.wx-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wx-seg-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s, color .15s, transform .12s;
}
.wx-seg-btn:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--text);
}
.wx-seg-btn.on {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.55);
  background:
    linear-gradient(145deg, rgba(14, 165, 233, 0.18), rgba(14, 165, 233, 0.05));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.12) inset,
    0 10px 28px rgba(2, 132, 199, 0.12);
}
.wx-seg-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--sky);
  opacity: .9;
}
.wx-seg-btn:not(.on) .wx-seg-kicker { color: #64748b; }
.wx-seg-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.wx-seg-desc {
  font-size: 12px;
  color: var(--muted);
}

.wx-pane {
  display: none;
  flex-direction: column;
  gap: var(--wx-gap);
}
.dl-pane.wx-pane.on,
.wx-pane.on {
  display: flex !important;
}

/* 步骤卡片 */
.wx-card {
  border-radius: var(--wx-radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
    var(--surface2);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.wx-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 0;
}
.wx-step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(145deg, #38bdf8, #0ea5e9 55%, #0284c7);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}
.wx-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.wx-card-bd {
  padding: 12px 16px 16px;
}

/* 下载块 */
.wx-dl {
  position: relative;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    rgba(0,0,0,0.18);
}
.wx-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.wx-badge-soft {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}
.wx-dl-name {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}
.wx-dl-desc {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}
.wx-dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 统一按钮 */
.wx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, filter .15s, border-color .15s, background .15s, box-shadow .15s;
  user-select: none;
}
.wx-btn:active { transform: scale(0.98); }
.wx-btn-primary {
  flex: 1 1 180px;
  color: #041018;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 45%, #0284c7 100%);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.32);
}
.wx-btn-primary:hover { filter: brightness(1.06); }
.wx-btn-secondary {
  flex: 0 1 auto;
  min-width: 120px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
}
.wx-btn-secondary:hover {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
}
.wx-btn-accent {
  flex: 1 1 160px;
  color: #ecfdf5;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.45));
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
}
.wx-btn-accent:hover { filter: brightness(1.08); }
.wx-btn-ico {
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

/* 订阅区 */
.wx-sub {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background:
    radial-gradient(100% 120% at 0% 0%, rgba(34, 197, 94, 0.12), transparent 50%),
    rgba(0,0,0,0.16);
}
.wx-sub-empty { border-color: var(--line); }
.wx-sub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.wx-sub-title {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 800;
}
.wx-sub-note {
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}
.wx-sub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.wx-sub-input-wrap {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.65);
  overflow: hidden;
}
.wx-sub-input {
  width: 100%;
  height: 46px;
  border: 0;
  outline: none;
  background: transparent;
  color: #e2e8f0;
  padding: 0 14px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wx-sub-field { margin-bottom: 12px; }
.wx-sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 16px;
}
.wx-sub-foot {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #8b93a7;
}
.wx-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* 教程嵌在卡片内：压缩 wg-doc 默认间距，更贴布局 */
.wx-card-guide .wx-card-bd {
  padding-top: 8px;
}
.wx-guide .wg-doc {
  max-height: none;
  overflow: visible;
  padding: 0;
  font-size: 0.9rem;
}
.wx-guide .wg-h {
  margin-top: 0.85rem;
  font-size: 0.96rem;
}
.wx-guide .wg-alert {
  margin-bottom: 0.7rem;
}
.wx-guide .wg-img {
  margin-bottom: 0.7rem;
  border-radius: 12px;
}

@media (min-width: 900px) {
  .wx-seg-btn { padding: 14px 16px; }
  .wx-seg-name { font-size: 16px; }
  .wx-card-bd { padding: 14px 18px 18px; }
  .wx-dl, .wx-sub { padding: 16px; }
  .wx-btn { min-height: 48px; font-size: 15px; }
}

@media (max-width: 720px) {
  .wx-sticky { margin-bottom: 10px; }
  .wx-notice { font-size: 0.84rem; padding: 10px 12px; }
  .wx-seg { gap: 8px; }
  .wx-seg-btn { padding: 10px 10px; border-radius: 12px; }
  .wx-seg-name { font-size: 14px; }
  .wx-seg-desc { font-size: 11px; }
  .wx-card-hd { padding: 12px 12px 0; }
  .wx-card-bd { padding: 10px 12px 12px; }
  .wx-btn { min-height: 42px; }
  .wx-dl-actions { flex-direction: column; }
  .wx-dl-actions .wx-btn { width: 100%; flex: 1 1 100%; }
  /* 导入订阅：手机并排两钮，别拉成两根大柱 */
  .wx-sub-actions {
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 10px !important;
    margin: 0 0 12px !important;
  }
  .wx-sub-actions .wx-btn {
    width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    border-radius: 11px;
  }
  .wx-sub { padding: 14px 12px 12px !important; }
  .wx-sub-title { margin: 0 0 8px !important; font-size: 0.95rem !important; }
  .wx-sub-note { margin: 0 0 12px !important; font-size: 0.8rem !important; line-height: 1.55 !important; }
  .wx-sub-top { flex-direction: column; align-items: flex-start; }
}


.wg-doc-compact { padding: 0; }
.wg-doc-compact .wg-ol { margin: 0 0 0.5rem; }
.wg-doc-compact .wg-muted { margin: 0; }
.wx-sub { padding: 18px 18px 16px; }
.wx-sub-actions { margin-bottom: 16px; }
.wx-sticky { margin-bottom: 12px; padding-bottom: 4px; }

.wx-sub-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.wx-sub-foot-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.wx-sub-foot-list {
  margin: 0;
  padding: 0 0 0 1.1em;
  list-style: disc;
}
.wx-sub-foot-list li {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 6px;
}
.wx-sub-foot-list li:last-child { margin-bottom: 0; }
/* keep p.wx-sub-foot for other notes */
p.wx-sub-foot {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

/* 导入订阅：加大呼吸间距 */
#downloadDetailModal .wx-sub {
  padding: 20px 18px 18px !important;
}
#downloadDetailModal .wx-sub-title {
  margin: 0 0 12px !important;
}
#downloadDetailModal .wx-sub-note {
  margin: 0 0 18px !important;
  line-height: 1.7 !important;
}
#downloadDetailModal .wx-sub-actions {
  gap: 14px !important;
  margin: 0 0 18px !important;
}
#downloadDetailModal .wx-sub-actions .wx-btn {
  min-height: 44px;
  padding: 0 14px;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
#downloadDetailModal .wx-sub-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px !important;
  margin: 0 0 14px !important;
}
#downloadDetailModal .wx-sub-foot {
  margin-top: 4px !important;
  padding-top: 14px !important;
}
#downloadDetailModal .wx-sub-foot-title {
  margin-bottom: 8px !important;
}
#downloadDetailModal .wx-sub-foot-list li {
  margin-bottom: 8px !important;
  line-height: 1.75 !important;
}


#downloadDetailModal .wx-sub-line + .wx-sub-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}
#downloadDetailModal .wx-sub-line-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--sky, #38bdf8);
  cursor: pointer;
}

/* Android / Mac C 教程 */
.wx-shell-android .wx-notice,
.wx-shell-mac .wx-notice { margin-bottom: 14px; }
.wx-dl-stack { display: grid; gap: 14px; }
.wx-dl-chip {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  background: rgba(0,0,0,0.14);
}
.wx-dl-chip-hd { margin-bottom: 10px; }
.wx-dl-chip-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.wx-dl-chip-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.wx-dl-chip .wx-dl {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.wx-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-left: 4px solid rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.1);
}
.wx-alert b { display: block; margin-bottom: 6px; color: var(--text); font-size: 13px; }
.wx-alert p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.wx-alert-warn {
  border-left-color: rgba(251, 191, 36, 0.85);
  background: rgba(251, 191, 36, 0.1);
}
.wg-shots-phone {
  /* 旧布局弃用：安卓改为垂直 wg-step-stack */
  display: none;
}
.wg-shots-mac {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.wg-fig {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}
.wg-fig-num {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.92);
  color: #041018;
  font-size: 12px;
  font-weight: 800;
  margin: 0 8px 0 0;
  flex-shrink: 0;
}
.wg-fig-cap {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.wg-img-phone {
  display: block;
  width: 100%;
  height: auto;
}
.wg-shots-mac .wg-img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 760px) {
  .wg-shots-phone {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wx-dl-stack {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
  }
}
@media (max-width: 720px) {
  .wx-dl-stack {
    grid-template-columns: 1fr;
  }
}








/* 安卓步骤图：竖向排列（弹窗尺寸与 iOS 一致，用默认 download-detail） */
#downloadDetailModal .wx-shell-android .wx-card {
  overflow: visible;
}
#downloadDetailModal .wx-shell-android .wg-step-stack,
.wg-step-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
  padding-bottom: 4px;
}
.wg-step-card {
  margin: 0;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  overflow: visible;
}
.wg-step-card-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 8px;
}
.wg-step-card-num {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #041018;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wg-step-card-title {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  padding-top: 3px;
}
.wg-step-card-media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 10px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.wg-step-card-img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto !important;
  border: 0;
  object-fit: contain !important;
  background: #0b0b0e;
  flex-shrink: 0;
}
.wg-step-card-tip {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 8px 0;
  line-height: 1.4;
}
button.wg-step-card-media {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0 0 10px;
  margin: 0;
}

/* 站内图片放大预览：点空白/关闭返回，不跳新标签 */
body.img-preview-open {
  overflow: hidden;
}
.img-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}
.img-preview-mask[hidden] {
  display: none !important;
}
.img-preview-mask.on {
  display: flex;
}
.img-preview-panel {
  position: relative;
  width: min(960px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.img-preview-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  z-index: 2;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.25);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.img-preview-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(82vh, 1200px);
  object-fit: contain;
  border-radius: 10px;
  background: #0b0b0e;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.img-preview-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.75);
  text-align: center;
}
button.wg-step-card-media {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0 0 10px;
  margin: 0;
}


/* 桌面：底部更宽松 */

/* Mac 步骤：编号与文字横向排列，不遮挡 */
.wg-step-card-mac {
  margin-bottom: 0;
}
.wg-step-card-mac .wg-step-card-hd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px 10px;
}
.wg-step-card-mac .wg-step-card-num {
  position: static !important;
  flex: 0 0 auto;
  top: auto;
  left: auto;
}
.wg-step-card-mac .wg-step-card-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-top: 4px;
  word-break: break-word;
}
.wg-step-card-mac .wg-step-card-img {
  padding: 0 0 12px;
  border-radius: 0 0 12px 12px;
}
/* 避免旧 absolute 角标盖字 */
.wg-fig-num {
  position: static;
  display: inline-flex;
  margin-right: 8px;
  vertical-align: middle;
}
.wg-fig-wide {
  display: block;
}
.wg-fig-wide .wg-fig-cap {
  display: inline;
  padding: 10px 12px;
  padding-left: 0;
}
.wg-shots-mac {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Windows 一键登录：界面示意 */
.wl-guide .wl-cap {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.wl-fig {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  text-align: center;
}
.wl-ui-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.wl-legend {
  margin: 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
}
.wl-legend li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.wl-legend li b {
  color: var(--text);
  font-weight: 700;
}
.wl-legend li:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .wl-ui-img { max-width: 320px; }
}

/* 公告：老软件重要通知（置顶醒目） */
#s-ann-root .s-ann-urgent {
  margin: 0 0 14px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.55);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(251, 113, 133, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(127, 29, 29, 0.55), rgba(69, 10, 10, 0.35));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 10px 28px rgba(239, 68, 68, 0.18);
  animation: s-ann-urgent-pulse 2.4s ease-in-out infinite;
}
#s-ann-root .s-ann-urgent-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #451a03;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
}
#s-ann-root .s-ann-urgent-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  color: #fecaca;
  text-shadow: 0 0 18px rgba(248, 113, 113, 0.35);
}
#s-ann-root .s-ann-urgent-text {
  margin: 0 0 6px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #fde68a;
}
#s-ann-root .s-ann-urgent-text:last-child {
  margin-bottom: 0;
}
#s-ann-root .s-ann-urgent-text strong {
  color: #fff7ed;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(251, 191, 36, 0.85);
}
@keyframes s-ann-urgent-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 10px 28px rgba(239, 68, 68, 0.16); }
  50% { box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35) inset, 0 12px 32px rgba(239, 68, 68, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  #s-ann-root .s-ann-urgent { animation: none; }
}

/* 导入订阅：手机/窄屏两键并排紧凑 */
@media (max-width: 720px) {
  #downloadDetailModal .wx-sub {
    padding: 14px 12px 12px !important;
  }
  #downloadDetailModal .wx-sub-title {
    margin: 0 0 8px !important;
  }
  #downloadDetailModal .wx-sub-note {
    margin: 0 0 12px !important;
    font-size: 0.8rem !important;
    line-height: 1.55 !important;
  }
  #downloadDetailModal .wx-sub-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
    align-items: stretch;
  }
  #downloadDetailModal .wx-sub-actions .wx-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    max-height: 44px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.15 !important;
    border-radius: 11px;
    white-space: nowrap;
  }
  #downloadDetailModal .wx-sub-line + .wx-sub-line {
    margin-top: 12px;
    padding-top: 12px;
  }
  #downloadDetailModal .wx-sub-foot {
    margin-top: 8px !important;
    padding-top: 10px !important;
  }
}
@media (max-width: 380px) {
  #downloadDetailModal .wx-sub-actions .wx-btn {
    font-size: 12px !important;
    padding: 0 6px !important;
  }
}




/* 线路选择需叠在下载/教程大弹窗之上（同 z-index 时会被盖住） */
#subscribeLineChooserModal.modal-mask {
  z-index: 160;
}
#subscribeLineChooserModal .modal {
  position: relative;
  z-index: 1;
}

/* 订阅多线路选择 */
.sub-line-chooser-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 12px;
}
.sub-line-chooser-body .sub-line-choice,
.sub-line-chooser-body .btn {
  width: 100%;
  min-height: 46px;
  text-align: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.sub-line-chooser-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted, #8b93a7);
}
.wx-sub-foot-list {
  margin: 8px 0 0;
  padding-left: 1.15em;
}
.wx-sub-foot-list li {
  margin: 0 0 6px;
}
.wx-sub-foot-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--muted, #8b93a7);
}


/* iOS 获取订阅（与 Win/Android 同款多线路弹窗） */
.ios-sub-block .wx-sub-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.ios-sub-block .wx-sub-app-icon {
  border-radius: 10px;
  flex-shrink: 0;
}
.ios-sub-block .wx-sub-app-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ios-sub-block .wx-sub-app-name {
  font-weight: 800;
  font-size: 0.95rem;
}
.ios-sub-block .wx-sub-app-tip {
  font-size: 0.8rem;
  color: var(--muted, #8b93a7);
}
.wx-sub-actions-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wx-sub-actions-3 .wx-btn {
  flex: 1 1 auto;
  min-width: 0;
}
.sub-line-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
}
.sub-line-qr-wrap canvas {
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.sub-line-qr-back {
  width: 100%;
}
@media (max-width: 720px) {
  .wx-sub-actions-3 {
    flex-direction: column;
  }
  .wx-sub-actions-3 .wx-btn {
    width: 100%;
  }
}


/* 底部控制条区域不被全屏点击层挡住 */
.dl-guide-video-tap {
  bottom: 56px;
  z-index: 2;
}

/* custom-video-seek-v3 */
.dl-guide-video-bar {
  z-index: 30 !important;
  pointer-events: auto !important;
  touch-action: none !important;
  padding: 12px 12px 14px !important;
  gap: 10px !important;
  position: absolute !important;
  left: 0; right: 0; bottom: 0;
}
.dl-guide-video-tap {
  bottom: 68px !important;
  z-index: 2 !important;
}
.dl-guide-video-seekui {
  position: relative;
  flex: 1 1 auto;
  height: 40px;
  min-width: 48px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.dl-guide-video-seektrack {
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.30);
  pointer-events: none;
}
.dl-guide-video-seekfill {
  position: absolute;
  left: 0;
  width: 0%;
  height: 8px;
  border-radius: 999px;
  background: #4ea1ff;
  pointer-events: none;
}
.dl-guide-video-seekthumb {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border-radius: 50%;
  background: #4ea1ff;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.5);
  pointer-events: none;
}
.dl-guide-video-seekui.is-dragging .dl-guide-video-seekthumb {
  transform: scale(1.2);
}



/* 支付区：与封端同款，本站二维码卡片（禁 iframe 白页感） */
.checkout-qr-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.checkout-qr-card canvas,
.checkout-qr-card img {
  display: block;
  width: 220px;
  max-width: min(220px, 72vw);
  height: auto;
  border-radius: 4px;
  background: #fff;
}
.checkout-pay-wait {
  margin-bottom: 12px;
}
.checkout-qr {
  margin-top: 4px;
}

/* 支付二选一：跳转付款 / 二维码 */
.pay-choose{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:320px;margin:12px auto}
.pay-choose .btn,.pay-choose a.btn{width:100%;box-sizing:border-box;text-align:center;text-decoration:none;padding:13px 16px;font-weight:700;cursor:pointer;border-radius:10px}
.pay-choose-tip,.pay-jumping-note{margin:0;font-size:12px;line-height:1.5;text-align:center;opacity:.88}
.pay-qr-panel{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;margin-top:8px}
.pay-qr-panel[hidden]{display:none!important}
.checkout-qr .checkout-qr-title{font-size:18px;font-weight:700;text-align:center;margin:4px 0 8px}
.checkout-qr .checkout-qr-scan{font-size:13px;text-align:center;margin:0 0 6px}
.checkout-qr .checkout-qr-order{font-size:12px;text-align:center;margin:8px 0 0}

/* 支付二选一：大按钮 + 清晰二维码区 */
.pay-choose{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:340px;margin:14px auto 10px;padding:0 4px}
.pay-choose-btn,.pay-choose a.pay-choose-btn{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;box-sizing:border-box;min-height:52px;padding:14px 18px;
  border:0;border-radius:14px;font-size:17px;font-weight:800;letter-spacing:.03em;
  text-align:center;text-decoration:none;cursor:pointer;line-height:1.25;
  box-shadow:0 8px 22px rgba(0,0,0,.28);
}
.pay-choose-btn.pay-jump-alipay{background:linear-gradient(180deg,#1677ff,#0f5ed7);color:#fff}
.pay-choose-btn.pay-jump-wechat{background:linear-gradient(180deg,#2aae67,#1f8f52);color:#fff}
.pay-choose-btn.pay-jump-default{background:linear-gradient(180deg,#f0b429,#d4920f);color:#1a1200}
.pay-choose-btn.pay-qr-option{
  background:rgba(255,255,255,.10);color:#fff;
  border:2px solid rgba(255,255,255,.55);
  box-shadow:0 4px 14px rgba(0,0,0,.2);
}
.pay-choose-btn.pay-qr-option:active,.pay-choose-btn:active{transform:scale(.98)}
.pay-choose-tip,.pay-jumping-note{margin:0;font-size:12px;line-height:1.55;text-align:center;opacity:.9}
.pay-qr-panel{
  display:flex;flex-direction:column;align-items:center;gap:12px;
  width:100%;max-width:340px;margin:8px auto 0;padding:16px 12px;
  border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);
}
.pay-qr-panel[hidden]{display:none!important}
.pay-qr-frame{
  width:220px;height:220px;padding:12px;border-radius:12px;background:#fff;
  display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.pay-qr-frame img,.pay-qr-frame canvas{width:196px!important;height:196px!important;display:block}
.pay-qr-placeholder{color:#666;font-size:13px;text-align:center;padding:20px}
.checkout-qr .checkout-qr-title{font-size:20px;font-weight:800;text-align:center;margin:6px 0 10px}
.checkout-qr .checkout-qr-scan{font-size:14px;text-align:center;margin:0}
.checkout-qr .checkout-qr-order{font-size:12px;text-align:center;margin:10px 0 0;opacity:.8}
.pay-back-choose{width:100%;max-width:340px}


.pay-qr-help{margin:6px 0 0;padding:0 10px;font-size:13px;line-height:1.55;text-align:center;color:rgba(255,220,120,.98);font-weight:600}


/* seek-fix-native-range */
.dl-guide-video-seekui {
  position: relative !important;
  flex: 1 1 auto !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  z-index: 40 !important;
  pointer-events: auto !important;
}
.dl-guide-video-seek {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  touch-action: pan-x !important;
  position: relative !important;
  z-index: 41 !important;
  pointer-events: auto !important;
}
.dl-guide-video-seek:focus { outline: none !important; }
.dl-guide-video-seek::-webkit-slider-runnable-track {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.35) !important;
}
.dl-guide-video-seek::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  margin-top: -7px !important;
  border-radius: 50% !important;
  background: #4ea1ff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 5px rgba(0,0,0,.45) !important;
}
.dl-guide-video-seek::-moz-range-track {
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.35) !important;
  border: 0 !important;
}
.dl-guide-video-seek::-moz-range-thumb {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #4ea1ff !important;
  border: 2px solid #fff !important;
}
.dl-guide-video-bar {
  z-index: 50 !important;
  pointer-events: auto !important;
}
.dl-guide-video-tap {
  bottom: 72px !important;
  z-index: 2 !important;
}
