/* ============================================================
   擎源 SourceEngine — Apple 风格设计系统 + 沉浸式交互
   Tokens: SF Pro 字体栈 / #f5f5f7 浅灰 / #0071e3 蓝 / 18px 圆角
   特效: 粒子网络 / 滚动浮现 / 磁吸按钮 / 卡片 3D 跟手
   ============================================================ */
:root {
  /* 银灰神经网络主题（参考 neural-creator-dashboard 设计体系） */
  --white: #1b1e24;
  --bg2: #22262d;
  --ink: #e8e9e6;
  --muted: #98a6a1;
  --blue: #ecd9a6;
  --blue-hover: #f2e2b8;
  --line: rgba(236, 217, 166, 0.10);
  --line2: #3a3f47;
  --green: #ace0cf;
  --orange: #ecc98f;
  --red: #e3b3c4;
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --nav: rgba(21, 24, 29, 0.72);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
  /* 模块色相（神经看板五模块） */
  --m-sup: #c3bcf2;
  --m-prod: #e2e5e8;
  --m-model: #ace0cf;
  --m-quote: #ecc98f;
  --m-ai: #acd6e8;
  /* 暗色区（登录/启动动画） */
  --dark: #13161b;
  --cyan: #ecd9a6;
  --cyan-glow: rgba(236, 217, 166, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #15171b;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }
input, select { font-family: var(--sans); }

/* ---------- 沉浸式：滚动浮现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.zoom { transform: translateY(28px) scale(.97); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 粒子画布 ---------- */
.particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ============================================================
   苹果风导航（毛玻璃吸顶）
   ============================================================ */
.gnav {
  position: sticky; top: 0; z-index: 100;
  height: 52px;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.gnav.scrolled { background: rgba(21, 24, 29, 0.92); }
.gnav-inner {
  max-width: 1120px; height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.gnav .logo {
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink); cursor: pointer;
}
.gnav .logo span { color: var(--blue); }
.gnav-links { display: flex; align-items: center; gap: 28px; }
.gnav-links a {
  font-size: 13.5px; color: var(--ink); opacity: .82; cursor: pointer;
  transition: opacity .2s; background: none; border: 0;
}
.gnav-links a:hover { opacity: 1; }
.gnav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 980px;
  border: 1px solid var(--line2); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.gnav-user:hover { border-color: var(--ink); }
.gnav-user .ava {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--m-sup));
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.gnav-user .who { font-size: 13px; }
.gnav-links .btn-pill {
  background: var(--blue); color: #fff; border: 0;
  padding: 7px 16px; border-radius: 980px; font-size: 13px;
  transition: background .2s, transform .2s;
}
.gnav-links .btn-pill:hover { background: var(--blue-hover); transform: scale(1.03); }

/* ============================================================
   Hero（查询主页）：粒子 + 大标题
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 24px 90px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--white) 100%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 60px);
  font-weight: 700; letter-spacing: -0.022em; line-height: 1.08;
  color: var(--ink);
}
.hero h1 .grad {
  background: linear-gradient(90deg, #f2e2b8, var(--blue) 55%, #c3bcf2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  margin: 18px auto 0; max-width: 640px;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5;
  color: var(--muted); letter-spacing: .01em;
}

/* 搜索框 */
.hero-search {
  margin: 40px auto 0; max-width: 620px; position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line2);
  border-radius: 980px; padding: 7px 7px 7px 24px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.08);
  transition: box-shadow .3s, transform .3s;
}
.hero-search:focus-within {
  box-shadow: 0 12px 48px rgba(0, 113, 227, 0.18);
  transform: translateY(-2px);
}
.hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 17px; color: var(--ink); padding: 10px 0;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search .go {
  border: 0; border-radius: 980px;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600; padding: 11px 26px;
  transition: background .2s, transform .15s;
}
.hero-search .go:hover { background: var(--blue-hover); transform: scale(1.04); }
.hero-hints {
  margin: 18px auto 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 2;
}
.hero-hints .chip {
  border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.06);
  border-radius: 980px; padding: 7px 16px; font-size: 13px; color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.hero-hints .chip:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-2px); }

