/* ============================================================
   NEXUS AI — 商业 SaaS 质感（极光 + 玻璃拟态）
   ============================================================ */

:root {
  --bg: #0a0a14;
  --bg-soft: #0f1020;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-solid: #141527;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f2f4ff;
  --text-2: #aab0c8;
  --text-3: #717896;
  --brand: #7c6cf5;
  --brand-2: #22d3ee;
  --brand-3: #c084fc;
  --grad: linear-gradient(120deg, #7c6cf5 0%, #9b6cf5 40%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,108,245,.16), rgba(34,211,238,.12));
  --glow: 0 0 0 1px rgba(124,108,245,.35), 0 18px 50px -12px rgba(124,108,245,.45);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0,0,0,.65);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

[data-theme="light"] {
  --bg: #f4f5fb;
  --bg-soft: #eceefb;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .92);
  --surface-solid: #ffffff;
  --border: rgba(20, 22, 50, .10);
  --border-strong: rgba(20, 22, 50, .18);
  --text: #14162e;
  --text-2: #4d5373;
  --text-3: #8a90ad;
  --grad-soft: linear-gradient(120deg, rgba(124,108,245,.10), rgba(34,211,238,.08));
  --shadow: 0 24px 60px -28px rgba(60,50,160,.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(124,108,245,.4); }

/* ---------- 极光背景 ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: float 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: 560px; height: 560px; top: -180px; left: -120px;
  background: radial-gradient(circle, #6d5df0, transparent 65%); }
.aurora span:nth-child(2) { width: 520px; height: 520px; top: -120px; right: -140px;
  background: radial-gradient(circle, #1fb6d6, transparent 65%); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 480px; height: 480px; bottom: -220px; left: 35%;
  background: radial-gradient(circle, #b06cf0, transparent 65%); animation-delay: -12s; opacity: .4; }
[data-theme="light"] .aurora span { opacity: .35; }
@keyframes float {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(40px,30px,0) scale(1.12); }
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 26px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -4px rgba(124,108,245,.7);
  flex-shrink: 0;
}
.logo-mark span {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2.5px solid #fff; position: relative;
}
.logo-mark span::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff;
}
.logo-mark.sm { width: 30px; height: 30px; border-radius: 9px; }
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: .5px; display: flex; align-items: baseline; gap: 5px; }
.logo-text small { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--brand-2); }

.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--text-2); transition: .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 15px; line-height: 1;
  display: grid; place-items: center;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: none; }
.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; padding: 6px 20px 16px; flex-direction: column; gap: 2px; }
.mobile-menu a { padding: 11px 8px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.mobile-menu a:active { background: var(--surface); }
.mobile-menu.show { display: flex; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: .18s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -8px rgba(124,108,245,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(124,108,245,.85); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn-soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-soft:hover { border-color: var(--brand); color: var(--brand-2); }

/* ---------- 通用容器 ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.section-title { font-size: 32px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.5px; }
.section-sub { color: var(--text-2); font-size: 15.5px; margin: 0; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.hero h1 {
  font-size: 52px; line-height: 1.12; font-weight: 850; letter-spacing: -1.5px;
  margin: 0 0 20px;
}
.hero p.lead { font-size: 17px; color: var(--text-2); margin: 0 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; }
.hero-stat b { display: block; font-size: 26px; font-weight: 800; }
.hero-stat span { font-size: 12.5px; color: var(--text-3); }

/* Hero 视觉：模拟对话卡片 */
.hero-visual { position: relative; }
.glass-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.chat-mock { padding: 20px; }
.chat-mock .cm-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.cm-ava { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; font-size: 15px; }
.cm-name { font-weight: 700; font-size: 13.5px; }
.cm-model { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.cm-msg { padding: 12px 15px; border-radius: 13px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.cm-msg.ai { background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; }
.cm-msg.user { background: var(--grad); color: #fff; margin-left: 40px; border-top-right-radius: 4px; }
.cm-msg.ai .typing { display: inline-flex; gap: 4px; }
.cm-msg.ai .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); animation: blink 1.2s infinite; }
.cm-msg.ai .typing i:nth-child(2) { animation-delay: .2s; }
.cm-msg.ai .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }
.cm-bar { display: flex; gap: 8px; margin-top: 6px; }
.cm-bar .fake-input {
  flex: 1; padding: 11px 14px; border-radius: 11px; background: var(--bg-soft);
  border: 1px solid var(--border); font-size: 12.5px; color: var(--text-3);
}
.cm-bar .fake-send { width: 40px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.float-chip {
  position: absolute; padding: 10px 15px; font-size: 12px; font-weight: 700;
  border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite;
}
.float-chip.fc-1 { top: -18px; left: -26px; color: var(--brand-2); }
.float-chip.fc-2 { bottom: -16px; right: -14px; color: var(--brand-3); animation-delay: -2.5s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 厂商条 ---------- */
.trustbar { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trustbar .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.trustbar .tb-label { font-size: 12px; color: var(--text-3); letter-spacing: 1px; }
.trustbar .tb-name { font-weight: 800; font-size: 17px; color: var(--text-2); opacity: .8; transition: .2s; }
.trustbar .tb-name:hover { opacity: 1; color: var(--text); }
.trustbar .tb-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

/* ---------- 工具卡片矩阵 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  display: block; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); transition: .22s; position: relative; overflow: hidden;
}
.tool-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) 0%, rgba(124,108,245,.16), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.tool-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tool-card:hover::before { opacity: 1; }
.tool-card.wide { grid-column: span 2; }
.tc-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 23px; margin-bottom: 18px; background: var(--grad-soft);
  border: 1px solid var(--border);
}
.tool-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 750; }
.tool-card p { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; }
.tc-link { font-size: 13px; font-weight: 700; color: var(--brand-2); display: inline-flex; gap: 6px; align-items: center; }
.tool-card:hover .tc-link { gap: 10px; }
.tc-tag {
  position: absolute; top: 20px; right: 20px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1px; padding: 4px 10px; border-radius: 999px;
  background: rgba(34,211,238,.14); color: var(--brand-2); border: 1px solid rgba(34,211,238,.3);
}
.tc-tag.hot { background: rgba(192,132,252,.14); color: var(--brand-3); border-color: rgba(192,132,252,.3); }

/* ---------- 特性（为什么选择） ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat {
  padding: 24px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.feat .fi { font-size: 24px; margin-bottom: 12px; }
.feat h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.feat p { margin: 0; font-size: 13px; color: var(--text-2); }

/* ---------- 首页价格预览条 ---------- */
.price-preview {
  border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px);
}
.price-preview .pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.price-preview .pp-head h3 { margin: 0; font-size: 19px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mini-table th {
  text-align: left; color: var(--text-3); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.mini-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .mn { font-weight: 700; }
.mini-table .mv { font-family: var(--mono); color: var(--text-2); text-align: right; }
.mini-table .price { font-family: var(--mono); font-weight: 700; color: var(--brand-2); text-align: right; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); padding: 60px 40px; text-align: center;
  background: var(--grad); overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 20% 0%, rgba(255,255,255,.18), transparent 55%);
}
.cta-band h2 { margin: 0 0 12px; font-size: 30px; font-weight: 850; color: #fff; position: relative; }
.cta-band p { margin: 0 0 28px; color: rgba(255,255,255,.9); position: relative; }
.cta-band .btn { background: #0d0f1e; color: #fff; position: relative; }
.cta-band .btn:hover { background: #1a1d33; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 90px; background: color-mix(in srgb, var(--bg) 80%, #000); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 54px 26px 40px;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px;
}
.footer-brand { display: flex; gap: 14px; }
.footer-name { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.footer-tag { color: var(--text-3); font-size: 13px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: 1.5px; color: var(--text-3); text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; color: var(--text-2); font-size: 13.5px; margin-bottom: 10px; cursor: pointer; }
.footer-col a:hover { color: var(--brand-2); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 26px; text-align: center;
  color: var(--text-3); font-size: 12.5px; max-width: 1180px; margin: 0 auto;
}

/* ---------- 工具内页通用 ---------- */
.page { padding: 44px 0 80px; min-height: 60vh; }
.page-head { margin-bottom: 30px; }
.page-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 12px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.ph-pill { font-size: 20px; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(14px);
}
.card-pad { padding: 22px; }
.card + .card { margin-top: 18px; }
.card-title { font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }

label.fld { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; font-family: inherit;
  color: var(--text); background: var(--bg-soft); border: 1px solid var(--border);
  outline: none; transition: .15s;
}
textarea { font-family: var(--mono); line-height: 1.6; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,108,245,.18); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23aab0c8' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
input[type=range] { width: 100%; accent-color: var(--brand); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { min-width: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.mt2 { margin-top: 14px; } .mt3 { margin-top: 22px; }
.mb2 { margin-bottom: 14px; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); }
.mono { font-family: var(--mono); }
.tiny { font-size: 12px; }
.inline-fld { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2);
}
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); }
.pill.err { color: var(--danger); border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.1); }
.pill.wait { color: var(--warn); }
.note {
  display: flex; gap: 10px; padding: 13px 15px; border-radius: 12px; font-size: 12.5px; line-height: 1.6;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--text-2);
}
.alert { padding: 12px 15px; border-radius: 12px; font-size: 13px; }
.alert.err { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.35); color: var(--danger); }

/* ---------- Playground ---------- */
.pg-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.pg-side { position: sticky; top: 86px; }
.pg-chat { display: flex; flex-direction: column; min-height: 62vh; }
.pg-messages { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 18px; max-height: 62vh; overflow-y: auto; }
.msg { display: flex; gap: 12px; max-width: 88%; }
.msg .m-ava { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; font-size: 15px; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .m-ava { background: var(--surface-2); border: 1px solid var(--border); }
.msg.ai .m-ava { background: var(--grad); }
.m-bubble { padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.msg.user .m-bubble { background: var(--grad); color: #fff; border-top-right-radius: 4px; }
.msg.ai .m-bubble { background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; }
.m-meta { font-size: 11px; color: var(--text-3); margin-top: 5px; font-family: var(--mono); }
.pg-empty { margin: auto; text-align: center; color: var(--text-3); }
.pg-empty .pe-ico { font-size: 42px; margin-bottom: 14px; }
.pg-empty h3 { color: var(--text-2); margin: 0 0 6px; font-size: 17px; }
.pg-suggest { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pg-suggest button {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.pg-suggest button:hover { border-color: var(--brand); color: var(--text); }
.pg-input { border-top: 1px solid var(--border); padding: 16px; }
.pg-input-box { display: flex; gap: 10px; align-items: flex-end; }
.pg-input textarea { max-height: 160px; min-height: 46px; }
.pg-send { width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-size: 18px; flex-shrink: 0; display: grid; place-items: center; }
.pg-send.stop { background: var(--surface-2); border: 1px solid var(--border-strong); }
.cursor-blink::after { content: "▋"; color: var(--brand-2); animation: blink 1s steps(1) infinite; }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.studio-fields .sf-item { margin-bottom: 14px; }
.studio-preview {
  white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.75;
  min-height: 320px; padding: 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
}
.studio-preview .sp-tag { color: var(--brand-2); font-weight: 700; }
.studio-tpl { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-tpl button {
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.studio-tpl button:hover { border-color: var(--brand); color: var(--text); }
.studio-tpl button.on { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- Token 计算器 ---------- */
.token-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.stat-box { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-box .s-num { font-size: 28px; font-weight: 800; }
.stat-box .s-num.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-box .s-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---------- 模型对比表 ---------- */
.filter-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filter-bar .search { flex: 1; min-width: 220px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.chip.on { background: var(--grad); color: #fff; border-color: transparent; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.model-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.model-table th {
  text-align: left; padding: 14px 16px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-3); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.model-table td { padding: 15px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.model-table tr:last-child td { border-bottom: 0; }
.model-table tbody tr { transition: .12s; }
.model-table tbody tr:hover { background: var(--surface); }
.m-name { font-weight: 700; }
.m-vendor { font-size: 11.5px; color: var(--text-3); }
.m-price { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.m-price.low { color: var(--ok); }
.m-ctx { font-family: var(--mono); color: var(--text-2); }
.vbadge { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-left: 6px; }
.vbadge.cny { background: rgba(251,191,36,.15); color: var(--warn); }
.vbadge.usd { background: rgba(34,211,238,.13); color: var(--brand-2); }

/* ---------- 提示词库 ---------- */
.prompt-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.prompt-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.prompt-card { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .2s; display: flex; flex-direction: column; }
.prompt-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.prompt-card .pc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.prompt-card h4 { margin: 0; font-size: 15.5px; font-weight: 700; }
.prompt-card .pc-cat { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--brand-2); }
.prompt-card p { margin: 0 0 14px; color: var(--text-2); font-size: 13px; flex: 1; }
.prompt-card .pc-body {
  display: none; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; color: var(--text-2);
  font-family: var(--mono); max-height: 220px; overflow-y: auto; margin-bottom: 12px;
}
.prompt-card.open .pc-body { display: block; }
.pc-actions { display: flex; gap: 8px; }
.pc-actions .btn { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 200; opacity: 0; transition: .25s; pointer-events: none; }
.toast-wrap.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast { background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--text); padding: 11px 22px; border-radius: 12px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card.wide { grid-column: span 2; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .pg-layout { grid-template-columns: 1fr; }
  .pg-side { position: static; }
  .studio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero h1 { font-size: 38px; }
  .section { padding: 60px 0; }
  .section-title, .cta-band h2 { font-size: 25px; }
  .tool-grid, .tool-card.wide { grid-template-columns: 1fr; }
  .tool-card.wide { grid-column: auto; }
  .feat-grid { grid-template-columns: 1fr; }
  .g2, .g3, .token-stats, .prompt-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 22px; }
  .msg { max-width: 96%; }
  .hero-visual { padding: 36px 8px 32px; }
  .float-chip.fc-1 { top: 0; left: 8px; }
  .float-chip.fc-2 { right: 8px; bottom: 0; }
}
