/* 星界经营平台 · 深蓝侧栏 + 浅色内容区 */
:root {
  --bg: #f4f5f7; --panel: #ffffff; --ink: #0f172a; --ink-2: #334155; --muted: #6b7489; --line: #e5e8ee; --line-2: #d6dbe4;
  --hover: #f7f8fb;
  --accent: #2148c9; --accent-ink: #1a3aa6; --accent-soft: #edf1fc;
  --ok: #157347; --ok-soft: #e7f4ec; --warn: #9a5b07; --warn-soft: #fcf2e1; --err: #b42318; --err-soft: #fcebe9;
  --c1: #1e3a8a; --c2: #3b6fe0; --c3: #4fb3dc; --c4: #d9973b; --c5: #9aa6bc;
  --side: #0b1530; --side-2: #121f45; --side-ink: #e9eefb; --side-muted: #8592b3; --ice: #5cc8ff;
  --radius: 12px; --side-w: 232px;
  --num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1d; --panel: #111a2e; --ink: #e7ebf4; --ink-2: #c3cad9; --muted: #8b95ad; --line: #222c44; --line-2: #2e3a57;
    --hover: #16203a;
    --accent: #7ea2ff; --accent-ink: #a5beff; --accent-soft: #1a2647;
    --ok: #4cc283; --ok-soft: #13301f; --warn: #e8a64a; --warn-soft: #33270f; --err: #f08778; --err-soft: #3a1b18;
    --c1: #7ea2ff; --c2: #4f7de8; --c3: #5cc8ff; --c4: #e8a64a; --c5: #7c879f;
    --side: #070c1a; --side-2: #0f1932;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1 { font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; margin: 0 0 4px; }
h2 { font-size: 15px; line-height: 1.4; font-weight: 620; margin: 0 0 14px; }
h3 { font-size: 14px; font-weight: 620; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
b, strong { font-weight: 620; }

/* ===== 侧栏 ===== */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; z-index: 10;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(92, 200, 255, .10), transparent 60%); }
.logo { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; color: var(--side-ink); }
.logo:hover { color: var(--side-ink); }
.mark { width: 12px; height: 12px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(92, 200, 255, .14), 0 0 18px rgba(92, 200, 255, .8); flex: none; }
.wm { display: flex; align-items: baseline; gap: 8px; }
.wm b { font-size: 17px; font-weight: 700; letter-spacing: .12em; }
.wm small { font-size: 12px; color: var(--side-muted); letter-spacing: .08em; }
.navt, .navbtn { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: #24325c transparent; }
.grp { margin-top: 14px; }
.gl { font-size: 11px; letter-spacing: .14em; color: var(--side-muted); padding: 0 10px 6px; opacity: .85; }
.nav a { display: block; position: relative; padding: 7px 10px; margin: 1px 0; border-radius: 8px; color: #c3cbe0; font-size: 13.5px; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.on { background: rgba(92, 200, 255, .12); color: #fff; font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.me { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: center; padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #24407f, #18295a); color: #fff; border: 1px solid rgba(92, 200, 255, .35); }
.me .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.me .who b { font-size: 13.5px; color: #fff; }
.me .who small { font-size: 11.5px; color: var(--side-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .ops { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 8px; }
.bell, .lo { flex: 1; text-align: center; font: inherit; font-size: 12.5px; padding: 6px 0; border-radius: 8px; cursor: pointer;
  color: #c3cbe0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.me .ops form { flex: 1; display: flex; }
.lo { width: 100%; }
.bell:hover, .lo:hover, .bell.on { color: #fff; background: rgba(255, 255, 255, .09); }
.cnt { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; line-height: 18px; font-family: var(--num); }

.content { margin-left: var(--side-w); min-height: 100vh; }
main { max-width: 1240px; margin: 0 auto; padding: 32px 40px 72px; }

/* ===== 页头 ===== */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head h1 + .muted, .head h1 + .small { margin-top: 2px; }

/* ===== 卡片和栅格 ===== */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.card > h2:first-child { display: flex; align-items: center; gap: 8px; }
.card > p.small.muted { margin-top: -6px; }
.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid { margin-top: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* 指标：一整块面板，用细线分格 */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.kpi { padding: 18px 22px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); min-width: 0; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi .v { font-family: var(--num); font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .d { font-size: 12px; color: var(--muted); }
.kpi .d a { color: var(--muted); border-bottom: 1px dashed var(--line-2); }
.kpi .d a:hover { color: var(--accent); }
.kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--err); }

/* ===== 表格 ===== */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: var(--hover); }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child, .tbl th:first-child { padding-left: 2px; }
.tbl td:last-child, .tbl th:last-child { padding-right: 2px; }
.scroll { overflow-x: auto; }

/* ===== 标签 ===== */
.tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; font-weight: 500; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.err { background: var(--err-soft); color: var(--err); }
.tag.grey { background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* ===== 表单 ===== */
form.inline { display: inline; }
.form { display: grid; gap: 12px; }
.form.cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form.cols > label:not(.check) { grid-template-rows: 1fr auto; }
label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13.5px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 7px 11px; width: 100%; min-width: 0; min-height: 36px; transition: border-color .15s, box-shadow .15s; }
select { -webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7489' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
select[multiple] { background-image: none; padding-right: 11px; }
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--accent); }
label.check input { width: auto; }
textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 0 16px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); color: var(--ink); background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; box-shadow: 0 1px 2px rgba(33, 72, 201, .25); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); background: var(--err-soft); }
.btn.sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; }

/* ===== 提示 ===== */
.flash { padding: 11px 16px; border-radius: 10px; margin-bottom: 16px; background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 18%, transparent); }
.flash.err { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 18%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 18%, transparent); }
.empty { color: var(--muted); padding: 18px 0; font-size: 13.5px; text-align: center; }