/* ============================================================
   通用版式
   ============================================================ */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-size: clamp(26px, 3.4vw, 40px); font-weight: 700;
  letter-spacing: -0.018em; margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 17px; line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- 结果卡片（供应商） ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px; margin-top: 34px;
}
.sup-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.sup-card:hover { box-shadow: var(--shadow-lg); }
.sup-card .name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sup-card .region { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.sup-card .prods {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px;
  max-height: 66px; overflow: hidden;
}
.tag {
  font-size: 12px; padding: 4px 11px; border-radius: 980px;
  background: var(--bg2); color: var(--muted); white-space: nowrap;
}
.tag.blue { background: rgba(0, 113, 227, 0.1); color: var(--blue); }
.sup-card .foot {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.sup-card .more { color: var(--blue); font-size: 14px; font-weight: 500; }

/* ---------- 面包屑 ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumb a { cursor: pointer; }
.crumb .sep { opacity: .5; }

/* ---------- 供应商详情页 ---------- */
.sup-hero-card {
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  color: #f5f5f7; border-radius: var(--radius);
  padding: 42px 44px; position: relative; overflow: hidden;
}
.sup-hero-card h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.018em; }
.sup-hero-card .meta { margin-top: 12px; color: rgba(245, 245, 247, 0.72); font-size: 15px; line-height: 1.8; }
.sup-hero-card .stats { margin-top: 24px; display: flex; gap: 42px; }
.sup-hero-card .stats .v { font-size: 30px; font-weight: 700; color: var(--cyan); }
.sup-hero-card .stats .k { font-size: 12.5px; color: rgba(245, 245, 247, 0.6); margin-top: 4px; letter-spacing: 1px; }

/* ---------- 产品网格 ---------- */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px; margin-top: 26px;
}
.prod-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-s); overflow: hidden; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.prod-card:hover { box-shadow: var(--shadow-lg); }
.prod-card .img {
  height: 156px; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prod-card .img img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .img .ph { font-size: 40px; opacity: .32; }
.prod-card .body { padding: 15px 17px 17px; }
.prod-card .t { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.prod-card .m { margin-top: 6px; font-size: 12.5px; color: var(--muted); min-height: 18px; }
.prod-card .p { margin-top: 9px; font-size: 15px; font-weight: 600; color: var(--blue); }

/* ---------- 产品详情：供应方案对比 ---------- */
.offer-list { display: grid; gap: 18px; margin-top: 28px; }
.offer-card {
  display: flex; gap: 22px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: box-shadow .3s, transform .3s;
}
.offer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.offer-card .thumb {
  width: 150px; height: 120px; flex-shrink: 0;
  border-radius: var(--radius-s); background: var(--bg2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.offer-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-card .thumb .ph { font-size: 34px; opacity: .3; }
.offer-card .info { flex: 1; min-width: 0; }
.offer-card .sup-name { font-size: 17px; font-weight: 700; cursor: pointer; color: var(--ink); }
.offer-card .sup-name:hover { color: var(--blue); }
.offer-card .model { margin-top: 5px; font-family: var(--mono); font-size: 12.5px; color: var(--blue); }
.offer-card .params { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.offer-links { margin-top: 12px; font-size: 13px; }
.product-url { color: var(--blue); font-weight: 600; text-decoration: none; }
.product-url-host { margin-left: 5px; color: var(--muted); font-weight: 400; word-break: break-all; }
.product-url:hover { text-decoration: underline; }
.product-url:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.offer-card .price-box { text-align: right; flex-shrink: 0; }
.offer-card .price { font-size: 23px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.offer-card .price .unit { font-size: 12px; color: var(--muted); font-weight: 400; }
.offer-card .quote-at { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.pill-btn {
  display: inline-block; border: 0; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 9px 20px; margin-top: 12px;
  transition: background .2s, transform .15s;
}
.pill-btn:hover { background: var(--blue-hover); transform: scale(1.04); }
.pill-btn.ghost { background: var(--bg2); color: var(--ink); }
.pill-btn.ghost:hover { background: var(--line2); }

/* ---------- 统计条 ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 28px 0; }
.stat-item {
  background: var(--bg2); border-radius: var(--radius-s); padding: 22px 24px;
}
.stat-item .v { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-family: var(--mono); }
.stat-item .k { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ============================================================
   暗色沉浸区：登录页 / 启动动画
   ============================================================ */
.login-page {
  min-height: 100vh; position: relative; overflow: hidden;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.login-bg-img {
  position: absolute; inset: 0;
  background: url("/assets/bg-login.png") center/cover no-repeat;
  opacity: .55;
}
.login-bg-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(5, 9, 20, 0.25), rgba(5, 9, 20, 0.88) 78%);
}
.login-center {
  position: relative; z-index: 3; width: min(420px, 90vw); text-align: center;
}
.login-brand {
  font-size: clamp(52px, 8vw, 82px); font-weight: 800; letter-spacing: 6px;
  background: linear-gradient(120deg, #fff 25%, var(--cyan) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-en { margin-top: 8px; font-family: var(--mono); letter-spacing: 7px; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.login-sub { margin-top: 14px; font-size: 16px; letter-spacing: 4px; color: rgba(255, 255, 255, 0.8); }
.login-card2 {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px; padding: 30px 28px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  text-align: left;
}
.login-card2 .f { margin-bottom: 16px; }
.login-card2 label { display: block; font-size: 11.5px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.55); margin-bottom: 8px; }
.login-card2 input {
  width: 100%; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08); border-radius: 12px;
  color: #fff; font-size: 15px; padding: 13px 16px; outline: 0;
  transition: border-color .25s, background .25s;
}
.login-card2 input:focus { border-color: var(--cyan); background: rgba(255, 255, 255, 0.13); }
.login-card2 input::placeholder { color: rgba(255, 255, 255, 0.35); }
.btn-login2 {
  width: 100%; margin-top: 8px; border: 0; border-radius: 12px;
  background: var(--cyan); color: #04121c;
  font-size: 16px; font-weight: 700; letter-spacing: 4px; padding: 14px 0;
  transition: transform .18s, box-shadow .25s;
}
.btn-login2:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--cyan-glow); }
.login-err { margin-top: 12px; min-height: 18px; font-family: var(--mono); font-size: 12px; color: #ff6b81; }
.login-foot2 {
  margin-top: 22px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 2px; color: rgba(255, 255, 255, 0.35);
}

/* ---------- 启动动画（终端风保留） ---------- */
.boot-layer {
  position: fixed; inset: 0; z-index: 500;
  background: radial-gradient(ellipse at 50% 45%, #0a1b33 0%, var(--dark) 70%);
  display: none; flex-direction: column; align-items: center; justify-content: center;
}
.boot-layer.show { display: flex; }
.boot-core { width: min(760px, 88vw); }
.boot-title { text-align: center; margin-bottom: 34px; }
.boot-title .t1 {
  font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: 10px;
  background: linear-gradient(120deg, #fff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot-title .t2 { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 5px; color: rgba(255, 255, 255, 0.45); }
.glitch { animation: glitchIn .7s steps(2) 1; text-shadow: 2px 0 rgba(41, 151, 255, 0.6), -2px 0 rgba(255, 77, 109, 0.45); }
@keyframes glitchIn {
  0% { transform: translateX(-6px); opacity: 0; filter: blur(3px); }
  35% { transform: translateX(4px); }
  70% { transform: translateX(-2px); filter: blur(0); }
  100% { transform: translateX(0); opacity: 1; }
}
.boot-terminal {
  background: rgba(4, 10, 22, 0.88);
  border: 1px solid rgba(41, 151, 255, 0.25);
  border-radius: 12px; padding: 26px 28px;
  font-family: var(--mono); font-size: 13.5px; line-height: 2.15;
  box-shadow: 0 0 40px rgba(41, 151, 255, 0.12), inset 0 0 60px rgba(41, 151, 255, 0.05);
  min-height: 264px;
}
.boot-line { opacity: 0; white-space: pre-wrap; color: #e9f2ff; }
.boot-line.visible { opacity: 1; }
.boot-line .ts { color: rgba(126, 147, 180, 0.6); font-size: 11px; }
.boot-line .mark { color: var(--cyan); }
.boot-line .msg { color: #e9f2ff; }
.boot-line .ok { color: #32d74b; }
.boot-line .warn { color: #ff9f0a; }
.boot-line .val { color: var(--cyan); font-weight: 600; }
.boot-bar-wrap {
  margin-top: 28px; display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.45);
}
.boot-bar { flex: 1; height: 4px; background: rgba(41, 151, 255, 0.15); border-radius: 2px; overflow: hidden; }
.boot-bar .fill {
  height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), #32d74b);
  box-shadow: 0 0 12px var(--cyan); transition: transform .35s ease;
}
.boot-pct { min-width: 44px; text-align: right; color: var(--cyan); }
.boot-skip {
  position: fixed; bottom: 28px; right: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45); cursor: pointer;
}
.boot-skip:hover { color: var(--cyan); }
.hud {
  position: fixed; font-family: var(--mono); font-size: 10px;
  letter-spacing: 2px; color: rgba(41, 151, 255, 0.45); z-index: 510;
}
.hud.tl { top: 22px; left: 26px; }
.hud.tr { top: 22px; right: 26px; text-align: right; }
.hud.bl { bottom: 22px; left: 26px; }

/* ============================================================
   后台管理（Apple 风格浅色）
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  width: 220px; flex-shrink: 0; background: var(--bg2);
  border-right: 1px solid var(--line);
  padding: 22px 14px; position: sticky; top: 52px; height: calc(100vh - 52px);
}
.admin-side .navi {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 4px;
  font-size: 14px; color: var(--ink); cursor: pointer;
  transition: background .2s;
}
.admin-side .navi:hover { background: rgba(0, 0, 0, 0.05); }
.admin-side .navi.active { background: var(--blue); color: #fff; }
.admin-main { flex: 1; min-width: 0; padding: 34px 38px 70px; animation: fadeUp .35s cubic-bezier(.2,.8,.2,1); }

.panel2 {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.panel2 h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }

/* 表格（苹果风） */
table.at { width: 100%; border-collapse: collapse; font-size: 14px; }
table.at th {
  text-align: left; padding: 11px 12px; font-size: 12px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--line2);
  letter-spacing: .5px; white-space: nowrap;
}
table.at td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.at tbody tr { cursor: pointer; transition: background .15s; }
table.at tbody tr:hover { background: var(--bg2); }
.badge2 {
  display: inline-block; padding: 3px 11px; border-radius: 980px;
  font-size: 11.5px; font-weight: 500;
}
.badge2.green { background: rgba(172, 224, 207, 0.14); color: var(--green); }
.badge2.blue { background: rgba(0, 113, 227, 0.12); color: var(--blue); }
.badge2.orange { background: rgba(236, 201, 143, 0.15); color: var(--orange); }
.badge2.gray { background: var(--bg2); color: var(--muted); }

/* 表单 */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 15px; }
.fitem label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.fitem input, .fitem select, .fitem textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 10px;
  padding: 11px 13px; font-size: 14px; color: var(--ink); outline: 0;
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.fitem input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14); }

/* 拖拽上传 */
.drop2 {
  border: 1.5px dashed var(--line2); border-radius: var(--radius);
  padding: 44px 20px; text-align: center; cursor: pointer;
  background: var(--bg2); transition: all .25s;
}
.drop2:hover, .drop2.drag { border-color: var(--blue); background: rgba(0, 113, 227, 0.05); }
.drop2 .big { font-size: 34px; color: var(--blue); }
.drop2 .t1 { margin-top: 10px; font-size: 15px; font-weight: 600; }
.drop2 .t2 { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* AI 对话（浅色） */
.chat2 { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 420px; }
.chat2 .scroll { flex: 1; overflow-y: auto; padding-right: 6px; }
.msg2 { margin-bottom: 16px; display: flex; gap: 11px; }
.msg2 .who {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.msg2.user .who { background: rgba(0, 113, 227, 0.14); color: var(--blue); }
.msg2.ai .who { background: linear-gradient(135deg, var(--blue), var(--m-sup)); color: #fff; }
.msg2 .bubble {
  flex: 1; background: var(--bg2); border-radius: 14px;
  padding: 13px 17px; font-size: 14px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
}
.chat2 .in-row { margin-top: 14px; display: flex; gap: 11px; }
.chat2 .in-row input {
  flex: 1; border: 1px solid var(--line2); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; outline: 0;
}
.chat2 .in-row input:focus { border-color: var(--blue); }

/* 弹窗（苹果风） */
.modal-mask2 {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.modal-mask2.show { display: flex; }
.modal2 {
  width: min(820px, 92vw); max-height: 86vh; overflow-y: auto;
  background: var(--white); border-radius: 20px; padding: 30px 32px;
  box-shadow: var(--shadow-lg); animation: popIn .28s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal2 .x {
  position: absolute; top: 16px; right: 20px; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px;
}
.modal2 .x:hover { background: var(--line2); color: var(--ink); }
.modal2 h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 20px; }

/* Toast */
#toast2 {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-120px);
  opacity: 0; visibility: hidden;
  z-index: 600; padding: 13px 24px; border-radius: 980px;
  background: rgba(29, 29, 31, 0.92); color: #fff; font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s, visibility .32s;
}
#toast2.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

.empty2 { padding: 52px 0; text-align: center; color: var(--muted); font-size: 14px; }

/* 图片溯源徽标 */
.thumb { position: relative; }
.img-badge {
  position: absolute; left: 8px; bottom: 8px; z-index: 1;
  padding: 3px 9px; border-radius: 999px; font-size: 11px;
  background: rgba(12, 15, 20, .78); backdrop-filter: blur(6px);
  color: var(--muted-foreground); border: 1px solid var(--border);
}
.img-badge.official { color: #58d68d; border-color: rgba(88, 214, 141, .5); }
.img-badge.gen { color: var(--gold); border-color: rgba(207, 168, 86, .45); }
.img-badge.none { color: var(--muted-foreground); }

/* 磁吸按钮通用 */
.magnetic { transition: transform .25s cubic-bezier(.2,.8,.2,1); }

/* ---------- 设计规范补丁（Web Interface Guidelines）---------- */
/* 焦点可见性：所有交互元素 */
a:focus-visible, button:focus-visible, .navi:focus-visible, .chip:focus-visible,
[role="button"]:focus-visible, .nav-item:focus-visible, .sup-card:focus-visible,
.prod-card:focus-visible, .gnav-user:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
/* 数字对齐（报价/统计/表格数字列） */
.stat-item .v, .offer-card .price, .sup-hero-card .stats .v,
table.at td, .boot-line .val {
  font-variant-numeric: tabular-nums;
}
/* 标题防孤字 */
.section-title, .hero h1, .sup-hero-card h2 {
  text-wrap: balance;
}
/* 减少动态效果：关闭装饰动画 */
@media (prefers-reduced-motion: reduce) {
  .magnetic, .sup-card, .prod-card, .offer-card, .pill-btn, .btn-login2,
  .hero-search, .glitch { transition: none; animation: none; }
  .boot-bar .fill { transition: none; }
}

/* 按压微反馈（Saffer: Feedback） */
.pill-btn:active, .btn-login2:active, .hero-search .go:active,
.gnav-links .btn-pill:active, .chip:active { transform: scale(0.96); }
.sup-card:active, .prod-card:active { transform: scale(0.985); }

/* ---------- 产品详情页 ---------- */
.prod-hero { padding: 8px 0 4px; }
.prod-hero .tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.prod-hero .desc { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 760px; }
.spec-lines { display: grid; gap: 5px; margin-top: 10px; }
.spec-lines .row { display: flex; gap: 10px; font-size: 13px; line-height: 1.7; }
.spec-lines .k { color: var(--muted); min-width: 96px; flex-shrink: 0; }
.offer-badge {
  display: inline-block; padding: 3px 10px; border-radius: 980px;
  font-size: 11px; font-weight: 600;
  background: rgba(0, 113, 227, 0.12); color: var(--blue); margin-left: 8px;
}
.sub-head { margin: 38px 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- 监控仪表盘 ---------- */
.monitor-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.bar-row .lbl { width: 150px; font-size: 12.5px; color: var(--muted); text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { flex: 1; height: 12px; background: var(--bg2); border-radius: 6px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue), var(--m-model));
  transform-origin: left; animation: barGrow .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes barGrow { from { transform: scaleX(0); } }
.bar-row .num { width: 42px; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.ring-wrap { display: flex; align-items: center; gap: 22px; }
.ring {
  width: 118px; height: 118px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--blue) var(--pct, 0%), var(--bg2) 0);
}
.ring .inner {
  width: 86px; height: 86px; border-radius: 50%; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring .inner .v { font-size: 21px; font-weight: 700; font-family: var(--mono); }
.ring .inner .k { font-size: 10.5px; color: var(--muted); }
.act-list { display: grid; gap: 0; }
.act-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.act-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.act-item .t { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  display: inline-block; box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

/* ============================================================
   神经网络工作台（neural-creator-dashboard 风格）
   光球 + 五水母模块 + 触须展开 + 分析滑栏
   ============================================================ */
.neural-stage {
  position: relative; height: calc(100vh - 52px); min-height: 560px;
  overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #1c2027 0%, #121419 72%);
}
#neuralCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.neural-crumb {
  position: absolute; top: 20px; left: 28px; z-index: 5;
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  color: rgba(230, 231, 227, 0.6);
}
.neural-crumb a { cursor: pointer; color: var(--blue); }
.neural-crumb .sep { opacity: .4; }
.neural-hint {
  position: absolute; top: 20px; right: 28px; z-index: 5;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px;
  color: rgba(152, 166, 161, 0.7);
}
.neural-ask {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: min(680px, 90vw); z-index: 6;
  display: flex; align-items: center; gap: 10px;
  background: rgba(27, 30, 36, 0.82);
  border: 1px solid rgba(236, 217, 166, 0.22);
  border-radius: 980px; padding: 8px 8px 8px 24px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
  transition: border-color .3s, box-shadow .3s;
}
.neural-ask:focus-within {
  border-color: var(--blue);
  box-shadow: 0 12px 44px rgba(236, 217, 166, 0.18);
}
.neural-ask input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-size: 15px; padding: 10px 0;
}
.neural-ask input::placeholder { color: rgba(152, 166, 161, 0.75); }
.neural-ask .go {
  border: 0; border-radius: 980px; background: var(--blue); color: #1d1a12;
  font-size: 14px; font-weight: 600; padding: 10px 22px;
  transition: transform .15s, background .2s;
}
.neural-ask .go:hover { background: var(--blue-hover); transform: scale(1.04); }

/* 右侧分析滑栏 */
.neural-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 8;
  width: min(420px, 92vw);
  background: rgba(24, 27, 33, 0.94);
  border-left: 1px solid rgba(236, 217, 166, 0.16);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transform: translateX(102%);
  transition: transform .42s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; padding: 26px 26px 40px;
}
.neural-panel.open { transform: translateX(0); }
.neural-panel .x {
  position: absolute; top: 18px; right: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
}
.neural-panel .x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.14); }
.neural-panel .kind {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 3px;
  color: var(--blue); text-transform: uppercase;
}
.neural-panel h3 { margin-top: 10px; font-size: 21px; letter-spacing: -0.01em; line-height: 1.35; }
.np-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.np-stats .cell {
  background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 12px 10px; text-align: center;
}
.np-stats .v { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--ink); }
.np-stats .k { margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.np-rows { display: grid; gap: 0; margin-top: 6px; }
.np-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.np-row .k { color: var(--muted); flex-shrink: 0; }
.np-row .v { text-align: right; word-break: break-all; }
.np-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 模块图例 */
.neural-legend {
  position: absolute; left: 28px; bottom: 30px; z-index: 5;
  display: flex; flex-direction: column; gap: 9px;
}
.neural-legend .lg {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  color: rgba(230, 231, 227, 0.55); cursor: pointer;
  transition: color .2s;
}
.neural-legend .lg:hover { color: var(--ink); }
.neural-legend .sw { width: 10px; height: 10px; border-radius: 50%; }

/* 响应式 */
@media (max-width: 900px) {
  .admin-side { display: none; }
  .admin-main { padding: 22px 16px 60px; }
  .offer-card { flex-direction: column; }
  .offer-card .thumb { width: 100%; height: 170px; }
  .offer-card .price-box { text-align: left; }
  .gnav-links { gap: 14px; }
}
