:root {
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-50: #eef2ff;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.nav {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff; font-size: 15px; font-weight: 800;
}
.brand .logo-svg { width: 40px; height: 40px; display: block; flex: 0 0 auto; }
.brand-name {
  font-weight: 800; font-size: 20px; letter-spacing: .5px;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14px;
}
.nav-links a:hover { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.nav-links a.active { color: var(--primary); background: var(--primary-50); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.quota-pill {
  background: var(--primary-50); color: var(--primary); padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.main { padding: 28px 0 60px; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff; border-radius: 18px; padding: 40px; margin-bottom: 24px;
}
.hero h1 { margin: 0 0 10px; font-size: 30px; }
.hero p { margin: 0; opacity: .9; }
.hero .stats { display: flex; gap: 40px; margin-top: 24px; }
.hero .stats b { font-size: 24px; display: block; }
.hero .stats span { opacity: .8; font-size: 13px; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
input[type=text], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text); outline: none; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row > * { flex: 1; }
.inline-code { display: flex; gap: 8px; }
.inline-code input { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border: 1px solid transparent; border-radius: 9px;
  font-size: 14px; font-weight: 600; cursor: pointer; background: var(--primary); color: #fff;
  transition: background .15s, opacity .15s; font-family: inherit;
}
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: #f8fafc; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }

/* ---------- upload dropzone ---------- */
.dropzone {
  border: 2px dashed #cbd5e1; border-radius: 14px; padding: 40px 20px; text-align: center;
  background: #fbfcfe; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--primary-50); }
.dropzone .icon { font-size: 40px; }
.dropzone p { margin: 8px 0 4px; font-weight: 600; }
.dropzone small { color: var(--muted); }

.file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.file-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.file-item .fi-name { flex: 1; min-width: 0; }
.file-item .fi-name .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .fi-name .meta { color: var(--muted); font-size: 12px; }
.file-item .fi-remove { color: var(--muted); cursor: pointer; border: none; background: none; font-size: 18px; }
.file-item .fi-remove:hover { color: var(--danger); }

/* ---------- progress ---------- */
.progress { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #8b5cf6); width: 0; transition: width .4s; }
.progress.done > i { background: var(--success); }
.progress.failed > i { background: var(--danger); }
.task { padding: 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.task-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.task-head .name { font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.gray { background: #f1f5f9; color: var(--muted); }
.badge.blue { background: var(--primary-50); color: var(--primary); }
.badge.green { background: #dcfce7; color: var(--success); }
.badge.red { background: #fee2e2; color: var(--danger); }
.badge.orange { background: #ffedd5; color: var(--warning); }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:hover { background: #fafbff; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- login ---------- */
.auth-wrap { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.auth-card .brand { justify-content: center; margin-bottom: 8px; font-size: 20px; }
.auth-card h1 { text-align: center; font-size: 20px; margin: 4px 0 2px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.tabs { display: flex; background: #f1f5f9; border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tabs button {
  flex: 1; border: none; background: none; padding: 9px; border-radius: 8px; font-weight: 600;
  font-size: 14px; color: var(--muted); cursor: pointer; font-family: inherit;
}
.tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.qr-box { text-align: center; }
/* 二维码库生成的 img/canvas 是 block，需显式居中 */
.qr-box img, .qr-box canvas { display: block; margin: 0 auto; }
.qr-box img { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: 10px; background:#fff; }
.qr-box canvas { width: 200px; height: 200px; border: 1px solid var(--border); border-radius: 10px; background:#fff; }
.qr-loading { width: 200px; height: 200px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 13px; }
.link-line { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- toast ---------- */
#toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 220px; max-width: 360px; padding: 12px 16px; border-radius: 10px; color: #fff;
  font-size: 14px; box-shadow: var(--shadow); animation: slidein .2s ease;
}
.toast.info { background: #334155; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- misc ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-12 { gap: 12px; } .gap-8 { gap: 8px; }
.hidden { display: none !important; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.pagination { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; align-items: center; }
.plan { border: 2px solid var(--border); border-radius: 12px; padding: 18px; cursor: pointer; transition: all .15s; text-align:center; }
.plan:hover { border-color: var(--primary); }
.plan.selected { border-color: var(--primary); background: var(--primary-50); }
.plan .amount { font-size: 24px; font-weight: 700; color: var(--primary); }
.plan .pages { color: var(--muted); font-size: 13px; margin-top: 4px; }
.plan .bonus { color: var(--warning); font-size: 12px; }

/* ===== landing redesign ===== */
html { scroll-behavior: smooth; }

/* hero */
.hero-section {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(139, 92, 246, .55), transparent 60%),
    linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #4f46e5 100%);
  color: #fff; border-radius: 0 0 32px 32px; padding: 64px 0 72px; margin-bottom: 8px;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero-section h1 { font-size: 44px; line-height: 1.18; margin: 0 0 16px; font-weight: 800; letter-spacing: -.5px; }
.hero-section h1 .grad { background: linear-gradient(90deg, #fde68a, #fca5a5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-section p.lead { font-size: 17px; opacity: .92; margin: 0 0 28px; max-width: 520px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f1f5f9; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }
.hero-stats { display: flex; gap: 34px; margin-top: 36px; }
.hero-stats .hs b { font-size: 26px; font-weight: 800; display: block; }
.hero-stats .hs span { font-size: 13px; opacity: .8; }
.hero-stats .hs .muted-light { opacity: .55; }

/* hero doc preview */
.doc-preview {
  background: #fff; color: var(--text); border-radius: 16px; padding: 22px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
  display: flex; flex-direction: column; min-height: 340px;
}
.dp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.doc-preview .bar { display: flex; gap: 6px; }
.doc-preview .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.doc-preview .bar i:nth-child(1) { background: #f87171; }
.doc-preview .bar i:nth-child(2) { background: #fbbf24; }
.doc-preview .bar i:nth-child(3) { background: #34d399; }
.dp-file { font-size: 12px; color: var(--muted); font-weight: 600; }
.dp-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-50); padding: 3px 10px; border-radius: 999px; }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 12.5px; line-height: 1.85; flex: 1; }
.dp-col h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.dp-col .t { color: #334155; }
.dp-col .t + .t { margin-top: 11px; }
.dp-col.zh .t { color: #0f172a; font-weight: 500; }
.dp-foot { margin-top: 18px; }
.dp-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.dp-progress { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 6px; }

/* trust bar */
.trustbar { background: #fff; border-bottom: 1px solid var(--border); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.trustbar .ti { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 14px; font-weight: 500; }
.trustbar .ti .d { width: 22px; height: 22px; border-radius: 6px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-size: 12px; }

/* sections */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .kicker { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: 30px; margin: 8px 0 10px; font-weight: 800; }
.section-head p { color: var(--muted); margin: 0; }

/* compare */
.compare-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.compare-tab {
  border: 1px solid var(--border); background: #fff; color: var(--muted); padding: 9px 18px;
  border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; font-family: inherit;
}
.compare-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.compare-panel { display: none; }
.compare-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
.doc-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.doc-head .flag { font-size: 16px; }
.doc-head .tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); background: #f1f5f9; padding: 2px 8px; border-radius: 999px; }
.doc-body { padding: 16px 18px; font-size: 14.5px; line-height: 1.85; color: #334155; }
.doc-body p { margin: 0; }
.doc-body p + p { margin-top: 12px; }
.doc-body.zh { color: #0f172a; }
.doc-body mark { background: #fef3c7; color: inherit; padding: 0 2px; border-radius: 3px; }
.doc-body.zh mark { background: #dcfce7; }
.compare-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
@media (max-width: 860px) { .compare-grid { grid-template-columns: 1fr; } }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.section:not(.alt) .feature { box-shadow: var(--shadow); }
.feature .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, var(--primary-50), #f5f3ff); color: var(--primary); margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* pricing */
.price-highlight {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff); border: 1px solid #e0e7ff;
  border-radius: 14px; padding: 18px 24px; margin-bottom: 28px; text-align: center;
}
.price-highlight .big { font-size: 34px; font-weight: 800; color: var(--primary); }
.price-highlight .big .old-price { font-size: 18px; color: var(--muted); font-weight: 600; margin-right: 8px; }
.price-highlight .big small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-highlight .txt { color: #475569; font-size: 14px; text-align: left; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative; background: #fff; border: 2px solid var(--border); border-radius: 16px;
  padding: 24px 20px; text-align: center; transition: all .18s;
}
.price-card:hover { border-color: #c7d2fe; transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--primary); box-shadow: 0 12px 30px rgba(79, 70, 229, .18); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.price-card .pname { font-weight: 700; font-size: 15px; }
.price-card .pamount { font-size: 34px; font-weight: 800; color: var(--text); margin: 8px 0 2px; }
.price-card .pamount small { font-size: 15px; color: var(--muted); }
.price-card .ppages { color: var(--primary); font-weight: 700; font-size: 15px; }
.price-card .pbonus { color: var(--warning); font-size: 12px; margin-top: 2px; }
.price-card .btn { margin-top: 18px; width: 100%; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; font-size: 13px; color: var(--muted); }
.price-card ul li { padding: 4px 0 4px 22px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 44px 0 28px; margin-top: 20px; }
.footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.footer .cols a { color: #94a3b8; display: block; font-size: 13px; padding: 3px 0; }
.footer .cols a:hover { color: #fff; }
.footer .bottom a { display: inline; padding: 0; font-size: inherit; color: inherit; }
.footer .bottom a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid #1e293b; margin-top: 28px; padding-top: 18px; text-align: center; color: #64748b; font-size: 12px; }

/* tool section card tweaks */
.tool-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.step-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; margin-right: 8px; }
.step-title { display: flex; align-items: center; font-size: 15px; font-weight: 700; margin: 4px 0 14px; }
.step-sep { height: 1px; background: var(--border); margin: 26px 0; }
.guest-tip { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.guest-tip a { color: #b45309; font-weight: 700; }

/* before/after image slider */
.ba-wrap { max-width: 1120px; margin: 0 auto; }
.ba-slider {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow); background: #fff; user-select: none; cursor: ew-resize; touch-action: pan-y;
}
.ba-img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .35);
}
.ba-handle::after {
  content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--primary);
  display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.ba-tag {
  position: absolute; top: 14px; font-size: 12px; font-weight: 700; color: #fff;
  padding: 5px 12px; border-radius: 999px; background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px);
}
.ba-tag-l { left: 14px; } .ba-tag-r { right: 14px; }
.more-head { text-align: center; font-weight: 700; color: var(--muted); margin: 40px 0 18px; font-size: 14px; letter-spacing: .04em; }
.price-highlight .disc { color: var(--danger); }

/* nav dropdown menu */
.menu { position: relative; }
.menu-btn {
  background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.menu-btn:hover { background: #f8fafc; }
.menu-btn.active { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }
.menu-btn .caret { font-size: 11px; color: var(--muted); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 156px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px;
  display: none; z-index: 40;
}
.menu.open .menu-panel { display: block; }
.menu-panel a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--text); font-size: 14px; }
.menu-panel a:hover { background: var(--primary-50); color: var(--primary); text-decoration: none; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* hero promo price */
.hero-price { display: flex; align-items: baseline; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-price .hp-label { font-size: 12px; font-weight: 700; background: #f59e0b; color: #fff; padding: 3px 9px; border-radius: 6px; align-self: center; }
.hero-price s { font-size: 22px; opacity: .72; font-weight: 600; }
.hero-price b { font-size: 40px; font-weight: 800; line-height: 1; }
.hero-price small { font-size: 15px; opacity: .85; }
.hero-price .hp-tag { font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .32); padding: 4px 12px; border-radius: 999px; align-self: center; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.hidden { display: none !important; }
.modal-card {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 16px;
  padding: 30px 32px; box-shadow: 0 24px 60px rgba(2, 6, 23, .4);
}
.modal-card h3 { margin: 0 0 4px; font-size: 20px; }
.modal-close {
  position: absolute; top: 10px; right: 14px; border: none; background: none; font-size: 24px;
  line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--text); }

/* recharge: amount chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  min-width: 106px; padding: 14px 16px; border: 2px solid var(--border); border-radius: 12px;
  background: #fff; cursor: pointer; text-align: center; transition: all .15s;
}
.chip:hover { border-color: #c7d2fe; }
.chip.selected { border-color: var(--primary); background: var(--primary-50); }
.chip .chip-amt { font-size: 20px; font-weight: 800; color: var(--text); }
.chip .chip-pages { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 2px; }
.chip .chip-bonus { font-size: 11px; color: var(--warning); margin-top: 2px; }

/* pay summary */
.pay-summary {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 18px;
  padding: 16px 18px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px;
}
.pay-summary .ps-item { font-size: 14px; color: var(--muted); }
.pay-summary .ps-item b { font-size: 22px; color: var(--primary); margin-left: 6px; }
.pay-summary .ps-note { margin-left: auto; font-size: 13px; color: var(--muted); }

/* pay methods */
.pay-methods { display: flex; gap: 14px; flex-wrap: wrap; }
.pay-method {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; border: 2px solid var(--border);
  border-radius: 12px; cursor: pointer; background: #fff; transition: all .15s; min-width: 172px;
}
.pay-method:hover { border-color: #c7d2fe; }
.pay-method.selected { border-color: var(--primary); background: var(--primary-50); }
.pay-method .pm-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.pay-method .pm-ico.wechat { background: #07c160; }
.pay-method .pm-ico.alipay { background: #1677ff; }
.pay-method .pm-name { font-weight: 600; }
.pay-method .pm-check { margin-left: auto; color: var(--primary); opacity: 0; font-weight: 700; }
.pay-method.selected .pm-check { opacity: 1; }
#btn-pay { margin-top: 8px; }

/* wallet page layout (landing style) */
.wallet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .wallet-layout { grid-template-columns: 1fr; } }
.wallet-side { position: sticky; top: 82px; }
@media (max-width: 900px) { .wallet-side { position: static; } }
.wallet-main .card:last-child { margin-bottom: 0; }
.order-card h3 { margin: 0 0 14px; font-size: 16px; }
.order-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--muted);
}
.order-row b { font-size: 18px; color: var(--text); }
.order-row:first-of-type b { color: var(--primary); font-size: 22px; }
.order-hint { font-size: 12px; color: var(--muted); margin: 12px 0 16px; }
.order-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 10px; }
.wallet-stats { margin-top: 4px; }
.unit-note { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; }
.captcha-img { height: 42px; width: 120px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; background: #eef2ff; flex: 0 0 auto; display: block; }
.site-foot { text-align: center; color: var(--muted); font-size: 12px; padding: 32px 20px 40px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--primary); }

/* account summary (settings) */
.acct-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar {
  width: 66px; height: 66px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #8b5cf6); color: #fff;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-name { font-size: 20px; font-weight: 800; }
.acct-stats { margin-left: auto; display: flex; gap: 36px; flex-wrap: wrap; }
.acct-stats b { font-size: 22px; display: block; }
.acct-stats span { font-size: 12px; color: var(--muted); }



/* ---------- 账号绑定（settings） ---------- */
.bind-card .bind-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.bind-card .bind-item:first-of-type { border-top: 0; padding-top: 4px; }
.bind-name { font-weight: 600; font-size: 14px; }
.bind-val { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bind-val.ok { color: var(--success); }
.bind-panel {
  background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin: 0 0 16px;
}
.bind-panel .field:last-of-type { margin-bottom: 14px; }
.bind-hint { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
@media (max-width: 640px) {
  .bind-card .bind-item { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- 支付结果（弹窗内成功/失败视图） ---------- */
.pay-result-ico {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 10px auto 14px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #fff;
}
.pay-result-ico.ok { background: var(--success); }
.pay-result-ico.fail { background: var(--danger); }
.pay-result-title { font-size: 18px; font-weight: 700; }
.pay-result-sub { font-size: 13px; margin-top: 8px; line-height: 1.7; }
.pay-result-sub b { color: var(--text); }
