/* ============================================================
   HirePage 应用样式（SaaS 落地页 + 管理后台）
   ============================================================ */

:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8f0;
  --line-2: #eef0f5;
  --bg: #ffffff;
  --bg-alt: #f7f8fc;
  --card: #ffffff;
  --ok: #10b981;
  --warn: #f59e0b;
  --danger: #e11d48;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 22px; }
.accent { color: var(--brand); }
.pre-wrap { white-space: pre-wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -10px rgba(79, 70, 229, .8); }
.btn-primary:hover { box-shadow: 0 12px 26px -12px rgba(79, 70, 229, .9); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfd5e4; color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecdd3; }
.btn-danger:hover { background: #fff1f2; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.inline { display: inline; }

/* ---------------- 品牌 ---------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 16px; letter-spacing: -.01em; }
.brand em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .9);
}
.brand-mark-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.brand-mark-lg { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; }
.brand-sm b { font-size: 15px; }

/* ---------------- 导航 ---------------- */
.site-nav-wrap {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover, .nav-links a.is-active { color: var(--brand); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px;
  background:
    radial-gradient(46% 52% at 18% 18%, rgba(99, 102, 241, .18), transparent 70%),
    radial-gradient(38% 46% at 82% 6%, rgba(167, 139, 250, .22), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, .16); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.grad { background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 18px; font-size: 16.5px; color: var(--ink-2); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: var(--muted); }

/* 浏览器 mock */
.hero-visual { position: relative; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(-.6deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line-2); }
.browser-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #d8dde9; }
.browser-bar .dot:nth-child(1) { background: #fda4af; }
.browser-bar .dot:nth-child(2) { background: #fcd34d; }
.browser-bar .dot:nth-child(3) { background: #86efac; }
.browser-url { margin-left: 8px; flex: 1; font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; font-family: ui-monospace, monospace; }
.browser-body { padding: 0; }
.mock-nav { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.mock-logo { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 11px; font-weight: 700; }
.mock-company { font-size: 12px; font-weight: 700; }
.mock-links { display: flex; gap: 10px; margin-left: 10px; font-size: 10.5px; color: var(--muted); }
.mock-links .on { color: var(--brand); font-weight: 600; }
.mock-cta { margin-left: auto; font-size: 10px; background: var(--brand); color: #fff; border-radius: 6px; padding: 3px 8px; }
.mock-hero { padding: 22px 16px 18px; background: linear-gradient(140deg, #0b1024, #25307a); color: #fff; }
.mock-eyebrow { font-size: 9.5px; opacity: .75; letter-spacing: .04em; }
.mock-title { font-size: 19px; font-weight: 800; line-height: 1.3; margin: 6px 0; }
.mock-sub { font-size: 10.5px; opacity: .82; max-width: 230px; }
.mock-btns { display: flex; gap: 6px; margin-top: 12px; }
.mock-btn { font-size: 9.5px; background: #fff; color: #111; padding: 4px 9px; border-radius: 5px; font-weight: 600; }
.mock-btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.mock-jobs { padding: 12px 14px 16px; display: grid; gap: 8px; }
.mock-job { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; }
.mock-job b { font-size: 11.5px; }
.mock-job span { font-size: 10px; color: var(--muted); }
.mock-job em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--brand); font-weight: 600; }

/* ---------------- 数据条 ---------------- */
.strip { border-block: 1px solid var(--line-2); background: var(--bg-alt); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 24px; }
.strip-inner > div { display: flex; flex-direction: column; }
.strip-inner b { font-size: 22px; letter-spacing: -.02em; }
.strip-inner span { font-size: 12.5px; color: var(--muted); }

/* ---------------- 区块 ---------------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin-top: 10px; color: var(--muted); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------------- 生成表单 ---------------- */
.gen-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gen-form { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--danger); font-style: normal; }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.textarea { resize: vertical; min-height: 90px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.input-group .input { border: 0; border-radius: 0; box-shadow: none !important; }
.input-suffix { display: flex; align-items: center; padding: 0 12px; background: var(--bg-alt); color: var(--muted); font-size: 13px; border-left: 1px solid var(--line); white-space: nowrap; }
.hint { font-size: 12px; color: var(--muted); }

.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.theme-card { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked), .theme-card.is-on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.theme-preview { display: block; border-radius: 8px; overflow: hidden; height: 74px; padding: 7px; background: linear-gradient(140deg, var(--p1), var(--p2)); }
.tp-bar { display: block; width: 34%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.tp-title { display: block; width: 62%; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .95); margin-top: 8px; }
.tp-line { display: block; width: 80%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); margin-top: 6px; }
.tp-line.short { width: 50%; }
.theme-meta { display: flex; flex-direction: column; gap: 1px; margin-top: 7px; }
.theme-meta b { font-size: 12.5px; }
.theme-meta i { font-style: normal; font-size: 10.5px; color: var(--muted); line-height: 1.3; }

.gen-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.gen-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { padding: 22px; }
.side-card h3 { font-size: 15px; margin-bottom: 14px; }
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 22px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--ok); font-weight: 700; }
.check-list b { font-size: 13.5px; }
.check-list span { font-size: 12.5px; color: var(--muted); }
.check-list.compact li { padding-left: 0; gap: 1px; }
.check-list.compact li::before { display: none; }
.side-note { background: #fffbeb; border-color: #fde68a; }
.side-note p { font-size: 12.5px; color: #92400e; margin-top: 6px; }
.side-note code { background: #fef3c7; color: #92400e; }

/* ---------------- 功能 ---------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); font-size: 20px; margin-bottom: 14px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------------- 对比表 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.compare thead th { background: var(--bg-alt); font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--muted); }
.compare .hl { background: #f5f3ff; font-weight: 600; }
.compare thead .hl { color: var(--brand); background: #eef2ff; }

/* ---------------- 价格 ---------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; position: relative; box-shadow: var(--shadow-sm); }
.plan-hl { border-color: var(--brand); box-shadow: 0 24px 60px -30px rgba(79, 70, 229, .55); }
.plan-tag { position: absolute; top: -11px; left: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.plan h3 { font-size: 15px; color: var(--ink-2); }
.price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 16px; }
.price span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; font-size: 13.5px; color: var(--ink-2); }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------------- FAQ ---------------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------------- CTA / Footer ---------------- */
.cta-band { background: linear-gradient(120deg, #1e1b4b, #4338ca 60%, #7c3aed); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; letter-spacing: -.02em; }
.cta-inner p { margin-top: 6px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.footer { background: #0b1020; color: #c7cde0; padding: 46px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand b { color: #fff; }
.footer .brand em { color: #8b93ad; }
.footer-cols { display: flex; gap: 56px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer-cols b { color: #fff; font-size: 12.5px; margin-bottom: 4px; }
.footer-cols a:hover { color: #fff; }

/* ---------------- 认证 / 成功页 ---------------- */
.auth { padding: 70px 0; background: var(--bg-alt); min-height: calc(100vh - 66px); }
.auth-card { max-width: 420px; margin: 0 auto; padding: 32px; box-shadow: var(--shadow); }
.auth-head { text-align: center; margin-bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-head h1 { font-size: 21px; }
.auth-head p { font-size: 13px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-demo { margin-top: 20px; padding: 14px; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.auth-demo b { font-size: 12px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; align-items: center; }
.kv span { color: var(--muted); }
.kv-list { display: flex; flex-direction: column; gap: 10px; }
.success-card { padding: 38px; text-align: center; box-shadow: var(--shadow); }
.success-icon { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: #dcfce7; color: #15803d; font-size: 28px; font-weight: 800; }
.success-card h1 { font-size: clamp(20px, 3vw, 28px); }
.success-card > p { margin-top: 8px; }
.site-url { margin: 22px auto; display: inline-flex; flex-direction: column; gap: 4px; padding: 12px 18px; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: 10px; }
.site-url code { background: none; font-size: 14px; color: var(--brand); }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.next-steps { text-align: left; display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; }
.next-steps li { display: flex; gap: 10px; font-size: 13.5px; }
.next-steps li::marker { color: var(--brand); font-weight: 700; }
.next-steps b { white-space: nowrap; }
.next-steps span { color: var(--muted); }

/* ---------------- 提示条 ---------------- */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: 13.5px;
  box-shadow: var(--shadow); animation: toastIn .2s ease;
}
.toast-err { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -6px); } }

/* ============================================================
   管理后台
   ============================================================ */
.admin-body { background: var(--bg-alt); }
.admin { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: #0f1424; color: #c9d0e3; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand b { color: #fff; }
.sidebar .brand em { color: #7d87a5; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  font-size: 13.5px; color: #b9c2d8; background: none; border: 0; cursor: pointer; width: 100%;
  font-family: inherit; text-align: left;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.is-active { background: rgba(99, 102, 241, .22); color: #fff; font-weight: 600; }
.side-link.is-active-sub { background: rgba(255, 255, 255, .05); color: #fff; }
.side-ico { width: 16px; text-align: center; opacity: .8; font-size: 13px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.side-logout { color: #b9c2d8; }
.side-user { margin-top: 10px; padding: 10px 11px; background: rgba(255, 255, 255, .04); border-radius: 9px; font-size: 13px; color: #fff; display: flex; flex-direction: column; }
.side-user span { font-size: 11px; color: #8b93ad; }

.main { padding: 26px 30px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 23px; letter-spacing: -.02em; }
.page-head .muted { font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 10px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 12px; color: var(--muted); }
.stat b { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.stat .small { margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 14.5px; }
.card-head + * { margin-top: 0; }
/* 内容型卡片的直接子元素统一内边距；表单卡片与定制卡片自行管理 */
.card > .kv-list,
.card > .check-list,
.card > .chips,
.card > p,
.card > .pre-wrap,
.card > .card-actions,
.card > .form,
.card > .form-inline { padding: 16px 18px; }
.card > .table-wrap { padding: 0; }
.card > .chart { padding: 18px; }
.card > .dns-box { margin: 16px 18px; }
/* 自带内边距的卡片，子元素不再叠加 */
.card.gen-form > *,
.card.side-card > *,
.card.auth-card > *,
.card.site-card > * { padding: 0; }
.card.success-card > *:not(.next-steps) { padding: 0; }
.card-head.mt { margin-top: 6px; border-top: 1px solid var(--line-2); }
.card.form { padding: 22px 24px 24px; }
.card.form > .card-head { padding: 0; border-bottom: 0; margin-bottom: 14px; }
.card.form > .card-head.mt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.card.form .card-head + * { margin-top: 0; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; }
.danger { border-color: #fecdd3; }
.danger .card-head h3 { color: var(--danger); }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 8px 0 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar { width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #818cf8, #4f46e5); min-height: 4px; transition: height .3s; }
.bar-col span { font-size: 10.5px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbff; }
.table td > .small { display: block; }
.row-link { display: flex; flex-direction: column; }
.row-link:hover b { color: var(--brand); }
.table .right { text-align: right; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.site-head-main { display: flex; align-items: center; gap: 12px; }
.site-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c, #4f46e5); color: #fff; font-weight: 700; font-size: 16px; }
.site-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.site-url-line { font-size: 12.5px; color: var(--muted); }
.site-head-actions { display: flex; gap: 8px; }

.form { display: block; }
.form .field { margin-bottom: 16px; }
.form-actions { display: flex; gap: 10px; padding-top: 8px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form-row3 { display: grid; grid-template-columns: 100px 1fr 24px; gap: 10px; margin-bottom: 10px; }
.form-row-icon { display: grid; grid-template-columns: 62px 1fr 1.4fr; gap: 10px; margin-bottom: 10px; }
.icon-input { text-align: center; font-size: 16px; padding: 8px; }
.ben-grid { display: flex; flex-direction: column; }
.process-rows { display: flex; flex-direction: column; }
.form-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-input { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: inline-flex; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.chip:hover { border-color: #c7cdf0; color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #ffe4e6; color: #be123c; }

.dns-box { margin-top: 16px; padding: 16px; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: 12px; }
.dns-box b { font-size: 13.5px; display: block; margin-bottom: 12px; }
.dns-box .form-actions { margin-top: 14px; }

.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.site-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.site-card-head { display: flex; align-items: center; gap: 10px; }
.site-card-head b { display: block; font-size: 14.5px; }
.site-card-stats { display: flex; gap: 18px; padding: 12px 0; border-block: 1px solid var(--line-2); }
.site-card-stats span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); }
.site-card-stats b { font-size: 17px; color: var(--ink); }
.site-card-actions { display: flex; gap: 8px; margin-top: auto; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 46px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); font-size: 18px; color: #cbd5e1; }
.site-card .empty { padding: 20px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .gen-wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; }
  .side-nav { flex-direction: row; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; }
  .side-user, .side-link[href="/"] { display: none; }
  .main { padding: 20px 16px 50px; }
}

@media (max-width: 640px) {
  .hero { padding: 44px 0 36px; }
  .container { padding: 0 18px; }
  .form-grid, .features, .strip-inner { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-cols { gap: 28px; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .gen-form { padding: 18px; }
  .form-row2, .form-row3, .form-row-icon { grid-template-columns: 1fr; }
  .form-row3 .form-spacer { display: none; }
  .sidebar { padding: 10px; }
  .brand em { display: none; }
  .page-head h1 { font-size: 20px; }
}

/* ============================================================
   AI 对话（生成向导 + 后台改站）
   ============================================================ */
.chat-body { background: var(--bg-alt); }
.chat-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.chat-header { background: #fff; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 30; }
.chat-header-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-meta { display: flex; align-items: center; gap: 16px; }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.ai-badge i { width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.ai-badge-live { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.ai-badge-live i { background: #10b981; }
.chat-link { font-size: 13px; color: var(--brand); font-weight: 600; }
.chat-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 44px; padding: 44px 24px 64px; align-items: start; }
.chat-side h1 { font-size: 30px; line-height: 1.32; letter-spacing: -.02em; }
.chat-side-desc { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.chat-progress { margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.chat-progress li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.chat-progress .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.chat-progress li.is-done .dot { background: #dcfce7; border-color: #a7f3d0; color: #15803d; }
.chat-progress li.is-current .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat-progress li.is-current .label { color: var(--ink); font-weight: 600; }
.chat-side-tip { margin-top: 28px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.chat-side-tip b { font-size: 13px; }
.chat-side-tip ul { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.chat-side-tip li { font-size: 12.5px; color: var(--muted); padding-left: 16px; position: relative; }
.chat-side-tip li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 700; }

.chat-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 600px; }
.chat-panel-head { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.chat-panel-head b { display: block; font-size: 14px; }
.chat-panel-head span { font-size: 12px; color: var(--muted); }
.chat-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.chat-messages { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; background: #fafbff; flex: 1; max-height: 480px; }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-user { flex-direction: row-reverse; }
.msg-avatar { flex: none; }
.msg-avatar .brand-mark { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.msg-body { max-width: 80%; }
.msg-text { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 13.8px; line-height: 1.75; word-break: break-word; }
.msg-user .msg-text { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.msg-time { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.msg-user .msg-time { text-align: right; }
.chat-input { padding: 14px 18px 16px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; background: #fff; }
.chat-input textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; color: var(--ink); }
.chat-input textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.chat-send { justify-self: end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; }
.chat-send:hover { filter: brightness(1.05); }
.chat-sample { justify-self: start; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
.chat-generate { padding: 18px; border-top: 1px solid var(--line-2); background: #fff; }
.gen-ready { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; }
.gen-ready-title { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.gen-list li { display: flex; gap: 10px; font-size: 12.8px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }
.gen-list li:last-child { border-bottom: 0; }
.gen-list b { min-width: 96px; color: var(--muted); font-weight: 600; flex: none; }
.chat-restart { margin-top: 10px; text-align: center; }

/* 后台 AI 面板 */
.side-org { font-size: 11px; color: #8b93ad; padding: 0 11px 8px; }
.ai-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ai-panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.ai-panel-head b { display: block; font-size: 14px; }
.ai-panel-head span { font-size: 12px; color: var(--muted); }
.ai-panel-head .badge { margin-left: auto; }
.ai-messages { padding: 18px; max-height: 440px; overflow-y: auto; background: #fafbff; display: flex; flex-direction: column; gap: 14px; }
.ai-empty { font-size: 13px; color: var(--muted); padding: 26px 10px; text-align: center; }
.ai-input { border-top: 1px solid var(--line-2); padding: 14px 18px 16px; display: grid; gap: 10px; }
.ai-input textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; color: var(--ink); }
.ai-input textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.ai-input-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-examples { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-examples .chip { font-size: 11.5px; padding: 4px 10px; }
.ai-tip { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.ai-tip a { text-decoration: underline; font-weight: 600; }
.color-presets { display: flex; gap: 8px; margin-top: 10px; }
.color-dot { width: 28px; height: 28px; border-radius: 9px; border: 1px solid rgba(0,0,0,.12); background: var(--c); cursor: pointer; }
.color-dot:hover { transform: translateY(-1px); }

@media (max-width: 980px) {
  .chat-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .chat-side h1 { font-size: 24px; }
  .chat-side-tip { display: none; }
  .chat-panel { min-height: 520px; }
}

/* ---------- 政企版落地页 ---------- */
.hero-chat { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-.5deg); }
.hc-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.hc-avatar { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.hc-head b { font-size: 12.5px; display: block; line-height: 1.2; }
.hc-head i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.hc-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.hc-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; background: #fafbff; }
.hc-msg { font-size: 12px; line-height: 1.68; padding: 8px 11px; border-radius: 11px; max-width: 90%; background: #fff; border: 1px solid var(--line); }
.hc-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.hc-q { border-left: 3px solid var(--brand); }
.hc-generating { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--brand); background: #eef2ff; border: 1px dashed #c7d2fe; border-radius: 10px; padding: 8px 11px; }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #c7d2fe; border-top-color: var(--brand); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hc-foot { display: flex; gap: 8px; padding: 11px 14px; border-top: 1px solid var(--line-2); align-items: center; }
.hc-input { flex: 1; font-size: 11.5px; color: #9aa3b2; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.hc-send { font-size: 11px; background: var(--brand); color: #fff; border-radius: 7px; padding: 5px 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-no { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.step b { display: block; margin: 8px 0 6px; font-size: 16px; }
.step p { font-size: 13.5px; color: var(--muted); }
.pricing-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.plan-tag-soft { background: #eef2ff; color: var(--brand); }
@media (max-width: 880px) {
  .steps, .pricing-2 { grid-template-columns: 1fr; }
}

/* ---------- 简历解析 / 面试记录 ---------- */
.parsed-skills { padding: 0 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.chip-static { cursor: default; background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.row-detail td { padding: 0 14px 10px; background: #fbfcff; }
.row-detail details summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.interview-form { display: grid; grid-template-columns: 120px 110px minmax(200px, 1fr) auto auto; gap: 8px; padding: 8px 0 4px; align-items: center; }
.interview-add { display: grid; grid-template-columns: auto 110px 190px 150px 110px minmax(140px, 1fr) auto; gap: 8px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 6px; }
@media (max-width: 980px) {
  .interview-form, .interview-add { grid-template-columns: 1fr 1fr; }
}

/* ---------- 匹配度 / 人才库 ---------- */
.match-head { display: flex; align-items: baseline; gap: 6px; padding: 16px 18px 4px; }
.match-head b { font-size: 38px; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.match-head span { color: var(--muted); font-size: 13px; }
.match-mode { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--muted); background: var(--bg-alt); padding: 3px 9px; border-radius: 999px; }
.match-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; padding: 10px 18px 8px; }
.match-bar-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.match-bar-head b { font-weight: 600; }
.match-track { height: 7px; border-radius: 999px; background: var(--line-2); margin: 5px 0 3px; overflow: hidden; }
.match-track i { display: block; height: 100%; background: linear-gradient(90deg, #818cf8, #4f46e5); border-radius: 999px; }
.match-reasons { padding: 6px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.match-reasons ul { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.match-reasons li { padding-left: 14px; position: relative; }
.match-reasons li::before { content: "·"; position: absolute; left: 2px; color: var(--brand); }
.chip-miss { background: #fff7ed; border-color: #fed7aa; color: #b45309; }
.talent-filter { display: grid; grid-template-columns: minmax(200px, 1.4fr) 140px 140px minmax(150px, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 14px 18px; margin-bottom: 16px; }
@media (max-width: 980px) {
  .match-bars { grid-template-columns: 1fr; }
  .talent-filter { grid-template-columns: 1fr 1fr; }
}

/* ---------- AI 面试卡片 ---------- */
.ai-iv-row { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.ai-iv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-iv-link { display: flex; flex-direction: column; gap: 4px; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: 9px; padding: 8px 10px; }
.ai-iv-link code { font-size: 12px; word-break: break-all; background: none; padding: 0; color: var(--brand); }
.ai-iv-detail summary { cursor: pointer; font-size: 13px; color: var(--brand); font-weight: 600; }
.ai-iv-q { margin-top: 10px; padding: 10px; border: 1px solid var(--line-2); border-radius: 9px; display: flex; flex-direction: column; gap: 5px; }
.ai-iv-q-head { display: flex; justify-content: space-between; align-items: center; }
.ai-iv-answer { white-space: pre-wrap; font-size: 12.5px; background: var(--bg-alt); border-radius: 7px; padding: 8px 10px; color: var(--ink-2); }

/* ---------- 数据看板 ---------- */
.funnel { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 18px; }
.funnel-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px; gap: 12px; align-items: center; font-size: 12.5px; }
.funnel-label { color: var(--ink-2); white-space: nowrap; }
.funnel-track { background: var(--bg-alt); border-radius: 7px; height: 26px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 7px; background: linear-gradient(90deg, #6366f1, #8b5cf6); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; min-width: 26px; transition: width .3s ease; }
.funnel-bar span { color: #fff; font-size: 11.5px; font-weight: 600; }
.funnel-rate { text-align: right; color: var(--muted); font-size: 11.5px; }
.eff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 18px; }
.eff { background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.eff b { font-size: 22px; letter-spacing: -.02em; }
.eff span { font-size: 11.5px; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding: 10px 18px 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar { width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #8b5cf6, #6366f1); min-height: 3px; }
.bar-col span { font-size: 9.5px; color: var(--muted); white-space: nowrap; transform: scale(.92); }

/* ---------- 审计日志 / 合规 ---------- */
.audit-filter { display: grid; grid-template-columns: minmax(220px, 1fr) 200px auto auto; gap: 10px; align-items: center; padding: 14px 18px; margin-bottom: 16px; }
.pager { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.pager .btn { margin: 0; }
@media (max-width: 900px) { .audit-filter { grid-template-columns: 1fr 1fr; } }

/* ---------- AI 改站变更记录 ---------- */
.rev-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.rev-item:first-of-type { border-top: 0; }
.rev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rev-main b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- AI 改站预览 ---------- */
.preview-jobs { display: flex; flex-direction: column; gap: 8px; padding: 12px 18px 14px; }
.preview-job { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--bg-alt); border-radius: 9px; }
.preview-job b { font-size: 13.5px; }
.preview-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 待办 ---------- */
.todo-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 4px 18px 12px; }
.todo-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-alt); transition: border-color .16s, transform .16s; }
.todo-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.todo-chip b { font-size: 22px; color: var(--brand); letter-spacing: -.02em; }
.todo-chip span { font-size: 12.5px; color: var(--ink-2); }
.todo-list { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line-2); }
.todo-item:hover { background: var(--bg-alt); }
.todo-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.todo-main b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #6366f1; }
.tone-blue { background: #6366f1; }
.tone-green { background: #16a34a; }
.tone-amber { background: #f59e0b; }
.tone-red { background: #e11d48; }
.tone-gray { background: #94a3b8; }
.todo-arrow { color: var(--muted); font-size: 13px; }

/* ---------- 通知文案模板 ---------- */
.tpl-block { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.tpl-block:first-of-type { border-top: 0; }
.tpl-block > b { font-size: 13.5px; }
.tpl-preview summary { cursor: pointer; color: var(--brand); }
.tpl-preview pre { margin-top: 8px; background: var(--bg-alt); border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; color: var(--ink-2); }

/* ---------- 综合评估 ---------- */
.comp-body { padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.comp-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; }
.comp-label { font-size: 12.5px; color: var(--ink-2); }
.comp-label em { font-style: normal; color: var(--muted); font-size: 11px; }
.comp-bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.comp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.comp-row b { font-size: 13px; text-align: right; }
.comp-total { display: flex; align-items: baseline; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.comp-total span { font-size: 12.5px; color: var(--muted); }
.comp-total b { font-size: 24px; letter-spacing: -.02em; }
.comp-total em { font-style: normal; font-size: 12px; color: var(--muted); }

/* 月报筛选控件在卡片头部保持单行 */
.card-head .form-inline { flex-wrap: nowrap; }
.card-head .form-inline .input { width: auto; }

/* 注册页宽卡片 */
.auth-card-wide { max-width: 560px; width: 100%; }

/* 成员密码重置结果 */
.reset-panel { border-left: 4px solid var(--brand); }
.reset-panel b { display: block; padding: 14px 18px 4px; font-size: 14.5px; }
.reset-panel p { padding: 0 18px; }
.reset-pwd { display: flex; align-items: center; gap: 10px; padding: 8px 18px 4px; }
.reset-pwd code { font-size: 18px; letter-spacing: .08em; background: var(--bg-alt); padding: 8px 14px; border-radius: 8px; }
.reset-panel .hint { padding: 6px 18px 14px; }

/* ---------- 投递来源 ---------- */
.source-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 18px 16px; }
.source-row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; }
.source-name { font-size: 12.5px; color: var(--ink-2); }
.source-bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.source-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0ea5e9, #6366f1); }
.source-row b { text-align: right; font-size: 13px; }

/* ---------- 功能模块开关 ---------- */
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.feature-row:first-of-type { border-top: 0; }
.feature-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feature-main b { font-size: 14px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .16s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .16s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }


/* ---------- 套餐与配额 ---------- */
.quota-list { display: flex; flex-direction: column; gap: 14px; padding: 12px 18px 6px; }
.quota-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.quota-head b { font-size: 13.5px; }
.quota-head span { font-size: 12.5px; }
.quota-bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.quota-bar i.is-full { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 8px 18px 18px; }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-card); }
.plan-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.plan-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-price { font-size: 13px; color: var(--muted); }
.plan-feats { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }


/* ---------- 开放 API ---------- */
.api-token { display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px; flex-wrap: wrap; }
.api-token code { font-size: 12px; background: var(--bg-alt); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
.api-code { margin: 0 18px; padding: 14px; background: var(--bg-alt); border-radius: 10px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; color: var(--ink-2); }


/* ---------- 无障碍基础 ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--brand, #4f46e5);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; outline: 3px solid #fff; outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brand, #4f46e5); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 后台移动端可用性（<=640px） ---------- */
@media (max-width: 640px) {
  .sidebar { padding: 10px 12px; gap: 10px; flex-wrap: nowrap; }
  .sidebar .brand { flex: none; }
  .side-nav { flex-wrap: nowrap; gap: 4px; }
  .side-link { flex: none; white-space: nowrap; padding: 8px 10px; }
  .side-foot { flex: none; }
  .site-nav { flex-wrap: nowrap; }
  .page-head { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .page-head .actions { flex-wrap: wrap; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tab { flex: none; white-space: nowrap; }
  .site-head { flex-wrap: wrap; gap: 10px; }
  .site-head-actions { width: 100%; }
  .table th, .table td { white-space: nowrap; }
  .kv-list .kv { flex-wrap: wrap; gap: 6px; }
  .form-inline { flex-wrap: wrap; }
  .chart { overflow-x: auto; }
  .plans { grid-template-columns: 1fr; }
  .quota-row, .feature-row, .rev-item, .todo-item { gap: 10px; }
  .comp-row { grid-template-columns: 84px 1fr 36px; }
  .source-row { grid-template-columns: 92px 1fr 32px; }
}

@media (max-width: 640px) {
  .side-org { display: none; }
  .sidebar > * { flex: none; }
  .site-nav { display: none; }
}

/* ---------- 主题画廊 ---------- */
.theme-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 8px 18px 10px; }
.theme-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-card); }
.theme-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.theme-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.theme-meta b { font-size: 13.5px; }
.theme-card p { margin: 0; font-size: 12px; line-height: 1.5; min-height: 34px; }
.theme-swatch { position: relative; height: 104px; border-radius: 8px; background: var(--tbg); border: 1px solid var(--line-2); overflow: hidden; display: block; }
.theme-swatch .sw-bar { position: absolute; inset: 0 0 auto 0; height: 26px; background: linear-gradient(90deg, var(--tb), color-mix(in srgb, var(--tb) 45%, #000)); }
.theme-swatch .sw-title { position: absolute; left: 10px; top: 38px; width: 56%; height: 8px; border-radius: 4px; background: var(--tfg); opacity: .85; }
.theme-swatch .sw-line { position: absolute; left: 10px; top: 54px; width: 72%; height: 5px; border-radius: 3px; background: var(--tfg); opacity: .28; }
.theme-swatch .sw-line.short { top: 66px; width: 48%; }
.theme-swatch .sw-btn { position: absolute; left: 10px; top: 80px; width: 46px; height: 14px; border-radius: 4px; background: var(--tb); }

/* ---------- 风格预设 ---------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 8px 18px 10px; }
.preset-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-card); }
.preset-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.preset-swatch { height: 46px; border-radius: 8px; background: linear-gradient(100deg, var(--pb), color-mix(in srgb, var(--pb) 40%, var(--pth))); border: 1px solid var(--line-2); }
.preset-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.preset-meta b { font-size: 13.5px; }
.preset-card p { margin: 0; font-size: 12px; line-height: 1.5; }
.preset-card .btn { align-self: flex-start; }

/* ---------- 生成向导：风格选择 ---------- */
.gen-style { margin: 4px 0 14px; }
.gen-style-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gen-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gen-preset { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg-card); }
.gen-preset.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.gen-preset input { position: absolute; opacity: 0; pointer-events: none; }
.gp-swatch { height: 30px; border-radius: 6px; background: linear-gradient(100deg, var(--pb), color-mix(in srgb, var(--pb) 38%, var(--pbg))); }
.gp-name { font-size: 13px; font-weight: 600; }
.gp-meta { font-size: 11.5px; color: var(--muted); }
@media (max-width: 640px) { .gen-presets { grid-template-columns: 1fr 1fr; } }

/* ---------- 上线引导 ---------- */
.onboard { margin-bottom: 16px; }
.onboard-list { display: flex; flex-direction: column; }
.onboard-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.onboard-item:first-child { border-top: 0; }
.ob-num { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--bg-alt); color: var(--muted); display: grid; place-items: center; font-size: 12px; }
.onboard-item.is-done .ob-num { background: color-mix(in srgb, #10b981 18%, transparent); color: #047857; font-weight: 700; }
.ob-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-main b { font-size: 13.5px; }
.onboard-item.is-done .ob-main b { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.onboard-progress { height: 6px; margin: 6px 18px 14px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.onboard-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #10b981, #34d399); transition: width .3s; }
.onboard-done { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-left: 4px solid #10b981; }
.ob-done-main { display: flex; align-items: center; gap: 12px; }
.ob-done-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #10b981 16%, transparent); color: #047857; font-weight: 700; }
.ob-done-main > div { display: flex; flex-direction: column; gap: 2px; }

/* ---------- 注册认领提示 ---------- */
.claim-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 7%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); flex-wrap: wrap; }
.cb-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-main b { font-size: 14px; }
.claim-steps { margin: 18px 0 0; padding: 16px; border-radius: 12px; background: var(--bg-alt); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.claim-steps li { display: flex; flex-direction: column; gap: 4px; }
.claim-steps li b { font-size: 13px; }
.claim-steps li span { font-size: 12px; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .claim-steps { grid-template-columns: 1fr; } }

/* 认领提示在窄卡片内竖排 */
.auth-card .claim-banner { flex-direction: column; align-items: flex-start; }
.auth-card .claim-banner .btn { align-self: flex-start; }

/* ---------- 打印（面试报告 / 候选人详情） ---------- */
@media print {
  .sidebar, .site-head, .tabs, .page-head, .btn, .form-inline, .no-print, .toast, .skip-link { display: none !important; }
  .admin { display: block !important; }
  .main { padding: 0 !important; }
  body { background: #fff !important; }
  .card { break-inside: avoid; border-color: #ddd !important; box-shadow: none !important; }
  .table-wrap { overflow: visible !important; }
  a[href]::after { content: ''; }
}

/* ---------- 面试报告分享 ---------- */
.share-report { border-top: 1px solid var(--line-2); padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.share-report .kv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-report .kv code { font-size: 11.5px; background: var(--bg-alt); padding: 6px 8px; border-radius: 6px; word-break: break-all; }

/* ---------- 面试报告分享 ---------- */
.share-report { border-top: 1px solid var(--line-2); padding: 12px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.share-report .kv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-report .kv code { font-size: 11.5px; background: var(--bg-alt); padding: 6px 8px; border-radius: 6px; word-break: break-all; }


/* ---------- 经营建议 ---------- */
.insights-card { margin-bottom: 16px; }
.insight-list { display: flex; flex-direction: column; }
.insight-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 18px; border-top: 1px solid var(--line-2); border-left: 3px solid transparent; }
.insight-item:first-child { border-top: 0; }
.insight-item b { font-size: 13.5px; }
.insight-red { border-left-color: #ef4444; }
.insight-amber { border-left-color: #f59e0b; }
.insight-blue { border-left-color: #3b82f6; }
.insight-gray { border-left-color: #94a3b8; }


.insight-item { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; }
.insight-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.insight-cta { flex: none; }
@media (max-width: 640px) { .insight-item { flex-direction: column; align-items: flex-start; } }

.ai-draft-hint { margin: 0 0 6px; color: var(--brand); }


/* ---------- 变更记录 diff ---------- */
.rev-item { align-items: flex-start; }
.rev-main { flex: 1; min-width: 0; }
.rev-diff { flex-basis: 100%; margin-top: 8px; }
.rev-diff summary { cursor: pointer; font-size: 12.5px; color: var(--brand); }
.rev-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; }
.rev-table th, .rev-table td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line-2); vertical-align: top; }
.rev-table th { color: var(--muted); font-weight: 500; }
.rev-old { color: #b91c1c; }
.rev-new { color: #047857; }


.logo-preview { padding: 12px 18px 0; }
.logo-preview img { width: 72px; height: 72px; border-radius: 16px; object-fit: contain; background: #fff; border: 1px solid var(--line-2); }


/* ---------- 分享灵感 ---------- */
.share-ideas { padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.share-idea { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; }
.share-idea-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.share-idea-main b { font-size: 13px; }


.share-ideas-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- AI 观测四列 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }


.ai-degraded { margin: 6px 0 0; font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 6px 10px; }


.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-5 { grid-template-columns: 1fr; } }


/* ---------- AI 成本趋势 ---------- */
.ai-cost-trend { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ai-cost-day { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.ai-cost-label { width: 42px; color: var(--muted); flex: none; }
.ai-cost-bar { flex: 1; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; }
.ai-cost-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.ai-cost-val { width: 64px; text-align: right; color: var(--muted); flex: none; }


.ai-feedback { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0 2px; }


.todo-item-wrap { display: flex; align-items: center; gap: 8px; }
.todo-item-wrap .todo-item { flex: 1; }
.todo-form { padding-right: 12px; }

/* 待办快捷操作：单行展示 */
.todo-item-wrap { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
.todo-item-wrap .todo-item { flex: 1 1 0; min-width: 0; }
.todo-item-wrap .todo-form { flex: 0 0 auto; margin: 0; }
.todo-item-wrap .todo-form .btn { white-space: nowrap; }

/* 批量操作条 */
.batch-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.batch-check { width: 15px; height: 15px; accent-color: var(--brand); }


/* 标签管理 */
.tag-manage { margin-bottom: 12px; }
.tag-manage-body { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 6px; }
.tag-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.tag-row b { min-width: 90px; }


/* 分享预览 */
.share-preview-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 420px; }
.share-preview-body { flex: 1; min-width: 0; }
.share-preview-body b { display: block; font-size: 14px; margin-bottom: 4px; }
.share-preview-body p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-preview-img { width: 64px; height: 64px; flex: none; border-radius: 6px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.share-preview-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- AI 指挥台 ---------- */
.cmd-box { padding: 22px; }
.cmd-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cmd-input-row { display: flex; gap: 10px; }
.cmd-input { flex: 1; height: 46px; font-size: 15px; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cmd-chip-form { display: inline; }
.cmd-chip { border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }
.cmd-chip:hover { border-color: var(--brand); color: var(--brand); }
.cmd-result { margin: 16px 0; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.cmd-result-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.cmd-result-ok { border-color: #bbf7d0; background: #f0fdf4; }
.cmd-result-warn { border-color: #fde68a; background: #fffbeb; }
.cmd-result-confirm { border-color: #c7d2fe; background: #eef2ff; }
.cmd-result-muted { background: var(--bg-alt); }
.cmd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.cmd-row:first-of-type { border-top: 0; }
.cmd-row em { font-style: normal; margin-left: 8px; }
.cmd-row:hover b { color: var(--brand); }
.cmd-arrow { color: var(--muted); }
.cmd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 6px; }
.cmd-stat { background: var(--bg-alt); border-radius: 10px; padding: 12px; }
.cmd-stat b { display: block; font-size: 22px; }
.cmd-logs { padding: 4px 18px 12px; }
.cmd-log-item { display: grid; grid-template-columns: 92px 1fr 90px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.cmd-log-item:first-child { border-top: 0; }
@media (max-width: 640px) { .cmd-input-row { flex-direction: column; } .cmd-log-item { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- AI 晨报 ---------- */
.brief-card { margin-bottom: 16px; }
.brief-summary { margin: 0; padding: 4px 18px 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.brief-summary-lg { font-size: 15.5px; }
.brief-list { padding: 0 18px 14px; display: flex; flex-direction: column; }
.brief-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.brief-row:first-child { border-top: 0; }
.brief-ico { font-size: 18px; width: 24px; text-align: center; }
.brief-idx { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.brief-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brief-main b { font-size: 14.5px; }
.brief-main .small { font-size: 12.5px; }
.brief-row-lg { padding: 14px 0; }
@media (max-width: 640px) { .brief-row { align-items: flex-start; } .brief-main b { font-size: 14px; } }

.cmd-save-view { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.cmd-save-view .row-inline { flex-wrap: wrap; }
.cmd-view-name { max-width: 260px; height: 34px; font-size: 13px; }
.cmd-views { padding: 4px 18px 12px; }
.cmd-view-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.cmd-view-row:first-child { border-top: 0; }
.cmd-view-row em { font-style: normal; margin-left: 8px; }

.ai-bar { display: block; height: 8px; border-radius: 6px; background: #eef2ff; overflow: hidden; margin-top: 6px; }
.ai-bar i { display: block; height: 100%; background: #6366f1; border-radius: 6px; }
.ai-bar.good i { background: #16a34a; }
.ai-bar.mid i { background: #f59e0b; }
.ai-bar.low i { background: #ef4444; }
.ai-bar.top i { background: #0ea5e9; }
.ai-bar.warn i { background: #f97316; }

/* ---------- 搜索确认式生成 ---------- */
.gen-profile{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--soft);margin-bottom:14px}
.gen-profile-main b{font-size:16px;color:var(--navy)}
.gen-profile-main p{margin:6px 0 0;line-height:1.7;color:var(--ink)}
.gen-profile-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.gen-research{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px;font-size:12px;color:var(--muted)}
.gen-research b{color:var(--navy);font-weight:700}
.gen-research a{color:var(--brand);text-decoration:none;border-bottom:1px dashed color-mix(in srgb,var(--brand) 35%,transparent)}
.gen-presets-12{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.gen-preset .gp-preview{height:54px;border-radius:8px;overflow:hidden;position:relative;display:block;background:linear-gradient(135deg,#eef2ff,#fff)}
.gen-preset .gp-preview i{position:absolute;display:block;border-radius:2px}
.gen-preset .gp-preview i:nth-child(1){left:8px;top:8px;width:44%;height:12px;background:currentColor;opacity:.85}
.gen-preset .gp-preview i:nth-child(2){left:8px;top:26px;width:64%;height:7px;background:currentColor;opacity:.35}
.gen-preset .gp-preview i:nth-child(3){right:8px;bottom:8px;width:24px;height:18px;background:currentColor;opacity:.7}
.gen-colors{display:flex;flex-wrap:wrap;gap:10px}
.gen-color{position:relative;cursor:pointer;display:inline-flex}
.gen-color input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.gen-color span{display:block;width:30px;height:30px;border-radius:50%;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px var(--line)}
.gen-color input:checked+span{box-shadow:inset 0 0 0 2px #fff,0 0 0 3px #111}
.gp-style-gov .gp-preview{background:linear-gradient(135deg,#7f1220,#b0182b);color:#f7d9b8}
.gp-style-tech .gp-preview{background:linear-gradient(135deg,#0b1430,#3b5bfd);color:#bcd0ff}
.gp-style-vivid .gp-preview{background:linear-gradient(135deg,#7a3cff,#39d3c2);color:#fff}
.gp-style-minimal .gp-preview{background:#fff;color:#111;border:1px solid #111}
.gp-style-warm .gp-preview{background:linear-gradient(135deg,#ffe3cc,#ffd7c2);color:#a34a28}
.gp-style-pixel .gp-preview{background:repeating-conic-gradient(#d8ffe8 0 25%,#f7fff9 0 50%) 0 0/12px 12px;color:#0b1f14;border:2px solid #0b1f14}
.gp-style-cyber .gp-preview{background:linear-gradient(135deg,#070b16,#0e3a5c);color:#22d3ee}
.gp-style-editorial .gp-preview{background:#f7f2e9;color:#9a3412;border:1px solid #1c1917}
.gp-style-glass .gp-preview{background:linear-gradient(135deg,#c7d2fe,#fbcfe8,#bae6fd);color:#4f46e5}
.gp-style-brutal .gp-preview{background:#facc15;color:#111;border:2px solid #111}
.gp-style-guochao .gp-preview{background:linear-gradient(135deg,#2a120c,#7f1d1d);color:#e6c98a}
.gp-style-future .gp-preview{background:#05070d;color:#a3e635;border:1px solid #1d2a1a}
.chat-net-hint { justify-self: start; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.chat-send:disabled { opacity: .7; cursor: wait; }
.msg-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.msg-note { display: inline-block; background: #fff7ed; color: #9a3412; border-radius: 6px; padding: 2px 8px; font-size: 12.5px; }
.hero-start { display: flex; gap: 10px; align-items: stretch; margin: 18px 0 12px; max-width: 620px; flex-wrap: wrap; }
.hero-start input { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; height: 48px; font-size: 15px; font-family: inherit; background: #fff; }
.hero-start input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.hero-start .btn { white-space: nowrap; }
@media (max-width: 640px) { .hero-start { flex-direction: column; } .hero-start .btn { width: 100%; } }
@media (max-width: 640px) { .hero-actions { flex-wrap: wrap; } }
/* ---------- 手机端对话生成 ---------- */
@media (max-width: 720px) {
  .chat-body { overflow-x: hidden; }
  .chat-container { padding: 0 12px; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 0 28px; }
  .chat-side { display: none; }
  .chat-panel { min-height: 0; border-radius: 14px; }
  .chat-panel-head { padding: 12px 14px; }
  .chat-messages { padding: 12px; max-height: none; overflow-x: hidden; }
  .msg { gap: 8px; }
  .msg-body { max-width: calc(100% - 34px); }
  .msg-text { font-size: 13px; padding: 9px 12px; overflow-wrap: anywhere; word-break: break-word; }
  .chat-input { padding: 12px; }
  .chat-input textarea { font-size: 16px; }
  .chat-net-hint { font-size: 11px; }
  .gen-presets-12 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gen-preset { padding: 8px; }
  .gen-preset .gp-meta { font-size: 10.5px; }
  .gen-colors { gap: 8px; }
  .gen-color span { width: 26px; height: 26px; }
}
/* ---------- 生成完成页 ---------- */
.done-body { background: var(--bg-alt); min-height: 100vh; }
.done-header { height: 64px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.done-main { max-width: 1180px; margin: 0 auto; padding: 10px 20px 60px; }
.done-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.done-card h1 { margin: 12px 0 6px; font-size: 28px; letter-spacing: -.02em; }
.done-sub { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.done-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12.5px; color: var(--muted); padding: 10px 0 14px; border-bottom: 1px dashed var(--line); }
.done-color { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin: 0 4px 0 4px; vertical-align: -1px; }
.done-preview { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.done-preview iframe { display: block; width: 100%; height: 520px; border: 0; }
.done-hero-picks { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafaff; }
.done-hero-picks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.done-hero-picks-head b { font-size: 13.5px; }
.done-hero-picks-head span { font-size: 12px; color: var(--muted); }
.done-hero-picks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.done-hero-pick { position: relative; display: flex; flex-direction: column; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.done-hero-pick img { display: block; width: 100%; height: 120px; object-fit: cover; }
.done-hero-pick-src { position: absolute; top: 7px; left: 7px; padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.92); color: #334155; font-size: 10.5px; font-style: normal; }
.done-hero-pick-why { display: block; min-height: 28px; padding: 6px 8px 2px; color: #64748b; font-size: 10.5px; line-height: 1.35; }
.done-hero-pick button { position: static; margin: 5px 8px 8px; border: 0; border-radius: 7px; padding: 6px 8px; background: rgba(17, 24, 39, .82); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.done-hero-pick button:hover { background: #4f46e5; }
.done-hero-picks p { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.done-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.done-hint { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.done-hint code { background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; }
@media (max-width: 720px) {
  .done-card { padding: 16px; border-radius: 14px; }
  .done-card h1 { font-size: 21px; }
  .done-preview iframe { height: 360px; }
  .done-hero-picks-head { flex-direction: column; gap: 4px; }
  .done-hero-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .done-hero-pick img { height: 92px; }
  .done-actions .btn { width: 100%; }
}
.chat-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(15,23,42,.35); backdrop-filter: blur(4px); }
.chat-loading[hidden] { display: none; }
.chat-loading-card { width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 16px; padding: 22px; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,.28); }
.chat-loading-card b { display: block; margin-top: 10px; font-size: 15px; }
.chat-loading-card p { margin: 8px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.chat-loading-card .spin { width: 28px; height: 28px; border-width: 3px; }
.chat-loading-bar { height: 4px; border-radius: 99px; background: #eef2ff; overflow: hidden; }
.chat-loading-bar i { display: block; width: 38%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: chatload 1.1s ease-in-out infinite; }
@keyframes chatload { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }
/* 搜索结果常驻条 */
.chat-searchbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line-2); background: #f0fdf4; }
.csb-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: #166534; min-width: 0; }
.csb-main b { font-weight: 700; }
.csb-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); flex: none; }
.csb-toggle { border: 1px solid #bbf7d0; background: #fff; color: #15803d; border-radius: 8px; padding: 4px 9px; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.chat-sources { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-top: 1px dashed var(--line); background: #fff; max-height: 210px; overflow-y: auto; }
.chat-sources[hidden] { display: none; }
.chat-source { display: block; padding: 7px 9px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; }
.chat-source b { display: block; font-size: 11.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-source span { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-source:hover { border-color: var(--brand); }
@media (max-width: 720px) { .chat-searchbar { padding: 8px 12px; } .csb-main { font-size: 10.8px; } }
.gen-preset:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); background: #fff; }
.gen-preset:has(input:checked) .gp-name { color: var(--brand); }
.side-utils { display: flex; gap: 6px; margin-bottom: 8px; }
.side-util { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); text-decoration: none; font-size: 13px; cursor: pointer; padding: 0; }
.side-util:hover { color: var(--brand); border-color: var(--brand); }
.side-util-form { display: inline; margin: 0; }
.side-utils { display: flex; gap: 6px; margin-bottom: 8px; }
.side-util { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); text-decoration: none; font-size: 13px; cursor: pointer; padding: 0; }
.side-util:hover { color: var(--brand); border-color: var(--brand); }
.side-util-form { display: inline; margin: 0; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 12px; margin-top: -4px; }
.subtab { font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 9px; border-radius: 7px; border: 1px solid transparent; }
.subtab:hover { color: var(--brand); background: #eef2ff; }
.subtab.is-active { color: var(--brand); background: #eef2ff; border-color: #c7d2fe; font-weight: 600; }
.copy-ideas { margin: 14px 0 4px; padding: 12px 14px; border: 1px dashed #c7d2fe; border-radius: 10px; background: #f8faff; }
.copy-ideas-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.copy-idea-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.copy-idea { border: 1px solid #c7d2fe; background: #fff; color: #3730a3; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.copy-idea:hover, .copy-idea.is-picked { background: #eef2ff; border-color: var(--brand); }
.job-ai-panel { margin: 12px 0; padding: 12px 14px; border: 1px dashed #c7d2fe; border-radius: 10px; background: #f8faff; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.job-ai-tip { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; }
.job-ai-tip span { font-size: 12px; color: var(--muted); }
.job-ai-matches { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.profile-card { padding: 0 18px 12px; }
.profile-card > b { display: block; font-size: 15px; margin-bottom: 6px; }
.profile-card p { font-size: 12.5px; line-height: 1.7; color: var(--ink-2, #334155); margin: 6px 0; }
.profile-card .chips { margin: 8px 0; }
[data-section-row] { cursor: grab; }
[data-section-row].is-dragging { opacity: .45; }
[data-section-row].is-drop-target { outline: 2px dashed var(--brand); outline-offset: -2px; }
.section-move { display: inline-flex; gap: 2px; margin-left: 4px; }
.section-move .btn { padding: 2px 6px; line-height: 1; }
.job-tpl-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.job-tpl-family { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.job-tpl-family > summary { cursor: pointer; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.job-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; padding: 0 12px 12px; }
.job-tpl-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: var(--ink); background: #fff; }
.job-tpl-card:hover { border-color: var(--brand); }
.job-tpl-card b { font-size: 13px; }
.job-tpl-card span { font-size: 11.5px; color: var(--muted); }
.job-tpl-card em { font-style: normal; font-size: 11.5px; color: var(--brand); }
@media (max-width: 720px) { .job-tpl-grid { grid-template-columns: 1fr 1fr; } }
/* 版式预览（后台设计页） */
.layout-preview { margin: 0 14px 14px; padding: 14px; border-radius: 12px; background: var(--lp-bg); color: var(--lp-fg); border: 1px solid var(--line); overflow: hidden; }
.lp-nav { display: flex; align-items: center; gap: 12px; font-size: 11px; opacity: .85; margin-bottom: 18px; }
.lp-nav b { margin-right: auto; font-size: 12px; }
.lp-nav i { width: 28px; height: 12px; border-radius: 3px; background: var(--lp-brand); }
.lp-hero { padding: 18px 8px 24px; max-width: 420px; }
.lp-kicker { font-size: 9px; letter-spacing: .15em; color: var(--lp-brand); font-weight: 700; }
.lp-hero h3 { font-size: 20px; line-height: 1.3; margin: 6px 0 8px; }
.lp-hero p { font-size: 11px; opacity: .7; margin: 0 0 12px; }
.lp-btn { display: inline-block; padding: 7px 12px; border-radius: calc(8px * .8); background: var(--lp-brand); color: #fff; font-size: 10px; font-weight: 600; }
.lp-cards { display: flex; gap: 8px; }
.lp-cards div { flex: 1; padding: 9px; border-radius: 8px; background: color-mix(in srgb, var(--lp-fg) 5%, transparent); border: 1px solid color-mix(in srgb, var(--lp-fg) 12%, transparent); display: flex; flex-direction: column; gap: 3px; font-size: 9px; }
.lp-cards div span { opacity: .7; }
.layout-preview.sp-hero-center .lp-hero { text-align: center; margin: 0 auto; }
.layout-preview.sp-hero-editorial .lp-hero { margin-left: 22%; border-left: 2px solid var(--lp-brand); padding-left: 16px; }
.layout-preview.sp-hero-minimal .lp-hero h3 { font-size: 16px; }
.layout-preview.sp-density-airy .lp-hero { padding-top: 28px; padding-bottom: 34px; }
.layout-preview.sp-density-compact .lp-hero { padding-top: 10px; padding-bottom: 14px; }
.layout-preview.sp-section-cards .lp-cards div { border-radius: 12px; }
.layout-preview.sp-section-magazine .lp-cards { display: grid; grid-template-columns: 1.4fr 1fr; }
.layout-preview.sp-shape-sharp .lp-btn { border-radius: 2px; }
.layout-preview.sp-shape-pill .lp-btn { border-radius: 999px; }
.layout-preview.sp-hero-height-compact .lp-hero { padding-top: 8px; padding-bottom: 16px; }
.layout-preview.sp-hero-height-tall .lp-hero { padding-top: 34px; padding-bottom: 40px; }
.layout-preview.sp-accent-soft .lp-btn { background: color-mix(in srgb, var(--lp-brand) 14%, #fff); color: var(--lp-brand); border: 1px solid color-mix(in srgb, var(--lp-brand) 35%, transparent); }
.layout-preview.sp-accent-gradient .lp-btn { background: linear-gradient(135deg, var(--lp-brand), color-mix(in srgb, var(--lp-brand) 50%, #111)); }
.layout-preview.sp-accent-outline .lp-btn { background: transparent; color: var(--lp-brand); border: 1px solid var(--lp-brand); }
.design-skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; padding: 0 16px 14px; }
.design-skill-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.design-skill-card b { font-size: 13px; }
.design-skill-card span { font-size: 11.5px; color: var(--muted); line-height: 1.5; min-height: 34px; }
.design-skill-card button { align-self: flex-start; }
.design-skill-thumb { height: 54px; border-radius: 7px; background: var(--ds-bg); border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; overflow: hidden; }
.design-skill-thumb .ds-logo { width: 16px; height: 5px; border-radius: 2px; background: var(--ds-brand); }
.design-skill-thumb .ds-title { width: 62%; height: 6px; border-radius: 2px; background: var(--ds-fg); opacity: .8; }
.design-skill-thumb .ds-line { width: 46%; height: 4px; border-radius: 2px; background: var(--ds-fg); opacity: .28; }
.design-skill-thumb .ds-btn { width: 34px; height: 9px; border-radius: 3px; background: var(--ds-brand); margin-top: 2px; }
/* 后台窄屏：顶部横向导航不挤压文字，侧栏内部滚动 */
@media (max-width: 1024px) {
  .sidebar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; align-items: center; }
  .sidebar .brand { flex: 0 0 auto; }
  .side-nav { flex-wrap: nowrap; flex: 0 0 auto; }
  .side-link { width: auto; white-space: nowrap; flex: 0 0 auto; }
  .side-foot { flex-wrap: nowrap; flex: 0 0 auto; margin-left: auto; }
  .side-util, .side-util-form, .side-util-form button { white-space: nowrap; }
}
@media (max-width: 1024px) {
  .side-org { display: none; }
  .sidebar::-webkit-scrollbar { height: 4px; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 4px; }
}
/* 搜索完成后的显式确认按钮：不要求用户手动输入「确认」 */
.chat-confirm-row { display: flex; gap: 10px; align-items: center; padding: 14px 18px 16px; border-top: 1px solid var(--line-2); background: #fff; }
.chat-confirm-btn { flex: 1; border: 0; border-radius: 11px; padding: 12px 18px; font-family: inherit; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px -12px rgba(79,70,229,.7); }
.chat-confirm-btn:hover { filter: brightness(1.05); }
.chat-confirm-ghost { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 11px; padding: 12px 14px; font-family: inherit; font-size: 13px; cursor: pointer; }
.chat-confirm-ghost:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 720px) {
  .chat-confirm-row { padding: 12px 12px 14px; }
  .chat-confirm-btn { font-size: 14px; }
}
/* 官网图片库 */
.media-tools { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 14px; }
.media-tools .form-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 0 18px 14px; }
.media-card { position: relative; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--bg-alt); }
.media-card img { display: block; width: 100%; height: 110px; object-fit: cover; }
.media-card.is-hero { grid-column: span 2; }
.media-card.is-hero img { height: 160px; }
.media-card .badge { position: absolute; top: 6px; left: 6px; }
.media-card form { display: inline; }
.media-remove { border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 11px; padding: 4px 7px; border-radius: 5px; cursor: pointer; margin: 5px 3px 6px; }
.media-remove:hover { color: var(--brand); }
/* 搜索结果后的操作区：确认与修改分层，不再堆两个大按钮 */
.chat-compose { background: #fff; }
.chat-confirm-strip {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  background: linear-gradient(180deg, #f7f8ff, #ffffff); border-top: 1px solid var(--line-2);
}
.chat-confirm-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-confirm-copy b { font-size: 13px; color: var(--ink); }
.chat-confirm-copy span { font-size: 11.5px; color: var(--muted); }
.chat-confirm-btn {
  flex: 0 0 auto; border: 0; border-radius: 9px; padding: 9px 16px;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px -10px rgba(79,70,229,.65);
}
.chat-confirm-btn:hover { filter: brightness(1.05); }
.chat-confirm-ghost {
  flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 9px; padding: 9px 12px; font-family: inherit; font-size: 12px; cursor: pointer;
}
.chat-confirm-ghost:hover { color: var(--brand); border-color: var(--brand); }
.chat-input-modify { border-top: 0; background: #fafbff; padding-top: 12px; }
.chat-input-modify textarea { background: #fff; min-height: 44px; }
.chat-send-quiet {
  background: #fff; color: var(--brand); border: 1px solid var(--line);
  box-shadow: none; padding: 8px 13px; font-size: 13px;
}
.chat-send-quiet:hover { border-color: var(--brand); filter: none; }
@media (max-width: 720px) {
  .chat-confirm-strip { flex-wrap: wrap; padding: 10px 12px; }
  .chat-confirm-copy { flex: 1 1 100%; }
  .chat-confirm-btn { flex: 1; }
  .chat-confirm-ghost { flex: 0 0 auto; }
  .chat-input-modify { padding-top: 10px; }
}
.chat-input { gap: 8px; }
.chat-input-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-input-foot .chat-net-hint { flex: 1; min-width: 0; }
.chat-input-foot .chat-send { flex: 0 0 auto; }
@media (max-width: 720px) {
  .chat-input-foot { align-items: flex-end; }
  .chat-input-foot .chat-send { padding: 8px 12px; }
}
/* 图片说明编辑 */
.media-meta-editor { padding: 0 18px 14px; display: grid; gap: 8px; }
.media-meta-editor > b { font-size: 12px; color: var(--muted); }
.media-meta-editor form { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr) auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .media-meta-editor form { grid-template-columns: 1fr; } }
/* 16 种特效风格选择器 */
.dx-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 14px; }
.dx-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.dx-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--dxc); }
.dx-card.is-active { border-color: var(--dxc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dxc) 16%, transparent); }
.dx-swatch { width: 26px; height: 26px; border-radius: 50%; display: inline-block; margin-top: 4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dxc) 18%, #fff); }
.dx-card b { font-size: 13px; }
.dx-vibe { font-size: 10.5px; color: var(--muted); }
.dx-card p { margin: 0 0 6px; font-size: 11px; line-height: 1.5; color: var(--muted); min-height: 48px; }
.dx-card button { align-self: flex-start; }
@media (max-width: 1100px) { .dx-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 生成页 16 种特效风格 */
.gen-presets-16 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.dx-gen-preview { height: 62px; border-radius: 8px; overflow: hidden; position: relative; display: block; }
.dx-gen-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.35), transparent 45%); }
.dx-gen-preview i { position: absolute; display: block; border-radius: 50%; background: rgba(255,255,255,.28); }
.dx-gen-preview i:nth-child(1) { width: 54px; height: 54px; right: -8px; top: -12px; }
.dx-gen-preview i:nth-child(2) { width: 28px; height: 28px; left: 12px; bottom: -8px; }
.dx-gen-preview i:nth-child(3) { width: 8px; height: 34px; left: 48%; top: 12px; border-radius: 3px; }
.dx-gen-preset.is-current { border-color: var(--dxc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dxc) 16%, transparent); }
.dx-gen-preset .gp-name { font-weight: 700; }
@media (max-width: 640px) { .gen-presets-16 { grid-template-columns: 1fr 1fr; } }
/* 三步设计选择：排版 / 特效 / 颜色 */
.layout-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 18px 16px; }
.layout-option { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 5px; background: #fff; }
.layout-option.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.layout-option b { font-size: 13px; }
.layout-option p { margin: 0 0 4px; color: var(--muted); font-size: 11px; line-height: 1.45; min-height: 46px; }
.lo-preview { height: 64px; border-radius: 6px; background: #f8fafc; border: 1px solid var(--line); position: relative; overflow: hidden; display: block; }
.lo-preview i { position: absolute; display: block; background: #cbd5e1; border-radius: 3px; }
.lo-preview i:nth-child(1) { width: 38%; height: 28%; left: 8%; top: 18%; }
.lo-preview i:nth-child(2) { width: 28%; height: 16%; left: 8%; top: 56%; }
.lo-preview i:nth-child(3) { width: 36%; height: 48%; right: 9%; top: 24%; background: #94a3b8; }
.lo-preview.lo-centered-stage i:nth-child(1) { width: 50%; left: 25%; top: 16%; }
.lo-preview.lo-centered-stage i:nth-child(2) { width: 34%; left: 33%; top: 48%; }
.lo-preview.lo-centered-stage i:nth-child(3) { display: none; }
.lo-preview.lo-editorial-stack i:nth-child(1) { width: 66%; height: 24%; left: 8%; top: 12%; }
.lo-preview.lo-editorial-stack i:nth-child(2) { width: 40%; height: 12%; left: 8%; top: 48%; }
.lo-preview.lo-editorial-stack i:nth-child(3) { width: 26%; height: 56%; right: 7%; top: 28%; }
.lo-preview.lo-bento-grid i:nth-child(1) { width: 42%; height: 40%; left: 7%; top: 10%; }
.lo-preview.lo-bento-grid i:nth-child(2) { width: 37%; height: 22%; left: 7%; top: 58%; }
.lo-preview.lo-bento-grid i:nth-child(3) { width: 40%; height: 70%; right: 6%; top: 10%; }
.lo-preview.lo-asymmetric i:nth-child(1) { width: 54%; left: 8%; top: 14%; height: 30%; }
.lo-preview.lo-asymmetric i:nth-child(2) { width: 30%; left: 8%; top: 58%; }
.lo-preview.lo-asymmetric i:nth-child(3) { width: 34%; height: 62%; right: -4%; top: 24%; }
.lo-preview.lo-fullscreen-media i:nth-child(1) { width: 64%; left: 8%; top: 50%; height: 16%; }
.lo-preview.lo-fullscreen-media i:nth-child(2) { width: 26%; left: 8%; top: 74%; }
.lo-preview.lo-fullscreen-media i:nth-child(3) { inset: 0; width: 100%; height: 100%; opacity: .38; }
.lo-preview.lo-sidebar-focus i:nth-child(1) { width: 28%; height: 66%; left: 6%; top: 14%; }
.lo-preview.lo-sidebar-focus i:nth-child(2) { width: 52%; height: 14%; right: 7%; top: 20%; }
.lo-preview.lo-sidebar-focus i:nth-child(3) { width: 52%; height: 36%; right: 7%; top: 42%; }
.lo-preview.lo-horizontal-reel i:nth-child(1), .lo-preview.lo-horizontal-reel i:nth-child(2), .lo-preview.lo-horizontal-reel i:nth-child(3) { width: 26%; height: 52%; top: 24%; left: auto; }
.lo-preview.lo-horizontal-reel i:nth-child(1) { left: 6%; }
.lo-preview.lo-horizontal-reel i:nth-child(2) { left: 36%; }
.lo-preview.lo-horizontal-reel i:nth-child(3) { left: 66%; }
.lo-preview.lo-mosaic-wall i:nth-child(1) { width: 27%; height: 70%; left: 6%; top: 12%; }
.lo-preview.lo-mosaic-wall i:nth-child(2) { width: 27%; height: 42%; left: 37%; top: 12%; }
.lo-preview.lo-mosaic-wall i:nth-child(3) { width: 27%; height: 58%; right: 6%; top: 26%; }
.lo-preview.lo-minimal-type i:nth-child(1) { width: 70%; height: 18%; left: 8%; top: 26%; background: #475569; }
.lo-preview.lo-minimal-type i:nth-child(2) { width: 38%; height: 8%; left: 8%; top: 56%; }
.lo-preview.lo-minimal-type i:nth-child(3) { display: none; }
.lo-preview.lo-split-scroll i:nth-child(1) { width: 40%; height: 64%; left: 6%; top: 16%; }
.lo-preview.lo-split-scroll i:nth-child(2) { width: 42%; height: 22%; right: 6%; top: 18%; }
.lo-preview.lo-split-scroll i:nth-child(3) { width: 42%; height: 32%; right: 6%; top: 48%; }
.lo-preview.lo-stacked-cards i:nth-child(1) { width: 70%; height: 24%; left: 15%; top: 12%; }
.lo-preview.lo-stacked-cards i:nth-child(2) { width: 70%; height: 24%; left: 15%; top: 38%; }
.lo-preview.lo-stacked-cards i:nth-child(3) { width: 70%; height: 24%; left: 15%; top: 64%; }

.effect-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 16px; }
.effect-option { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 11px; display: flex; flex-direction: column; gap: 5px; background: #fff; }
.effect-option.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.effect-option b { font-size: 13px; }
.effect-option > span:not(.fx-orb) { color: var(--muted); font-size: 11px; line-height: 1.45; min-height: 32px; }
.gen-preset .fx-orb, .effect-option .fx-orb { transition: transform .18s ease, box-shadow .18s ease; }
.gen-preset:hover .fx-orb, .effect-option:hover .fx-orb { transform: scale(1.1); box-shadow: 0 5px 12px rgba(15,23,42,.18); }
.gen-preset:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.fx-orb {
  position: relative;
  width: 58px;
  height: 38px;
  border-radius: 9px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.1);
}
.fx-orb i, .fx-orb::before, .fx-orb::after { position: absolute; display: block; content: ""; }
.fx-orb i:nth-child(1) { left: 7px; top: 7px; width: 20px; height: 5px; border-radius: 3px; }
.fx-orb i:nth-child(2) { left: 7px; top: 16px; width: 27px; height: 3px; border-radius: 2px; }
.fx-orb i:nth-child(3) { right: 7px; bottom: 7px; width: 11px; height: 7px; border-radius: 3px; }

.fx-slots { display: flex; flex-direction: column; gap: 14px; }
.fx-slot { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: linear-gradient(135deg, #fbfdff, #f8fafc); }
.fx-slot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fx-slot-head b { font-size: 13px; color: var(--navy); }
.fx-slot-head span { font-size: 11px; color: var(--muted); }
.fx-slot:first-child .gen-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-slot:last-child .gen-presets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fx-slot-meta { display: inline-flex; align-items: center; gap: 8px; }
.fx-slot-none { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: 11px; }
.fx-slot-none input { margin: 0; accent-color: var(--brand); }
@media (max-width: 1000px) {
  .fx-slot:first-child .gen-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-slot:last-child .gen-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fx-slot:first-child .gen-presets, .fx-slot:last-child .gen-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 分组与强度标签 */
.fx-groups { display: flex; flex-direction: column; gap: 16px; }
.fx-group { display: flex; flex-direction: column; gap: 8px; }
.fx-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fx-group-head b { font-size: 13px; color: var(--navy); }
.fx-group-head span { font-size: 11px; color: var(--muted); }
.fx-groups .effect-picker { padding: 0; }
.fx-tag { position: absolute; top: 8px; right: 8px; padding: 1px 5px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--brand); font-size: 9px; line-height: 1.5; letter-spacing: .02em; }
.gen-preset .fx-tag { top: 7px; right: 7px; }

/* 17 指针柔光 */
.fx-pointer { background: radial-gradient(circle at 30% 30%, #1e3a8a, #070d18); }
.fx-pointer::before { inset: -10px; background: radial-gradient(circle at 68% 30%, rgba(96,165,250,.98), rgba(96,165,250,.3) 22%, transparent 60%); filter: blur(2px); animation: fx-orb-pointer 5s ease-in-out infinite alternate; }
.fx-pointer::after { left: 67%; top: 30%; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 14px 5px rgba(147,197,253,.9); }
.fx-pointer i { display: none; }

/* 18 交互点阵 */
.fx-dots { background: radial-gradient(circle at 30% 20%, #1e3a8a, #070d18); }
.fx-dots::before { inset: 0; background-image: radial-gradient(rgba(191,219,254,.8) 1px, transparent 1.4px); background-size: 9px 9px; mask-image: radial-gradient(circle at 68% 34%, #000 0 20%, transparent 62%); }
.fx-dots::after { left: 58%; top: 26%; width: 15px; height: 15px; border-radius: 50%; background: rgba(96,165,250,.35); box-shadow: 0 0 15px rgba(96,165,250,.75); }
.fx-dots i { display: none; }

/* 19 边框光带 */
.fx-beam { background: #0b1220; }
.fx-beam::before { inset: 2px; border-radius: 7px; background: conic-gradient(from 210deg, #22d3ee, #a78bfa, #f472b6, #22d3ee); animation: fx-orb-beam 3.4s linear infinite; }
.fx-beam::after { inset: 5px; border-radius: 5px; background: #0b1220; }
.fx-beam i { display: none; }

/* 20 3D 倾斜 */
.fx-tilt { background: linear-gradient(135deg, #eef2ff, #dbeafe); perspective: 70px; }
.fx-tilt::before { left: 9px; top: 8px; width: 30px; height: 23px; border-radius: 5px; background: linear-gradient(135deg, #4f46e5, #22d3ee); transform: rotateX(18deg) rotateY(-20deg); box-shadow: 5px 6px 0 rgba(79,70,229,.12); }
.fx-tilt::after { right: 8px; bottom: 7px; width: 15px; height: 15px; border-radius: 4px; background: rgba(255,255,255,.7); transform: rotateX(18deg) rotateY(-20deg); }
.fx-tilt i { display: none; }

/* 21 手绘圈注 */
.fx-rough { background: #fffdf7; }
.fx-rough::before { left: 8px; top: 11px; width: 34px; height: 12px; border: 1.6px solid #ea6a2b; border-radius: 50%; transform: rotate(-5deg); }
.fx-rough::after { left: 9px; top: 24px; width: 24px; height: 2px; background: #ea6a2b; transform: rotate(2deg); box-shadow: 5px 3px 0 -1px #f59e0b; }
.fx-rough i { display: none; }

/* 22 光点残影 */
.fx-trail { background: radial-gradient(circle at 24% 26%, #1e3a8a, #070d18); }
.fx-trail::before { left: 12px; top: 20px; width: 5px; height: 5px; border-radius: 50%; background: #93c5fd; box-shadow: 7px 2px 0 -1px rgba(147,197,253,.75), 14px 5px 0 -1px rgba(147,197,253,.5), 21px 9px 0 -1px rgba(147,197,253,.28), 28px 14px 0 -1px rgba(147,197,253,.14); }
.fx-trail::after { right: 9px; top: 8px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #93c5fd; }
.fx-trail i { display: none; }

/* 23 字符残影 */
.fx-ascii { background: #071018; }
.fx-ascii::before { content: "01</>{}"; left: 6px; top: 6px; color: #67e8f9; font: 700 8px/1.1 monospace; letter-spacing: 1px; text-shadow: 0 0 5px rgba(103,232,249,.6); white-space: pre; }
.fx-ascii::after { content: "10>_{}"; right: 5px; bottom: 5px; color: rgba(167,139,250,.8); font: 700 7px/1.1 monospace; letter-spacing: 1px; }
.fx-ascii i { display: none; }

/* 24 文字解码 */
.fx-scramble { background: #0b1220; }
.fx-scramble::before { content: "A1B#"; left: 7px; top: 7px; color: #f8fafc; font: 700 10px/1 monospace; letter-spacing: 2px; text-shadow: 2px 0 #22d3ee, -2px 0 #f43f5e; animation: fx-orb-scramble .7s steps(2,end) infinite; }
.fx-scramble::after { left: 7px; top: 22px; width: 29px; height: 3px; border-radius: 2px; background: rgba(226,232,240,.55); }
.fx-scramble i { display: none; }

/* 01 毛玻璃 */
.fx-glass { background: linear-gradient(135deg, #dbeafe, #f8fafc); }
.fx-glass::before { inset: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 3px 7px rgba(30,58,138,.12); backdrop-filter: blur(3px); }
.fx-glass i:nth-child(1) { background: rgba(30,58,138,.55); }
.fx-glass i:nth-child(2) { background: rgba(30,58,138,.18); }
.fx-glass i:nth-child(3) { background: rgba(30,58,138,.35); }

/* 02 雨滴 */
.fx-rain { background: repeating-linear-gradient(112deg, rgba(147,197,253,.34) 0 1px, transparent 1px 7px), linear-gradient(180deg, #0b1220, #1e3a8a); }
.fx-rain i { width: 1px !important; height: 18px !important; top: -14px !important; background: linear-gradient(transparent, rgba(191,219,254,.95)); border-radius: 1px; transform: rotate(14deg); animation: fx-orb-rain 1.35s linear infinite; }
.fx-rain i:nth-child(1) { left: 11px !important; animation-delay: -.2s; }
.fx-rain i:nth-child(2) { left: 25px !important; animation-delay: -.8s; }
.fx-rain i:nth-child(3) { left: 38px !important; animation-delay: -.45s; }

/* 03 涟漪 */
.fx-ripple { background: #eef6ff; }
.fx-ripple::before, .fx-ripple::after { left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #3b82f6; transform: translate(-50%,-50%); animation: fx-orb-ripple 2.2s ease-out infinite; }
.fx-ripple::after { animation-delay: 1.1s; }
.fx-ripple i { display: none; }

/* 04 极光 */
.fx-aurora { background: #08111f; }
.fx-aurora::before { left: -10px; top: -12px; width: 58px; height: 26px; background: radial-gradient(ellipse, rgba(52,211,153,.85), transparent 66%); filter: blur(4px); animation: fx-orb-aurora 4s ease-in-out infinite alternate; }
.fx-aurora::after { right: -12px; bottom: -10px; width: 48px; height: 24px; background: radial-gradient(ellipse, rgba(167,139,250,.9), transparent 68%); filter: blur(4px); animation: fx-orb-aurora 5s ease-in-out infinite alternate-reverse; }
.fx-aurora i { display: none; }

/* 05 粒子 */
.fx-particles { background: radial-gradient(circle at 30% 20%, #1e3a8a, #070d18); }
.fx-particles::before { inset: 0; background-image: radial-gradient(rgba(147,197,253,.9) 1px, transparent 1.5px); background-size: 9px 8px; opacity: .8; animation: fx-orb-drift 6s linear infinite; }
.fx-particles i:nth-child(1) { width: 3px !important; height: 3px !important; border-radius: 50%; background: #93c5fd; box-shadow: 0 0 5px #93c5fd; top: 6px !important; left: 15px !important; }
.fx-particles i:nth-child(2) { width: 2px !important; height: 2px !important; border-radius: 50%; background: #fff; top: 22px !important; left: 32px !important; }
.fx-particles i:nth-child(3) { display: none; }

/* 06 霓虹 */
.fx-neon { background: #070b14; box-shadow: inset 0 0 0 1px rgba(34,211,238,.55), 0 0 12px rgba(34,211,238,.28); }
.fx-neon::before { inset: 6px 8px; border: 1px solid #22d3ee; border-radius: 4px; box-shadow: 0 0 7px rgba(34,211,238,.8), inset 0 0 7px rgba(34,211,238,.35); }
.fx-neon i:nth-child(1) { background: #22d3ee; box-shadow: 0 0 5px #22d3ee; }
.fx-neon i:nth-child(2) { background: rgba(34,211,238,.55); }
.fx-neon i:nth-child(3) { display: none; }

/* 07 聚光 */
.fx-spotlight { background: #0b1220; }
.fx-spotlight::before { inset: 0; background: radial-gradient(circle at 72% 18%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.32) 18%, transparent 48%); animation: fx-orb-spot 4s ease-in-out infinite alternate; }
.fx-spotlight i:nth-child(1) { background: rgba(255,255,255,.8); }
.fx-spotlight i:nth-child(2) { background: rgba(255,255,255,.22); }
.fx-spotlight i:nth-child(3) { display: none; }

/* 08 液态 */
.fx-liquid { background: linear-gradient(135deg, #0f172a, #312e81); }
.fx-liquid::before { left: 8px; top: 5px; width: 30px; height: 23px; background: linear-gradient(135deg, #818cf8, #22d3ee); border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; animation: fx-orb-liquid 5s ease-in-out infinite; filter: blur(.3px); }
.fx-liquid i { display: none; }

/* 09 胶片颗粒 */
.fx-grain { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); }
.fx-grain::before { inset: 0; background-image: radial-gradient(rgba(30,41,59,.55) .7px, transparent .8px); background-size: 3px 3px; opacity: .7; }
.fx-grain i:nth-child(1) { background: rgba(30,41,59,.72); }
.fx-grain i:nth-child(2) { background: rgba(30,41,59,.3); }
.fx-grain i:nth-child(3) { background: rgba(30,41,59,.45); }

/* 10 视差 */
.fx-parallax { background: linear-gradient(180deg, #0f172a 0 38%, #dbeafe 38% 100%); }
.fx-parallax::before { left: -8px; bottom: 6px; width: 46px; height: 18px; background: #93c5fd; clip-path: polygon(0 100%, 22% 34%, 44% 78%, 68% 16%, 100% 100%); }
.fx-parallax::after { right: -4px; bottom: 3px; width: 38px; height: 14px; background: #3b82f6; clip-path: polygon(0 100%, 28% 28%, 55% 70%, 100% 100%); }
.fx-parallax i { display: none; }

/* 11 磁吸 */
.fx-magnetic { background: radial-gradient(circle at 50% 50%, #eef2ff, #c7d2fe); }
.fx-magnetic::before, .fx-magnetic::after { left: 50%; top: 50%; border: 1.5px solid #4f46e5; border-radius: 50%; transform: translate(-50%,-50%); }
.fx-magnetic::before { width: 18px; height: 18px; }
.fx-magnetic::after { width: 30px; height: 30px; opacity: .35; animation: fx-orb-magnet 2.4s ease-out infinite; }
.fx-magnetic i:nth-child(1) { left: 50% !important; top: 50% !important; width: 6px !important; height: 6px !important; border-radius: 50%; background: #4f46e5; transform: translate(-50%,-50%); }
.fx-magnetic i:nth-child(2), .fx-magnetic i:nth-child(3) { display: none; }

/* 12 光晕 */
.fx-bloom { background: #090f1c; }
.fx-bloom::before { inset: -8px; background: radial-gradient(circle at 18% 18%, rgba(96,165,250,.95), transparent 44%), radial-gradient(circle at 88% 78%, rgba(167,139,250,.7), transparent 48%); filter: blur(4px); animation: fx-orb-bloom 4.5s ease-in-out infinite alternate; }
.fx-bloom i:nth-child(1) { background: rgba(255,255,255,.88); }
.fx-bloom i:nth-child(2) { background: rgba(255,255,255,.28); }
.fx-bloom i:nth-child(3) { display: none; }

/* 13 故障 */
.fx-glitch { background: #080b12; }
.fx-glitch::before { left: 8px; top: 8px; width: 28px; height: 4px; background: #22d3ee; box-shadow: 3px 0 0 #f43f5e, -2px 0 0 #a3e635; animation: fx-orb-glitch 1.8s steps(2,end) infinite; }
.fx-glitch i:nth-child(1) { background: rgba(255,255,255,.9); animation: fx-orb-glitch 2.4s steps(2,end) infinite; }
.fx-glitch i:nth-child(2) { background: rgba(244,63,94,.72); animation: fx-orb-glitch 1.4s steps(2,end) infinite reverse; }
.fx-glitch i:nth-child(3) { display: none; }

/* 14 网格 */
.fx-grid { background: #0b1220; }
.fx-grid::before { inset: 0; background-image: linear-gradient(rgba(96,165,250,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,.5) 1px, transparent 1px); background-size: 8px 8px; transform: perspective(30px) rotateX(18deg) scale(1.5); transform-origin: center bottom; opacity: .75; }
.fx-grid::after { left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: #93c5fd; box-shadow: 0 0 8px #93c5fd; }
.fx-grid i { display: none; }

/* 15 飘雪 */
.fx-snow { background: linear-gradient(180deg, #0f172a, #334155); }
.fx-snow::before { inset: 0; background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 10px 9px; animation: fx-orb-snow 7s linear infinite; }
.fx-snow i:nth-child(1) { width: 4px !important; height: 4px !important; border-radius: 50%; background: rgba(255,255,255,.92); top: 3px !important; left: 12px !important; box-shadow: 0 0 3px #fff; }
.fx-snow i:nth-child(2) { width: 3px !important; height: 3px !important; border-radius: 50%; background: rgba(255,255,255,.8); top: 15px !important; left: 33px !important; }
.fx-snow i:nth-child(3) { display: none; }

/* 16 气泡 */
.fx-bubbles { background: linear-gradient(135deg, #0c4a6e, #38bdf8); }
.fx-bubbles i { border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), rgba(255,255,255,.1) 55%); animation: fx-orb-bubble 3.2s ease-in-out infinite; }
.fx-bubbles i:nth-child(1) { width: 10px !important; height: 10px !important; left: 9px !important; top: 15px !important; }
.fx-bubbles i:nth-child(2) { width: 6px !important; height: 6px !important; left: 25px !important; top: 7px !important; animation-delay: -.8s; }
.fx-bubbles i:nth-child(3) { width: 13px !important; height: 13px !important; right: 5px !important; bottom: 3px !important; animation-delay: -1.6s; }

/* 无特效 */
.fx-none { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); box-shadow: inset 0 0 0 1px #cbd5e1; }
.fx-none::before { left: 8px; top: 8px; width: 22px; height: 4px; border-radius: 2px; background: #94a3b8; }
.fx-none::after { left: 8px; top: 17px; width: 29px; height: 3px; border-radius: 2px; background: #cbd5e1; }
.fx-none i { display: none; }

@keyframes fx-orb-rain { 0% { transform: translateY(-8px) rotate(14deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(38px) rotate(14deg); opacity: 0; } }
@keyframes fx-orb-ripple { 0% { opacity: .9; transform: translate(-50%,-50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(4.2); } }
@keyframes fx-orb-aurora { 0% { transform: translate3d(-3px,1px,0) scale(1); } 100% { transform: translate3d(5px,-3px,0) scale(1.18); } }
@keyframes fx-orb-drift { 0% { background-position: 0 0; } 100% { background-position: 18px -16px; } }
@keyframes fx-orb-spot { 0% { opacity: .75; transform: translate(-4px,2px); } 100% { opacity: 1; transform: translate(3px,-2px); } }
@keyframes fx-orb-liquid { 0%,100% { border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; transform: rotate(0) scale(1); } 50% { border-radius: 58% 42% 38% 62% / 55% 58% 42% 45%; transform: rotate(9deg) scale(1.08); } }
@keyframes fx-orb-magnet { 0% { opacity: .55; transform: translate(-50%,-50%) scale(.5); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.5); } }
@keyframes fx-orb-bloom { 0% { opacity: .75; transform: scale(.95); } 100% { opacity: 1; transform: scale(1.08); } }
@keyframes fx-orb-glitch { 0%, 86%, 100% { transform: translateX(0); opacity: 1; } 88% { transform: translateX(4px); opacity: .7; } 92% { transform: translateX(-3px); opacity: .9; } }
@keyframes fx-orb-snow { 0% { background-position: 0 0; } 100% { background-position: 12px 31px; } }
@keyframes fx-orb-bubble { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes fx-orb-pointer { 0% { transform: translate(-3px,2px) scale(1); } 100% { transform: translate(4px,-2px) scale(1.08); } }
@keyframes fx-orb-beam { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes fx-orb-scramble { 0%,100% { transform: translateX(0); opacity: 1; } 50% { transform: translateX(2px); opacity: .65; } }

@media (prefers-reduced-motion: reduce) { .fx-orb, .fx-orb i, .fx-orb::before, .fx-orb::after { animation: none !important; } }
.brand-picker { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; padding: 0 18px 16px; }
.brand-option { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 6px; background: #fff; }
.brand-option.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 14%, transparent); }
.brand-option button { width: 100%; border: 0; background: transparent; padding: 0; cursor: pointer; }
.brand-option button span { display: block; height: 28px; border-radius: 6px; background: var(--bc); }
.brand-option small { display: none; }
@media (max-width: 1000px) { .layout-picker { grid-template-columns: repeat(2, 1fr); } .effect-picker { grid-template-columns: repeat(2, 1fr); } .brand-picker { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .brand-picker { grid-template-columns: repeat(3, 1fr); } }
/* 确认按钮的即时提交反馈 */
.chat-confirm-btn.is-submitting,
.chat-confirm-btn.is-submitting:hover {
  filter: saturate(.92) brightness(.98);
  transform: translateY(1px);
  box-shadow: 0 4px 12px -10px rgba(15,23,42,.35);
  cursor: wait;
}
.chat-confirm-btn.is-submitting::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
  pointer-events: none;
}
.chat-confirm-btn { position: relative; }
.chat-btn-spin {
  display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%;
  animation: spin .75s linear infinite;
}
.chat-confirm-strip[data-loading="1"] { cursor: progress; }
.chat-confirm-strip[data-loading="1"] .chat-confirm-ghost { opacity: .45; pointer-events: none; }
/* 加载卡片里的 spinner 是块级元素，避免 inline 宽度失效 */
.chat-loading-card .spin { display: block; margin: 0 auto 2px; }
/* AI 操作审批 */
.approval-list { display: flex; flex-direction: column; gap: 12px; }
.approval-card { overflow: hidden; }
.approval-body { padding: 14px 18px 4px; }
.approval-input { margin: 10px 0 4px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; color: var(--muted); max-height: 180px; overflow: auto; }
.approval-actions { display: flex; gap: 8px; padding: 0 18px 16px; }
/* AI 设计实验室 */
.design-lab-entry { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; margin-bottom: 14px; background: linear-gradient(120deg, #f5f3ff, #eef2ff); border: 1px solid #ddd6fe; }
.design-lab-entry p { margin: 4px 0 0; }
.design-lab-top { align-items: stretch; }
.design-proposal { margin-top: 14px; }
.design-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.design-variant { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.dv-swatch { height: 68px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--dv) 35%, #fff), #fff 55%), var(--dv); }
.dv-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dv-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dv-body p { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; flex: 1; }
.dv-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dv-tags span { font-size: 10.5px; color: var(--muted); background: #f8fafc; border: 1px solid var(--line); border-radius: 99px; padding: 2px 7px; }
@media (max-width: 900px) { .design-variants { grid-template-columns: 1fr; } .design-lab-entry { flex-direction: column; align-items: flex-start; } }
/* 设计实验室双端预览与视觉检查 */
.design-preview-card { margin-top: 14px; }
.design-preview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) 390px; gap: 14px; padding: 0 18px 18px; align-items: start; }
.device-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f8fafc; }
.device-label { font-size: 11px; color: var(--muted); padding: 7px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.device-preview iframe { display: block; width: 100%; border: 0; background: #fff; }
.device-preview.desktop iframe { height: 620px; }
.device-preview.mobile { max-width: 390px; }
.device-preview.mobile iframe { height: 620px; }
.visual-check-list { list-style: none; margin: 0; padding: 0 18px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.visual-check-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.visual-check-list b { font-size: 12px; }
.visual-check-list em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 11px; }
.visual-check-list .check-pass { color: #15803d; font-size: 10.5px; }
.visual-check-list .check-warn { color: #b45309; font-size: 10.5px; }
.visual-check-list .check-info { color: #64748b; font-size: 10.5px; }
@media (max-width: 1050px) { .design-preview-grid { grid-template-columns: 1fr; } .device-preview.mobile { max-width: none; } .visual-check-list { grid-template-columns: 1fr; } }
.device-preview img { width: 100%; display: block; background: #fff; }
.design-shot-form { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px 16px; }
@media (max-width: 640px) { .design-shot-form { flex-direction: column; align-items: flex-start; } }
.design-review-summary { padding: 0 18px 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
/* 品牌素材 */
.brand-current-logo { display: flex; align-items: center; gap: 16px; padding: 14px 18px 18px; }
.brand-current-logo img { width: 82px; height: 82px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.brand-logo-empty { width: 82px; height: 82px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; }
.brand-asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 18px 16px; }
.brand-asset { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.brand-asset > img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f8fafc; }
.brand-asset-meta { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px 0; font-size: 10.5px; color: var(--muted); }
.brand-asset-meta a { color: var(--brand); }
.brand-asset-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
@media (max-width: 900px) { .brand-asset-grid { grid-template-columns: repeat(2, 1fr); } }
/* 推荐素材 */
.brand-recommend { border-color: #bbf7d0; background: linear-gradient(120deg, #f0fdf4, #fff); }
.brand-recommend-body { display: flex; align-items: center; gap: 14px; padding: 10px 18px 16px; }
.brand-recommend-body img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; }
.brand-recommend-body > div { flex: 1; min-width: 0; }
.brand-asset.is-recommended { border-color: #86efac; box-shadow: 0 0 0 2px #dcfce7; }
@media (max-width: 640px) { .brand-recommend-body { flex-direction: column; align-items: flex-start; } }
.brand-rights-badge { padding: 2px 8px; font-size: 10.5px; color: var(--muted); }
.brand-rights-form { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 0 8px 8px; }
.brand-rights-form select, .brand-rights-form input { font-size: 10.5px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: #fff; width: 100%; }
/* 官网内容同步 */
.sync-discover { list-style: none; margin: 0; padding: 0 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.sync-discover li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.sync-discover li > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sync-source-list { display: flex; flex-direction: column; }
.sync-source { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
.sync-source:first-child { border-top: 0; }
.sync-source > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; word-break: break-all; }
.sync-source-actions { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }
.sync-schedule { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.sync-schedule select { font-size: 10.5px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px; background: #fff; }
.sync-schedule label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }

.done-hero-none { margin: 10px 0 0; }
.done-hero-none .btn { font-size: 12px; padding: 7px 12px; }