/* AI 报告正文 */
.prose { line-height: 1.75; color: var(--ink-2); }
.prose p { margin: 0 0 8px; }
.prose h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); margin: 16px 0 6px; }
.prose h4:first-child { margin-top: 0; }
.prose ul { margin: 0 0 8px; padding-left: 18px; }
.prose li { margin: 2px 0; }
.prose li::marker { color: var(--accent); }
.prose b { color: var(--ink); }
.prose.small { font-size: 13px; }

/* 键值 */
dl.kv { display: grid; grid-template-columns: 112px 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; white-space: pre-wrap; }

/* 时间线 */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 56px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.timeline li:last-child { border-bottom: 0; }

/* 图表 */
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ===== 登录 ===== */
body.bare { background: var(--side); }
.bare-main { max-width: none; padding: 0; }
.bare-main > .flash { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-brand { position: relative; overflow: hidden; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; color: var(--side-ink);
  background: radial-gradient(90% 70% at 10% 0%, rgba(92, 200, 255, .16), transparent 60%), linear-gradient(180deg, #0c1a46 0%, #060d24 100%); }
.auth-brand::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -62%; height: 90%; border-radius: 50%;
  border-top: 2px solid rgba(159, 225, 255, .7); box-shadow: 0 -8px 40px rgba(92, 200, 255, .35); }
.auth-brand .logo { padding: 0; }
.auth-brand .wm b { font-size: 20px; }
.auth-brand h1 { font-size: 38px; line-height: 1.35; font-weight: 700; letter-spacing: .01em; color: #fff; margin: 0 0 14px; max-width: 14em; }
.auth-brand p { color: #9fb0d6; font-size: 15px; max-width: 28em; }
.auth-brand .foot { position: relative; z-index: 1; font-size: 12px; color: var(--side-muted); letter-spacing: .1em; }
.auth-form { background: var(--bg); display: grid; place-items: center; padding: 48px 32px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h2 { font-size: 22px; font-weight: 650; margin-bottom: 6px; }
.auth-box .card { padding: 24px; }
.auth-box .btn.primary { width: 100%; min-height: 42px; }
.login { max-width: 420px; margin: 8vh auto; }

/* ===== 窄屏：侧栏收成顶栏 ===== */
@media (max-width: 1000px) {
  .side { position: sticky; top: 0; bottom: auto; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .logo { padding: 14px 18px; }
  .navbtn { display: block; margin-left: auto; margin-right: 8px; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #c3cbe0;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; }
  .nav { display: none; order: 3; flex-basis: 100%; max-height: 70vh; padding: 4px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .07);
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
  .navt:checked ~ .nav { display: grid; }
  .navt:checked ~ .navbtn { color: #fff; background: rgba(92, 200, 255, .14); }
  .nav a.on::before { display: none; }
  .me { order: 2; border: 0; padding: 0 16px 0 0; display: flex; gap: 8px; }
  .bell { white-space: nowrap; }
  .me .who { display: none; }
  .lo { padding: 5px 10px; white-space: nowrap; }
  .me .ops { grid-column: auto; margin: 0; }
  .bell { padding: 5px 10px; }
  .av { width: 30px; height: 30px; font-size: 13px; }
  .content { margin-left: 0; }
  main { padding: 24px 20px 64px; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 36px 28px 120px; min-height: 0; }
  .auth-brand h1 { font-size: 26px; margin-top: 28px; }
}
@media (max-width: 640px) {
  main { padding: 18px 14px 60px; }
  .card { padding: 16px; }
  .kpi { padding: 14px 16px; }
  .kpi .v { font-size: 21px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  dl.kv { grid-template-columns: 90px 1fr; }
  .timeline li { grid-template-columns: 76px 1fr; }
  .timeline li span:nth-child(2) { display: none; }
  .hide-m { display: none; }
  .me .av { display: none; }
}

details > summary { cursor: pointer; color: var(--accent); }
details > summary:hover { color: var(--accent-ink); }

/* ===================== 星界智能体 · 黑曜石主题（所有登录后的页面） ===================== */
/* 原则：近黑底 + 白与几档灰做层次；彩色只用于状态小点；靠留白、字重、细线出质感。 */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
body.immersive {
  --void: var(--th-bg, #09090b); --s1: color-mix(in srgb, var(--void), rgb(var(--th-tint, 200,200,210)) 7%);
  --s2: color-mix(in srgb, var(--void), rgb(var(--th-tint, 200,200,210)) 11%); --s3: color-mix(in srgb, var(--void), rgb(var(--th-tint, 200,200,210)) 17%);
  --t1: #f5f5f7; --t2: #b4b4bb; --t3: #7c7c85; --t4: #55555d;
  --hair: rgba(255, 255, 255, .07); --hair-2: rgba(255, 255, 255, .12); --hair-3: rgba(255, 255, 255, .2);
  --green: #32d583; --amber: #f5b547; --red: #f97066; --blue: #8ab4ff;
  --bg: rgba(255, 255, 255, .025); --panel: var(--s1); --ink: var(--t1); --ink-2: var(--t2); --muted: var(--t3);
  --line: var(--hair); --line-2: var(--hair-2); --hover: rgba(255, 255, 255, .035);
  --accent: var(--th-acc, #e8e8ed); --accent-ink: #fff; --accent-soft: rgba(var(--th-acc-rgb, 255,255,255), .12);
  --btn: var(--th-btn, #f5f5f7); --btn-ink: var(--th-btn-ink, #0b0b0d);
  --ok: var(--green); --ok-soft: rgba(50, 213, 131, .1); --warn: var(--amber); --warn-soft: rgba(245, 181, 71, .1);
  --err: var(--red); --err-soft: rgba(249, 112, 102, .1);
  --c1: var(--th-acc, #f5f5f7); --c2: rgb(var(--th-star, 230,230,235)); --c3: rgb(var(--th-tint, 150,150,160)); --c4: #6b6b74; --c5: #3a3a42;
  background: var(--void); color: var(--t1); min-height: 100vh; overflow-x: hidden;
  font-feature-settings: "tnum" 0;
}
.immersive a { color: var(--t1); } .immersive a:hover { color: #fff; }

/* 背景：只有顶部一束很淡的光，和四周的暗角 */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 60%, var(--th-bg2, #17171b), transparent 72%),
              radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, .55), transparent 60%); }
.aurora i { display: none; }
.aurora::after { content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.horizon { display: none; }

/* 顶栏 + 抽屉 */
.ibar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 18px 32px;
  background: linear-gradient(180deg, rgba(9, 9, 11, .9), rgba(9, 9, 11, 0)); }
.ibar .logo { padding: 0; color: var(--t1); gap: 10px; }
.ibar .mark { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.ibar .wm b { font-size: 15px; font-weight: 600; letter-spacing: .18em; }
.ibar .wm small { font-size: 10px; letter-spacing: .3em; color: var(--t4); }
.back-agent { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2) !important; padding: 5px 14px 5px 6px; border-radius: 999px;
  border: 1px solid var(--hair-2); }
.back-agent:hover { color: var(--t1) !important; border-color: var(--hair-3); }
.back-agent .mini-orb { width: 18px; height: 18px; }
.ibar-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ibtn { font: inherit; font-size: 13px; color: var(--t2); background: transparent; border: 1px solid var(--hair-2);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; transition: color .2s, border-color .2s; }
.ibtn:hover { color: var(--t1); border-color: var(--hair-3); }
.immersive .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 13px;
  color: var(--t1); background: var(--s3); border: 1px solid var(--hair-2); }
.immersive .cnt { background: var(--btn); color: var(--btn-ink); font-weight: 600; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); z-index: 31; background: rgba(17, 17, 20, .96);
  border-left: 1px solid var(--hair); transform: translateX(102%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  display: flex; flex-direction: column; padding: 24px 28px; backdrop-filter: blur(24px); overflow-y: auto; }
.navt:checked ~ .scrim { opacity: 1; pointer-events: auto; }
.navt:checked ~ .drawer { transform: none; }
.drawer-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.drawer-h b { display: block; font-size: 17px; font-weight: 600; }
.drawer-h small { color: var(--t3); font-size: 12px; }
.drawer .nav { display: grid !important; max-height: none; border: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 20px; padding: 0; overflow: visible; align-content: start; }
.drawer .gl { color: var(--t4); letter-spacing: .16em; }
.drawer .nav a { color: var(--t2); }
.drawer .nav a:hover { background: rgba(255, 255, 255, .05); color: var(--t1); }
.drawer .nav a.on { background: rgba(255, 255, 255, .08); color: var(--t1); }
.drawer .nav a.on::before { display: none; }
.drawer-f { margin-top: auto; padding-top: 20px; }

/* 迷你光球：珍珠质感，单色 */
.mini-orb { width: 24px; height: 24px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff 0, rgb(var(--th-star, 220,220,225)) 22%, var(--accent) 60%, var(--th-bg2, #3a3a40) 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, .18), inset 0 -2px 4px rgba(0, 0, 0, .35); }
.mini-orb::after { display: none; }

/* ---------- 智能体舞台 ---------- */
.agent { max-width: 880px; margin: 0 auto; padding: 13vh 28px 280px; }
.stage { text-align: center; }
.orb { position: relative; width: 112px; height: 112px; margin: 0 auto 44px; }
.orb > * { position: absolute; border-radius: 50%; }
.orb i { inset: -40%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%); animation: breathe 6s ease-in-out infinite; }
.orb u { inset: 0; background:
  radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 1) 0, rgba(255, 255, 255, .85) 8%, transparent 30%),
  radial-gradient(circle at 50% 50%, #e9e9ee 0, #b9b9c1 34%, #6c6c75 68%, #2a2a30 100%);
  box-shadow: inset 0 -14px 28px rgba(0, 0, 0, .45), inset 0 6px 14px rgba(255, 255, 255, .5), 0 30px 60px -20px rgba(0, 0, 0, .9); }
.orb b { inset: 0; background: conic-gradient(from var(--spin), transparent 0 70%, rgba(255, 255, 255, .55) 80%, transparent 90%);
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 70%); mask: radial-gradient(circle, transparent 66%, #000 70%);
  animation: spinv 7s linear infinite; mix-blend-mode: screen; opacity: .8; }
.orb em { inset: -22%; border: 1px solid var(--hair); }
.orb em::after { content: ""; position: absolute; top: 50%; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--t1); box-shadow: 0 0 8px #fff; }
.orb em { animation: spin 18s linear infinite; }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinv { to { --spin: 360deg; } }
.greet { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brief { font-size: 17px; color: var(--t2); margin: 0 auto 26px; max-width: 32em; line-height: 1.75; font-weight: 400; }
.pilot { font: inherit; font-size: 12.5px; color: var(--t3); display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair-2); transition: all .2s; }
.pilot:hover { color: var(--t2); border-color: var(--hair-3); }
.pilot b { color: var(--t1); font-family: var(--num); font-weight: 500; font-size: 13.5px; }
.pilot .sep { width: 1px; height: 11px; background: var(--hair-2); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--th-acc-rgb, 50,213,131), .6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(var(--th-acc-rgb, 50,213,131), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--th-acc-rgb, 50,213,131), 0); } }

/* 需要你拍板 */
.need { margin-top: 64px; text-align: left; }
.need-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 12px; letter-spacing: .2em; color: var(--t3); }
.need-h span::before { display: none; }
.link { font: inherit; font-size: 13px; letter-spacing: 0; background: none; border: 0; color: var(--t2); cursor: pointer; }
.link:hover { color: var(--t1); }
.apgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.ap { position: relative; padding: 20px 20px 18px; border-radius: 16px; text-align: left; background: var(--s1); border: 1px solid var(--hair);
  animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); transition: border-color .25s, background .25s, opacity .4s, transform .4s; }
.ap:hover { border-color: var(--hair-2); background: var(--s2); }
.ap-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ap-k { font-size: 11.5px; letter-spacing: .14em; color: var(--t3); }
.ap-open { font-size: 12px; color: var(--t4) !important; }
.ap-open:hover { color: var(--t2) !important; }
.ap-t { font-size: 16px; font-weight: 500; color: var(--t1); line-height: 1.45; }
.ap-s { font-size: 12.5px; color: var(--t3); margin-top: 4px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-a { display: flex; gap: 8px; margin-top: 16px; }
.ap .go, .ap .ghost { font: inherit; font-size: 13px; padding: 7px 16px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.ap .go { color: var(--btn-ink); font-weight: 600; background: var(--btn); }
.ap .go:hover { filter: brightness(1.06); }
.ap .ghost { color: var(--t2); background: transparent; border-color: var(--hair-2); }
.ap .ghost:hover { color: var(--t1); border-color: var(--hair-3); }
.ap-note { display: none; gap: 8px; margin-top: 10px; }
.ap.noting .ap-note { display: flex; }
.ap-note input { flex: 1; min-height: 34px; font-size: 13px; background: var(--void); border: 1px solid var(--hair-2); color: var(--t1); border-radius: 10px; }
.ap-err { margin-top: 8px; font-size: 12.5px; color: var(--red); }
.ap.working { opacity: .55; pointer-events: none; }
.ap.done .ap-a, .ap.done .ap-note { display: none; }
.stamp { margin-top: 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; color: var(--t1); animation: rise .4s both; }
.stamp::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: #0b0b0d; background: var(--green); }
.ap.no .stamp::before { content: "↩"; background: var(--t2); }
.ap.gone { opacity: 0; transform: translateY(-6px); }
.shake { animation: shake .35s; border-color: var(--red) !important; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.alerts { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.alert { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t3) !important; }
.alert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.alert.warn::before { background: var(--amber); } .alert.info::before { background: var(--blue); }
.alert:hover { color: var(--t1) !important; }
.alert b { font-family: var(--num); font-weight: 500; color: var(--t1); margin-right: 2px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 对话开始后，舞台收成页头 */
body.talking .agent { padding-top: 92px; }
body.talking .stage { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--hair); }
body.talking .orb { width: 28px; height: 28px; margin: 0; flex: none; }
body.talking .orb em, body.talking .orb i { display: none; }
body.talking .greet { font-size: 17px; margin: 0; font-weight: 500; }
body.talking .brief { font-size: 12.5px; color: var(--t3); margin: 0 0 0 auto; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
body.talking .pilot, body.talking .need, body.talking .alerts { display: none; }

/* 对话 */
.thread { display: flex; flex-direction: column; gap: 30px; }
.msg { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.msg.you { align-self: flex-end; max-width: 80%; }
.msg.you .bubble { padding: 10px 16px; border-radius: 16px 16px 4px 16px; font-size: 15px; color: var(--t1); background: var(--s3); }
.msg.ai { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.msg.ai > .mini-orb { margin-top: 4px; }
.thinking > .mini-orb { animation: breathe 1.2s ease-in-out infinite; }
.ai-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.say { font-size: 17px; line-height: 1.75; color: var(--t1); margin: 1px 0 0; min-height: 1.75em; }
.dots { width: 40px; height: 24px; background: radial-gradient(circle, var(--t2) 2.5px, transparent 3.5px) 0 50% / 13px 13px repeat-x; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* 数据卡片 */
.acard { position: relative; border-radius: 16px; padding: 20px 22px; background: var(--s1); border: 1px solid var(--hair);
  animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.acard.bare { background: none; border: 0; padding: 0; }
.acard-h { font-size: 11.5px; letter-spacing: .18em; color: var(--t3); margin-bottom: 14px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; }
.m { display: flex; flex-direction: column; gap: 6px; padding: 2px 20px; border-left: 1px solid var(--hair); }
.m:first-child { border-left: 0; padding-left: 0; }
.ml { font-size: 12px; color: var(--t3); }
.mv { font-family: var(--num); font-size: 30px; font-weight: 400; letter-spacing: -.025em; white-space: nowrap; line-height: 1.1; color: var(--t1); }
.m.alert .mv { color: var(--red); }
.md { font-size: 12px; } .md.up { color: var(--green); } .md.down { color: var(--red); }
.brow { display: grid; grid-template-columns: minmax(64px, 130px) 1fr auto; gap: 16px; align-items: center; padding: 9px 0; font-size: 13.5px; color: inherit !important; }
.bl { color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow:hover .bl { color: var(--t1); }
.btrack { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.btrack i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(var(--th-acc-rgb, 200,200,200), .35), var(--accent));
  transform-origin: left; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .25s; }
@keyframes grow { from { transform: scaleX(0); } }
.bv { font-family: var(--num); font-size: 12.5px; color: var(--t2); white-space: nowrap; }
.lrow { display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; border-top: 1px solid var(--hair); color: inherit !important; }
.acard-h + .lrow, .lrow:first-child { border-top: 0; }
a.lrow:hover { background: rgba(255, 255, 255, .035); }
.lrow .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--t4); }
.lrow.err .dot { background: var(--red); } .lrow.warn .dot { background: var(--amber); } .lrow.info .dot { background: var(--blue); }
.ll { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.lt { font-size: 14.5px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls { font-size: 12px; color: var(--t3); }
.lr { font-size: 12.5px; color: var(--t2); white-space: nowrap; font-family: var(--num); }
.lmore { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--t2) !important; }
.lmore:hover { color: var(--t1) !important; }
.autogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; }
.au { display: flex; flex-direction: column; gap: 4px; padding: 4px 18px; border-left: 1px solid var(--hair); }
.au:first-child { border-left: 0; padding-left: 0; }
.au-n { font-family: var(--num); font-size: 30px; font-weight: 400; letter-spacing: -.02em; color: var(--t1); }
.au-l { font-size: 13px; color: var(--t2); } .au-h { font-size: 11.5px; color: var(--t4); line-height: 1.5; }
.spark { width: 100%; height: 120px; display: block; overflow: visible; }
.spark .sl { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark .sd { fill: var(--void); stroke: var(--t1); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sx { display: flex; justify-content: space-between; font-size: 11px; color: var(--t4); margin-top: 8px; font-family: var(--num); }

/* 底部输入 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 max(28px, calc(50% - 412px)) 28px; z-index: 15;
  background: linear-gradient(0deg, var(--void) 60%, rgba(9, 9, 11, 0)); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; padding-top: 30px; }
.chip { font: inherit; font-size: 13px; color: var(--t3); background: transparent; border: 1px solid var(--hair-2);
  padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--t1); border-color: var(--hair-3); }
.askbar { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 20px; background: var(--s1); border: 1px solid var(--hair-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); transition: border-color .2s, box-shadow .2s; }
.askbar::before, .askbar::after { display: none; }
.askbar:focus-within { border-color: var(--hair-3); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 0 4px rgba(255, 255, 255, .04); }
.askbar input { flex: 1; background: transparent !important; border: 0; color: var(--t1); font-size: 16px; min-height: 48px; padding: 0; box-shadow: none !important; }
.askbar input::placeholder { color: var(--t4); }
.askbar button { width: 44px; height: 44px; border-radius: 15px; border: 0; cursor: pointer; color: var(--btn-ink); display: grid; place-items: center; background: var(--btn); transition: filter .2s; }
.askbar button:hover { filter: brightness(1.06); }

/* ---------- 其他页面：同一套外壳 ---------- */
main.page { max-width: 1200px; margin: 0 auto; padding: 100px 40px 150px; }
.immersive .card, .immersive .kpis { background: var(--s1); border-color: var(--hair); box-shadow: none; }
.immersive .kpi { box-shadow: 1px 0 0 var(--hair), 0 1px 0 var(--hair); }
.immersive .kpi .v { font-weight: 400; color: var(--t1); }
.immersive h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--t1); }
.immersive h2 { font-weight: 500; color: var(--t1); }
.immersive input, .immersive select, .immersive textarea { background-color: var(--void); color: var(--t1); border-color: var(--hair-2); }
.immersive input:focus, .immersive select:focus, .immersive textarea:focus { border-color: var(--hair-3); box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
.immersive select option { background: var(--s2); color: var(--t1); }
.immersive input[type=month], .immersive input[type=date], .immersive input[type=datetime-local] { color-scheme: dark; }
.immersive .btn { background: transparent; border-color: var(--hair-2); color: var(--t1); }
.immersive .btn:hover { border-color: var(--hair-3); background: rgba(255, 255, 255, .04); }
.immersive .btn.primary { color: var(--btn-ink); font-weight: 600; border: 0; background: var(--btn); box-shadow: none; }
.immersive .btn.primary:hover { filter: brightness(1.06); }
.immersive .tag { background: rgba(255, 255, 255, .06); color: var(--t2); }
.immersive .tag.ok { background: var(--ok-soft); color: var(--green); }
.immersive .tag.warn { background: var(--warn-soft); color: var(--amber); }
.immersive .tag.err { background: var(--err-soft); color: var(--red); }
.immersive .tag.grey { background: transparent; color: var(--t3); box-shadow: inset 0 0 0 1px var(--hair-2); }
.immersive .tbl th { color: var(--t3); }
.immersive .tbl tr:hover td { background: var(--hover); }
.immersive .prose li::marker { color: var(--t3); }
.immersive .chart rect { stroke: var(--s1); }
.pdock { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); z-index: 15; display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(17, 17, 20, .92); border: 1px solid var(--hair-2); backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .95); }
.pdock:focus-within { border-color: var(--hair-3); }
.pdock input { flex: 1; background: transparent !important; border: 0; color: var(--t1); min-height: 36px; padding: 0; box-shadow: none !important; }
.pdock input::placeholder { color: var(--t4); }
.pdock button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; color: #0b0b0d; font-weight: 600; background: var(--btn); color: var(--btn-ink); }

@media (max-width: 760px) {
  .ibar { padding: 14px 16px; gap: 10px; }
  .ibar .wm small, .back-agent { display: none; }
  .agent { padding: 11vh 18px 250px; }
  .orb { width: 92px; height: 92px; margin-bottom: 34px; }
  .brief { font-size: 15.5px; }
  .need { margin-top: 44px; }
  .apgrid { grid-template-columns: 1fr; }
  body.talking .brief { display: none; }
  .dock { padding: 0 14px 16px; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
  .brow { grid-template-columns: 72px 1fr; } .bv { grid-column: 2; }
  .mgrid, .autogrid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .m:nth-child(odd), .au:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mv, .au-n { font-size: 25px; }
  main.page { padding: 80px 16px 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .orb *, .mini-orb, .ap, .msg, .acard, .btrack i, .dots, .live { animation: none !important; }
}


/* ===================== 星系 × 空间玻璃（智能体首页） ===================== */
.thwrap { position: relative; }
.thdot { width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.thpop { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; z-index: 40; padding: 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--void) 88%, transparent); border: 1px solid var(--hair-2); backdrop-filter: blur(24px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.thpop-h { font-size: 12.5px; color: var(--t2); margin-bottom: 12px; }
.thsw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.thsw button { font: inherit; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--t3); font-size: 11.5px; }
.thsw i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px transparent, 0 0 14px -2px var(--c); transition: box-shadow .2s; }
.thsw button.on i { box-shadow: 0 0 0 2px var(--void), 0 0 0 4px var(--t1); }
.thsw button.on { color: var(--t1); }
.thcustom { display: flex !important; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--t2); grid-template-columns: none; }
.thcustom input { width: 44px; height: 28px; padding: 0; border: 1px solid var(--hair-2); border-radius: 8px; background: none; cursor: pointer; min-height: 0; }
.thnote { margin-top: 10px; font-size: 11.5px; color: var(--t4); }

body.is-agent .aurora { background: radial-gradient(85% 70% at 50% 62%, var(--th-bg2, #17171b), transparent 72%); }
#galaxy { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; transition: opacity .8s, filter .8s; }
body.talking #galaxy { opacity: .28; filter: blur(2px); }
.gtip { position: fixed; z-index: 25; pointer-events: none; font-size: 12px; padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  background: color-mix(in srgb, var(--void) 85%, transparent); border: 1px solid var(--hair-2); opacity: 0; transition: opacity .2s; }
.gtip b { display: block; font-size: 13px; font-weight: 500; color: var(--t1); } .gtip span { color: var(--t3); }

.hello { position: relative; z-index: 4; text-align: center; padding-top: 13vh; transition: all .6s cubic-bezier(.2, .7, .2, 1); }
.hello .date { font-size: 11px; letter-spacing: .4em; color: var(--t3); margin-bottom: 16px; }
.hello h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; color: var(--t1); background: none; -webkit-text-fill-color: currentColor; }
.hello p { margin: 14px auto 0; font-size: 17px; color: var(--t2); max-width: 36em; }
.hello p b { color: var(--t1); font-weight: 500; font-family: var(--num); }

.gscene { position: fixed; inset: 0; z-index: 3; perspective: 1600px; pointer-events: none; transition: opacity .5s; }
.gstage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .3s ease-out; }
.gl-glass { position: absolute; pointer-events: auto; border-radius: 28px; padding: 24px 26px;
  background: linear-gradient(160deg, rgba(var(--th-tint, 200,200,210), .15), rgba(var(--th-tint, 200,200,210), .04)), color-mix(in srgb, var(--void) 62%, transparent);
  backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 90px -40px rgba(0, 0, 0, .85);
  animation: glin 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes glin { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.gl-cap { font-size: 11.5px; letter-spacing: .2em; color: var(--t3); margin-bottom: 14px; display: flex; justify-content: space-between; }
.gl-left { left: max(36px, calc(50% - 660px)); top: 38vh; width: 290px; transform: translateZ(-30px) rotateY(18deg); animation-delay: .15s; }
.gl-right { right: max(36px, calc(50% - 660px)); top: 33vh; width: 330px; transform: translateZ(-30px) rotateY(-18deg); animation-delay: .25s; }
.gl-big { font-family: var(--num); font-size: 48px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--t1); }
.gl-big small { font-size: 16px; font-weight: 500; color: var(--t3); margin-left: 4px; }
.gl-delta { font-size: 13px; color: var(--accent); margin-top: 8px; }
.gl-sep { height: 1px; background: var(--hair-2); margin: 18px 0 8px; }
.gl-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--t2); padding: 6px 0; }
.gl-row b { color: var(--t1); font-weight: 600; font-family: var(--num); }
.gl-right .ap { background: none; border: 0; border-top: 1px solid var(--hair-2); border-radius: 0; padding: 14px 0; animation: none; }
.gl-right .ap:first-child { border-top: 0; padding-top: 0; }
.gl-right .ap:hover { background: none; }
.gl-right .ap-a { margin-top: 11px; }
.gl-right .ap .ghost { background: rgba(255, 255, 255, .08); border-color: transparent; }
.gl-empty { font-size: 14px; color: var(--t2); line-height: 1.7; }
.gl-empty b { color: var(--t1); font-weight: 500; }

body.is-agent .agent { max-width: 860px; padding: 0 28px 260px; }
body.is-agent .thread { margin-top: 30px; }
body.talking .hello { padding-top: 84px; text-align: left; display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--hair); padding-bottom: 16px; }
body.talking .hello .date, body.talking .hello p { display: none; }
body.talking .hello h1 { font-size: 18px; font-weight: 500; }
body.talking .gscene { opacity: 0; pointer-events: none; }
body.talking .gscene * { pointer-events: none !important; }
body.is-agent .acard { background: linear-gradient(160deg, rgba(var(--th-tint, 200,200,210), .12), rgba(var(--th-tint, 200,200,210), .035));
  backdrop-filter: blur(22px) saturate(140%); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .06); }
body.is-agent .acard.bare { background: none; box-shadow: none; backdrop-filter: none; }
body.is-agent .ap { background: linear-gradient(160deg, rgba(var(--th-tint, 200,200,210), .12), rgba(var(--th-tint, 200,200,210), .035)); border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .06); backdrop-filter: blur(22px); }
.gauto { align-self: center; display: inline-flex; align-items: center; gap: 16px; margin: 0 auto 12px; font: inherit; font-size: 12.5px; color: var(--t3);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; background: rgba(var(--th-tint, 200,200,210), .07); border: 1px solid var(--hair); backdrop-filter: blur(16px); }
.gauto:hover { color: var(--t2); border-color: var(--hair-2); }
.gauto b { color: var(--t1); font-weight: 500; font-family: var(--num); }
body.is-agent .dock { display: flex; flex-direction: column; background: linear-gradient(0deg, var(--void) 35%, transparent); }
body.is-agent .chips { padding-top: 0; margin-bottom: 12px; }
body.talking .gauto { display: none; }
body.is-agent .askbar { background: linear-gradient(160deg, rgba(var(--th-tint, 200,200,210), .16), rgba(var(--th-tint, 200,200,210), .05)); border: 0;
  backdrop-filter: blur(26px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 70px -30px rgba(0, 0, 0, .9); }

@media (max-width: 1100px) {
  .gscene { position: relative; inset: auto; perspective: none; z-index: 3; }
  .gstage { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 18px 0; max-width: 560px; margin: 0 auto; transform: none !important; }
  .gl-glass { position: relative; left: auto; right: auto; top: auto; width: auto; transform: none; }
  body.talking .gscene { display: none; }
  .hello { padding-top: 96px; }
  .hello p { padding: 0 18px; font-size: 15.5px; }
}

.gl-right #apgrid { display: block; }

body.is-agent .gl-right .ap { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; padding: 14px 0; }
body.is-agent .gl-right .ap:first-child { padding-top: 0; }
.gauto { white-space: nowrap; }
@media (max-width: 1100px) {
  .gl-right { order: -1; }
  .gauto span:nth-of-type(n+3) { display: none; }
  body.is-agent .dock { background: linear-gradient(0deg, var(--void) 62%, transparent); padding-top: 24px; }
  body.is-agent .agent { padding-bottom: 300px; }
}

.gtip { min-width: 210px; padding: 12px 14px; border-radius: 14px; backdrop-filter: blur(16px); }
.gtip > span { display: block; font-size: 11.5px; color: var(--t3); margin-bottom: 8px; }
.gtip-g { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 12px; }
.gtip-g span { color: var(--t3); } .gtip-g em { font-style: normal; color: var(--t1); text-align: right; font-family: var(--num); }
.gtip > i { display: block; margin-top: 10px; font-style: normal; font-size: 11.5px; color: var(--accent); }
.hello, .gscene { z-index: 4; }
body.is-agent .thread { position: relative; z-index: 4; }
.hello { pointer-events: none; } .hello * { pointer-events: auto; }
.gscene .gl-glass { pointer-events: auto; }
body.talking #galaxy { pointer-events: none; }

.gtip { background: color-mix(in srgb, var(--void) 95%, transparent); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); }

/* ===================== 交互与动效（全站） ===================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* 顶栏 */
.iconbtn { position: relative; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 12px; cursor: pointer;
  color: var(--t2); background: transparent; border: 1px solid var(--hair-2); transition: color .2s, border-color .2s, background .2s, transform .15s; font: inherit; padding: 0; }
.iconbtn:hover, .iconbtn.on { color: var(--t1) !important; border-color: var(--hair-3); background: rgba(255, 255, 255, .04); }
.iconbtn:active, .ibtn:active, .btn:active, .chip:active, .ap .go:active, .ap .ghost:active, .askbar button:active, .cmdk-btn:active { transform: scale(.96); }
.iconbtn .cnt { position: absolute; top: -5px; right: -6px; margin: 0; min-width: 17px; line-height: 17px; font-size: 10.5px; }
.iconbtn .thdot { position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; margin: 0; box-shadow: 0 0 0 2px var(--void); }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px); white-space: nowrap; pointer-events: none;
  font-size: 11.5px; color: var(--t1); padding: 4px 9px; border-radius: 7px; background: color-mix(in srgb, var(--void) 92%, white 6%); border: 1px solid var(--hair-2);
  opacity: 0; transition: opacity .15s, transform .15s; z-index: 50; }
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
.thwrap:has(.thpop:not([hidden])) [data-tip]::after { display: none; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 8px 0 12px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--t3); background: rgba(var(--th-tint, 200,200,210), .06); border: 1px solid var(--hair-2); transition: all .2s; margin-right: 4px; }
.cmdk-btn:hover { color: var(--t1); border-color: var(--hair-3); }
.cmdk-btn .ic { color: var(--accent); }
kbd { font: 500 11px/1 var(--num); color: var(--t2); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--hair-2); background: rgba(255, 255, 255, .04); }
.ibtn .ic { margin-right: 8px; }

/* 抽屉里的导航 */
.drawer .nav a { display: flex; align-items: center; gap: 10px; transition: background .15s, color .15s, transform .15s; }
.drawer .nav a .ic { width: 17px; height: 17px; color: var(--t3); transition: color .15s; }
.drawer .nav a:hover { transform: translateX(2px); }
.drawer .nav a:hover .ic, .drawer .nav a.on .ic { color: var(--accent); }
.navt:checked ~ .drawer .grp { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.navt:checked ~ .drawer .grp:nth-child(2) { animation-delay: .04s; } .navt:checked ~ .drawer .grp:nth-child(3) { animation-delay: .08s; }
.navt:checked ~ .drawer .grp:nth-child(4) { animation-delay: .12s; } .navt:checked ~ .drawer .grp:nth-child(5) { animation-delay: .16s; }
.navt:checked ~ .drawer .grp:nth-child(6) { animation-delay: .2s; } .navt:checked ~ .drawer .grp:nth-child(7) { animation-delay: .24s; }

/* 命令面板 */
.cmdk { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-items: start; padding-top: 14vh;
  background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); transition: background .2s, backdrop-filter .2s; }
.cmdk.show { background: rgba(2, 3, 10, .55); backdrop-filter: blur(6px); }
.cmdk-box { width: min(640px, 92vw); border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--void) 92%, rgb(var(--th-tint, 200,200,210)) 8%);
  border: 1px solid var(--hair-2); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03);
  transform: translateY(-10px) scale(.98); opacity: 0; transition: transform .22s cubic-bezier(.2, .7, .2, 1), opacity .18s; }
.cmdk.show .cmdk-box { transform: none; opacity: 1; }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--hair); }
.cmdk-in .ic { width: 20px; height: 20px; color: var(--accent); }
.cmdk-in input { flex: 1; border: 0; background: none !important; font-size: 17px; color: var(--t1); padding: 0; min-height: 30px; box-shadow: none !important; }
.cmdk-list { max-height: min(52vh, 440px); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.cmdk-sec { font-size: 11px; letter-spacing: .16em; color: var(--t4); padding: 10px 12px 6px; }
.cmdk-it { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--t2); text-align: left; }
.cmdk-it .ic { color: var(--t3); }
.cmdk-it .t { flex: 1; font-size: 14.5px; color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-it .g { font-size: 12px; color: var(--t4); }
.cmdk-it.on, .cmdk-it:hover { background: rgba(var(--th-acc-rgb, 200,200,220), .12); }
.cmdk-it.on .ic { color: var(--accent); }
.cmdk-empty { padding: 26px; text-align: center; color: var(--t3); font-size: 13.5px; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--t4); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* 提示条 */
.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; font-size: 13.5px; color: var(--t1);
  background: color-mix(in srgb, var(--void) 88%, rgb(var(--th-tint, 200,200,210)) 12%); border: 1px solid var(--hair-2); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .9); animation: toast-in .45s cubic-bezier(.2, .9, .2, 1.1) both; animation-delay: calc(var(--i, 0) * 80ms); }
