/* ============================================================================
   Panlox 首页（融合方案 D）
   ----------------------------------------------------------------------------
   只在首页加载（site_home.templ 里引入），排在三层共用样式之后：
   · 首屏 / 真实面板复刻 / 彩色功能卡 / 斜切带 / 渐变数据 / 折叠 FAQ / CTA
   · 令牌全部来自 tokens.css；D 稿的 --fill / --fill2 / 强调色在这里按主题别名
   · 与共用组件同名的类（hero / stat / msg / steps / step / switch）在本页覆盖，
     其他页面不受影响
   ============================================================================ */

:root {
  /* D 稿的填充两档：亮色对应 --bg / --surface-3，暗色对应 --surface / --surface-2 */
  --fill: var(--bg);
  --fill2: var(--surface-3);
  /* 强调色：只用于首页的内容装饰与面板数据，不进全局令牌 */
  --cyan: #06b6d4;
  --violet: #7c5cff;
  --amber: #d97706;
  --green: var(--success);
  --rose: #e11d48;
  --cyan-soft: #ecfeff;
  --violet-soft: #f3f0ff;
  --amber-soft: var(--warning-soft);
  --green-soft: var(--success-soft);
  --rose-soft: #fff1f3;
  --grad: linear-gradient(92deg, var(--brand), var(--cyan) 55%, var(--violet));
}
html[data-theme="dark"] {
  --fill: var(--surface);
  --fill2: var(--surface-2);
  --cyan: #2dd4bf;
  --violet: #a78bfa;
  --amber: #e0a04a;
  --rose: #f07c7c;
  --cyan-soft: #10251e;
  --violet-soft: #1c1830;
  --rose-soft: #2a1517;
}

