/* ai.3v.gg — 像素级复刻 ysaiw.com 设计系统 · 3V 紫色主题 */
:root {
  --bg: #eef0f6;
  --surface: #fff;
  --surface-soft: #f7f5fb;
  --ink: #101820;
  --muted: #667586;
  --line: #dce0ea;
  --brand: #5d21d1;
  --brand-dark: #431995;
  --brand-light: #7c3ff2;
  --brand-soft: #ede9fe;
  --brand-navy: #2d1065;
  --accent: #ff8c2a;
  --red: #c0392b;
  --green: #5d21d1;
  --green-dark: #431995;
  --green-soft: #ede9fe;
  --shadow-soft: 0 12px 30px rgba(45, 16, 101, .06);
  --sidebar-w: 252px;
  --top-h: 72px;
  font-family: Inter, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); min-width: 0; overflow-x: hidden; line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
input::placeholder, textarea::placeholder { color: #98a5b3; opacity: 1; }
.hidden { display: none !important; }

/* ===== App Shell ===== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.app-shell.no-sidebar { grid-template-columns: 1fr; }
.app-shell.no-sidebar .side-nav { display: none; }

.side-nav {
  color: #fff;
  background: linear-gradient(180deg, #2d1065 0%, #1a0a3d 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  overflow-y: auto;
}
.brand-block { display: flex; align-items: center; gap: 12px; padding: 6px 4px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  display: grid; place-items: center; font-weight: 900; font-size: 13px;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.brand-block strong { font-size: 18px; display: block; }
.brand-block span, .brand-logo-copy small { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 4px; display: block; }

.member-sidebar-title {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 12px; font-size: 18px; font-weight: 950; color: #e8e0ff;
}
.member-sidebar-title svg { color: var(--brand-light); }

.member-side-menu { display: grid; gap: 8px; }
.member-side-menu a {
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 0 14px; border-radius: 8px;
  color: rgba(255,255,255,.82); font-weight: 950; font-size: 14px;
  border: 1px solid transparent; transition: .16s;
  text-decoration: none;
}
.member-side-menu a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.member-side-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 32px rgba(93,33,209,.35);
}
.member-side-menu a em {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 950;
  color: #fff; background: var(--accent); border-radius: 999px;
  min-height: 22px; padding: 0 8px; display: inline-flex; align-items: center;
}
.member-side-menu a svg { flex-shrink: 0; opacity: .85; }

.main-shell { min-width: 0; padding-bottom: 48px; }

/* ===== Top Bar ===== */
.top-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: var(--top-h); padding: 12px 28px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.top-nav-links a {
  padding: 8px 14px; border-radius: 8px; color: #334155;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.top-nav-links a:hover, .top-nav-links a.active { background: var(--brand-soft); color: var(--brand); }

.top-ai-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top-ai-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 12px;
  box-shadow: 0 12px 24px rgba(93,33,209,.18);
}
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.bell-btn {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; color: var(--muted); cursor: pointer;
}
.account-chip {
  display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; min-width: 0;
}
.account-badge {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-soft), #fff);
  border: 1px solid rgba(93,33,209,.15);
  display: grid; place-items: center; color: var(--brand-dark); font-weight: 800; font-size: 14px;
}
.account-chip strong { font-size: 14px; font-weight: 900; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-chip small { color: var(--red); font-size: 12px; font-weight: 800; display: block; }

.primary, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 16px; border-radius: 10px;
  font-weight: 800; text-decoration: none; border: 1px solid var(--line);
}
.primary { color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand-light)); border-color: transparent; box-shadow: 0 12px 24px rgba(93,33,209,.28); }
.primary.full { width: 100%; min-height: 56px; font-size: 18px; }
.ghost { color: var(--ink); background: #fff; }
.ghost.icon-only { width: 42px; padding: 0; }

/* ===== Workspace ===== */
.workspace { padding: 28px; min-width: 0; }
.member-page-title { margin-bottom: 16px; }
.member-page-title h1 { font-size: clamp(24px, 1.9vw, 28px); font-weight: 950; letter-spacing: 0; line-height: 1.2; color: #0e1b38; }
.member-page-title p { color: #64748b; margin-top: 5px; font-size: 14px; font-weight: 850; }

/* KPI Stats */
.kpi-strip, .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.member-stat-tile {
  text-align: left;
  background: linear-gradient(#fff, #faf8ff);
  border: 1px solid #dce5ee;
  border-radius: 16px;
  min-height: 154px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .16s, border-color .16s, box-shadow .16s;
  position: relative;
}
.member-stat-tile:hover { border-color: #c4b5fd; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(45,16,101,.1); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.stat-icon.blue { color: #2563eb; background: #eff6ff; }
.stat-icon.red { color: #dc2626; background: #fef2f2; }
.stat-icon.navy { color: var(--brand-dark); background: var(--brand-soft); }
.stat-icon.purple { color: #7c3aed; background: #f5f3ff; }
.member-stat-tile .stat-label { color: var(--brand); font-weight: 900; font-size: 13px; display: block; }
.member-stat-tile strong { color: #101820; margin-top: 8px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 950; line-height: 1.08; display: block; }
.member-stat-tile small { color: var(--muted); margin-top: 12px; font-weight: 700; display: block; line-height: 1.45; }
.member-stat-tile small a { color: var(--brand); font-weight: 900; }

/* Member Overview Grid */
.member-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 18px;
  align-items: stretch;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
  box-shadow: 0 18px 44px rgba(45,16,101,.08);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 0; gap: 12px;
}
.panel-head h2 { font-size: 18px; font-weight: 950; color: #102044; letter-spacing: 0; }
.panel-head a { font-size: 13px; font-weight: 900; color: var(--brand); }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; padding: 12px 16px; color: var(--muted);
  font-weight: 800; font-size: 12px; border-bottom: 1px solid var(--line);
  background: #fafbff;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #faf8ff; }

.member-status {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 950; white-space: nowrap;
}
.member-status.done { color: #0c7a43; background: #e7f8ee; }

.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-actions .ghost { min-height: 34px; padding: 0 12px; font-size: 12px; font-weight: 850; border-radius: 8px; }

/* Capability Panel */
.member-capability-panel { padding: 18px 16px; display: grid; gap: 14px; align-content: start; }
.cap-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 800;
}
.cap-row:last-of-type { border-bottom: none; }
.cap-row span:last-child { color: var(--brand); font-weight: 950; }

.member-plan-mini {
  color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(124,63,242,.45), transparent 26%),
              linear-gradient(135deg, var(--brand-navy), var(--brand-dark));
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 22px 50px rgba(93,33,209,.25);
}
.member-plan-mini strong { display: block; font-size: 18px; font-weight: 950; margin-bottom: 12px; }
.member-plan-mini .primary { width: 100%; background: #fff; color: var(--brand-dark); box-shadow: none; }

.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 96px minmax(170px,auto);
  align-items: center; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(#fff, #fafcff);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row b { color: var(--brand-dark); font-weight: 950; white-space: nowrap; text-align: center; }
.ledger-row small { color: var(--muted); text-align: right; font-size: 13px; }
.ledger-row span { color: var(--muted); font-size: 13px; display: block; }

.recharge-card { padding: 20px; }
.recharge-card p { color: var(--muted); margin: 8px 0; font-weight: 800; }
.recharge-card strong { color: var(--ink); font-size: 16px; }

/* ===== Landing / Home ===== */
.landing-home { background: #fff; overflow: hidden; margin: -28px -28px 0; }
.landing-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(220px,1fr) auto minmax(220px,1fr);
  align-items: center; gap: 24px; height: 78px; padding: 0 30px;
  background: linear-gradient(rgba(255,255,255,.98), rgba(247,245,251,.94));
  border-bottom: 1px solid rgba(45,16,101,.1);
  box-shadow: 0 10px 26px rgba(45,16,101,.06);
}
.landing-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-navy); font-weight: 900; text-decoration: none; }
.landing-nav {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 58px; padding: 6px; border-radius: 16px;
  background: linear-gradient(rgba(255,255,255,.96), rgba(247,245,251,.9));
  border: 1px solid rgba(93,33,209,.13);
  box-shadow: inset 0 1px #fff, 0 16px 36px rgba(45,16,101,.09);
}
.landing-nav a {
  padding: 10px 16px; border-radius: 10px; color: #334155;
  font-weight: 850; font-size: 14px; text-decoration: none;
}
.landing-nav a.active, .landing-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.landing-login {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 8px;
  color: #fff; font-weight: 900; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  box-shadow: 0 16px 30px rgba(93,33,209,.28);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(390px,.92fr) minmax(560px,1.08fr);
  align-items: stretch; gap: 34px; min-height: 720px; padding: 28px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 17% 34%, rgba(124,63,242,.22), transparent 28%),
    linear-gradient(105deg, #1a0a3d 0%, #2d1065 46%, #431995 100%);
  position: relative;
}
.landing-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px 0 34px; }
.landing-product-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 850;
  color: #e8deff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
}
.landing-hero-copy h1 {
  margin: 20px 0 16px; font-size: clamp(32px, 3.2vw, 48px); font-weight: 950; line-height: 1.1;
}
.landing-hero-copy p { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.75; max-width: 520px; }
.landing-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }
.landing-cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 25px; border: 0; border-radius: 8px;
  color: #fff; font-size: 15px; font-weight: 950; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  box-shadow: 0 18px 34px rgba(93,33,209,.35);
  text-decoration: none;
}
.landing-secondary {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 8px; color: #fff; font-weight: 900;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.55);
  text-decoration: none;
}
.landing-feature-row {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px; margin-top: auto; padding-top: 48px;
}
.landing-feature-row div {
  padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.landing-feature-row strong { display: block; font-size: 15px; margin-bottom: 6px; }
.landing-feature-row span { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.5; }

.landing-workbench-card {
  align-self: center;
  color: #0c1830;
  background: linear-gradient(#fff 0%, #f8f5ff 100%);
  border: 1px solid rgba(93,33,209,.18);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 32px 70px rgba(0,0,0,.22);
  min-width: 0;
}
.landing-workbench-card h3 { font-size: 16px; font-weight: 950; margin-bottom: 12px; }
.quote-flow-mini { display: grid; gap: 10px; }
.flow-step-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: #faf8ff; border: 1px solid #e8e0f5;
}
.flow-step-mini i {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px;
}
.flow-step-mini b { display: block; font-size: 14px; }
.flow-step-mini span { color: var(--muted); font-size: 12px; font-weight: 700; }

.landing-cases { background: #fff; padding: 24px 28px 40px; }
.landing-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.landing-section-head h2 { font-size: 24px; font-weight: 950; }
.landing-case-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.landing-case-card {
  display: grid; overflow: hidden; border-radius: 8px;
  border: 1px solid #dbe4ee; background: #fff; text-decoration: none; color: #0b1424;
  box-shadow: 0 12px 28px rgba(45,16,101,.08);
  transition: transform .18s, box-shadow .18s;
}
.landing-case-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(45,16,101,.12); }
.landing-case-visual {
  height: 124px;
  background: linear-gradient(135deg, rgba(45,16,101,.15), rgba(124,63,242,.2)), linear-gradient(120deg, #ddd6fe, #f7f5ff);
}
.landing-case-card div:last-child { padding: 14px; font-weight: 850; font-size: 13px; line-height: 1.45; }

/* ===== Workbench ===== */
.workbench-page { max-width: 1400px; }
.hero-workbench {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 22px;
  box-shadow: 0 18px 44px rgba(45,16,101,.08);
}
.quote-flow {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 14px;
  margin-top: 20px;
}
.quote-flow > b {
  width: 34px; height: 34px; border-radius: 50%;
  background: #eef0f6; color: #91a5af;
  display: grid; place-items: center; font-size: 13px;
}
.flow-step {
  background: linear-gradient(#fff, #faf8ff);
  border: 1px solid #dfe8e5;
  border-radius: 18px;
  min-height: 132px; padding: 18px;
  box-shadow: 0 18px 36px rgba(45,16,101,.08);
}
.flow-step i {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-style: normal; font-weight: 900;
}
.flow-step strong { display: block; margin-top: 14px; font-size: 18px; line-height: 1.2; }
.flow-step span { display: block; margin-top: 7px; color: var(--muted); font-weight: 700; line-height: 1.45; font-size: 13px; }

.input-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 44px rgba(45,16,101,.08);
}
.mode-tabs {
  display: inline-grid; grid-auto-flow: column;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 24px rgba(45,16,101,.04);
}
.mode-tabs button {
  padding: 14px 24px; border: 0; background: #fff;
  color: var(--muted); font-weight: 900;
  display: inline-flex; align-items: center; gap: 8px;
}
.mode-tabs button.active { background: var(--ink); color: #fff; }
.field-head { display: flex; justify-content: space-between; color: var(--muted); margin: 18px 0 10px; font-weight: 800; font-size: 13px; }
.input-card textarea {
  width: 100%; min-height: 140px; padding: 18px;
  border: 1px solid #b9c8c4; border-radius: 14px;
  font-size: 18px; line-height: 1.65; resize: vertical; outline-color: var(--brand);
}
.input-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 18px; }
.cta-generate {
  min-height: 48px; padding: 0 28px; border: 0; border-radius: 10px;
  color: #fff; font-weight: 950; font-size: 15px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #e67a00);
  box-shadow: 0 14px 28px rgba(255,140,42,.35);
}

/* ===== Packages ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.member-pricing-card {
  background: #fff; border: 1px solid #e2e8f2; border-radius: 12px;
  min-height: 560px; padding: 22px 22px 24px;
  display: grid; grid-template-rows: auto auto auto auto 1fr auto;
  gap: 11px; position: relative;
  box-shadow: 0 20px 45px rgba(45,16,101,.06);
}
.member-pricing-card.featured { border-color: var(--brand); box-shadow: 0 24px 50px rgba(93,33,209,.15); }
.member-pricing-card .pkg-name { font-size: 20px; font-weight: 950; }
.member-pricing-card .pkg-price { font-size: 36px; font-weight: 950; color: var(--brand); line-height: 1; }
.member-pricing-card .pkg-price small { font-size: 16px; }
.member-pricing-card ul { list-style: none; align-self: start; }
.member-pricing-card li { padding: 7px 0; color: #475569; font-weight: 800; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
.member-pricing-card li::before { content: "✓ "; color: var(--brand); font-weight: 950; }

/* ===== Login Modal (ysaiw login-modal) ===== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(10, 18, 17, .48);
}
.login-modal {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  width: min(940px, 100vw - 32px);
  max-height: min(82vh, 620px);
  background: #fff;
  border: 1px solid rgba(226, 233, 243, .96);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 82px rgba(15, 23, 42, .26);
}
.auth-brand-panel {
  display: flex; flex-direction: column; gap: 18px;
  min-height: 580px; padding: 44px 38px 38px;
  color: #0f1b35;
  background:
    linear-gradient(#4319950b 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, #4319950b 1px, transparent 1px) 0 0/28px 28px,
    radial-gradient(circle at 84% 28%, rgba(93,33,209,.08), transparent 26%),
    linear-gradient(#f8f5ff 0%, #ede9fe 100%);
  position: relative; overflow: hidden;
}
.auth-brand-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: linear-gradient(135deg, transparent 58%, rgba(109,128,156,.08) 58%, transparent 60%),
              linear-gradient(25deg, transparent 67%, rgba(109,128,156,.08) 67%, transparent 69%);
}
.auth-brand-panel > * { position: relative; z-index: 1; }
.auth-brand-logo { justify-content: flex-start; align-items: center; margin-bottom: 8px; border: none; padding: 0; }
.auth-brand-logo .brand-mark { width: 46px; height: 46px; border-radius: 12px; }
.auth-brand-logo .brand-logo-copy small { color: #4f6078; margin-top: 8px; font-size: 14px; font-weight: 800; }

.auth-quote-preview { display: grid; place-items: center; margin: 4px -4px 6px; }
.auth-quote-card {
  width: min(100%, 278px); padding: 18px 16px 14px;
  background: rgba(255,255,255,.92); border: 1px solid #dbe5f0;
  border-radius: 8px; box-shadow: 0 22px 42px rgba(45,16,101,.11);
}
.auth-quote-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.auth-quote-card-head strong { color: #16223a; font-size: 13px; font-weight: 950; }
.auth-quote-card-head span {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px; padding: 0 8px; border-radius: 999px;
  color: #328253; background: #eaf8ef; font-size: 10px; font-weight: 950; white-space: nowrap;
}
.auth-quote-card dl { display: grid; gap: 6px; margin: 0 0 14px; }
.auth-quote-card dl div { display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: center; gap: 8px; }
.auth-quote-card dt { margin: 0; color: #6b7a90; font-size: 10px; font-weight: 800; line-height: 1.25; }
.auth-quote-card dd { margin: 0; color: #1e2d47; font-size: 10px; font-weight: 850; line-height: 1.25; }
.auth-quote-card table { width: 100%; border-collapse: collapse; border-radius: 6px; overflow: hidden; font-size: 9.5px; }
.auth-quote-card th { text-align: left; padding: 5px 4px; background: #f4f7fb; color: #6b7a90; font-weight: 800; }
.auth-quote-card td { padding: 5px 4px; color: #334155; border-top: 1px solid #eef2f7; }
.auth-quote-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #dbe5f0; }
.auth-quote-total span { font-size: 10px; color: #6b7a90; font-weight: 800; }
.auth-quote-total strong { color: var(--brand); font-size: 16px; font-weight: 950; }

.auth-brand-features { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.auth-brand-features li {
  display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; column-gap: 12px; min-height: 46px;
}
.auth-brand-features li > span {
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--brand); background: rgba(255,255,255,.88);
  border: 1px solid #d6e1ef; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(45,16,101,.07); grid-row: 1 / span 2;
}
.auth-brand-features li strong { color: #101a33; font-size: 15px; font-weight: 950; line-height: 1.15; display: block; }
.auth-brand-features li em { color: #5c6d84; font-size: 12px; font-style: normal; font-weight: 750; line-height: 1.35; }

.auth-panel { min-width: 0; max-height: inherit; padding: 0 0 10px; position: relative; overflow: auto; }
.close-btn {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid #dce5f0; background: #fff;
  color: #64748b; font-size: 22px; line-height: 1; cursor: pointer;
}
.auth-head { display: flex; align-items: center; gap: 16px; padding: 50px 78px 20px 42px; }
.auth-head > span {
  width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0;
  color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  display: grid; place-items: center;
  box-shadow: 0 16px 30px rgba(93,33,209,.22);
}
.auth-head h2 { margin: 0; font-size: 30px; font-weight: 950; line-height: 1.15; letter-spacing: 0; }
.auth-head p { color: var(--muted); margin: 7px 0 0; font-weight: 700; line-height: 1.55; font-size: 14px; }

.auth-tabs {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  margin: 0 42px; border-radius: 10px; overflow: hidden;
  background: #f3f6fa; border: 1px solid #dbe4ee;
}
.auth-tabs button {
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px;
  color: #5f6c7d; background: transparent; font-size: 14px; font-weight: 900;
}
.auth-tabs button.active {
  color: #fff; background: var(--brand-navy);
  box-shadow: 0 8px 16px rgba(16, 27, 52, .18);
}

.auth-form-panel {
  display: grid; gap: 14px;
  margin: 20px 42px 24px; padding: 22px 20px 18px;
  background: #fff; border: 1px solid #dbe4ee; border-radius: 14px;
}
.form-field span { display: block; color: #42536a; font-weight: 850; font-size: 13px; margin-bottom: 8px; }
.inline-field {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 8px;
}
.inline-field input {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: #fbfdfc; border: 1px solid #cbd9d5; border-radius: 14px;
  font-weight: 800; outline: none;
}
.inline-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(93,33,209,.12); }
.phone-split { grid-template-columns: auto minmax(0,1fr); }
.dial-code {
  min-height: 52px; padding: 0 14px; display: flex; align-items: center;
  background: #f0f4ff; border: 1px solid #cbd9d5; border-radius: 14px;
  color: #475569; font-weight: 850; white-space: nowrap;
}
.phone-split input { grid-column: 2; }
.auth-inline-notice {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px; border-radius: 8px;
  color: #b12a38; background: linear-gradient(135deg, #fff4f4, #fae7e6);
  font-size: 12px; font-weight: 850;
}
.auth-legal-line {
  text-align: center; color: #6b7688; margin: 0 42px 20px;
  font-size: 13px; font-weight: 800; line-height: 1.6;
}
.auth-legal-line a { color: var(--brand-dark); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }

/* ===== Checkout / Pay ===== */
.checkout-modal-wrap { max-width: 760px; margin: 0 auto; }
.checkout-panel {
  background: linear-gradient(#f8f5ff 0%, #fff 34%), #fff;
  border: 1px solid #d9e3ef; border-radius: 8px;
  padding: 34px; box-shadow: 0 34px 90px rgba(45,16,101,.12);
}
.checkout-head { max-width: 620px; padding-right: 54px; margin-bottom: 22px; }
.checkout-head span {
  display: inline-flex; align-items: center; width: fit-content;
  min-height: 30px; padding: 0 11px; border-radius: 999px;
  color: var(--brand-dark); background: var(--brand-soft);
  font-size: 13px; font-weight: 950;
}
.checkout-head h2 { color: #0c1630; margin: 10px 0 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 950; line-height: 1.12; }
.checkout-head p { color: #647188; margin: 0; font-weight: 850; line-height: 1.6; }

.checkout-summary {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.82fr);
  gap: 14px; margin: 22px 0 16px;
}
.checkout-summary > div {
  background: #fff; border: 1px solid #dbe6f2; border-radius: 8px;
  min-width: 0; padding: 18px; box-shadow: 0 14px 32px rgba(45,16,101,.07);
}
.checkout-summary > div:first-child {
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-dark));
  border-color: #d7e5f5;
}
.checkout-summary > div:first-child span { color: rgba(255,255,255,.72); font-weight: 900; display: block; }
.checkout-summary > div:first-child strong { color: #fff; margin-top: 8px; font-size: 46px; font-weight: 950; line-height: 1; display: block; }
.checkout-summary span { color: #67758a; font-weight: 900; display: block; }
.checkout-summary b { color: #0c1630; margin-top: 8px; font-size: 28px; font-weight: 950; line-height: 1.05; display: block; }
.checkout-summary small { color: #647188; margin-top: 8px; font-weight: 850; display: block; }

.payment-method-grid { display: grid; gap: 10px; }
.payment-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 2px solid #dbe6f2; border-radius: 8px;
  background: #fff; cursor: pointer; transition: .15s; width: 100%; text-align: left;
}
.payment-method:hover:not(:disabled) { border-color: #c4b5fd; box-shadow: 0 18px 42px rgba(45,16,101,.13); }
.payment-method.active { border-color: var(--brand); background: rgba(93,33,209,.04); }
.payment-brand-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 28px; }
.payment-method strong { display: block; font-weight: 950; }
.payment-method small { color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 900; margin-left: auto; }

.wechat-qr-panel { text-align: center; padding: 24px; background: #f8f5ff; border: 1px solid #dfe8f2; border-radius: 8px; margin-top: 16px; }
.wechat-qr-placeholder {
  width: 200px; height: 200px; margin: 0 auto 12px;
  background: #fff; border: 1px dashed #cbd5e1; border-radius: 8px;
  display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 800;
}
.wechat-pay-tips {
  display: grid; gap: 9px; margin: 6px 0 18px; padding: 14px;
  background: #f8f5ff; border: 1px solid #dfe8f2; border-radius: 8px;
}
.wechat-pay-tips span { display: flex; align-items: center; gap: 8px; color: #526176; font-weight: 850; line-height: 1.5; font-size: 13px; }

.pay-success-panel { text-align: center; padding: 48px 24px; }
.pay-success-panel i {
  width: 58px; height: 58px; margin: 0 auto 16px;
  color: var(--brand-dark); background: var(--brand-soft); border-radius: 18px;
  display: grid; place-items: center; font-style: normal; font-size: 28px;
}
.pay-success-panel h2 { margin: 0; font-size: 26px; font-weight: 950; }
.pay-success-panel p { color: var(--muted); margin: 10px 0 20px; line-height: 1.55; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; }
  .landing-feature-row, .landing-case-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quote-flow { grid-template-columns: 1fr; }
  .quote-flow > b { display: none; }
  .member-overview-grid, .bottom-grid, .checkout-summary { grid-template-columns: 1fr; }
  .kpi-strip, .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .side-nav { display: none !important; }
  .login-modal { grid-template-columns: 1fr; width: min(560px, 100vw - 24px); max-height: 92vh; }
  .auth-brand-panel { display: none; }
  .auth-head { padding: 28px 72px 16px 24px; }
  .auth-head h2 { font-size: 25px; }
  .auth-tabs, .auth-form-panel { margin-inline: 24px; }
  .auth-legal-line { margin-inline: 24px; }
  .landing-header { grid-template-columns: 1fr auto; }
  .landing-nav { display: none; }
  .kpi-strip, .stat-grid, .pricing-grid, .landing-feature-row, .landing-case-grid { grid-template-columns: 1fr; }
}