.toast > .ic { color: var(--green); } .toast.err > .ic { color: var(--red); } .toast.warn > .ic { color: var(--amber); }
.toast button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 0; background: none; color: var(--t3); cursor: pointer; }
.toast button:hover { color: var(--t1); background: rgba(255, 255, 255, .06); }
.toast.out { animation: toast-out .3s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* 页面入场：内容依次升起 */
body.ready main.page > * { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
body.ready main.page > *:nth-child(2) { animation-delay: .05s; } body.ready main.page > *:nth-child(3) { animation-delay: .1s; }
body.ready main.page > *:nth-child(4) { animation-delay: .15s; } body.ready main.page > *:nth-child(5) { animation-delay: .2s; }
body.ready main.page > *:nth-child(n+6) { animation-delay: .25s; }
.immersive .card, .immersive .kpis { transition: border-color .25s, transform .25s, box-shadow .25s; }
.immersive .card:hover { border-color: var(--hair-2); }
.immersive .tbl tr { transition: background .15s; }
.immersive .tbl td a { transition: color .15s; }

/* 按钮：处理中 */
.btn.is-loading, button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after, button.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--t2) transparent var(--t2) transparent; animation: spin .7s linear infinite; }
.btn.primary.is-loading::after { border-color: var(--btn-ink) transparent var(--btn-ink) transparent; }