/* ---------------------------------------------------------------- 基础 */
::selection { background: var(--brand); color: var(--on-brand); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--fill); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 3px solid var(--fill); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
/* 首页链接默认随文字色，品牌色只留给按钮与悬停态（导航/页脚自带颜色） */
a { color: inherit; }
a:hover { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.ic { width: 16px; height: 16px; flex: none; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.dim { color: var(--ink-3); }

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative; padding: 88px 24px 48px; overflow: hidden;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.blob { position: absolute; border-radius: 50%; filter: blur(72px); pointer-events: none; opacity: 0.5; }
.blob.b1 { width: 520px; height: 520px; left: -150px; top: -200px; background: radial-gradient(circle, #bcd4ff, transparent 65%); animation: drift1 16s ease-in-out infinite; }
.blob.b2 { width: 460px; height: 460px; right: -130px; top: -120px; background: radial-gradient(circle, #c9f2f9, transparent 65%); animation: drift2 19s ease-in-out infinite; }
.blob.b3 { width: 600px; height: 420px; left: 34%; top: 200px; background: radial-gradient(circle, #e3dcff, transparent 65%); animation: drift1 23s ease-in-out infinite reverse; }
html[data-theme="dark"] .blob { opacity: 0.16; }
@keyframes drift1 { 50% { transform: translate(46px, 26px); } }
@keyframes drift2 { 50% { transform: translate(-38px, 32px); } }
.hero-in { position: relative; max-width: var(--w-site); margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px;
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: var(--fw-semibold);
  color: var(--ink-2); border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: 0 2px 10px -4px color-mix(in srgb, var(--brand) 25%, transparent);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pill:hover { box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 45%, transparent); transform: translateY(-1px); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2.4s infinite; }
.pill .ic { width: 13px; height: 13px; color: var(--brand); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 40%, transparent); }
  55% { box-shadow: 0 0 0 6px transparent; }
}
.hero h1 {
  margin-top: 22px; max-width: 860px;
  font-size: clamp(40px, 5.4vw, 56px); font-weight: var(--fw-bold);
  letter-spacing: -0.035em; line-height: 1.1;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; max-width: 640px; font-size: var(--fs-body); color: var(--ink-2); line-height: var(--lh-loose); }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 24px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { width: 14px; height: 14px; color: var(--green); }

/* ---------------------------------------------------------------- 产品模型：真实面板复刻 */
.stage { position: relative; max-width: var(--w-site); margin: 0 auto; padding: 56px 24px 40px; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 40px; transform: translateX(-50%);
  width: 72%; height: 70%;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--brand) 20%, transparent),
    color-mix(in srgb, var(--cyan) 16%, transparent),
    color-mix(in srgb, var(--violet) 20%, transparent));
  filter: blur(60px); border-radius: 50%; pointer-events: none;
}
html[data-theme="dark"] .stage::before { opacity: 0.4; }
.stage-cap { position: relative; text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.stage-cap b { color: var(--ink-2); font-weight: var(--fw-semibold); }
/* 面板首屏必须直接可见：入场只做位移，不做透明度门控 */
.panel {
  position: relative; display: flex; height: 664px;
  border: 1px solid var(--border); border-radius: 18px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 2px 4px rgb(var(--shadow-rgb) / 0.04), 0 32px 80px -32px rgb(var(--shadow-rgb) / 0.22);
  animation: stageIn 0.7s var(--ease) both;
}
@keyframes stageIn { from { transform: translateY(18px); } to { transform: none; } }
/* 侧栏 */
.pside { width: 212px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--fill); }
.pside-brand {
  display: flex; align-items: center; gap: 9px; height: 52px; padding: 0 16px;
  border-bottom: 1px solid var(--border); font-weight: var(--fw-bold); font-size: 15px; letter-spacing: -0.01em;
}
.pside-brand .pm {
  width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  display: grid; place-items: center; color: var(--on-brand); flex: none;
}
.pside-brand .pm .ic { width: 14px; height: 14px; }
.pnav { flex: 1; overflow-y: auto; padding: 10px 10px 14px; }
.pnav-group {
  font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4); padding: 14px 10px 6px;
}
.pnav-item {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px;
  border-radius: 8px; font-size: 13px; font-weight: var(--fw-medium); color: var(--ink-2);
  text-align: left; transition: background 0.15s, color 0.15s; position: relative;
}
.pnav-item .ic { width: 16px; height: 16px; color: var(--ink-3); transition: color 0.15s; }
.pnav-item:hover { background: var(--fill2); color: var(--ink); }
.pnav-item.on { background: var(--brand-soft); color: var(--brand); font-weight: var(--fw-semibold); }
.pnav-item.on .ic { color: var(--brand); }
.pnav-item.ai { color: var(--violet); font-weight: var(--fw-semibold); }
.pnav-item.ai .ic { color: var(--violet); }
.pnav-item.ai.on { background: var(--violet-soft); color: var(--violet); }
.pnav-item .nbadge {
  margin-left: auto; font-size: 10px; font-weight: var(--fw-bold); color: var(--ink-3);
  background: var(--fill2); border-radius: var(--radius-pill); padding: 1px 7px;
}
.pnav-item.on .nbadge { background: var(--surface); color: var(--brand); }
.pnav-sep { height: 1px; background: var(--border); margin: 8px 10px; }
.pside-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.pside-foot b { color: var(--ink-2); font-weight: var(--fw-semibold); }
/* 主区 */
.pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ptop { height: 52px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.pcrumb { font-size: 13px; color: var(--ink-3); }
.pcrumb b { color: var(--ink); font-weight: var(--fw-semibold); }
.ptop-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.paccount {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 11.5px; color: var(--ink-2);
}
.paccount .ic { width: 12px; height: 12px; color: var(--green); }
.ptheme { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); }
.ptheme:hover { background: var(--fill2); color: var(--ink); }
.ptheme .ic { width: 15px; height: 15px; }
.puser { display: inline-flex; align-items: center; gap: 8px; }
.pavatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: var(--on-brand); display: grid; place-items: center; font-size: 12px; font-weight: var(--fw-bold);
}
.puser .u-meta { line-height: 1.2; }
.puser .u-name { font-size: 12.5px; font-weight: var(--fw-semibold); }
.puser .u-role { font-size: 10.5px; color: var(--ink-3); }
.pcontent { flex: 1; overflow-y: auto; padding: 18px 20px 24px; scroll-behavior: smooth; }
.pane { animation: paneIn 0.35s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 页头 */
.phead { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.phead h3 { font-size: 18px; font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.phead p { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.phead-act { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
/* 面板内按钮保持产品的紧凑尺寸，不跟官网大胶囊走 */
.pbtn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 12px; font-weight: var(--fw-medium); color: var(--ink-2);
  transition: all 0.15s; white-space: nowrap; cursor: pointer;
}
.pbtn:hover { border-color: var(--brand); color: var(--brand); }
.pbtn .ic { width: 13px; height: 13px; }
.pbtn.pri { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pbtn.pri:hover { background: var(--brand-hover); color: var(--on-brand); }
.pbtn.ic-only { width: 30px; padding: 0; justify-content: center; }
.pbtn.sm { height: 26px; padding: 0 10px; font-size: 11.5px; }
/* 卡片 / 网格 */
.pcard { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pcard-h {
  display: flex; align-items: center; gap: 8px; padding: 12px 15px;
  border-bottom: 1px solid var(--border); font-size: 13px; font-weight: var(--fw-semibold);
}
.pcard-h .hint { margin-left: auto; font-size: 11px; font-weight: var(--fw-regular); color: var(--ink-3); }
.pcard-b { padding: 15px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.g-main-side { display: grid; grid-template-columns: 1.9fr 1fr; gap: 12px; margin-bottom: 14px; }
.mb { margin-bottom: 14px; }
.grow { flex: 1; }
/* 徽标 */
.badge2 { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: var(--fw-semibold); }
.badge2 i { width: 5px; height: 5px; border-radius: 50%; }
.badge2.ok { background: var(--green-soft); color: var(--green); }
.badge2.ok i { background: var(--green); }
.badge2.warn { background: var(--amber-soft); color: var(--amber); }
.badge2.warn i { background: var(--amber); }
.badge2.danger { background: var(--rose-soft); color: var(--rose); }
.badge2.danger i { background: var(--rose); }
.badge2.info { background: var(--brand-soft); color: var(--brand); }
.badge2.info i { background: var(--brand); }
.badge2.mut { background: var(--fill2); color: var(--ink-3); }
.badge2.mut i { background: var(--ink-4); }
/* 仪表环 */
.gauge { display: flex; align-items: center; gap: 14px; }
.donut { position: relative; width: 84px; height: 84px; flex: none; }
.donut svg { width: 100%; height: 100%; }
.dtrack { fill: none; stroke: var(--fill2); stroke-width: 9; }
.dring { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray 0.8s var(--ease); }
.dcenter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.dcenter b { font-size: 19px; font-weight: var(--fw-bold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dcenter span { font-size: 9.5px; color: var(--ink-3); margin-top: 2px; }
.mrows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.mrow .k { color: var(--ink-3); }
.mrow .v { color: var(--ink); font-weight: var(--fw-semibold); font-family: var(--font-mono); font-size: 11.5px; }
/* 提示条 */
.tip2 { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px; font-size: 12px; margin-bottom: 14px; border: 1px solid; }
.tip2 .ic { width: 15px; height: 15px; flex: none; }
.tip2 .grow { flex: 1; }
.tip2.info { background: var(--brand-soft); border-color: var(--brand-border); color: var(--ink-2); }
.tip2.info .ic { color: var(--brand); }
.tip2.warn { background: var(--amber-soft); border-color: var(--warning-border); color: var(--ink-2); }
.tip2.warn .ic { color: var(--amber); }
/* 网络 */
.netstats { display: flex; gap: 26px; margin-bottom: 12px; }
.ns .ns-l { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); }
.ns .ns-l .ic { width: 12px; height: 12px; }
.ns .ns-v { font-size: 21px; font-weight: var(--fw-bold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ns .ns-v span { font-size: 11px; font-weight: var(--fw-medium); color: var(--ink-3); margin-left: 3px; }
.legend { margin-left: auto; display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); font-weight: var(--fw-regular); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 2.5px; border-radius: 2px; }
.chartwrap { position: relative; }
.chart-svg { display: block; width: 100%; height: 150px; overflow: visible; }
.conn-svg { display: block; width: 100%; height: 52px; overflow: visible; }
.hours { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-4); margin-top: 5px; font-family: var(--font-mono); }
.ctip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0; transform: translate(-50%, -110%);
  background: var(--ink); color: var(--surface); border-radius: 8px; padding: 7px 10px;
  font-size: 11px; line-height: 1.6; white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgb(var(--shadow-rgb) / 0.4); transition: opacity 0.12s;
}
.ctip b { font-family: var(--font-mono); }
.ctip .row { display: flex; align-items: center; gap: 6px; }
.ctip .row i { width: 7px; height: 7px; border-radius: 2px; }
.connblock { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); }
.conn-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: var(--fw-semibold); margin-bottom: 8px; }
.conn-h .ic { width: 13px; height: 13px; color: var(--violet); }
.conn-h .meta { margin-left: auto; font-size: 10.5px; font-weight: var(--fw-regular); color: var(--ink-3); }
.conn-h .meta b { color: var(--ink); font-family: var(--font-mono); }
/* 负载 */
.loadgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.loaditem { text-align: center; }
.loaditem .l-v { font-size: 19px; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.loaditem .l-l { font-size: 10.5px; color: var(--ink-3); margin: 2px 0 7px; }
.l-track { height: 5px; border-radius: 5px; background: var(--fill2); overflow: hidden; }
.l-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.loadnote {
  display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: var(--ink-2);
  line-height: 1.6; background: var(--green-soft); border-radius: 8px; padding: 9px 11px;
}
.loadnote .ic { width: 14px; height: 14px; color: var(--green); flex: none; margin-top: 1px; }
.loadnote b { color: var(--ink); }
.runrow { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin: 13px 0 11px; }
.runrow .mono { color: var(--ink); }
.kv2 { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 11.5px; }
.kv2 dt { color: var(--ink-3); }
.kv2 dd { color: var(--ink); text-align: right; }
.kv2 dd.mono { font-size: 11px; }
/* 表格 */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3);
  text-align: left; padding: 9px 14px; background: var(--fill);
  border-bottom: 1px solid var(--border); font-weight: var(--fw-semibold); white-space: nowrap;
}
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 0.12s; }
.tbl tbody tr:hover { background: var(--fill); }
.tbl .nm { color: var(--ink); font-weight: var(--fw-semibold); font-family: var(--font-mono); font-size: 11.5px; }
.tbl .r { text-align: right; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: var(--fw-medium); white-space: nowrap; }
.st i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.st.ok { color: var(--green); }
.st.ok i { background: var(--green); }
.st.warn { color: var(--amber); }
.st.warn i { background: var(--amber); }
.st.danger { color: var(--rose); }
.st.danger i { background: var(--rose); }
.st.off { color: var(--ink-3); }
.st.off i { background: var(--border-strong); }
.tag2 {
  display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: 6px;
  background: var(--fill2); font-size: 10.5px; color: var(--ink-2); font-family: var(--font-mono);
}
.prog { height: 6px; border-radius: 6px; background: var(--fill2); overflow: hidden; min-width: 70px; }
.prog i { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.prog i.warn { background: var(--amber); }
.prog i.danger { background: var(--rose); }
/* 实例 / 运行时 / GPU 卡 */
.inst {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 15px; background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.inst:hover { border-color: var(--border-strong); box-shadow: 0 10px 24px -14px rgb(var(--shadow-rgb) / 0.2); transform: translateY(-2px); }
.inst-h { display: flex; align-items: center; gap: 9px; }
.inst-ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--ib, var(--brand-soft)); color: var(--ic, var(--brand));
}
.inst-ico .ic { width: 16px; height: 16px; }
.inst-h .nm { font-size: 13px; font-weight: var(--fw-bold); font-family: var(--font-mono); }
.inst-h .sub { font-size: 10.5px; color: var(--ink-3); }
.inst-h .badge2 { margin-left: auto; }
.inst-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 11px; font-size: 11px; color: var(--ink-3); }
.inst-meta b { color: var(--ink); font-weight: var(--fw-semibold); font-family: var(--font-mono); }
.inst-note { margin-top: 10px; font-size: 11px; color: var(--ink-3); padding-top: 9px; border-top: 1px dashed var(--border); }
/* 商店 */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.appcard {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.appcard:hover { border-color: var(--border-strong); box-shadow: 0 10px 24px -14px rgb(var(--shadow-rgb) / 0.2); transform: translateY(-2px); }
.appcard-h { display: flex; align-items: center; gap: 9px; }
.appcard-h .inst-ico { width: 30px; height: 30px; }
.appcard-h .nm { font-size: 12.5px; font-weight: var(--fw-bold); }
.appcard-h .cat { font-size: 10px; color: var(--ink-3); }
.appcard p { margin-top: 9px; font-size: 11px; color: var(--ink-3); line-height: 1.6; min-height: 34px; }
.appcard-f { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.appcard-f .ver { font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono); }
.appcard-f .pbtn { margin-left: auto; }
/* AI 助手 */
.ai-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 12px; }
.convlist { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px; overflow-y: auto; }
.conv-g { font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); padding: 8px 8px 4px; }
.conv {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 9px; border-radius: 8px;
  font-size: 11.5px; color: var(--ink-2); transition: background 0.15s;
}
.conv:hover { background: var(--fill); }
.conv.on { background: var(--violet-soft); color: var(--violet); font-weight: var(--fw-semibold); }
.conv .t { font-size: 9.5px; color: var(--ink-4); font-weight: var(--fw-regular); }
.conv.on .t { color: var(--violet); }
.chat { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.chat-b { padding: 15px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.msg { display: flex; gap: 9px; max-width: 92%; }
.msg .ava { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: var(--fw-bold); }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.user .ava { background: var(--fill2); color: var(--ink-2); }
.msg.ai .ava { background: linear-gradient(135deg, var(--violet), var(--brand)); color: var(--on-brand); }
.msg.ai .ava .ic { width: 14px; height: 14px; }
.msg .bub { border-radius: 12px; padding: 9px 12px; font-size: 12px; line-height: 1.65; }
.msg.user .bub { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 3px; }
.msg.ai .bub { background: var(--fill); color: var(--ink); border-bottom-left-radius: 3px; }
/* 共用的 .steps/.step 是向导横排布局，面板里的操作清单要竖排，全部盖掉 */
.steps { display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 2px; }
.steps-h {
  display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: var(--fill);
  font-size: 11.5px; font-weight: var(--fw-semibold); border-bottom: 1px solid var(--border);
}
.steps-h .ic { width: 13px; height: 13px; color: var(--violet); }
.step { flex: none; display: flex; flex-direction: row; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 11.5px; }
.step:last-child { border-bottom: none; }
.step .si {
  width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); color: var(--ink-4); font-size: 9px; font-weight: var(--fw-bold);
  margin-top: 1px; transition: all 0.3s;
}
.step .si .ic { width: 11px; height: 11px; }
.step.done .si { background: var(--green); border-color: var(--green); color: var(--on-brand); }
.step.run .si { border-color: var(--brand); color: var(--brand); }
.step > span:last-child { display: block; min-width: 0; }
.step .st-t { display: block; font-weight: var(--fw-semibold); color: var(--ink); }
.step .st-d { display: block; font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono); margin-top: 2px; word-break: break-all; }
.chat-f { padding: 11px 15px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-f .hint { font-size: 11px; color: var(--ink-3); }
/* 终端 / 日志 / 设置 */
.term2 { border: 1px solid var(--border); border-radius: 10px; background: #0f1318; overflow: hidden; }
html[data-theme="dark"] .term2 { background: #0a0c10; }
.term2-h {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08); font-family: var(--font-mono); font-size: 10.5px; color: #8b93a1;
}
.term2-h .d { display: flex; gap: 5px; }
.term2-h .d i { width: 8px; height: 8px; border-radius: 50%; }
.term2-b { padding: 12px 14px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.9; color: #c8ced8; }
.term2-b .p { color: #2dd4bf; }
.term2-b .ok { color: #3ecf9a; }
.term2-b .o { color: #7d848f; }
.term2-b .er { color: #f07c7c; }
.logstream {
  border: 1px solid var(--border); border-radius: 10px; background: var(--fill); padding: 11px 13px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.95; max-height: 230px; overflow-y: auto;
}
.logstream .lt { color: var(--ink-4); }
.logstream .lv-info { color: var(--brand); }
.logstream .lv-warning { color: var(--amber); }
.logstream .lv-danger { color: var(--rose); }
.logstream .src { color: var(--violet); }
.setrow { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.setrow:last-child { border-bottom: none; }
.setrow .s-t { font-size: 12.5px; font-weight: var(--fw-semibold); }
.setrow .s-d { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
/* 面板里的开关是纯展示 span，与表单的 input 开关不同源 */
.switch {
  margin-left: auto; width: 36px; height: 21px; border-radius: var(--radius-pill);
  background: var(--border-strong); position: relative; flex: none; transition: background 0.2s;
  display: block; cursor: default;
}
.switch::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--knob); transition: left 0.2s;
  box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / 0.3);
}
.switch.on { background: var(--brand); }
.switch.on::after { left: 17.5px; }
.subhead2 { font-size: 12px; font-weight: var(--fw-bold); color: var(--ink-2); margin: 18px 0 10px; display: flex; align-items: center; gap: 7px; }
.subhead2:first-child { margin-top: 0; }
.subhead2 .ic { width: 14px; height: 14px; color: var(--brand); }

/* ---------------------------------------------------------------- 生态 */
.eco { padding: 0 24px 72px; text-align: center; }
.eco .lb { font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.eco .row { margin-top: 20px; display: flex; justify-content: center; gap: 14px 38px; flex-wrap: wrap; max-width: 980px; margin-inline: auto; }
.eco .row span { font-size: 15px; font-weight: var(--fw-bold); letter-spacing: 0.02em; color: var(--ink-4); transition: color 0.2s, transform 0.2s; }
.eco .row span:hover { color: var(--brand); transform: translateY(-2px); }

/* ---------------------------------------------------------------- 区块 */
.sec { max-width: var(--w-site); margin: 0 auto; padding: 80px 24px; }
.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px;
  border-radius: var(--radius-pill); font-size: 11.5px; font-weight: var(--fw-bold);
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-border);
}
.sec-head h2 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 40px); font-weight: var(--fw-bold); letter-spacing: -0.028em; line-height: 1.18; }
.sec-head p { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: var(--lh-loose); }

/* ---------------------------------------------------------------- 功能卡：彩色 + 扫光 */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px 28px; background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.fcard::after {
  content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.7), transparent);
  transform: skewX(-18deg); transition: left 0.6s var(--ease); pointer-events: none;
}
html[data-theme="dark"] .fcard::after { background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.08), transparent); }
.fcard:hover { transform: translateY(-5px); border-color: var(--fc, var(--brand)); box-shadow: 0 20px 44px -18px var(--fs, color-mix(in srgb, var(--brand) 35%, transparent)); }
.fcard:hover::after { left: 140%; }
.ficon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--fb, var(--brand-soft)); color: var(--fc, var(--brand));
  border: 1px solid var(--fbd, var(--brand-border)); transition: transform 0.3s var(--ease);
}
.fcard:hover .ficon { transform: scale(1.06) rotate(-3deg); }
.ficon .ic { width: 21px; height: 21px; }
.fcard h3 { margin-top: 18px; font-size: 17px; font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.fcard p { margin-top: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ---------------------------------------------------------------- Panlox AI 亮点区 */
.ai-sec { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ai-sec .checks { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.ai-sec .checks li { display: flex; gap: 10px; align-items: flex-start; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.ai-sec .checks .ic { width: 17px; height: 17px; color: var(--violet); margin-top: 3px; }
.ai-demo {
  border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden;
  box-shadow: 0 24px 60px -28px rgb(var(--shadow-rgb) / 0.28);
}
.ai-demo-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--fill); }
.ai-demo-h .inst-ico { background: linear-gradient(135deg, var(--violet), var(--brand)); color: var(--on-brand); }
.ai-demo-h .nm { font-size: 13.5px; font-weight: var(--fw-bold); }
.ai-demo-h .sub { font-size: 11px; color: var(--ink-3); }
.ai-demo-h .badge2 { margin-left: auto; }
.ai-demo-b { padding: 18px; }
.ai-result {
  margin-top: 12px; display: none; align-items: center; gap: 8px; font-size: 12px;
  color: var(--green); background: var(--green-soft); border-radius: 8px; padding: 9px 12px;
}
.ai-result.show { display: flex; }
.ai-result .ic { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- 部署：斜切渐变带 */
.band { position: relative; padding: 116px 0; margin: 32px 0; }
.band::before {
  content: ""; position: absolute; inset: 0; transform: skewY(-3deg);
  background: linear-gradient(115deg, #e8f0ff 0%, #e6fbff 45%, #f0ebff 100%);
  border-block: 1px solid var(--border);
}
html[data-theme="dark"] .band::before { background: linear-gradient(115deg, #141b2e 0%, #10201f 45%, #1a1730 100%); }
.band-in {
  position: relative; max-width: var(--w-site); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.checks { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.checks .ic { width: 17px; height: 17px; color: var(--green); margin-top: 3px; }
.term {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgb(var(--shadow-rgb) / 0.3);
}
.term-hd { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 15px; border-bottom: 1px solid var(--border); background: var(--fill); }
.term-hd .t { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.term-hd .t .ic { width: 13px; height: 13px; }
.copy {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 15px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 12.5px; font-weight: var(--fw-semibold); color: var(--ink-2); transition: all 0.18s;
}
.copy:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 3px 10px -4px color-mix(in srgb, var(--brand) 40%, transparent); }
.copy.ok { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.copy .ic { width: 13px; height: 13px; }
.term-bd { padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 2.1; }
.term-bd .ln { display: block; white-space: pre-wrap; word-break: break-all; }
.term-bd .p { color: var(--cyan); user-select: none; font-weight: var(--fw-bold); }
.term-bd .c { color: var(--ink); }
.term-bd .o { color: var(--ink-3); }
.term-bd .ok { color: var(--green); }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--brand); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- 数据：渐变 + 滚动计数 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  border: 1px solid var(--border); border-radius: 16px; padding: 30px 26px;
  background: var(--surface); text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 18px 40px -18px rgb(var(--shadow-rgb) / 0.2); }
.stat .v {
  font-size: clamp(30px, 3.2vw, 42px); font-weight: var(--fw-bold); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ---------------------------------------------------------------- FAQ：折叠 */
.faq { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qa {
  border: 1px solid var(--border); border-radius: 15px; background: var(--surface); overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.qa:hover { border-color: var(--border-strong); }
.qa.open { border-color: var(--brand-border); box-shadow: 0 12px 32px -16px color-mix(in srgb, var(--brand) 25%, transparent); }
.qa button {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 19px 22px;
  text-align: left; font-size: 16px; font-weight: var(--fw-semibold); letter-spacing: -0.01em;
  transition: color 0.15s;
}
.qa button:hover { color: var(--brand); }
.qa button .chev { margin-left: auto; flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.3s var(--ease), color 0.2s; }
.qa.open button .chev { transform: rotate(180deg); color: var(--brand); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans-in { overflow: hidden; }
.qa .ans p { padding: 0 22px 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }

/* ---------------------------------------------------------------- CTA */
.cta-wrap { max-width: var(--w-site); margin: 0 auto; padding: 0 24px 96px; }
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 24px; padding: 84px 32px;
  background: linear-gradient(120deg, #e9f1ff, #e8fbff 50%, #f1ecff); border: 1px solid var(--border);
}
html[data-theme="dark"] .cta { background: linear-gradient(120deg, #141b2e, #10201f 50%, #1a1730); }
.cta::before {
  content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 18%, transparent), transparent 65%); filter: blur(40px);
}
.cta::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 18%, transparent), transparent 65%); filter: blur(40px);
}
.cta-in { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: var(--fw-bold); letter-spacing: -0.028em; line-height: 1.18; }
.cta p { margin: 16px auto 0; max-width: 520px; color: var(--ink-2); font-size: 16px; line-height: var(--lh-loose); }
.cta .hero-cta { margin-top: 32px; justify-content: center; }

/* ---------------------------------------------------------------- 入场 */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .band-in { grid-template-columns: 1fr; gap: 40px; }
  .ai-sec { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .panel { flex-direction: column; height: auto; }
  .pside { width: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .pside-brand, .pside-foot, .pnav-group, .pnav-sep { display: none; }
  .pnav { display: flex; overflow-x: auto; overflow-y: hidden; padding: 9px 12px; gap: 4px; }
  .pnav-item { width: auto; flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-size: 12px; }
  .pnav-item .nbadge { display: none; }
  .pnav-item.on { border-color: var(--brand-border); }
  .pcontent { height: 580px; flex: none; }
  .g-main-side { grid-template-columns: 1fr; }
  .ai-wrap { grid-template-columns: 1fr; }
  .convlist { display: none; }
}
@media (max-width: 820px) {
  .hero { padding-top: 56px; }
  .hero h1 { font-size: min(34px, 8.6vw); letter-spacing: -0.03em; }
  .fgrid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .sec { padding: 60px 20px; }
  .stage { padding: 40px 16px 32px; }
  .g4, .g3, .g2, .store-grid { grid-template-columns: 1fr; }
  .netstats { gap: 18px; }
  .phead { flex-wrap: wrap; }
  .phead-act { margin-left: 0; width: 100%; }
  .band { padding: 88px 0; }
  .cta { padding: 60px 22px; }
  .puser .u-meta { display: none; }
  .paccount { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .cursor, .pill .dot { animation: none !important; }
  .panel, .pane { animation: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}