/* 平台后台：深色侧栏 + 浅色内容区。不加载外部字体（国内访问 Google Fonts 不稳定），用系统字体。 */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6e8ec;
  --line-2: #eef0f3;
  --brand: #4f46e5;
  --brand-2: #4338ca;
  --brand-soft: #eef2ff;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --err: #dc2626;
  --err-soft: #fef2f2;
  --side: #0b1020;
  --side-2: #151b2e;
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #c7d2fe; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #cbd5e1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 14px; color: #fff; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #22d3ee); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .8); }
.brand-mark svg { width: 17px; height: 17px; stroke: #fff; }
.brand small { display: block; font-size: 11px; color: #64748b; font-weight: 500; letter-spacing: .02em; }
.ws { margin: 4px 12px 12px; padding: 10px 12px; border-radius: 10px; background: var(--side-2); border: 1px solid #1e2640; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: border-color .15s; }
.ws:hover { border-color: #334155; }
.ws-av { width: 30px; height: 30px; border-radius: 8px; background: #1e293b; color: #e2e8f0; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.ws-name { color: #f1f5f9; font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-sub { font-size: 11px; color: #64748b; }
.ws .grow { min-width: 0; flex: 1; }
.nav { padding: 4px 10px 16px; flex: 1; }
.nav-label { font-size: 11px; color: #475569; text-transform: uppercase; letter-spacing: .08em; padding: 14px 10px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #aab4c5; font-weight: 500; margin: 1px 0; transition: background .12s, color .12s; }
.nav a:hover { background: #121a2e; color: #e2e8f0; }
.nav a.active { background: linear-gradient(90deg, rgba(99, 102, 241, .22), rgba(99, 102, 241, .06)); color: #fff; box-shadow: inset 2px 0 0 #818cf8; }
.nav a .count { margin-left: auto; background: #4f46e5; color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; line-height: 18px; }
.side-foot { padding: 14px 16px; border-top: 1px solid #161d30; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; color: #e2e8f0; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { color: #64748b; }
.icon-btn { background: none; border: 0; color: inherit; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(148, 163, 184, .14); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(245, 246, 248, .85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top h1 { font-size: 18px; font-weight: 650; }
.top .crumb { color: var(--faint); font-size: 13px; }
.top .spacer { flex: 1; }
.content { padding: 8px 32px 48px; max-width: 1360px; width: 100%; }
.page-intro { color: var(--muted); margin: -2px 0 22px; max-width: 760px; }

/* ---------- 基础组件 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: all .12s; box-shadow: 0 1px 1px rgba(15, 23, 42, .03); }
.btn:hover { border-color: #cfd4dc; background: #fafbfc; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #1e293b; }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .7); }
.btn.brand:hover { background: var(--brand-2); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: #eceef2; }
.btn.danger { color: var(--err); }
.btn.danger:hover { background: var(--err-soft); border-color: #fecaca; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { height: 42px; padding: 0 20px; font-size: 14.5px; border-radius: 10px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { font-size: 14.5px; font-weight: 650; }
.card-h .sub { color: var(--muted); font-size: 12.5px; }
.card-b { padding: 18px 20px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .split { grid-template-columns: 1fr; } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 550; background: #f1f5f9; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.brand { background: var(--brand-soft); color: var(--brand-2); }
.badge.dark { background: var(--ink); color: #fff; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--faint); font-weight: 400; }
.input, .field input, .field select, .field textarea, textarea.input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid #dfe3e8; border-radius: var(--r-sm); background: #fff; transition: border-color .12s, box-shadow .12s; outline: none;
}
.field textarea, textarea.input { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.55; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.field.req > span::after { content: " *"; color: var(--err); }
.counter { font-size: 11.5px; color: var(--faint); text-align: right; }
.counter.over { color: var(--warn); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #cbd5e1; border-radius: 99px; transition: .15s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(16px); }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #fafbfd; }
.table .actions { text-align: right; white-space: nowrap; }

/* 统计卡片 */
.kpi { padding: 18px 20px; }
.kpi .label { color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.kpi .d { font-size: 12px; color: var(--faint); margin-top: 4px; }
.kpi .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .ico { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--brand); }
.empty .ico svg { width: 24px; height: 24px; }
.empty h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty p { max-width: 440px; margin: 0 auto 18px; }

.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 弹窗、抽屉、提示 */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; overflow-y: auto; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: min(560px, 100%); box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(860px, 100%); }
.modal.xwide { width: min(1100px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal-h { padding: 20px 24px 6px; display: flex; align-items: flex-start; gap: 12px; }
.modal-h h3 { font-size: 17px; font-weight: 650; }
.modal-h p { color: var(--muted); margin-top: 4px; }
.modal-b { padding: 16px 24px; }
.modal-f { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .35); animation: fade .15s; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(760px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s cubic-bezier(.2, .8, .3, 1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-h { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.drawer-h h3 { font-size: 16.5px; font-weight: 650; }
.drawer-b { flex: 1; overflow-y: auto; padding: 22px 24px; }
.drawer-f { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: #fafbfc; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; display: flex; gap: 10px; align-items: center; animation: pop .2s; max-width: 560px; }
.toast.err { background: #7f1d1d; }
.toast .act { color: #a5b4fc; cursor: pointer; font-weight: 600; }
.section-title { font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0; }
.note { padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.note.brand { background: var(--brand-soft); border-color: #e0e7ff; color: #3730a3; }
.note.warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.note.err { background: var(--err-soft); border-color: #fecaca; color: #991b1b; }
.note.ok { background: var(--ok-soft); border-color: #a7f3d0; color: #065f46; }
.tabs { display: inline-flex; background: #eceef2; padding: 3px; border-radius: 9px; gap: 2px; }
.tabs button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; font-weight: 550; color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); transition: all .12s; }
.chip:hover { border-color: #a5b4fc; color: var(--brand-2); background: var(--brand-soft); }

/* ---------- 登录 ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { background: radial-gradient(1200px 600px at 0% 0%, #312e81 0%, transparent 60%), radial-gradient(900px 500px at 100% 100%, #0e7490 0%, transparent 55%), #0b1020; color: #e2e8f0; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: 38px; line-height: 1.15; color: #fff; margin: auto 0 18px; letter-spacing: -.03em; font-weight: 700; max-width: 520px; }
.auth-art .lead { color: #94a3b8; font-size: 15.5px; max-width: 480px; }
.auth-points { margin: 34px 0 auto; display: grid; gap: 14px; }
.auth-points div { display: flex; gap: 12px; align-items: flex-start; color: #cbd5e1; }
.auth-points svg { width: 18px; height: 18px; stroke: #a5b4fc; margin-top: 2px; }
.auth-form { display: grid; place-items: center; padding: 40px; background: #fff; }
.auth-form form { width: min(380px, 100%); }
.auth-form h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.auth-form .sub { color: var(--muted); margin: 6px 0 28px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- 网站预览缩略图 ---------- */
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.thumb iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.thumb .cover { position: absolute; inset: 0; }
.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.browser-bar .url { flex: 1; height: 24px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-bar .tag { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 6px; }
.tag.before { background: #f1f5f9; color: var(--ink-2); }
.tag.after { background: var(--brand-soft); color: var(--brand-2); }
.viewport { position: relative; flex: 1; overflow: hidden; background: #f8fafc; }
.viewport iframe { position: absolute; left: 0; top: 0; border: 0; background: #fff; transform-origin: 0 0; }

/* ---------- 页面列表 ---------- */
.page-row { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.page-row:last-child { border-bottom: 0; }
.page-row .thumb { aspect-ratio: 16 / 10; border-radius: 8px; }
.page-row h4 { font-size: 15px; font-weight: 620; display: flex; align-items: center; gap: 8px; }
.page-row .meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .page-row { grid-template-columns: 1fr; } }

/* ---------- AI 调整工作台 ---------- */
.studio { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.prompt-box { padding: 16px; }
.prompt-box textarea { min-height: 112px; border: 1px solid #dfe3e8; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: calc(100vh - 230px); min-height: 520px; }
.compare.single { grid-template-columns: 1fr; }
.changes { margin-top: 14px; }
.chg { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.chg:last-child { border-bottom: 0; }
.chg .k { color: var(--muted); font-weight: 550; }
.chg del { background: #fef2f2; color: #991b1b; text-decoration: line-through; text-decoration-color: rgba(153, 27, 27, .4); padding: 1px 3px; border-radius: 3px; }
.chg ins { background: #ecfdf5; color: #065f46; text-decoration: none; padding: 1px 3px; border-radius: 3px; }
.chg .arrow { color: var(--faint); margin: 0 6px; }
.hist-item { padding: 10px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.hist-item:hover { background: #fafbfd; }
.hist-item.on { background: var(--brand-soft); }
.hist-item:last-child { border-bottom: 0; }
.action-bar { position: sticky; bottom: 0; margin-top: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); }
.thinking { display: flex; align-items: center; gap: 12px; padding: 24px; color: var(--ink-2); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr; } .studio-side { position: static; } .compare { grid-template-columns: 1fr; height: auto; } .compare .browser { height: 520px; } }

/* ---------- 产品 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.prod { overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.prod:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(15, 23, 42, .3); }
.prod .img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f1f5f9, #e7ebf0); display: grid; place-items: center; color: var(--faint); position: relative; }
.prod .img img { width: 100%; height: 100%; object-fit: cover; }
.prod .img .n { position: absolute; right: 8px; bottom: 8px; background: rgba(15, 23, 42, .7); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 99px; }
.prod .img .star { position: absolute; left: 8px; top: 8px; background: #fff; color: #d97706; border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 600; box-shadow: var(--shadow); }
.prod .b { padding: 12px 14px 14px; }
.prod h4 { font-size: 14px; font-weight: 620; line-height: 1.35; }
.prod .cat { font-size: 11.5px; color: var(--brand-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.gimg { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #f8fafc; cursor: grab; }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gimg.dragging { opacity: .4; }
.gimg.over { outline: 2px dashed var(--brand); outline-offset: 2px; }
.gimg .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(15, 23, 42, .72); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; }
.gimg:hover .x { opacity: 1; }
.gimg .cover-tag { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 6px; }
.gimg.uploading { display: grid; place-items: center; color: var(--muted); font-size: 12px; cursor: default; }
.dropzone { border: 1.5px dashed #cbd5e1; border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12.5px; aspect-ratio: 1; cursor: pointer; transition: all .12s; padding: 8px; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-2); }
.spec-row { display: grid; grid-template-columns: 1fr 1.4fr 32px; gap: 8px; margin-bottom: 8px; }

/* ---------- 询盘 ---------- */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.lead-item { padding: 13px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.lead-item:hover { background: #fafbfd; }
.lead-item.on { background: var(--brand-soft); }
.lead-item .t { display: flex; gap: 8px; align-items: center; }
.lead-item .t b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-item .m { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.msg-box { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 13.5px; }
@media (max-width: 1000px) { .inbox { grid-template-columns: 1fr; } }

/* ---------- 发布 ---------- */
.launch-hero { padding: 26px 28px; display: flex; gap: 24px; align-items: center; background: radial-gradient(600px 220px at 100% 0%, #eef2ff, transparent), #fff; }
.launch-hero .state { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.launch-hero .state svg { width: 26px; height: 26px; }
.state.live { background: var(--ok-soft); color: var(--ok); }
.state.building { background: var(--warn-soft); color: var(--warn); }
.checklist { display: grid; gap: 2px; }
.checklist div { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.checklist div:last-child { border-bottom: 0; }
.checklist .ok { color: var(--ok); }
.checklist .no { color: var(--warn); }
.dns { width: 100%; border-collapse: collapse; font-size: 13px; }
.dns td, .dns th { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.dns th { background: #fafbfc; font-weight: 600; color: var(--muted); font-size: 12px; }
.copy { cursor: pointer; color: var(--brand); margin-left: 6px; }

/* 图表 */
.chart { width: 100%; height: 220px; }
.chart text { font-size: 11px; fill: var(--faint); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bar-list { display: grid; gap: 10px; }
.bar-list .r { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: 13px; }
.bar-list .track { position: relative; height: 26px; background: #f5f6f8; border-radius: 6px; overflow: hidden; }
.bar-list .fill { position: absolute; inset: 0 auto 0 0; background: #e0e7ff; border-radius: 6px; }
.bar-list .track span { position: relative; padding: 0 9px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(15, 23, 42, .08); }
.color-field { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.color-field input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border-radius: 8px; border: 1px solid rgba(0, 0, 0, .1); }
pre.code { background: #0b1020; color: #cbd5e1; border-radius: 10px; padding: 14px; font: 12px/1.6 var(--mono); max-height: 50vh; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.steps { display: flex; gap: 0; margin-bottom: 18px; }
.steps div { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--faint); font-weight: 550; }
.steps div b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eceef2; color: var(--muted); font-size: 12.5px; flex: none; }
.steps div.on { color: var(--ink); }
.steps div.on b { background: var(--ink); color: #fff; }
.steps div::after { content: ""; flex: 1; height: 1px; background: var(--line); margin: 0 12px; }
.steps div:last-child::after { display: none; }
