/* ===========================================================
   文案工坊 · 设计系统
   =========================================================== */
:root {
  color-scheme: dark;
  --bg: #101324;
  --bg-soft: #1c2036;
  --surface: #171a2c;
  --surface-2: #1b1f35;
  --ink: #eceefb;
  --ink-2: #a6adca;
  --ink-3: #767e9e;
  --line: #272c45;
  --line-2: #212540;

  --brand: #7b7bf0;
  --brand-2: #a78bfa;
  --brand-ink: #bcbcff;
  --brand-soft: #232748;

  --ok: #35d08b;
  --ok-soft: #14291f;
  --warn: #e3b25f;
  --warn-soft: #2b2313;
  --danger: #ff6b5e;
  --danger-soft: #2f1a1b;

  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 48%, #c084fc 100%);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .32);
  --sh-2: 0 6px 16px rgba(0, 0, 0, .38);
  --sh-3: 0 20px 50px rgba(0, 0, 0, .55);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* , *::before, *::after { 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.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.tiny { font-size: 12.5px; }
.sm { font-size: 13.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px } .mt-12 { margin-top: 12px } .mt-16 { margin-top: 16px }
.mt-24 { margin-top: 24px } .mt-40 { margin-top: 40px }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: .16s ease; white-space: nowrap;
  box-shadow: var(--sh-1);
}
.btn:hover { border-color: #39406a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(99, 102, 241, .38); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 10px 26px rgba(99, 102, 241, .52); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #5a2a2a; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 9px 12px; font-size: 14px; outline: none;
  transition: .15s; color: var(--ink);
}
.textarea { min-height: 84px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(123, 123, 240, .22);
}
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a6adca' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; cursor: pointer; transition: .15s;
  color: var(--ink-2); font-weight: 500;
}
.chip:hover { border-color: #39406a; color: var(--ink); }
.chip.on { background: var(--brand-soft); border-color: #4b4fb0; color: var(--brand-ink); font-weight: 600; }

.switch { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.switch button {
  border: 0; background: transparent; padding: 7px 15px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .15s;
}
.switch button.on { background: #2b3055; color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--ink-2);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-brand { background: var(--brand-soft); color: var(--brand-ink); }

.alert { border-radius: var(--r); padding: 11px 14px; font-size: 13.5px; line-height: 1.6; }
.alert-danger { background: var(--danger-soft); color: #ffb3aa; }
.alert-ok { background: var(--ok-soft); color: #7fe3b4; }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); }
.alert-warn { background: var(--warn-soft); color: #f0cd8a; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(16, 19, 36, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 62px; display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .45);
}
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { color: var(--brand-ink); }

/* ---------- 落地页 ---------- */
.hero { position: relative; overflow: hidden; padding: 78px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 620px;
  background: radial-gradient(58% 60% at 50% 40%, rgba(139, 92, 246, .30), transparent 70%),
              radial-gradient(40% 50% at 78% 20%, rgba(99, 102, 241, .26), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600;
  color: var(--brand-ink); box-shadow: var(--sh-1);
}
h1.hero-title { font-size: 46px; line-height: 1.16; margin: 20px 0 18px; letter-spacing: -.03em; }
h1.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16.5px; color: var(--ink-2); line-height: 1.75; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.fact b { display: block; font-size: 20px; letter-spacing: -.02em; }
.fact span { font-size: 12.5px; color: var(--ink-3); }

.demo-window {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-3); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2b3150; }
.dot.r { background: #ff5f57 } .dot.y { background: #febc2e } .dot.g { background: #28c840 }
.demo-body { padding: 20px; }
.demo-line { height: 9px; border-radius: 5px; background: var(--bg-soft); margin-bottom: 9px; }
.demo-out {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 15px 16px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap;
}
.demo-out .hl { color: var(--ink); font-weight: 700; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--brand); vertical-align: -2px; animation: blink 1s steps(2) infinite; border-radius: 1px; }
@keyframes blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }

.section { padding: 76px 0; }
.section-soft { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 { font-size: 32px; letter-spacing: -.025em; }
.sec-head p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #333a5e; }
.tile .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; background: var(--brand-soft); margin-bottom: 14px;
}
.tile h3 { font-size: 16px; margin-bottom: 7px; }
.tile p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.tile .cost { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

.price-card { position: relative; padding: 26px 24px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.price-card.hot { border: 1.5px solid #4c50b8; box-shadow: var(--sh-3); }
.price-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 15px; font-weight: 700; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price-amount .cur { font-size: 18px; font-weight: 700; }
.price-amount .num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price-amount .unit { font-size: 13px; color: var(--ink-3); }
.price-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.price-list li { display: flex; gap: 9px; align-items: flex-start; }
.price-list .tick { color: var(--ok); font-weight: 800; flex: none; }
.price-card .btn { margin-top: auto; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 0; font-size: 15.5px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq-q .pm { color: var(--ink-3); font-size: 19px; flex: none; }
.faq-a { padding: 0 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.8; max-width: 780px; }

.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }

/* ---------- 工作台 ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner { height: 62px; display: flex; align-items: center; gap: 14px; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13.5px; font-weight: 700;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none;
}

.workspace { display: grid; grid-template-columns: 400px 1fr; gap: 18px; align-items: start; padding: 22px 0 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.panel-head { padding: 16px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h2 { font-size: 15px; }
.panel-body { padding: 18px; }
.panel-scroll { max-height: calc(100vh - 320px); overflow-y: auto; }
.sticky-col { position: sticky; top: 80px; }

.output-area {
  min-height: 400px; border-radius: var(--r); border: 1px dashed var(--line);
  background: var(--surface-2); padding: 20px 22px; font-size: 14.5px; line-height: 1.95;
  white-space: pre-wrap; word-break: break-word; overflow-y: auto;
  max-height: calc(100vh - 360px);
}
.output-area.has-content { border-style: solid; border-color: var(--line); background: var(--surface); }
.output-area .sec-label { display: block; color: var(--brand-ink); font-weight: 800; font-size: 13.5px; letter-spacing: .02em; margin: 16px 0 2px; }
.output-area .sec-label:first-child { margin-top: 0; }
.empty-state { display: grid; place-items: center; text-align: center; color: var(--ink-3); height: 100%; min-height: 356px; gap: 10px; }
.empty-state .big { font-size: 34px; opacity: .5; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 22px; overflow-x: auto; }
.tab {
  background: none; border: 0; padding: 12px 16px; font-size: 14px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tabpane { padding: 20px 0 40px; }

.hist-item { padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--surface); transition: .15s; }
.hist-item:hover { border-color: #333a5e; box-shadow: var(--sh-1); }
.hist-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.hist-body { font-size: 13px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.hist-item.open .hist-body { max-height: 1400px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 17px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.stat .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 25px; font-weight: 800; letter-spacing: -.03em; margin-top: 5px; }

/* ---------- 认证页 ---------- */
.auth-shell { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 44px 22px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 32px 30px; }
.auth-card h1 { font-size: 23px; margin-bottom: 7px; letter-spacing: -.02em; }
.auth-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 20px 0 20px; }
.auth-tab { background: none; border: 0; padding: 0 0 11px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tab.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.otp-row { display: flex; gap: 8px; }
.otp-row .input { letter-spacing: .3em; font-weight: 700; }

/* ---------- 弹窗 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 22px; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .62); overflow: hidden;
  animation: pop .2s cubic-bezier(.2, .9, .3, 1);
  max-height: 92vh; display: flex; flex-direction: column;
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0 } }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 16px 24px 22px; overflow-y: auto; }
.modal-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; background: var(--surface-2); }
.x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 2px; }
.x:hover { color: var(--ink); }

.qr-box { text-align: center; padding: 14px; }
.qr-box img { width: 218px; height: 218px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.amt-display { text-align: center; margin: 6px 0 4px; }
.amt-display .n { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.order-no { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); background: var(--bg-soft); border-radius: 8px; padding: 7px 10px; margin-top: 12px; word-break: break-all; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: 9px; width: min(440px, calc(100vw - 32px)); }
.toast {
  background: #2a3050; color: #fff; border-radius: 11px; padding: 12px 16px; font-size: 13.5px;
  box-shadow: var(--sh-3); animation: drop .22s ease; line-height: 1.6;
}
.toast.ok { background: #118454; } .toast.err { background: #c2301f; } .toast.warn { background: #96631a; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0 } }

.spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
.btn .spin { border-color: rgba(123,123,240,.3); border-top-color: var(--brand); }
.btn-primary .spin { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
@keyframes sp { to { transform: rotate(360deg) } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  h1.hero-title { font-size: 36px; }
  .workspace { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .output-area { max-height: none; }
}
/* ---------- 效果示例（左输入 / 右产出） ---------- */
.sample-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.sample-card {
  display: grid; grid-template-columns: 310px 1fr;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-2);
}
.sample-input { background: var(--surface-2); border-right: 1px solid var(--line); padding: 24px 22px; }
.sample-input .cap {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3);
  text-transform: uppercase; margin-bottom: 16px;
}
.sample-row { margin-bottom: 13px; }
.sample-row b { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 3px; }
.sample-row span { font-size: 13.5px; color: var(--ink); line-height: 1.65; }
.sample-out { padding: 24px; max-height: 520px; overflow-y: auto; }
.sample-out .cap {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--brand-ink);
  text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 7px;
}
.sample-body { font-size: 14px; line-height: 1.95; color: var(--ink-2); white-space: pre-wrap; }
.sample-body .hl { color: var(--ink); font-weight: 800; }

/* ---------- 适用人群 ---------- */
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.who-card {
  display: flex; gap: 15px; padding: 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.who-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--brand-soft); flex: none; }
.who-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.who-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.who-card .uses { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.who-card .uses .tag {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2); font-weight: 600;
}

/* ---------- 法务 / 条款页 ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 44px 0 70px; }
.legal h1 { font-size: 30px; letter-spacing: -.025em; }
.legal .updated { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.legal h2 { font-size: 19px; margin: 38px 0 12px; padding-top: 6px; }
.legal h3 { font-size: 15px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-ink); font-weight: 600; }
.legal .toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 6px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.legal .toc a { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); }

/* ---------- 工作台小工具条 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { height: 36px; padding: 6px 12px; font-size: 13.5px; }
.toolbar .input.grow { min-width: 200px; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  border-radius: var(--r); background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13.5px; line-height: 1.7;
}
.notice.warn { background: var(--warn-soft); color: #f0cd8a; }
.notice.ok { background: var(--ok-soft); color: #7fe3b4; }
.notice .ic { flex: none; font-size: 15px; }

@media (max-width: 980px) {
  .sample-card { grid-template-columns: 1fr; }
  .sample-input { border-right: 0; border-bottom: 1px solid var(--line); }
  .sample-out { max-height: 420px; }
  .who { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1.hero-title { font-size: 30px; }
  .section { padding: 54px 0; }
  .sec-head h2 { font-size: 25px; }
  .card-pad, .panel-body { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 26px 20px; }
}

/* ---------- 代写服务页 ---------- */
.profile-hero { position: relative; overflow: hidden; padding: 56px 0 8px; }
.profile-hero::before {
  content: ""; position: absolute; inset: -60% -20% auto -20%; height: 520px;
  background: radial-gradient(50% 60% at 42% 45%, rgba(139, 92, 246, .26), transparent 70%),
              radial-gradient(38% 48% at 80% 25%, rgba(99, 102, 241, .22), transparent 70%);
  pointer-events: none;
}
.profile-card {
  position: relative; display: flex; gap: 22px; align-items: center;
  padding: 26px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3);
}
.profile-avatar {
  width: 70px; height: 70px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 28px; font-weight: 800; flex: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .5);
}
.profile-card h1 { font-size: 26px; letter-spacing: -.025em; }
.profile-card .lead { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; line-height: 1.7; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.profile-tags .tag {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600;
}
.profile-facts { position: relative; display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; padding: 0 4px; }

.svc-card {
  display: flex; flex-direction: column; padding: 22px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-1); transition: .18s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #333a5e; }
.svc-card .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-size: 19px; background: var(--brand-soft); margin-bottom: 14px;
}
.svc-card h3 { font-size: 16px; margin-bottom: 8px; }
.svc-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }
.svc-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.svc-price .from { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.svc-price .n { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.svc-price .n .cur { font-size: 15px; font-weight: 700; }
.svc-price .n .unit { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.price-tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 700;
  white-space: nowrap;
}

/* 报价表的分组标题行（文案代写 / 技术外包） */
tr.quote-group td {
  background: var(--bg-soft);
  color: var(--brand-ink);
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em;
}

.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.promise {
  display: flex; gap: 12px; padding: 17px 18px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.promise .tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; margin-top: 3px;
}
.promise b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.promise span { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.promise > div { min-width: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.step .n {
  width: 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 14px; font-weight: 800; margin-bottom: 13px;
}
.step h3 { font-size: 15px; margin-bottom: 7px; }
.step p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }

.cta-card {
  text-align: center; padding: 42px 28px; border-radius: var(--r-xl);
  background: var(--surface); border: 1.5px solid #4c50b8; box-shadow: var(--sh-3);
}
.cta-card h2 { font-size: 27px; letter-spacing: -.025em; }
.cta-card .sub { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.contact-box {
  display: inline-flex; flex-direction: column; gap: 5px; align-items: center;
  margin-top: 24px; padding: 15px 26px; border-radius: var(--r);
  background: var(--bg-soft); border: 1px dashed var(--line);
}
.contact-box .k { font-size: 12.5px; color: var(--ink-3); }
.contact-box .v { font-size: 19px; font-weight: 800; letter-spacing: .02em; color: var(--brand-ink); font-family: var(--mono); }

@media (max-width: 980px) {
  .profile-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-facts { gap: 26px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .promise-grid, .steps { grid-template-columns: 1fr; }
  .profile-card { padding: 20px; }
  .profile-card h1 { font-size: 21px; }
  .cta-card { padding: 32px 18px; }
  .cta-card h2 { font-size: 22px; }
}

/* ============================================================
   AI 客服浮窗（support.js）
   ============================================================ */
.sup-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 1px solid var(--brand);
  border-radius: 999px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sup-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.sup-fab-ico { font-size: 18px; line-height: 1; }

.sup-panel {
  position: fixed; right: 18px; bottom: 78px; z-index: 91;
  width: min(360px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  overflow: hidden;
}
.sup-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2, var(--surface));
}
.sup-ava {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 800; font-size: 15px;
}
.sup-head-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sup-head-t b { font-size: 14px; }
.sup-head-t span { font-size: 11.5px; color: var(--dim, #8b93b5); }
.sup-x {
  border: 0; background: transparent; color: var(--dim, #8b93b5);
  font-size: 20px; cursor: pointer; padding: 2px 8px; line-height: 1;
}
.sup-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.sup-msg { display: flex; }
.sup-me { justify-content: flex-end; }
.sup-bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.sup-bot .sup-bubble { background: var(--surface-2, rgba(255,255,255,.06)); border: 1px solid var(--line); color: var(--ink, inherit); border-top-left-radius: 4px; }
.sup-me .sup-bubble { background: var(--brand); color: var(--brand-ink); border-top-right-radius: 4px; }
.sup-tip {
  margin: 0 12px 6px; padding: 7px 10px;
  font-size: 12px; color: #ffd47f;
  background: rgba(255,190,80,.08);
  border: 1px solid rgba(255,190,80,.25);
  border-radius: 8px;
}
.sup-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.sup-input {
  flex: 1; min-width: 0;
  padding: 10px 12px; font-size: 13.5px;
  background: var(--bg, transparent);
  border: 1px solid var(--line); border-radius: 10px;
  color: inherit; outline: none;
}
.sup-input:focus { border-color: var(--brand); }
.sup-send {
  padding: 10px 16px; font-size: 13.5px; font-weight: 700;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
}
.sup-send:disabled { opacity: .55; cursor: default; }

@media (max-width: 620px) {
  .sup-fab { right: 12px; bottom: 12px; padding: 11px 14px; }
  .sup-fab-txt { display: none; }
  .sup-panel { right: 8px; left: 8px; width: auto; bottom: 66px; height: min(60vh, 460px); }
}

/* 客服微信二维码展示块 */
.wechat-qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wechat-qr-box img {
  width: 180px; height: auto; display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.wechat-qr-box .tiny { text-align: center; }