/* 键盘焦点 */
.immersive :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.immersive input:focus-visible, .immersive select:focus-visible, .immersive textarea:focus-visible { outline: none; }

/* 智能体页的小图标 */
.gl-cap .ic, .gauto .ic { width: 14px; height: 14px; color: var(--accent); }
.gl-cap > span { display: inline-flex; align-items: center; gap: 8px; }
.ap .go .ic, .ap .ghost .ic { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.ap-k { display: inline-flex; align-items: center; gap: 6px; }
.ap-k .ic { width: 14px; height: 14px; }
.chip .ic { width: 14px; height: 14px; margin-right: 6px; color: var(--accent); opacity: .8; }
.newchat { display: none; margin-left: auto; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; color: var(--t2); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--hair-2); background: transparent; cursor: pointer; transition: all .2s; }
.newchat:hover { color: var(--t1); border-color: var(--hair-3); }
.newchat .ic { width: 14px; height: 14px; }
body.talking .newchat { display: inline-flex; }
body.talking .hello { align-items: center; }
.msg.ai .acard:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  .cmdk-btn span, .cmdk-btn kbd { display: none; }
  .cmdk-btn { width: 36px; padding: 0; justify-content: center; margin: 0; }
  .ibar-r { gap: 6px; }
  .cmdk { padding-top: 8vh; }
}
@media (prefers-reduced-motion: reduce) {
  body.ready main.page > *, .toast, .navt:checked ~ .drawer .grp { animation: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

[hidden] { display: none !important; }

@media (max-width: 1100px) { #galaxy { opacity: .55; pointer-events: none; } }

/* 登录页底部的 ICP 备案号 */
.icp { position: fixed; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; z-index: 3; pointer-events: none; }
.icp a { color: #7d879a; text-decoration: none; pointer-events: auto; }
.icp a:hover { color: #4f5a70; text-decoration: underline; }
