/* ============================================================
   GinCdn 授权中心 · 全局样式
   ============================================================ */

:root {
  --brand:        #2563eb;
  --brand-2:      #7c3aed;
  --brand-3:      #06b6d4;
  --brand-soft:   #eff6ff;
  --ink:          #0f172a;
  --ink-2:        #334155;
  --muted:        #64748b;
  --muted-2:      #94a3b8;
  --line:         #e2e8f0;
  --line-2:       #eef2f7;
  --bg:           #f8fafc;
  --bg-dark:      #0b1220;
  --bg-dark-2:    #131c31;
  --ok:           #16a34a;
  --ok-soft:      #ecfdf5;
  --warn:         #d97706;
  --warn-soft:    #fffbeb;
  --err:          #dc2626;
  --err-soft:     #fef2f2;
  --radius:       14px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow:       0 4px 12px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:    0 18px 40px -12px rgba(15,23,42,.18), 0 8px 20px -8px rgba(15,23,42,.10);
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono:         ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                  "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
img { max-width: 100%; }

code, pre, .mono { font-family: var(--mono); }

/* ---------------- 容器 ---------------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ============================================================
   顶部导航
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 66px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; color: var(--ink);
  letter-spacing: -.02em;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(37,99,235,.32);
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 13px; border-radius: 8px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  transition: .16s;
}
.nav-links a:hover { background: var(--line-2); color: var(--ink); }
.nav-links a.on { color: var(--brand); background: var(--brand-soft); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: .16s; white-space: nowrap;
  background: #fff; color: var(--ink-2); border-color: var(--line);
}
.btn:hover { border-color: #cbd5e1; background: #fcfdff; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(37,99,235,.36); filter: brightness(1.04); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #1e293b; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-danger { color: var(--err); border-color: #fecaca; }
.btn-danger:hover { background: var(--err-soft); border-color: #fca5a5; }

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  padding: 92px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 12% -10%, rgba(37,99,235,.42), transparent 62%),
    radial-gradient(620px 400px at 88% 6%, rgba(124,58,237,.36), transparent 60%),
    radial-gradient(500px 300px at 60% 110%, rgba(6,182,212,.20), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 460px at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 460px at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px; color: #c7d6f5; font-weight: 500;
  margin-bottom: 22px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.22); }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.14; letter-spacing: -.035em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #60a5fa 4%, #a78bfa 52%, #22d3ee 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 17px; line-height: 1.75; color: #9fb2d0;
  max-width: 540px; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats {
  display: flex; gap: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.hero-stats .n { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats .l { font-size: 12.5px; color: #8194b4; margin-top: 2px; }

/* Hero 右侧架构示意 */
.hero-visual {
  position: relative; aspect-ratio: 1/.92;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.13);
  padding: 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.hv-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.hv-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hv-bar span:first-child { background: #f87171; }
.hv-bar span:nth-child(2) { background: #fbbf24; }
.hv-bar span:nth-child(3) { background: #34d399; }
.hv-node {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  margin-bottom: 10px;
}
.hv-node .ic {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(124,58,237,.85));
  font-size: 13px; font-weight: 700;
}
.hv-node .t { font-size: 13.5px; font-weight: 600; }
.hv-node .s { font-size: 11.5px; color: #8296b6; }
.hv-node .v { margin-left: auto; font-size: 12px; color: #34d399; font-weight: 600; }
.hv-spark {
  margin-top: 16px; height: 96px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: flex-end; gap: 5px; padding: 12px;
}
.hv-spark i {
  flex: 1; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #60a5fa, rgba(37,99,235,.35));
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ============================================================
   通用区块
   ============================================================ */
.section { padding: 88px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head .kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* 特性卡 */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: .2s;
}
.feature:hover { border-color: #c7d2fe; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature .fi {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-size: 19px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
}
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 13.5px; font-weight: 700;
  margin-bottom: 14px;
}
.step h4 { font-size: 15.5px; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 14px; }

/* 价格 */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.price.recommend {
  border-color: transparent;
  box-shadow: 0 24px 60px -22px rgba(37,99,235,.42), 0 0 0 2px rgba(37,99,235,.18) inset;
  transform: translateY(-6px);
}
.price .badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37,99,235,.34);
}
.price h3 { font-size: 18px; margin-bottom: 6px; }
.price .desc { color: var(--muted); font-size: 13.5px; min-height: 22px; }
.price .amount { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 4px; }
.price .amount .cur { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.price .amount .num { font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.price .amount .per { font-size: 13.5px; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; flex: 1; }
.price li {
  position: relative; padding-left: 25px; margin-bottom: 11px;
  font-size: 14.2px; color: var(--ink-2);
}
.price li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800; font-size: 14px;
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted-2); font-size: 19px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 20px 18px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

/* CTA 条 */
.cta-band {
  background: linear-gradient(120deg, #0b1220, #16233d 60%, #1c2a4d);
  border-radius: 22px; padding: 52px 46px; color: #fff;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 88% 50%, rgba(124,58,237,.34), transparent 65%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: #9fb2d0; font-size: 15.5px; }

/* 页脚 */
.footer { background: var(--bg-dark); color: #8194b4; padding: 54px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 700; }
.footer a { color: #8194b4; display: block; padding: 4px 0; font-size: 13.8px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}

/* ============================================================
   认证页（登录/注册）
   ============================================================ */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: var(--bg-dark); color: #fff; padding: 54px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 20% 12%, rgba(37,99,235,.40), transparent 62%),
    radial-gradient(500px 340px at 88% 88%, rgba(124,58,237,.34), transparent 62%);
}
.auth-side > * { position: relative; z-index: 2; }
.auth-side h2 { font-size: 30px; line-height: 1.28; margin-bottom: 16px; letter-spacing: -.03em; }
.auth-side p { color: #9fb2d0; font-size: 15px; }
.auth-side .pts { margin-top: 34px; }
.auth-side .pt { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 14.5px; color: #c3d1e8; }
.auth-side .pt .ck {
  width: 21px; height: 21px; border-radius: 50%; flex: none; margin-top: 2px;
  background: rgba(52,211,153,.16); color: #34d399;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.auth-main { display: grid; place-items: center; padding: 44px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 30px; }

/* ============================================================
   表单
   ============================================================ */
.field { margin-bottom: 17px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff; transition: .16s; outline: none;
}
textarea.input { height: auto; padding: 11px 14px; line-height: 1.6; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(37,99,235,.11); }
.input::placeholder { color: var(--muted-2); }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

/* ============================================================
   用户中心布局
   ============================================================ */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 66px); }
.side {
  border-right: 1px solid var(--line); background: #fff; padding: 24px 16px;
}
.side .side-title { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); padding: 0 12px; margin: 18px 0 8px; }
.side .side-title:first-child { margin-top: 0; }
.side a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 14.4px; font-weight: 500;
  transition: .15s; margin-bottom: 2px;
}
.side a:hover { background: var(--line-2); color: var(--ink); }
.side a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side a .si { width: 18px; text-align: center; font-size: 15px; }

.main { padding: 30px 34px 60px; background: var(--bg); min-width: 0; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 23px; }
.page-head p { color: var(--muted); font-size: 14.2px; margin-top: 5px; }
.page-head .right { margin-left: auto; display: flex; gap: 9px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 19px 20px;
}
.stat .l { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stat .n { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat .n small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat .t { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }

/* 卡片 */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px;
}
.card-head {
  padding: 17px 22px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-head h3 { font-size: 16px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 22px; }
.card-body.tight { padding: 14px 22px; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.2px; }
.tbl th {
  text-align: left; padding: 12px 16px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  background: #fbfcfe; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fbfcfe; }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.tbl-wrap { overflow-x: auto; }

/* 徽章 */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px; font-size: 12.2px; font-weight: 600;
  background: var(--line-2); color: var(--muted); white-space: nowrap;
}
.tag.ok   { background: var(--ok-soft);   color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.err  { background: var(--err-soft);  color: var(--err); }
.tag.info { background: var(--brand-soft); color: var(--brand); }
.tag .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* 授权码显示 */
.lic-key {
  font-family: var(--mono); font-size: 13.6px; font-weight: 600;
  color: var(--ink); letter-spacing: .01em;
  background: #f6f8fc; border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 7px; display: inline-block;
}

/* 命令行 */
.cmd {
  position: relative;
  background: #0d1526; color: #d7e3f7;
  border-radius: var(--radius-sm); padding: 15px 52px 15px 16px;
  font-family: var(--mono); font-size: 13.2px; line-height: 1.7;
  overflow-x: auto; white-space: pre; margin: 0;
  border: 1px solid #1e2b45;
}
.cmd .cmt { color: #64748b; }
.cmd-light { background: #f6f8fc; color: var(--ink); border-color: var(--line); }
.copy-btn {
  position: absolute; top: 9px; right: 9px;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07);
  color: #a9bad6; cursor: pointer; font-size: 13px;
  display: grid; place-items: center; transition: .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.cmd-light .copy-btn { border-color: var(--line); background: #fff; color: var(--muted); }
.cmd-light .copy-btn:hover { background: var(--line-2); color: var(--ink); }

/* 空状态 */
.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty .ei { font-size: 40px; opacity: .32; margin-bottom: 14px; }
.empty h4 { font-size: 16px; color: var(--ink-2); margin-bottom: 6px; }
.empty p { font-size: 14px; margin-bottom: 18px; }

/* Toast */
#toast-host {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 9px; align-items: center;
  pointer-events: none;
}
.toast {
  background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 18px;
  box-shadow: var(--shadow-lg); font-size: 14.2px; font-weight: 500;
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .22s ease;
  max-width: 92vw;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.toast.ok  { border-color: #bbf7d0; }
.toast.ok .ti  { color: var(--ok); }
.toast.err { border-color: #fecaca; }
.toast.err .ti { color: var(--err); }
.toast .ti { font-weight: 800; }

/* Modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.46);
  display: grid; place-items: center; z-index: 900; padding: 20px;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  box-shadow: 0 30px 70px -20px rgba(15,23,42,.4);
  max-height: 90vh; overflow-y: auto;
}
.modal-head { padding: 20px 24px 0; font-size: 17px; font-weight: 700; }
.modal-body { padding: 18px 24px; }
.modal-foot { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* 标签页 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button {
  border: none; background: none; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--muted); padding: 11px 16px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s;
}
.tabs button:hover { color: var(--ink-2); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* 提示条 */
.notice {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid #dbeafe;
  font-size: 13.8px; color: #1e40af; margin-bottom: 20px;
}
.notice.warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }

/* 加载 */
.loading { display: grid; place-items: center; padding: 46px; color: var(--muted-2); }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app { grid-template-columns: 1fr; }
  .side {
    border-right: none; border-bottom: 1px solid var(--line);
    display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px;
  }
  .side .side-title { display: none; }
  .side a { white-space: nowrap; margin-bottom: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 22px 18px 50px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .price-grid { grid-template-columns: 1fr; }
  .price.recommend { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 26px; }
  .hero { padding: 62px 0 72px; }
  .hero-stats { gap: 24px; }
}

/* ============================================================
   用户中心 v2 —— 顶栏 / 侧边栏
   ============================================================ */
.nav-wallet {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #dbeafe; color: var(--brand);
  font-size: 13px; font-weight: 600; transition: .16s;
}
.nav-wallet:hover { border-color: #bfdbfe; box-shadow: 0 4px 12px rgba(37,99,235,.14); }
.nav-wallet .nw-label { color: var(--muted); font-weight: 500; }
.nav-wallet .nw-amt { font-family: var(--mono); font-weight: 700; }
.nav-user { gap: 7px; }
.nav-user .ava {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

.side { display: flex; flex-direction: column; }
.side a { position: relative; }
.side a.on::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.side-badge {
  margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px;
  border-radius: 999px; background: var(--err); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.side-mini { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.side a.on .side-mini { color: var(--brand); }
.side-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; }
.side-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(22,163,74,.16); }
.side-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(217,119,6,.16); }
.side-dot.err { background: var(--err); box-shadow: 0 0 0 3px rgba(220,38,38,.16); }

/* ============================================================
   用户中心 v2 —— 概览 Hero
   ============================================================ */
.uc-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 26px 28px; margin-bottom: 22px;
  background: linear-gradient(125deg, #0b1220 0%, #17264a 52%, #1d2a55 100%);
  color: #fff;
}
.uc-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 300px at 8% -30%, rgba(37,99,235,.50), transparent 62%),
    radial-gradient(460px 280px at 92% 120%, rgba(124,58,237,.42), transparent 64%);
}
.uc-hero-inner { position: relative; z-index: 2; display: flex; gap: 26px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.uc-hello { font-size: 23px; font-weight: 800; letter-spacing: -.03em; }
.uc-hello-sub { margin-top: 7px; font-size: 13.6px; color: #9fb2d0; }
.uc-dot-sep { margin: 0 7px; color: #4a5e82; }
.uc-hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.uc-btn-light {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.18); color: #e8eefc;
}
.uc-btn-light:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.uc-hero-cards { display: flex; gap: 14px; flex-wrap: wrap; }
.uc-mini {
  min-width: 168px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13);
  color: #fff; transition: .18s; display: block;
}
.uc-mini:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.uc-mini-l { font-size: 12.5px; color: #9fb2d0; margin-bottom: 7px; }
.uc-mini-v { font-size: 25px; font-weight: 800; letter-spacing: -.03em; font-family: var(--mono); }
.uc-mini-t { font-size: 12.2px; color: #7d92b6; margin-top: 7px; }

/* ============================================================
   用户中心 v2 —— 统计卡带图标
   ============================================================ */
.stat { position: relative; }
.stat-ic {
  position: absolute; top: 15px; right: 15px;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand-soft); display: grid; place-items: center; font-size: 16px;
}

/* ============================================================
   用户中心 v2 —— 双列 / 流水
   ============================================================ */
.uc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.uc-two > .card { margin-bottom: 0; }
.uc-two-left { grid-template-columns: 1.15fr .85fr; }

.uc-logs { padding: 6px 0; }
.uc-log { display: flex; align-items: center; gap: 12px; padding: 12px 22px; }
.uc-log + .uc-log { border-top: 1px solid var(--line-2); }
.uc-log-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.uc-log-ic.in { background: var(--ok-soft); color: var(--ok); }
.uc-log-ic.out { background: var(--err-soft); color: var(--err); }
.uc-log-body { flex: 1; min-width: 0; }
.uc-log-t { font-size: 14px; font-weight: 600; }
.uc-log-s { font-size: 12.4px; color: var(--muted-2); margin-top: 2px; }
.uc-log-amt { font-family: var(--mono); font-weight: 700; font-size: 14.5px; }
.uc-log-amt.in { color: var(--ok); }
.uc-log-amt.out { color: var(--err); }

/* ============================================================
   余额充值
   ============================================================ */
.uc-wallet {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between;
  border-radius: 18px; padding: 24px 28px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 55%, #7c3aed 100%);
  box-shadow: 0 18px 40px -18px rgba(37,99,235,.6);
}
.uc-wallet-l { font-size: 13px; color: rgba(255,255,255,.82); }
.uc-wallet-v { font-size: 40px; font-weight: 800; letter-spacing: -.04em; font-family: var(--mono); line-height: 1.15; margin-top: 4px; }
.uc-wallet-v small { font-size: 22px; margin-right: 4px; opacity: .85; }
.uc-wallet-t { font-size: 12.8px; color: rgba(255,255,255,.78); margin-top: 8px; }
.uc-wallet-side { display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-end; }
.uc-wallet-kv { font-size: 12.6px; color: rgba(255,255,255,.78); }
.uc-wallet-kv b { display: block; font-size: 17px; font-family: var(--mono); color: #fff; margin-top: 3px; }

.amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amt-chip {
  padding: 12px 8px; border-radius: 11px; cursor: pointer; transition: .16s;
  background: #fff; border: 1px solid var(--line); font-family: inherit;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.amt-chip:hover { border-color: #bfdbfe; background: #fbfdff; }
.amt-chip.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.amt-chip .ac-num { font-size: 16px; font-weight: 700; color: var(--ink); }
.amt-chip.on .ac-num { color: var(--brand); }
.amt-chip .ac-gift { font-size: 11.4px; color: var(--ok); font-weight: 600; }

.input-money { position: relative; }
.input-money .im-cur {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 16px; font-weight: 700; color: var(--muted); pointer-events: none;
}
.input-money .input { padding-left: 32px; font-family: var(--mono); font-size: 16px; font-weight: 600; }

.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-method {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 11px 15px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; transition: .16s; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.pay-method:hover { border-color: #cbd5e1; }
.pay-method.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.pay-method input { display: none; }
.pm-ic {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.pm-ic.alipay { background: #1677ff; }
.pm-ic.wxpay { background: #07c160; }
.pm-ic.qqpay { background: #12b7f5; }

.qr-box { margin-top: 16px; display: grid; place-items: center; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: #fbfcfe; }
.qr-box img { max-width: 190px; border-radius: 10px; }

.uc-contact { margin-top: 16px; display: grid; gap: 8px; }
.uc-contact > div { display: flex; justify-content: space-between; font-size: 13.6px; padding: 9px 13px; background: var(--line-2); border-radius: 9px; }
.uc-contact span { color: var(--muted); }
.uc-contact b { font-family: var(--mono); }

/* ============================================================
   实名认证
   ============================================================ */
.rn-hero {
  display: flex; gap: 18px; align-items: flex-start;
  border-radius: 16px; padding: 22px 24px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line);
}
.rn-hero.rn-1 { border-color: #fde68a; background: linear-gradient(120deg, #fffbeb, #fff); }
.rn-hero.rn-2 { border-color: #bbf7d0; background: linear-gradient(120deg, #f0fdf4, #fff); }
.rn-hero.rn-3 { border-color: #fecaca; background: linear-gradient(120deg, #fef2f2, #fff); }
.rn-ic {
  width: 50px; height: 50px; border-radius: 14px; flex: none; font-size: 24px;
  display: grid; place-items: center; background: var(--brand-soft);
}
.rn-hero.rn-1 .rn-ic { background: var(--warn-soft); }
.rn-hero.rn-2 .rn-ic { background: var(--ok-soft); }
.rn-hero.rn-3 .rn-ic { background: var(--err-soft); }
.rn-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.rn-sub { font-size: 14px; color: var(--muted); margin-top: 7px; line-height: 1.7; }
.rn-time { font-size: 12.6px; color: var(--muted-2); margin-top: 5px; }

.rn-why { display: grid; gap: 16px; }
.rn-why-item { display: flex; gap: 12px; }
.rn-why-item .w-ic {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-size: 16px; background: var(--line-2);
}
.rn-why-item b { font-size: 14.2px; display: block; margin-bottom: 2px; }
.rn-why-item p { font-size: 13.4px; color: var(--muted); line-height: 1.7; }

.kv-list { display: grid; gap: 1px; background: var(--line-2); border-radius: 12px; overflow: hidden; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #fff; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }

/* ============================================================
   我的授权 / 账号设置
   ============================================================ */
.lic-title { font-family: var(--mono); font-size: 15px; letter-spacing: .01em; }
.lic-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 18px; }
.lm-l { font-size: 12.4px; color: var(--muted); margin-bottom: 5px; }
.lm-v { font-size: 14.6px; font-weight: 600; }
.usage-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 9px; }
.usage-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.usage-line .usage-txt { font-size: 12.4px; color: var(--muted-2); margin-top: 6px; }

.acct-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.acct-card {
  display: block; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink); transition: .18s;
}
a.acct-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow); transform: translateY(-2px); }
.ac-l { font-size: 12.6px; color: var(--muted); margin-bottom: 7px; }
.ac-v { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-family: var(--mono); }
.ac-t { font-size: 12.4px; color: var(--muted-2); margin-top: 6px; }

/* ============================================================
   响应式（新组件）
   ============================================================ */
@media (max-width: 1080px) {
  .uc-two, .uc-two-left { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .side { flex-direction: row; }
  .side a.on::before { display: none; }
  .side-badge, .side-mini, .side-dot { margin-left: auto; }
  .uc-hero-inner { flex-direction: column; align-items: stretch; }
  .uc-hero-cards { width: 100%; }
  .uc-mini { flex: 1; min-width: 0; }
  .uc-wallet { padding: 20px 22px; }
  .uc-wallet-v { font-size: 32px; }
  .nav-wallet { display: none; }
}
@media (max-width: 640px) {
  .amt-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-wallet-side { gap: 18px; }
  .uc-mini { min-width: 100%; }
}
