/* zzzzz.pro landing — visual system ported from the ChatDeck (shadcn) template.
   Loaded after app.css on the public page only. Neutral palette, Inter, pill buttons. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter.woff2") format("woff2");
}

:root {
  --ld-bg: #ffffff;
  --ld-fg: #0a0a0a;
  --ld-primary: #171717;
  --ld-primary-fg: #fafafa;
  --ld-muted: #f5f5f5;
  --ld-muted-fg: #737373;
  --ld-border: #e5e5e5;
  --ld-ring: #a3a3a3;
  --ld-radius: 10px;
  --ld-font: "Inter", "PingFang SC", "Microsoft YaHei UI", system-ui, -apple-system, sans-serif;
  --ink: var(--ld-fg);
  --muted: var(--ld-muted-fg);
  --green: var(--ld-primary);
  --green-dark: #000;
  --green-soft: var(--ld-muted);
  --soft-line: var(--ld-border);
  --line: var(--ld-border);
  --bg: var(--ld-bg);
}

/* ===== Auto-generated: every app.css public rule that used greenish colours, re-mapped to the neutral palette ===== */
/* The public shell follows the original flower template: quiet green surface, pink title accent, and no extra hero copy. */
.public-bookmark-button:hover { border-color: #e5e5e5; background: #fafafa; }
.token-guide-check { border: 1px solid #e5e5e5; }

.public-result-card { border: 1px solid #e5e5e5; }
/* 提示条必须压在所有弹窗之上（邀请弹窗 90、充值成功 112、支付弹窗 1000 都带遮罩和模糊，原来的 z-index:50 会被盖住） */
.public-message { z-index: 10050; border: 1px solid rgba(0,0,0,0.09); background: #fafafa; }
.public-plan-button:focus-visible { outline: 3px solid rgba(0,0,0,0.13); }
/* Public recharge credential flow: preserve the existing green floral design. */

.public-payment-method:has(input:focus-visible) { outline: 2px solid rgba(0,0,0,0.17); }
.public-payment-method:hover { border-color: #e5e5e5; }
.public-payment-method > i { border: 1px solid #e5e5e5; }
.public-code-checkbox { border: 1px solid #e5e5e5; }
.public-code-toggle:hover .public-code-checkbox { border-color: #171717; }
.public-code-toggle:has(input:checked) .public-code-checkbox { box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.public-code-toggle:has(input:focus-visible) .public-code-checkbox { outline: 2px solid rgba(0,0,0,0.21); }
.public-card-credential .public-input { box-shadow: inset 0 1px 2px rgba(0,0,0,0.03); }
.public-card-credential .public-input:hover { border-color: #e5e5e5; }
.public-card-credential .public-input:focus { box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.public-token-payment-section { border-top: 1px solid #e5e5e5; }
.public-wechat-qr { border: 1px solid rgba(0,0,0,0.13); background: linear-gradient(180deg,#fafafa,#fff); }
.public-wechat-qr-minimize { color: #171717; }
.public-wechat-account-confirm { border-bottom: 1px solid #e5e5e5; }
.public-wechat-qr-frame { border: 1px solid #e5e5e5; box-shadow: 0 10px 26px rgba(0,0,0,0.05); }
.public-wechat-qr-frame > button { border: 1px solid #e5e5e5; }
/* 手机端「打开微信支付」：可点击时黑底白字；准备中/禁用时浅灰底深灰字（原先浅灰底白字，像禁用且看不清） */
.public-wechat-qr .public-wechat-mobile-pay { background: #333; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
.public-wechat-qr .public-wechat-mobile-pay:hover:not(:disabled) { background: #262626; }
.public-wechat-qr .public-wechat-mobile-pay:disabled,
.public-wechat-qr .public-wechat-mobile-pay[data-state="preparing"],
.public-wechat-qr .public-wechat-mobile-pay[data-state="opening"] { background: #e5e5e5; color: #6b7280; opacity: 1; box-shadow: none; }
.public-wechat-qr .public-wechat-mobile-pay[data-state="preparing"]::after,
.public-wechat-qr .public-wechat-mobile-pay[data-state="opening"]::after { border-color: rgba(107,114,128,0.35); border-top-color: #6b7280; }
.public-wechat-progress-button:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.15); }
.public-wechat-progress-button:focus-visible { outline: 3px solid rgba(0,0,0,0.13); }
.public-result-timeline li { border-left: 2px solid #e5e5e5; }
.public-result-timeline li::before { box-shadow: 0 0 0 1px #f5f5f5; }
.public-query-result { border-top: 1px solid #e5e5e5; }
.public-query-filters { border: 1px solid #e5e5e5; }
.public-query-filters button[data-active="true"] { box-shadow: 0 3px 10px rgba(0,0,0,0.10); }
.public-query-table-scroll:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,0,0.12); }
.public-query-table th, .public-query-table td { border-bottom: 1px solid #e5e5e5; }
@media (max-width:1100px) {
#query-result .public-task-table tr { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
#query-result .public-task-table td[data-label] { border-bottom: 1px solid #e5e5e5; }
}
@media (max-width: 700px) {
#query-result .public-task-table tr { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
#query-result .public-task-table td[data-label] { border-bottom: 1px solid #e5e5e5; }
}

.referral-entry { border: 1px solid #e5e5e5; background: linear-gradient(135deg,#fafafa 0%,#fff 72%); }

.referral-table-scroll { border: 1px solid #e5e5e5; }
.referral-table code { color: #171717; }
.referral-result[data-status="eligible"] { color: #15803d; background: #dcfce7; }
.referral-result[data-status="ineligible"] { color: #b45309; background: #fef3c7; }

.public-faq-categories button:focus-visible,.public-faq-item summary:focus-visible { outline: 2px solid rgba(0,0,0,0.17); }
.public-faq-list { border-top: 1px solid #e5e5e5; }
.public-faq-item { border-bottom: 1px solid #e5e5e5; }
.public-faq-item summary b { color: #171717; }
.public-faq-item summary i { background: #fafafa; }
.public-faq-item summary i::before,.public-faq-item summary i::after { background: #171717; }
.public-faq-contact { border: 1px solid #e5e5e5; background: linear-gradient(135deg,#fafafa,#fff); }
@media (max-width:760px) {
.public-faq-categories button { border: 1px solid #e5e5e5; }
.public-faq-categories button[data-active="true"] { border-color: #e5e5e5; }
}
.public-bookmark-dialog { border: 1px solid #e5e5e5; box-shadow: 0 18px 46px rgba(0,0,0,0.11); }
.public-bookmark-popover[data-placement="bottom"] .public-bookmark-dialog::before,.public-bookmark-popover[data-placement="top"] .public-bookmark-dialog::before { border-left: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; }
.public-bookmark-close { color: #171717; }
.public-bookmark-close:hover { color: #171717; background: #fafafa; }
.public-bookmark-close:focus-visible { outline: 2px solid rgba(0,0,0,0.30); }
.public-bookmark-popover-heading > span { color: #171717; background: #fafafa; }
.public-bookmark-shortcuts > div { border: 1px solid #e5e5e5; }
.public-bookmark-shortcuts kbd { border: 1px solid #e5e5e5; box-shadow: 0 2px 0 rgba(0,0,0,0.03); }
.public-bookmark-shortcuts i { color: #171717; }
/* Floating support entry and contact popover */
.public-support-fab:hover:not([data-dragging="true"]) { background: #171717; box-shadow: 0 15px 36px rgba(0,0,0,0.18); }
.public-support-fab:focus-visible { outline: 3px solid rgba(0,0,0,0.15); }
.public-support-dialog { border: 1px solid #e5e5e5; background: linear-gradient(180deg,#fafafa 0,#fff 38%); box-shadow: 0 22px 58px rgba(0,0,0,0.13); }
.public-support-popover::before { border-left: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5; }
.public-support-close { color: #171717; }
.public-support-close:hover { color: #171717; background: #fafafa; }
.public-support-close:focus-visible { outline: 2px solid rgba(0,0,0,0.30); }
.public-support-kicker { color: #171717; }
.public-support-image-frame { border: 1px solid #e5e5e5; }
.public-support-copy:hover { background: #171717; box-shadow: 0 13px 28px rgba(0,0,0,0.13); }
.public-support-copy:focus-visible { outline: 3px solid rgba(0,0,0,0.13); }
@media (max-width:760px) {
body:has(.public-route-stage[data-step="2"]) .public-support-fab { box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
}

.referral-title-reward-range { color: #171717; }
.referral-hero-actions .public-primary-button { box-shadow: 0 12px 28px rgba(0,0,0,0.12); }
.referral-hero-actions .public-primary-button:hover { box-shadow: 0 16px 34px rgba(0,0,0,0.15); }
.referral-secondary-button:hover { border-color: #171717; color: #171717; }
.referral-text-button { border-bottom: 1px solid #171717; color: #171717; }
.referral-text-button:hover { color: #171717; border-color: #171717; }
.referral-how { border-top: 1px solid rgba(0,0,0,0.07); border-bottom: 1px solid rgba(0,0,0,0.07); }
.referral-how > div > b { color: #171717; }
.referral-how > i { background: linear-gradient(90deg,#f5f5f5,#e5e5e5); }

.referral-workspace { border-top: 1px solid #e5e5e5; }

.referral-link-section { border-bottom: 1px solid #e5e5e5; }

.referral-link-focus > div { border: 1px solid #e5e5e5; }
.referral-link-focus button { background: #171717; }

.referral-workspace .referral-table-scroll { border-top: 1px solid #e5e5e5; }
.referral-reward-dialog { border: 1px solid #e5e5e5; box-shadow: 0 30px 90px rgba(0,0,0,0.17); }

.referral-reward-dialog > strong { color: #171717; }
.referral-reward-code { border: 1px solid #e5e5e5; }
.referral-reward-code button { background: #171717; }
.recharge-success-dialog { border: 1px solid #e5e5e5; box-shadow: 0 30px 90px rgba(0,0,0,0.17); }
.recharge-success-dialog img { border: 1px solid #e5e5e5; }
.referral-modal-backdrop { background: rgba(0,0,0,0.32); }
.referral-modal { border: 1px solid #e5e5e5; box-shadow: 0 28px 80px rgba(0,0,0,0.13); }
.referral-modal-close { color: #171717; }
.referral-modal-symbol { background: #171717; }
.referral-modal-symbol--search { color: #171717; background: #fafafa; }
.referral-modal > small { color: #171717; }
@media (max-width:760px) {
.referral-how > i { background: #e5e5e5; }
}
/* Compact, lighter recharge flow on phones. Desktop sizing remains unchanged. */
.public-route-stage[data-step="2"] .wizard-step[data-active="true"] .wizard-step-dot { box-shadow: 0 0 0 4px rgba(0,0,0,0.04); border-color: #e5e5e5; box-shadow: 0 2px 7px rgba(0,0,0,0.03); }
/* iPhone SE and other short phones: keep the complete Token workflow within one calm viewport. */
.public-route-stage[data-step="2"][data-step] .wizard-step[data-active="true"] .wizard-step-dot { box-shadow: 0 0 0 4px rgba(0,0,0,0.04); }
/* ===== end auto-generated ===== */

html { scroll-behavior: smooth; }
body,
body.public-site-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--ld-fg);
  background: var(--ld-bg);
  font-family: var(--ld-font);
  -webkit-font-smoothing: antialiased;
}
.public-site-shell { background: var(--ld-bg); }
.public-site-shell * { font-family: inherit; }

/* ---------- Layout container ---------- */

.public-route-stage {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 110px;
}
.public-stage { width: 100%; }
.public-stage--query,
#referral-view,
#faq-view { max-width: 880px; margin-left: auto; margin-right: auto; }
.public-route-stage:not([data-step="1"]) .public-card { max-width: 760px; margin-left: auto; margin-right: auto; }
.public-route-stage:not([data-step="1"]) .landing-only { display: none; }

/* ---------- Navbar: fixed, becomes a frosted pill on scroll ---------- */

.public-oss-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 8px 8px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* app.css 给整条顶栏加了 backdrop-filter: blur(12px)，会把胶囊两侧整条带子都糊掉；只要胶囊本身，不要整条毛玻璃。 */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.public-oss-header-inner { pointer-events: auto; }
.public-oss-header-inner {
  width: min(1152px, 100%);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: max-width .3s ease, width .3s ease, background .3s ease, border-color .3s ease, padding .3s ease;
}
.public-oss-header[data-scrolled="true"] .public-oss-header-inner {
  width: min(896px, 100%);
  padding: 6px 12px 6px 20px;
  background: rgba(255, 255, 255, .6);
  border-color: var(--ld-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.public-header-brand-actions { display: flex; align-items: center; gap: 10px; }
.public-oss-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ld-fg); }
.landing-logo {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--ld-primary); color: #fff;
}
.landing-logo svg { width: 22px; height: 22px; }
.public-oss-brand .public-flower-logo { display: none; }
.public-oss-brand-copy strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.public-oss-brand-copy small { display: none; }
.public-bookmark-button {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--ld-border); border-radius: 999px;
  background: #fff; color: var(--ld-muted-fg); font-size: 13px; font-weight: 500;
}
.public-bookmark-button:hover { color: var(--ld-fg); background: var(--ld-muted); }
.public-oss-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.public-oss-nav-link {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--ld-muted-fg); font-size: 15px; font-weight: 500; transition: color .15s ease, background .15s ease;
}
.public-oss-nav-link:hover { color: var(--ld-fg); }
.public-oss-nav-cta {
  margin-left: 8px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--ld-primary); color: var(--ld-primary-fg); font-size: 14px; font-weight: 600;
  transition: background .15s ease, transform .1s ease;
}
.public-oss-nav-cta:hover { background: #000; }
.public-oss-nav-cta:active { transform: translateY(1px); }
.public-mobile-menu-button { display: none; }

/* ---------- Buttons & inputs (site-wide) ---------- */

.public-primary-button, .public-plan-button--primary {
  border: 1px solid transparent; border-radius: 999px; background: var(--ld-primary); color: var(--ld-primary-fg);
  font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: background .15s ease, transform .1s ease;
}
.public-primary-button:hover, .public-plan-button--primary:hover { background: #000; }
.public-primary-button:active { transform: translateY(1px); }
.public-ghost-button, .public-plan-button, .public-card-query-shortcut, .referral-secondary-button, .public-link,
.public-query-copy, .public-support-copy, .public-wechat-progress-button, .token-guide-tutorial-button, .public-local-preview-button {
  border: 1px solid var(--ld-border); border-radius: 999px; background: #fff; color: var(--ld-fg); font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: background .15s ease;
}
.public-ghost-button:hover, .public-plan-button:hover, .public-card-query-shortcut:hover, .referral-secondary-button:hover { background: var(--ld-muted); }
.public-input, .public-site-shell input[type="text"], .public-site-shell input[type="email"], .public-site-shell textarea {
  border: 1px solid var(--ld-border); border-radius: var(--ld-radius); background: #fff; color: var(--ld-fg);
  box-shadow: none; font-family: inherit;
}
.public-input:focus, .public-site-shell input:focus, .public-site-shell textarea:focus {
  outline: none; border-color: var(--ld-ring); box-shadow: 0 0 0 3px rgba(163,163,163,.3);
}
.landing-text-link { border: 0; background: transparent; color: var(--ld-fg); font-weight: 600; font-size: 15px; padding: 10px 4px; cursor: pointer; }
.landing-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Shimmer (hero) button */
.landing-shimmer {
  --spread: 90deg; --shimmer: #ffffff; --speed: 3s; --cut: .05em; --bgc: #000;
  position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 14px 32px; border: 1px solid rgba(255,255,255,.1); border-radius: 100px;
  background: var(--bgc); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transform: translateZ(0); transition: transform .3s ease;
}
.landing-shimmer:active { transform: translateY(1px); }
.landing-shimmer::before {
  content: ""; position: absolute; inset: 0; z-index: -3; filter: blur(2px); container-type: size;
  background: none;
}
.landing-shimmer > span { position: relative; z-index: 1; }
.landing-shimmer::after {
  content: ""; position: absolute; inset: var(--cut); z-index: -2; border-radius: 100px; background: var(--bgc);
}

@keyframes ld-shimmer-slide { to { transform: translate(calc(100cqw - 100%), 0); } }
/* One continuous turn (no pauses at the sides), 4 s per lap */
@keyframes ld-spin-around { from { transform: translateZ(0) rotate(0); } to { transform: translateZ(0) rotate(360deg); } }
.landing-shimmer { box-shadow: inset 0 -8px 10px rgba(255,255,255,.12); }
.landing-shimmer:hover { box-shadow: inset 0 -6px 10px rgba(255,255,255,.25); }
/* glow sweep implemented with a rotating conic gradient behind the cut-out */
.landing-shimmer::before {
  background: conic-gradient(from calc(270deg - (var(--spread) * .5)), transparent 0, var(--shimmer) var(--spread), transparent var(--spread));
  inset: -100%; width: auto; animation: ld-spin-around 4s infinite linear; will-change: transform;
}

/* ---------- Badges & section headers ---------- */

.landing-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--ld-border);
  border-radius: 999px; background: #fff; color: var(--ld-fg); font-size: 14px; font-weight: 500;
}
.landing-section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.landing-section-head .landing-badge { margin-bottom: 16px; }
.landing-section-head h2, .landing-section-head .public-plan-page-title {
  margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--ld-fg);
}
.landing-section-head p { margin: 0; color: var(--ld-muted-fg); font-size: 17px; line-height: 1.6; }

/* ---------- Hero ---------- */

.landing-hero { text-align: center; padding: 30px 0 40px; }
.landing-title {
  margin: 28px auto 0; max-width: 900px; font-size: clamp(34px, 6vw, 64px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.08; color: var(--ld-fg);
}
.landing-subtitle { margin: 22px auto 0; max-width: 720px; font-size: 18px; line-height: 1.7; color: var(--ld-muted-fg); }
.landing-hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 48px; flex-wrap: wrap; }
.landing-video { max-width: 1040px; margin: 0 auto; }
.landing-video-thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--ld-border); border-radius: 12px;
  overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.landing-video-thumb video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .2s ease; }
.landing-video-thumb:hover video { filter: brightness(.8); }
.landing-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: scale(.9); transition: transform .2s ease;
}
.landing-video-thumb:hover .landing-play { transform: scale(1); }
.landing-play::before {
  content: ""; position: absolute; width: 112px; height: 112px; border-radius: 50%; background: rgba(23,23,23,.1); backdrop-filter: blur(8px);
}
.landing-play i {
  position: relative; width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(23,23,23,.4), #171717); box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s ease;
}
.landing-video-thumb:hover .landing-play i { transform: scale(1.15); }
.landing-play i::after { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }

/* ---------- Home card / wizard ---------- */

.public-home-brand-title { display: none; }
.public-route-stage:not([data-step="1"]) .public-home-brand-title { display: block; }
.wizard-steps { justify-content: center; }
.wizard-step { color: var(--ld-muted-fg); }
.wizard-step[data-active="true"] { color: var(--ld-fg); }
.wizard-step-dot { background: var(--ld-muted); color: var(--ld-muted-fg); border: 1px solid var(--ld-border); }
.wizard-step[data-active="true"] .wizard-step-dot { background: var(--ld-primary); color: #fff; border-color: var(--ld-primary); }
.public-route-stage[data-step="1"] .public-card { border: 0; box-shadow: none; background: transparent; }
.public-route-stage[data-step="1"] .public-card-header { display: none; }
.public-route-stage[data-step="1"] .public-card-footer { display: none; }
.public-route-stage[data-step="1"] .public-card-body { padding: 0; }

/* ---------- Pricing (plans) ---------- */

.wizard-panel--plans { padding: 80px 0 40px; }
.public-plan-grid { gap: 16px; align-items: stretch; }
.public-plan-card {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--ld-border);
  border-radius: 14px; background: var(--ld-muted); box-shadow: none; transform: none; transition: transform .2s ease, box-shadow .2s ease;
}
.public-plan-card--recommended {
  background: #fff; border-color: transparent; box-shadow: 0 20px 50px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.08);
  transform: translateY(-6px);
}
.public-plan-card-top { display: flex; align-items: center; justify-content: space-between; }
.public-plan-name { font-size: 18px; font-weight: 600; color: var(--ld-fg); letter-spacing: -.01em; }

.public-plan-description { margin: 0; color: var(--ld-muted-fg); font-size: 14px; line-height: 1.6; }
.public-plan-price { display: flex; align-items: baseline; gap: 4px; color: var(--ld-fg); }
.public-plan-price sup { font-size: 18px; font-weight: 600; }
.public-plan-price strong { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.public-plan-price span { color: var(--ld-muted-fg); font-size: 14px; }
.public-plan-button { width: 100%; min-height: 40px; }
.public-plan-card--recommended .public-plan-button { background: var(--ld-primary); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.public-plan-features h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ld-fg); }
.public-plan-features ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.public-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ld-fg); }
.public-plan-features li svg { width: 16px; height: 16px; color: var(--ld-muted-fg); flex: 0 0 auto; }
.public-plan-note { margin: auto 0 0; color: var(--ld-muted-fg); font-size: 12px; }
.public-plan-card-top > :not(.public-plan-name) {
  padding: 3px 10px; border: 0; border-radius: 999px; background: var(--ld-primary); color: #fff; font-size: 12px; font-weight: 600;
}

/* ---------- Feature grid ---------- */

.landing-features { padding: 60px 0 40px; }
#plans-section, #features, #testimonials, #faq-preview { scroll-margin-top: 90px; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-feature {
  position: relative; padding: 40px 40px; border-right: 1px solid var(--ld-border); overflow: hidden;
}
.landing-feature:nth-child(3n) { border-right: 0; }
.landing-feature:nth-child(-n+3) { border-bottom: 1px solid var(--ld-border); }
.landing-feature::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; pointer-events: none;
  background: linear-gradient(to top, #f5f5f5, transparent);
}
.landing-feature:nth-child(n+4)::before { background: linear-gradient(to bottom, #f5f5f5, transparent); }
.landing-feature:hover::before { opacity: 1; }
.landing-feature::after {
  content: ""; position: absolute; left: 0; top: 96px; width: 4px; height: 24px; border-radius: 0 4px 4px 0;
  background: #d4d4d4; transition: height .2s ease, background .2s ease;
}
.landing-feature:hover::after { height: 32px; background: var(--ld-primary); }
.landing-feature-icon { position: relative; color: var(--ld-muted-fg); transition: color .2s ease, transform .2s ease; margin-bottom: 16px; }
.landing-feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.landing-feature:hover .landing-feature-icon { color: var(--ld-primary); transform: scale(1.02); }
.landing-feature h3 { position: relative; margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--ld-fg); transition: transform .2s ease; display: inline-block; }
.landing-feature p { position: relative; margin: 0; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--ld-muted-fg); }

/* ---------- Testimonials marquee ---------- */

.landing-testimonials { padding: 60px 0; }
.landing-marquee-wrap { position: relative; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.landing-marquee-wrap::before, .landing-marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 2; pointer-events: none;
}
.landing-marquee-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.landing-marquee-wrap::after { right: 0; background: linear-gradient(to left, #fff, transparent); }
.landing-marquee { display: flex; gap: 16px; width: 100%; overflow: hidden; padding: 8px 0; }
.landing-marquee-track { display: flex; flex: 0 0 auto; gap: 16px; animation: ld-marquee 45s linear infinite; }
.landing-marquee--reverse .landing-marquee-track { animation-direction: reverse; }
.landing-marquee:hover .landing-marquee-track { animation-play-state: paused; }
@keyframes ld-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 16px)); } }
.landing-review {
  width: 300px; margin: 0; padding: 16px; border: 1px solid rgba(10,10,10,.1); border-radius: 12px; background: rgba(245,245,245,.5);
}
.landing-review-head { display: flex; align-items: center; gap: 10px; }
.landing-avatar {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ld-primary); color: #fff; font-weight: 700; font-size: 15px;
}
.landing-review-head b { display: block; font-size: 14px; font-weight: 600; }
.landing-review-head small { color: var(--ld-muted-fg); font-size: 12px; }
.landing-review blockquote { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--ld-fg); }

/* ---------- FAQ preview ---------- */

.landing-faq { padding: 60px 0 40px; }
.landing-faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--ld-border); }
.landing-faq-item { border-bottom: 1px solid var(--ld-border); }
.landing-faq-item summary {
  display: flex; align-items: center; gap: 16px; padding: 18px 4px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ld-fg);
}
.landing-faq-item summary::-webkit-details-marker { display: none; }
.landing-faq-item summary i {
  position: relative; margin-left: auto; width: 16px; height: 16px; flex: 0 0 auto; transition: transform .2s ease;
}
.landing-faq-item summary i::before, .landing-faq-item summary i::after {
  content: ""; position: absolute; background: var(--ld-muted-fg); left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.landing-faq-item summary i::before { width: 16px; height: 2px; }
.landing-faq-item summary i::after { width: 2px; height: 16px; }
.landing-faq-item[open] summary i { transform: rotate(45deg); }
.landing-faq-item > div { padding: 0 4px 20px; color: var(--ld-muted-fg); font-size: 15px; line-height: 1.7; }
.landing-faq-more { text-align: center; margin-top: 20px; }

/* ---------- Reveal on scroll ---------- */

[data-reveal] { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; } [data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; } [data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .landing-marquee-track { animation: none; }
  .landing-shimmer::before { animation: none; }
}

/* ---------- Other pages (query / referral / FAQ) & dialogs: neutralise colours ---------- */

.public-page-title h1, #referral-page-title, .public-faq-hero h1 { color: var(--ld-fg); letter-spacing: -.02em; }
.public-faq-hero span { color: var(--ld-muted-fg); }
.public-faq-item { border-color: var(--ld-border); }
.public-support-fab { background: var(--ld-primary); color: #fff; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.public-support-dialog, .public-bookmark-dialog, .recharge-success-dialog, .referral-reward-dialog, .video-guide-dialog { border-color: var(--ld-border); border-radius: 16px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-feature:nth-child(3n) { border-right: 1px solid var(--ld-border); }
  .landing-feature:nth-child(2n) { border-right: 0; }
  .landing-feature:nth-child(-n+3) { border-bottom: 0; }
  .landing-feature:nth-child(-n+4) { border-bottom: 1px solid var(--ld-border); }
  .landing-feature::after { top: 88px; }
}

@media (max-width: 860px) {
  .public-route-stage { width: calc(100% - 32px); padding-top: 90px; }
  .public-oss-header { padding: 8px 8px 0; }
  .public-oss-header-inner { padding: 6px 14px; flex-wrap: wrap; gap: 8px; background: rgba(255,255,255,.7); border-color: var(--ld-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 24px; }
  .public-oss-header[data-scrolled="true"] .public-oss-header-inner { width: 100%; padding: 6px 14px; }
  .public-header-brand-actions { flex: 1 1 auto; }
  .public-bookmark-button { display: none; }
  .public-mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: transparent; }
  .public-oss-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 6px; padding: 12px;
    border: 1px solid var(--ld-border); border-radius: 20px; background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,.12);
  }
  .public-oss-nav[data-open="true"] { display: flex; }
  .public-oss-nav-link { text-align: left; min-height: 42px; font-size: 16px; }
  .public-oss-nav-cta { margin: 6px 0 0; min-height: 44px; font-size: 15px; }
  .landing-hero { padding: 10px 0 24px; }
  .landing-title { font-size: clamp(30px, 9vw, 42px); margin-top: 20px; }
  .landing-subtitle { font-size: 16px; }
  .landing-hero-actions { margin: 22px 0 32px; }
  .landing-shimmer { width: 100%; }
  .landing-play::before { width: 72px; height: 72px; }
  .landing-play i { width: 52px; height: 52px; }
  .landing-play i::after { border-width: 9px 0 9px 15px; margin-left: 4px; }
  .wizard-panel--plans { padding: 48px 0 24px; }
  .public-plan-grid { grid-template-columns: 1fr; gap: 12px; }
  .landing-section-head { margin-bottom: 24px; }
  .landing-section-head h2, .landing-section-head .public-plan-page-title { font-size: 26px; }
  .landing-section-head p { font-size: 15px; }
  .landing-features, .landing-testimonials, .landing-faq { padding: 40px 0 16px; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-feature { border-right: 0 !important; border-bottom: 1px solid var(--ld-border) !important; padding: 24px 20px; }
  .landing-feature:last-child { border-bottom: 0 !important; }
  .landing-feature::after { top: 80px; }
  .landing-review { width: 260px; }
  .public-route-stage:not([data-step="1"]) .public-card { max-width: none; }
}

/* ---------- Neutralise remaining brand-green states ---------- */

.wizard-steps::before, .wizard-step::before, .wizard-step::after { background: var(--ld-border) !important; }
.public-site-shell input[type="checkbox"], .public-site-shell input[type="radio"] { accent-color: var(--ld-primary); }

.wizard-step[data-completed="true"] { color: var(--ld-fg); }
.wizard-step[data-completed="true"] .wizard-step-dot { border-color: var(--ld-primary); color: #fff; background: var(--ld-primary); }
.wizard-step[data-active="true"] .wizard-step-dot { box-shadow: 0 0 0 4px rgba(0,0,0,.08) !important; }

/* Hamburger icon */
@media (max-width: 860px) {
  .public-mobile-menu-button { position: relative; }
  .public-mobile-menu-button span,
  .public-mobile-menu-button span::before,
  .public-mobile-menu-button span::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ld-fg); transition: transform .2s ease, opacity .2s ease;
  }
  .public-mobile-menu-button span { position: relative; }
  .public-mobile-menu-button span::before, .public-mobile-menu-button span::after { content: ""; position: absolute; left: 0; }
  .public-mobile-menu-button span::before { top: -6px; }
  .public-mobile-menu-button span::after { top: 6px; }
  .public-mobile-menu-button[aria-expanded="true"] span { background: transparent; }
  .public-mobile-menu-button[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .public-mobile-menu-button[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Round 2 fixes: original wizard layout, compact spacing, plans width ---------- */
.public-stage { padding-top: 0 !important; padding-bottom: 40px !important; min-height: 0; }
.public-route-stage { padding-top: 96px; min-height: 0; }
.public-route-stage[data-step="1"] .public-card,
.public-route-stage[data-step="1"] .public-card-body,
.public-route-stage[data-step="1"] .public-card-footer,
.wizard-panel--plans { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.public-route-stage:not([data-step="1"]) .public-card { border: 0; background: transparent; box-shadow: none; }
.public-card-header { display: grid; justify-items: center; align-items: center; padding: 0 0 14px !important; border: 0; }
.wizard-steps { width: min(720px, 100%); margin: 0 auto !important; }
.public-card-footer { border: 0; background: transparent; }
.wizard-panel { border: 1px solid var(--ld-border); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wizard-panel--plans { border: 0; background: transparent; box-shadow: none; }
.public-payment-method:has(input:checked) { border-color: var(--ld-primary) !important; box-shadow: none !important; background: #fff !important; }
.public-payment-method--alipay:has(input:checked) { border-color: var(--ld-primary) !important; }
.public-code-checkbox, .public-code-toggle:has(input:checked) { box-shadow: none !important; outline: none !important; }
.public-code-toggle { border: 0 !important; }
.public-oss-nav-link[data-current="true"] { color: var(--ld-fg); background: var(--ld-muted); }

/* ---------- FAQ category list: original layout, neutral colours ---------- */
.public-faq-categories button { border-left: 3px solid transparent; border-radius: 0 9px 9px 0; color: #737373; background: transparent; }
.public-faq-categories button:hover { color: var(--ld-fg); background: #fafafa; }
.public-faq-categories button[data-active="true"] { color: var(--ld-fg); border-left-color: var(--ld-primary); background: var(--ld-muted); }

/* ---------- Step 2/3: original sizes, just no dead space above the steps ---------- */
.public-route-stage:not([data-step="1"]) .public-stage { padding-bottom: 24px !important; }
.public-route-stage:not([data-step="1"]) .public-card-header { padding: 0 0 16px !important; }


/* Pricing cards: rows aligned across cards (subgrid) */
.public-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; align-items: stretch; }
.public-plan-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; align-content: start; row-gap: 10px; }
.public-plan-card > * { margin: 0; }
.public-plan-card .public-plan-features { align-self: start; }
.public-plan-card .public-plan-note { align-self: end; }
@media (max-width: 860px) {
  .public-plan-grid { grid-template-columns: 1fr; }
  .public-plan-card { grid-template-rows: auto; grid-row: auto; }
}
.public-query-filters { background: #f5f5f5 !important; border-color: #e5e5e5 !important; }

/* Query page: wider card, centred placeholder, neutral table header */
.public-stage--query { max-width: 1120px; }
.public-card--query { width: 100%; }
.public-query-input { height: 56px; min-height: 56px; padding: 0 18px; line-height: 56px; }
.public-query-input:not(:placeholder-shown) { padding: 15px 18px; font-size: 16px; line-height: 24px; }
.public-query-input::placeholder { font-size: 14px; line-height: 56px; }
.public-task-table th, .public-task-table thead, .public-query-table th, #query-result th { background: #f5f5f5 !important; color: #525252 !important; border-color: #e5e5e5 !important; }
.public-task-table tr:hover td, #query-result tr:hover td, #query-result tr:active td, #query-result td:active { background: transparent !important; }
.referral-lead { white-space: nowrap; }
@media (max-width: 860px) { .referral-lead { white-space: normal; } }
.public-plan-card--recommended { transform: none; }
#plans-section { scroll-margin-top: 70px; }
#plans-title { scroll-margin-top: 104px; }

/* Step 2: phone field + moderate compaction */
.public-field--phone > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ld-fg); }
.public-input--phone { width: 100%; max-width: 360px; min-height: 44px; padding: 0 14px; font-size: 15px; letter-spacing: .02em; }
#phone-error { min-height: 0; margin: 4px 0 0; }
.public-route-stage:not([data-step="1"]) { padding-top: 90px; }
.public-route-stage[data-step="2"] .wizard-panel { padding: 22px 26px 8px !important; }
.public-route-stage[data-step="2"] .token-guide { gap: 12px !important; margin: 12px 0 !important; }
.public-route-stage[data-step="2"] .public-field--token { margin-top: 12px !important; }
.public-route-stage[data-step="2"] .public-input--token { height: 112px !important; min-height: 112px !important; max-height: 150px !important; }
.public-route-stage[data-step="2"] .public-payment-methods { gap: 6px !important; }
.public-route-stage[data-step="2"] .public-payment-method { min-height: 52px !important; padding: 6px 12px !important; }
.public-route-stage:is([data-step="2"],[data-step="3"]) .public-card-footer { margin-top: 10px !important; }
/* Referral page: breathing room under the navbar */
#referral-view { padding-top: 36px !important; }
#referral-view #referral-page-title { margin-top: 0; }
.landing-hero { padding-bottom: 20px; }
.wizard-panel--plans { padding-top: 36px; }
@media (max-width: 860px) { .wizard-panel--plans { padding-top: 28px; } }
.public-field--phone { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.public-field--phone > span { margin: 0; white-space: nowrap; }
.public-input--phone { flex: 0 1 260px; width: auto; }
@media (max-width: 600px) { .public-field--phone { flex-direction: column; align-items: stretch; gap: 6px; } .public-input--phone { flex: 1 1 auto; width: 100%; max-width: none; } }
/* Feature grid: centred content, no side accent bar */
.landing-feature { text-align: center; padding: 40px 32px; }
.landing-feature::after { display: none; }
.landing-feature-icon { display: flex; justify-content: center; }
.landing-feature h3 { display: block; }
.landing-feature:hover h3 { transform: none; }
.landing-feature p { margin: 0 auto; max-width: 340px; }
/* Phone row: tighter vertical rhythm */
.public-route-stage[data-step="2"] #token-error { min-height: 0 !important; margin: 0 !important; transform: none !important; }
.public-route-stage[data-step="2"] #token-error:empty { display: none; }
.public-field--phone { margin-top: 6px !important; }
.public-input--phone { min-height: 40px; }
#phone-error:empty { display: none; }
.public-route-stage[data-step="2"] .public-token-payment-section { margin-top: 2px !important; padding-top: 0 !important; }
.public-route-stage[data-step="2"] .public-payment-methods legend { margin-top: 4px; }
.landing-subtitle { max-width: none; }
@media (min-width: 1100px) { .landing-subtitle { white-space: nowrap; } }

/* ===== 全部商品 ===== */
.landing-products.public-stage { width: min(1100px, 100%); margin: 0 auto; padding-top: 48px; }
.landing-products .landing-section-head { margin-bottom: 28px; }
.landing-products .landing-section-head h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -.03em; color: var(--ld-fg); }
.landing-products .landing-section-head p { margin: 0; color: var(--ld-muted-fg); font-size: 16px; }
.landing-product-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.landing-product-categories button { min-height: 36px; padding: 0 16px; border: 1px solid var(--ld-border); border-radius: 999px; background: #fff; color: var(--ld-muted-fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.landing-product-categories button:hover { color: var(--ld-fg); background: var(--ld-muted); }
.landing-product-categories button[data-active="true"] { color: var(--ld-primary-fg); background: var(--ld-primary); border-color: var(--ld-primary); }
.landing-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.landing-product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ld-border); border-radius: 14px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.landing-product-card:hover { transform: translateY(-3px); border-color: #d4d4d4; box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.landing-product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ld-muted); }
.landing-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-product-media[data-placeholder="true"] { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 18px; background: linear-gradient(135deg, #171717 0%, #404040 100%); color: #fff; }
.landing-product-media[data-placeholder="true"] span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.landing-product-media[data-placeholder="true"] b { margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.landing-product-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.landing-product-body h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ld-fg); }
.landing-product-body p { margin: 0; min-height: 40px; color: var(--ld-muted-fg); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.landing-product-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.landing-product-price { display: flex; align-items: baseline; gap: 2px; color: var(--ld-fg); }
.landing-product-price sup { font-size: 13px; font-weight: 600; }
.landing-product-price strong { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.landing-product-price s { margin-left: 8px; color: var(--ld-muted-fg); font-size: 13px; }
.landing-product-badge { padding: 3px 9px; border: 1px solid var(--ld-border); border-radius: 999px; background: var(--ld-muted); color: var(--ld-fg); font-size: 12px; font-weight: 500; white-space: nowrap; }
.landing-product-buy.public-primary-button { width: 100%; min-height: 42px; margin-top: 6px; box-shadow: none; }
.landing-products-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--ld-muted-fg); }
@media (max-width: 700px) {
  .landing-products.public-stage { padding-top: 28px; }
  .landing-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .landing-product-body { padding: 12px 12px 14px; }
  .landing-product-body p { min-height: 0; }
  .landing-product-price strong { font-size: 21px; }
}

/* ===== Plan buttons: all black, Plus (recommended) blue; plan names on one line ===== */
.public-plan-button { background: var(--ld-primary); color: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.public-plan-button:hover { background: #000; filter: none; }
.public-plan-button--primary, .public-plan-card--recommended .public-plan-button { background: #1685f8; border-color: transparent; box-shadow: 0 6px 16px rgba(22,133,248,.25); }
.public-plan-button--primary:hover, .public-plan-card--recommended .public-plan-button:hover { background: #0f74dd; }
.public-plan-card-top { flex-wrap: nowrap; gap: 8px; }
.public-plan-name { white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.public-plan-card-top > :not(.public-plan-name) { flex: 0 0 auto; white-space: nowrap; }

/* ===== Compact plan cards ===== */
.public-plan-card { min-height: 0; padding: 22px 22px 20px; }
.public-plan-price strong { font-size: 34px; }
.public-plan-card .public-plan-note { margin-top: 2px; }
@media (max-width: 860px) { .public-plan-card { min-height: 0; padding: 20px 18px; } }

/* ===== Price row: "/ 月" sits on the number baseline ===== */
.public-plan-price { min-height: 0; margin: 0; align-items: baseline; }
.public-plan-price sup { align-self: baseline; margin: 0; }
.public-plan-price strong { line-height: 1; }
.public-plan-price span { align-self: baseline; margin: 0 0 0 6px; }
@media (max-width: 860px) { .public-plan-price span { margin: 0 0 0 6px; } }

/* ===== Plan card breathing room: more space between price/button/features ===== */
.public-plan-card { row-gap: 14px; padding: 26px 24px 24px; }
.public-plan-card .public-plan-price { margin-top: 4px; }
.public-plan-card .public-plan-button { margin-top: 4px; }
.public-plan-card .public-plan-features { margin-top: 12px; }
.public-plan-card .public-plan-features ul { gap: 9px; }
.public-plan-card .public-plan-features h3 { margin-bottom: 8px; }
@media (max-width: 860px) { .public-plan-card { padding: 22px 20px; } }

/* ===== Mobile step 2: compact payment pills, inline phone field ===== */
.public-field--phone > span b { font: inherit; }
.public-label-short { display: none; }
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .public-payment-method { min-height: 36px !important; padding: 4px 12px 4px 6px !important; gap: 6px !important; }
  .public-route-stage[data-step="2"] .public-payment-method .public-payment-icon,
  .public-route-stage[data-step="2"] .public-payment-method .public-payment-icon img { width: 22px !important; height: 22px !important; }
  .public-label-full { display: none; }
  .public-label-short { display: inline; }
  .public-field--phone { flex-direction: row !important; align-items: center !important; gap: 10px !important; }
  .public-field--phone > span { flex: 0 0 auto; margin: 0; white-space: nowrap; }
  .public-input--phone { flex: 1 1 auto !important; width: auto !important; max-width: none !important; min-height: 40px; }
}

/* Support FAB: never shrink-to-fit when pinned near the right edge */
.public-support-fab { width: max-content; white-space: nowrap; }
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .public-payment-method { padding: 4px 10px 4px 5px !important; gap: 5px !important; min-width: 0 !important; }
  .public-route-stage[data-step="2"] .public-payment-method strong { font-size: 12px !important; }
  body:has(.public-route-stage[data-step="2"]) .public-support-fab { min-height: 36px; padding: 0 10px !important; gap: 6px !important; font-size: 11.5px; }
  body:has(.public-route-stage[data-step="2"]) .public-support-fab[data-docked="true"] { width: 36px; padding: 0 !important; gap: 0 !important; }
}

/* Mobile nav dropdown: align with the header pill instead of overflowing to the right */
@media (max-width: 860px) {
  .public-oss-nav { position: absolute; top: 100%; left: 0; right: 0; width: auto; margin-top: 6px; }
}

/* ===== Mobile home plans: the same product cards as 全部商品 (server-rendered); desktop keeps the plan cards ===== */
.landing-product-grid--home { display: none; }
@media (max-width: 700px) {
  .public-plan-grid { display: none !important; }
  .landing-product-grid--home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Plus product card: blue 立即充值 button everywhere (home on mobile and 全部商品) */
.landing-product-card[data-plan="plus"] .landing-product-buy.public-primary-button { background: #1685f8; border-color: #1685f8; }
.landing-product-card[data-plan="plus"] .landing-product-buy.public-primary-button:hover { background: #0f74dd; }

/* ===== Mobile feature grid: 2 columns x 3 rows instead of one per row ===== */
@media (max-width: 700px) {
  .landing-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-feature { padding: 22px 12px !important; border-right: 0 !important; border-bottom: 1px solid var(--ld-border) !important; }
  .landing-feature:nth-child(odd) { border-right: 1px solid var(--ld-border) !important; }
  .landing-feature:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .landing-feature-icon { margin-bottom: 10px; }
  .landing-feature-icon svg { width: 22px; height: 22px; }
  .landing-feature h3 { font-size: 15px; margin-bottom: 6px; }
  .landing-feature p { font-size: 12.5px; line-height: 1.55; }
}

/* FAQ: no focus ring box on tapped questions (keyboard users still get a subtle outline) */
.landing-faq-item summary { outline: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent; }
.landing-faq-item summary:focus, .landing-faq-item summary:focus-visible, .landing-faq-item summary:active { outline: none !important; box-shadow: none !important; }
.landing-faq-item summary:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
/* FAQ: no tap highlight / accidental text selection on the question row */
.landing-faq-item, .landing-faq-item summary, .landing-faq-item summary * { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.landing-faq-item summary::selection, .landing-faq-item summary *::selection { background: transparent; }

/* ===== Query result status colours: green = success, yellow = in progress, red = failed ===== */
.public-query-table-status { color: #525252; }
.public-query-table-status::before { background: #a3a3a3; box-shadow: 0 0 0 4px #f5f5f5; }
.public-query-table-status[data-status="completed"] { color: #16a34a !important; }
.public-query-table-status[data-status="completed"]::before { background: #16a34a !important; box-shadow: 0 0 0 4px #dcfce7 !important; }
.public-query-table-status[data-status="processing"], .public-query-table-status[data-status="pending"], .public-query-table-status[data-status="payment_submitted"], .public-query-table-status[data-status="awaiting_token"], .public-query-table-status[data-status="retryable"] { color: #d97706 !important; }
.public-query-table-status[data-status="processing"]::before, .public-query-table-status[data-status="pending"]::before, .public-query-table-status[data-status="payment_submitted"]::before, .public-query-table-status[data-status="awaiting_token"]::before, .public-query-table-status[data-status="retryable"]::before { background: #f59e0b !important; box-shadow: 0 0 0 4px #fef3c7 !important; }
.public-query-table-status[data-status="failed"], .public-query-table-status[data-status="cancelled"], .public-query-table-status[data-status="used"], .public-query-table-status[data-status^="rejected"] { color: #dc2626 !important; }
.public-query-table-status[data-status="failed"]::before, .public-query-table-status[data-status="cancelled"]::before, .public-query-table-status[data-status="used"]::before, .public-query-table-status[data-status^="rejected"]::before { background: #dc2626 !important; box-shadow: 0 0 0 4px #fee2e2 !important; }

/* ===== Scroll performance ===== */
/* 1. No backdrop blur on the sticky header: blur re-renders on every scrolled frame, the main jank source on phones. */
.public-oss-header-inner,
.public-oss-header[data-scrolled="true"] .public-oss-header-inner { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(255,255,255,.96) !important; }
.public-oss-header { will-change: auto; }
.landing-play::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(23,23,23,.14); }
/* 2. CTA glow: the rotating ring runs on phones too (same as desktop); only the blur is dropped. */
.landing-shimmer::before { filter: none; }
/* 3. Marquee: composite on its own layer and stop animating while off-screen. */
.landing-marquee-track { will-change: transform; backface-visibility: hidden; }
.landing-marquee[data-paused="true"] .landing-marquee-track { animation-play-state: paused; }
/* 4. Skip layout/paint work for below-the-fold sections until they approach the viewport. */
.landing-features, .landing-testimonials, .landing-faq { content-visibility: auto; contain-intrinsic-size: auto 640px; }
/* 5. Reveal animation: lighter transform distance and no work after it finishes. */
[data-reveal] { transform: translateY(12px); }
[data-reveal][data-revealed="true"] { will-change: auto; }
@media (max-width: 860px) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .landing-product-card, .public-plan-card, .landing-feature { transition: none; }
}

/* ===== Mobile referral page: bigger title, half the top whitespace ===== */
@media (max-width: 760px) {
  #referral-view { padding-top: 0 !important; }
  .referral-redesign { padding-top: 10px !important; }
  .referral-landing h1 { font-size: clamp(26px, 8vw, 34px) !important; line-height: 1.2 !important; }
}

/* FAQ category list: pinned exactly where it first appears on screen (top is set by landing.js) */
.public-faq-categories { position: sticky; align-self: start; }
@media (max-width: 860px) { .public-faq-categories { position: static !important; top: auto !important; } }

/* ===== Always-present vertical scrollbar: no layout jump when switching pages ===== */
html { overflow-y: scroll; scrollbar-gutter: stable; }
body.public-site-shell { min-height: calc(100vh + 32px); }

/* ===== Product cards: centred text, price + badge on one centred line ===== */
.landing-product-body { align-items: center; text-align: center; }
.landing-product-body h3 { text-align: center; }
.landing-product-body p { text-align: center; }
.landing-product-row { justify-content: center; gap: 12px; margin-top: 6px; }
.landing-product-price { align-items: baseline; }
.landing-product-badge { align-self: center; }



/* ===== View entrance: products and FAQ fade up like the home page ===== */
@keyframes ld-view-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#products-view.is-entering .landing-section-head,
#products-view.is-entering .landing-product-categories,
#faq-view.is-entering .landing-section-head,
#faq-view.is-entering .public-faq-hero { animation: ld-view-enter .55s cubic-bezier(.22,.61,.36,1) both; }
#products-view.is-entering .landing-product-categories { animation-delay: .06s; }
#products-view.is-entering .landing-product-card { animation: ld-view-enter .5s cubic-bezier(.22,.61,.36,1) both; animation-delay: calc(.12s + var(--i, 0) * 45ms); }
#faq-view.is-entering .public-faq-item { animation: ld-view-enter .45s cubic-bezier(.22,.61,.36,1) both; }
#faq-view.is-entering .public-faq-item:nth-child(1) { animation-delay: .08s; }
#faq-view.is-entering .public-faq-item:nth-child(2) { animation-delay: .12s; }
#faq-view.is-entering .public-faq-item:nth-child(3) { animation-delay: .16s; }
#faq-view.is-entering .public-faq-item:nth-child(4) { animation-delay: .20s; }
#faq-view.is-entering .public-faq-item:nth-child(5) { animation-delay: .24s; }
#faq-view.is-entering .public-faq-item:nth-child(6) { animation-delay: .28s; }
#faq-view.is-entering .public-faq-item:nth-child(n+7) { animation-delay: .32s; }
/* Smoother product cards: promote to their own layer only while animating, keep hover cheap */
.landing-product-card { will-change: auto; }
#products-view.is-entering .landing-product-card { will-change: transform, opacity; }
.landing-product-media img { content-visibility: auto; }
@media (prefers-reduced-motion: reduce) {
  #products-view.is-entering *, #faq-view.is-entering * { animation: none !important; }
}
/* FAQ on phones: no per-item entrance animation (fewer compositor layers), paint containment per item */
.public-faq-item { contain: layout paint style; }
@media (max-width: 860px) {
  #faq-view.is-entering .public-faq-item, #faq-view.is-entering .public-faq-categories { animation: none !important; }
  #faq-view.is-entering .public-faq-hero { animation-duration: .35s; }
  .public-faq-item summary i::before, .public-faq-item summary i::after { transition: none; }
  .public-faq-categories button { transition: none; }
}

/* Query results on phones: no dark tap highlight when touching rows/cells (the scroll box is focusable) */
#query-result, #query-result *, .public-query-table-scroll { -webkit-tap-highlight-color: transparent; }
.public-query-table-scroll:focus { outline: none; }
.public-query-table-scroll:focus:not(:focus-visible) { box-shadow: none; }
/* Referral records on phones: one field per line, like the progress query results (desktop unchanged) */
@media (max-width: 700px) {
  .referral-table-scroll { overflow-x: visible; border: 0; border-radius: 0; }
  .public-query-table.referral-table { min-width: 0; display: block; }
  .public-query-table.referral-table thead { display: none; }
  .public-query-table.referral-table tbody { display: block; }
  .public-query-table.referral-table tr { display: block; padding: 5px 14px; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; background: #fff; }
  .public-query-table.referral-table tr + tr { margin-top: 12px; }
  .public-query-table.referral-table td[data-label] { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; text-align: center; white-space: nowrap; }
  .public-query-table.referral-table td[data-label]::before { content: attr(data-label) "："; color: #737373; font-size: 12px; font-weight: 750; }
  .public-query-table.referral-table td[data-label]:last-child { border-bottom: 0; }
  .public-query-table.referral-table td code { font-size: 14px; }
  .public-query-table.referral-table .public-query-empty { display: block; width: 100%; padding: 28px 12px; border-bottom: 0; text-align: center; white-space: normal; }
}
/* Nav links are anchors now (fallback navigation when scripts fail) */
a.public-oss-nav-link { text-decoration: none; cursor: pointer; }
a.public-oss-nav-link:hover, a.public-oss-nav-link:focus { text-decoration: none; }
.public-script-error { position: fixed; left: 12px; bottom: 12px; z-index: 9999; max-width: min(80vw, 520px); padding: 8px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fee2e2; color: #991b1b; font-size: 12px; line-height: 1.5; cursor: pointer; }

/* Phone row on phones: label and input always on one line; token box a bit shorter so 确认充值 stays in view */
@media (max-width: 700px) {
  .public-field--phone { flex-wrap: nowrap !important; }
  .public-field--phone > span { flex: 0 0 auto !important; }
  .public-input--phone { flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important; }
  .public-route-stage[data-step="2"] .public-input--token { height: 84px !important; min-height: 84px !important; max-height: 120px !important; }
  .public-route-stage[data-step="2"] .public-field--token { margin-top: 8px !important; }
}

/* Step 2 on phones: tighter vertical rhythm so 确认充值 fits on one screen */
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] { padding-top: 78px !important; }
  .public-route-stage[data-step="2"] .token-guide { margin: 8px 0 !important; }
  .public-route-stage[data-step="2"] .token-guide-step-content { line-height: 1.35; }
  .public-route-stage[data-step="2"] .public-input--token { height: 72px !important; min-height: 72px !important; }
  .public-route-stage[data-step="2"] .public-field--token > span { margin-bottom: 4px; }
  .public-route-stage[data-step="2"] .public-field--phone { margin-top: 4px !important; }
  .public-route-stage[data-step="2"] .public-token-payment-section { margin-top: 0 !important; }
}
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .wizard-steps { margin-bottom: 6px !important; padding-bottom: 0 !important; }
  .public-route-stage[data-step="2"] .public-card-body { padding-top: 10px !important; }
  .public-route-stage[data-step="2"] .token-guide-heading-row { margin-top: 0 !important; }
  .public-route-stage[data-step="2"] .public-payment-methods legend { margin: 2px 0 !important; }
}
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .wizard-panel { padding-top: 12px !important; padding-bottom: 4px !important; }
  .public-route-stage[data-step="2"] .public-card-body { padding-top: 4px !important; }
  .public-route-stage[data-step="2"] .token-guide { margin-bottom: 4px !important; }
  .public-route-stage[data-step="2"] .public-field--token { margin-top: 6px !important; }
  .public-route-stage[data-step="2"] .public-card-footer { margin-top: 8px !important; }
}
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .public-card-header { padding-bottom: 2px !important; }
  .public-route-stage[data-step="2"] .wizard-steps { margin-bottom: 0 !important; }
  .public-route-stage[data-step="2"] .wizard-panel { padding-top: 6px !important; }
  .public-route-stage[data-step="2"] .public-field--phone { margin-top: 8px !important; }
  .public-route-stage[data-step="2"] .public-input--phone { min-height: 36px !important; height: 36px; padding: 0 12px !important; font-size: 14px !important; }
  .public-route-stage[data-step="2"] .public-token-payment-section { margin-top: 14px !important; }
}
/* Step 2 guide on phones only: pull the step circles/buttons 10px left and let the rows (and the tutorial button) reach 10px further right */
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .token-guide,
  .public-route-stage[data-step="2"] .token-guide-heading-row { margin-left: -10px !important; margin-right: -10px !important; }
}
/* Card-code option on phones: short label, input stays inside the card */
.public-code-toggle strong b { font: inherit; }
@media (max-width: 700px) {
  .public-code-option { flex-wrap: nowrap !important; gap: 10px !important; min-width: 0; }
  .public-code-toggle { flex: 0 0 auto !important; }
  .public-card-credential { flex: 1 1 0 !important; min-width: 0 !important; }
  .public-card-credential #cdk { width: 100% !important; min-width: 0 !important; min-height: 36px !important; height: 36px; padding: 0 12px !important; font-size: 14px !important; }
}

/* Query panel: never inherit the step-2 wizard padding; the label gets the same space above and below it */
.public-route-stage[data-step] .wizard-panel.public-query-panel, .wizard-panel.public-query-panel { padding: 16px 34px 34px !important; }
.public-query-form .public-field > span { margin: 0 0 16px !important; }
@media (max-width: 700px) {
  .public-route-stage[data-step] .wizard-panel.public-query-panel, .wizard-panel.public-query-panel { padding: 16px 17px 22px !important; }
}

/* Query page on phones: title centred between the header and the card; no copy button / horizontal scrollbar next to the filters */
@media (max-width: 700px) {
  .public-page-title--query { margin-top: 4px !important; margin-bottom: 26px !important; }
  #query-copy { display: none !important; }
  .public-query-result-actions { overflow: visible !important; }
}

/* Recharge success dialog: short message + two buttons (确定 / 添加微信) instead of the flow picture */
.recharge-success-dialog { max-width: calc(100vw - 28px); box-sizing: border-box; }
.recharge-success-text { max-width: 420px; margin: 12px auto 0; color: #525252; font-size: 15px; line-height: 1.7; }
.recharge-success-text span { display: block; white-space: nowrap; }
.recharge-success-actions { display: flex; gap: 12px; margin-top: 22px; }
.recharge-success-actions .public-ghost-button, .recharge-success-actions .public-primary-button { flex: 1 1 0; min-height: 46px; margin: 0 !important; border-radius: 12px !important; width: auto !important; }
.recharge-success-actions .recharge-success-ok { border: 1px solid #e5e5e5; color: #171717; background: #fff; }
.recharge-success-actions .recharge-success-ok:hover { background: #f5f5f5; transform: none; }
@media (max-width: 700px) {
  .recharge-success-dialog { padding-left: 14px !important; padding-right: 14px !important; }
  .recharge-success-text { font-size: 14px; letter-spacing: -.01em; }
}
@media (max-width: 360px) { .recharge-success-text { font-size: 13px; } }

/* Hero badge stays on one line, phones included */
.landing-badge { white-space: nowrap; max-width: 100%; }
@media (max-width: 700px) { .landing-badge { font-size: 13px; padding: 7px 12px; gap: 4px; } }
@media (max-width: 360px) { .landing-badge { font-size: 12px; padding: 6px 10px; } }

/* Phones: card-code row centred between the payment buttons and the card edge (6px each side) */
@media (max-width: 700px) {
  .public-route-stage[data-step="2"] .public-code-option { margin-top: -2px !important; margin-bottom: 2px !important; }
}

/* Phones: smaller query-result text; the status sentence wraps inside the card instead of overflowing it */
@media (max-width: 700px) {
  #query-result .public-task-table td[data-label] { font-size: 13px !important; white-space: normal !important; overflow-wrap: anywhere; }
  #query-result .public-task-table td[data-label]::before { flex: 0 0 auto; font-size: 11.5px !important; white-space: nowrap; }
  #query-result .public-task-table td[data-label] code { font-size: 13px !important; }
  #query-result .public-task-table .public-query-table-status { min-width: 0; max-width: 100%; white-space: normal !important; font-size: 12.5px !important; line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
  /* The status dot is a flex item: without a fixed basis it gets squeezed into a thin bar once the sentence needs the width. */
  #query-result .public-task-table .public-query-table-status::before { flex: 0 0 8px; width: 8px; height: 8px; }
  /* Let the label and the sentence share the row; when the sentence is long it wraps under the label instead of being clipped. */
  #query-result .public-task-table td[data-label] { flex-wrap: wrap; row-gap: 4px; }
  #query-result .public-query-table-scroll { overflow-x: hidden !important; }
}

/* Phones: 全部商品 switches in one quick fade (no per-card stagger, no heavy transform) so the tap feels instant */
@media (max-width: 700px) {
  #products-view.is-entering .landing-section-head,
  #products-view.is-entering .landing-product-categories,
  #products-view.is-entering .landing-product-card { animation: ld-view-enter-fast .22s ease-out both !important; animation-delay: 0s !important; }
}
@keyframes ld-view-enter-fast { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Phones: hero title on two centred lines without the comma (desktop keeps the single line) */
@media (max-width: 700px) {
  .landing-title { text-align: center; }
  .landing-title .landing-title-comma { display: none; }
  .landing-title .landing-title-main, .landing-title .landing-title-sub { display: block; }
}

/* Phones: the (shortened) success sentence stays on one line inside the card */
@media (max-width: 700px) {
  #query-result .public-task-table td[data-label="充值状态"] { gap: 6px !important; }
  #query-result .public-task-table .public-query-table-status { white-space: nowrap !important; font-size: 12px !important; }
}
@media (max-width: 350px) {
  #query-result .public-task-table .public-query-table-status { white-space: normal !important; }
}

/* Mobile nav dropdown: anchored to the header pill, so it keeps the pill's side gaps at every width */
@media (max-width: 860px) {
  .public-oss-header-inner { position: relative; }
  .public-oss-nav { left: 0 !important; right: 0 !important; }
}

/* Phones: the three referral steps sit as one centred block (numbers stay aligned with each other) */
@media (max-width: 700px) {
  .referral-how { grid-template-columns: max-content !important; justify-content: center; }
}

/* Card stagger index via CSS (inline style attributes are blocked by the page's CSP) */
.landing-product-card:nth-child(2) { --i: 1; } .landing-product-card:nth-child(3) { --i: 2; } .landing-product-card:nth-child(4) { --i: 3; }
.landing-product-card:nth-child(5) { --i: 4; } .landing-product-card:nth-child(6) { --i: 5; } .landing-product-card:nth-child(7) { --i: 6; }
.landing-product-card:nth-child(8) { --i: 7; } .landing-product-card:nth-child(n+9) { --i: 8; }

/* WeChat/Alipay QR while loading: a soft, lightly blurred ghost of a QR code that breathes gently; the real code then sharpens into place */
.public-wechat-qr-frame { background: #fff !important; border-color: #e5e5e5 !important; }
.public-wechat-qr-frame::before {
  background: #fff url('/assets/wechat-qr-loading.svg?v=1') center/contain no-repeat !important;
  filter: blur(3px) !important; opacity: .36; transform: scale(.95); border-radius: 6px;
  /* one-shot: the ghost slowly darkens while the code is being generated, no looping */
  animation: ld-qr-warmup 2.6s ease-out both;
}
.public-wechat-qr-frame::after { content: none !important; }
.public-wechat-qr-frame img { filter: blur(10px); transform: scale(.97); transition: opacity 420ms ease, filter 640ms cubic-bezier(.2,.75,.2,1), transform 640ms cubic-bezier(.2,.75,.2,1) !important; }
.public-wechat-qr-frame[data-state="ready"] img { filter: blur(0); transform: scale(1); }
.public-wechat-qr-frame[data-state="ready"]::before { opacity: 0; animation: none; transition: opacity 300ms ease; }
@keyframes ld-qr-warmup { from { opacity: .14; transform: scale(.93); } to { opacity: .36; transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .public-wechat-qr-frame::before { animation: none; } }

/* Support popover: WeCom link shown when the direct jump was blocked */
.public-support-wecom-link { display: inline-flex; align-items: center; justify-content: center; margin: 10px 0 4px; padding: 10px 16px; border-radius: 999px; background: #111; color: #fff; font-weight: 700; text-decoration: none; }
.public-support-wecom-link:hover { background: #333; }

/* 弹窗公告：低于支付弹窗（1000）、高于邀请/充值成功弹窗。标题在最顶部，内容区可滚动。 */
.public-announcement-backdrop { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(17,24,39,.55); backdrop-filter: blur(4px); }
.public-announcement-backdrop[hidden] { display: none; }
.public-announcement { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(17,24,39,.3); box-sizing: border-box; overflow: hidden; animation: referralBackdropIn .2s ease both; }
.public-announcement-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(17,24,39,.18); color: #374151; font-size: 22px; line-height: 1; cursor: pointer; }
.public-announcement-close:hover { background: #fff; color: #111827; }
.public-announcement-title { flex: none; display: block; padding: 20px 48px 12px; border-bottom: 1px solid #f0f0f0; text-align: center; font-size: 18px; font-weight: 900; color: #111827; line-height: 1.4; word-break: break-word; }
.public-announcement-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 20px 4px; }
.public-announcement-title:not([hidden]) + .public-announcement-body { padding-top: 14px; }
.public-announcement-title[hidden] + .public-announcement-body { padding-top: 46px; }
.public-announcement-image { display: block; width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; margin-bottom: 10px; }
.public-announcement-image.is-link { cursor: pointer; }
.public-announcement-image[hidden], .public-announcement-title[hidden], .public-announcement-content[hidden], .public-announcement-button[hidden] { display: none; }
.public-announcement-content { color: #374151; font-size: 14px; line-height: 1.75; word-break: break-word; }
.public-announcement-content p, .public-announcement-content div { margin: 0 0 6px; }
.public-announcement-content h1 { margin: 6px 0 8px; font-size: 22px; font-weight: 900; color: #111827; }
.public-announcement-content h2 { margin: 6px 0 8px; font-size: 19px; font-weight: 900; color: #111827; }
.public-announcement-content h3 { margin: 6px 0 6px; font-size: 16px; font-weight: 800; color: #111827; }
.public-announcement-content blockquote { margin: 6px 0; padding: 6px 12px; border-left: 4px solid #d4d4d4; background: #f5f5f5; color: #525252; }
.public-announcement-content ul, .public-announcement-content ol { margin: 4px 0 8px; padding-left: 22px; }
.public-announcement-content ul { list-style: disc; } .public-announcement-content ol { list-style: decimal; }
.public-announcement-content img { display: block; max-width: 100%; height: auto; margin: 4px auto; border-radius: 10px; }
.public-announcement-content table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.public-announcement-content td, .public-announcement-content th { padding: 6px 8px; border: 1px solid #d4d4d4; vertical-align: top; }
.public-announcement-content hr { border: 0; border-top: 1px solid #e5e5e5; margin: 10px 0; }
.public-announcement-content a { color: #2563eb; text-decoration: underline; }
.public-announcement-actions { flex: none; display: flex; gap: 10px; padding: 12px 20px 18px; }
.public-announcement-button { flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: #f3f4f6; color: #111827; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.public-announcement-button:hover { filter: brightness(.95); }
.public-announcement-button { transition: filter .15s ease, transform .12s ease; }
.public-announcement-button:active { transform: scale(.97); }
.public-announcement-button--primary { background: #111; color: #fff; }
@media (max-width: 480px) { .public-announcement { border-radius: 18px; } .public-announcement-body { padding-left: 16px; padding-right: 16px; } .public-announcement-actions { padding: 12px 16px 16px; } }
/* 公告按钮最多三个（我知道了 / 复制 / 跳转）：文字过长时换行而不是溢出 */
.public-announcement-button { padding: 6px 8px; line-height: 1.3; word-break: break-word; }
@media (max-width: 480px) { .public-announcement-actions { gap: 8px; } .public-announcement-button { font-size: 14px; } }

/* 弹窗公告动画：遮罩淡入，弹窗从下方略小处上浮放大到位（缓出曲线）；关闭时反向且更快 */
.public-announcement-backdrop { opacity: 0; transition: opacity .24s ease; }
.public-announcement-backdrop.is-open { opacity: 1; transition: opacity .3s ease; }
.public-announcement-backdrop .public-announcement { animation: none; opacity: 0; transform: translateY(18px) scale(.95); transition: opacity .2s ease, transform .24s cubic-bezier(.4, 0, 1, 1); will-change: transform, opacity; }
.public-announcement-backdrop.is-open .public-announcement { opacity: 1; transform: none; transition: opacity .32s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  .public-announcement-backdrop, .public-announcement-backdrop.is-open, .public-announcement-backdrop .public-announcement, .public-announcement-backdrop.is-open .public-announcement { transition: none; transform: none; }
}
/* 联系客服弹窗「复制联系方式」：黑底白字 */
.public-support-copy { border-color: #111; background: #111; color: #fff; }
.public-support-copy:hover { border-color: #000; background: #000; color: #fff; }


/* 充值进度：代理 API 人机验证链接（仅在上游要求时显示） */
.public-result-action { display: inline-flex; align-items: center; justify-content: center; margin: 14px auto 2px; padding: 12px 24px; border-radius: 12px; background: #111; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.public-result-action:hover { background: #000; }
.public-result-action[hidden] { display: none; }

/* 进度查询：充值凭证下载按钮 */
.public-receipt-download { border: 1px solid var(--ld-border); border-radius: 999px; background: #fff; color: var(--ld-fg); font-weight: 600; font-size: 12.5px; line-height: 1; padding: 6px 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: background .15s ease; white-space: nowrap; }
.public-receipt-download:hover { background: var(--ld-muted); }
.public-receipt-download:disabled { opacity: .6; cursor: default; }
#query-result .public-task-table td.public-query-table-receipt { white-space: nowrap; }

/* 充值凭证预览弹窗：默认整张凭证一屏显示（按窗口高度缩放），点图片放大/缩回 */
.receipt-preview-backdrop { position: fixed; inset: 0; z-index: 80; overscroll-behavior: contain; touch-action: none; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,15,15,.55); }
.receipt-preview-backdrop[hidden] { display: none; }
.receipt-preview { display: flex; flex-direction: column; height: calc(100vh - 32px); height: calc(100dvh - 32px); max-width: 100%; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.receipt-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #ececec; }
.receipt-preview-bar strong { font-size: 15px; color: #171717; white-space: nowrap; }
.receipt-preview-actions { display: flex; align-items: center; gap: 6px; }
.receipt-preview-btn { min-height: 34px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 999px; color: #171717; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.receipt-preview-btn:hover:not(:disabled) { background: #f5f5f5; }
.receipt-preview-btn:disabled { opacity: .6; }
.receipt-preview-download, .receipt-preview-save { border-color: #171717; color: #fff; background: #171717; }
.receipt-preview-download:hover:not(:disabled), .receipt-preview-save:hover:not(:disabled) { background: #000; }
.receipt-preview-close { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #e5e5e5; border-radius: 50%; color: #525252; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.receipt-preview-name { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #ececec; background: #fafafa; }
.receipt-preview-name[hidden] { display: none; }
.receipt-preview-name input { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid #d4d4d4; border-radius: 10px; font-size: 14px; }
.receipt-preview-body { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; background: #f5f5f5; }
.receipt-preview-body img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; cursor: zoom-in; }
.receipt-preview.is-zoomed .receipt-preview-body { display: block; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.receipt-preview.is-zoomed .receipt-preview-body img { max-height: none; width: 900px; max-width: none; margin: 0 auto; cursor: zoom-out; }
.receipt-preview-loading { margin: 60px 0; color: #737373; font-size: 14px; text-align: center; }
@media (min-width: 641px) {
  /* 宽度跟着凭证比例（A4 约 0.707）走，避免左右大片空白 */
  .receipt-preview { width: min(calc((100vh - 140px) * 0.707 + 40px), 100%); min-width: 560px; }
}
@media (max-width: 640px) {
  .receipt-preview-backdrop { padding: 0; }
  .receipt-preview { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
  .receipt-preview-bar { flex-wrap: wrap; padding: 10px 12px; row-gap: 8px; }
  .receipt-preview-actions { order: 3; width: 100%; }
  .receipt-preview-actions .receipt-preview-btn { flex: 1 1 0; padding: 0 6px; }
  .receipt-preview-close { position: absolute; top: 10px; right: 12px; }
  .receipt-preview { position: relative; }
  .receipt-preview-name { padding: 10px 12px; }
  .receipt-preview-body { padding: 6px; }
}
