/* ============================================================
   企业官网 · 样式表
   ------------------------------------------------------------
   设计基调：精密编辑风（Precision Editorial）
   · 近黑墨色做深色面，暖白纸面做浅色面 —— 不用廉价的蓝灰
   · 品牌蓝只当信号色用，不做大面积渐变铺底
   · 发丝级 1px 描边代替柔和投影，阴影只留给浮层
   · 圆角收到 4/8/12，直角感对应工程软件的精密气质
   · 等宽字体承担编号与技术标签，与正文形成层次对比
   ============================================================ */

:root {
  /* ---------- 墨色（深色面） ---------- */
  --navy-900: #070a0f;
  --navy-800: #0c1018;
  --navy-700: #141a24;
  --navy-600: #1d2532;

  /* ---------- 品牌蓝：降饱和、加深，只做信号色 ---------- */
  --blue-600: #123fc4;
  --blue-500: #1d4ed8;
  --blue-400: #4c7bf0;
  --cyan-400: #5fc8e8;

  /* ---------- 文本 ---------- */
  --ink: #12161d;
  --ink-2: #333b47;
  --ink-3: #6a7381;
  --ink-4: #98a0ac;

  /* ---------- 中性面：暖白纸感 ---------- */
  --line: #e5e1d9;
  --line-soft: #efece5;
  --bg: #ffffff;
  --bg-soft: #f7f5f1;
  --bg-mute: #edeae3;

  /* ---------- 圆角：收敛、偏直角 ---------- */
  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 12px;

  /* ---------- 阴影：默认几乎不用，只给浮层 ---------- */
  --shadow-s: 0 1px 2px rgba(18, 22, 29, 0.04);
  --shadow-m: 0 2px 6px rgba(18, 22, 29, 0.05), 0 14px 30px rgba(18, 22, 29, 0.06);
  --shadow-l: 0 20px 54px rgba(18, 22, 29, 0.16), 0 2px 8px rgba(18, 22, 29, 0.06);

  --maxw: 1220px;
  --header-h: 72px;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas,
    "Liberation Mono", monospace;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* 颗粒质感（乘在深色面上，做出印刷般的细腻度） */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-feature-settings: "tnum" 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: rgba(29, 78, 216, 0.16); }

/* 键盘可达性：只在键盘操作时显形，不干扰鼠标观感 */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* 断行控制：把短语锁成整体，避免中文标题在词中间断行
   （例如「数智化」被拆成「数」+「智化」） */
.nb { white-space: nowrap; }

/* ============================================================
   通用标题 / 区块骨架
   ------------------------------------------------------------
   编辑式版式：整条发丝线压住区块顶部，左侧是分类标签，
   右侧是等宽编号，标题左对齐 —— 与「居中大标题 + 药丸标签」
   的模板做法刻意拉开距离。
   ============================================================ */
.sec { padding: 112px 0; }
.sec--soft { background: var(--bg-soft); }

.sec-head {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin: 0 0 48px;
  text-align: left;
}
.sec-head__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sec-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--blue-500);
  font-weight: 600;
}
.sec-idx {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.sec-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 700;
  max-width: 32ch;
  /* 需要折行时尽量均分，避免末行只剩一个字 */
  text-wrap: balance;
}
.sec-desc {
  color: var(--ink-3);
  font-size: 15px;
  margin: 0;
  max-width: 640px;
  line-height: 1.85;
}

/* ============================================================
   顶部导航
   ------------------------------------------------------------
   首页顶部浮在深色 Hero 之上 → 文字反白、无底色；
   一滚动就切换成白底 + 发丝下边线。避免深色 Hero 顶上
   压一条白色横条这种「割裂感」。
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 900;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.is-solid,
.header.is-open {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 44px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  background: var(--blue-500);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.brand__mark svg { width: 17px; height: 17px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__cn {
  font-size: 16.5px; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; transition: color 0.3s;
}
.brand__en {
  font-family: var(--mono);
  font-size: 9px; color: #7d8797;
  letter-spacing: 0.26em; text-transform: uppercase;
  transition: color 0.3s;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 15px;
  border-radius: var(--radius-s);
  transition: color 0.22s, background 0.22s;
}
.nav a:hover, .nav a.is-active { color: #fff; }

/* 滚过 Hero 后整体翻成浅色体系 */
.header.is-solid .brand__cn, .header.is-open .brand__cn { color: var(--ink); }
.header.is-solid .brand__en, .header.is-open .brand__en { color: var(--ink-4); }
.header.is-solid .nav a, .header.is-open .nav a { color: var(--ink-2); }
.header.is-solid .nav a:hover, .header.is-solid .nav a.is-active,
.header.is-open .nav a:hover, .header.is-open .nav a.is-active { color: var(--blue-500); }
.header.is-solid .nav-toggle, .header.is-open .nav-toggle { border-color: var(--line); }
.header.is-solid .nav-toggle span, .header.is-open .nav-toggle span,
.header.is-solid .nav-toggle span::before, .header.is-solid .nav-toggle span::after,
.header.is-open .nav-toggle span::before, .header.is-open .nav-toggle span::after { background: var(--ink); }
.header.is-solid .login-link, .header.is-open .login-link { color: var(--ink-4); }
.header.is-solid .login-link:hover, .header.is-open .login-link:hover { color: var(--blue-500); }

.header__right { margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* 右上角「登录」——刻意做得低调：小字号、灰蓝色、无背景 */
.login-link {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid transparent;
  transition: color 0.22s, border-color 0.22s;
}
.login-link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.login-link svg { width: 13px; height: 13px; opacity: 0.85; }

/* 已登录状态下的用户胶囊 */
.user-chip {
  position: relative;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 11px 4px 4px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.user-chip:hover { border-color: var(--blue-400); }
.user-chip.is-on { display: inline-flex; }
.user-chip__av {
  width: 24px; height: 24px; border-radius: 5px;
  background: var(--blue-500);
  color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.user-chip__badge {
  position: absolute;
  top: -6px;
  right: -7px;
  z-index: 2;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.user-chip__badge[hidden] { display: none; }

.portal-reply-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-soft);
}
.portal-reply-item:first-of-type { padding-top: 0; }
.portal-reply-item:last-child { padding-bottom: 0; border-bottom: 0; }
.portal-reply-item p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.9;
  white-space: pre-wrap;
}
.portal-reply-item small {
  display: block;
  margin-top: 8px;
  color: var(--ink-4);
}

.header__cta {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--blue-500);
  padding: 10px 20px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.22s, transform 0.22s;
}
.header__cta:hover { background: var(--blue-600); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  place-items: center;
  transition: border-color 0.3s;
}
.nav-toggle span { display: block; width: 16px; height: 1.6px; background: #fff; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: #fff;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 128px;
  background:
    radial-gradient(1000px 560px at 84% -6%, rgba(29, 78, 216, 0.3), transparent 62%),
    radial-gradient(760px 460px at 6% 92%, rgba(29, 78, 216, 0.12), transparent 62%),
    linear-gradient(180deg, #080b11 0%, #0b0f17 58%, #090c12 100%);
  color: #fff;
  overflow: hidden;
}
/* 极细工程网格：自上而下淡出，只做底纹，不与右侧面板抢视线 */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 46%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.45) 46%, transparent 88%);
  pointer-events: none;
}
/* 颗粒质感：印刷般的细腻度，是「贵」的来源之一 */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: var(--grain);
  opacity: 0.055;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px; color: #9aa7ba;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 14px; border-radius: var(--radius-s);
  margin-bottom: 30px;
}
.hero__badge i {
  width: 5px; height: 5px; border-radius: 50%; background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #e6ecfa 4%, #93b2f2 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub {
  font-size: 15.5px; color: #8f9daf; line-height: 1.95;
  max-width: 520px; margin: 0 0 40px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
}
.btn--primary {
  color: #fff;
  background: var(--blue-500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--ghost {
  color: #d5deeb;
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--dark { color: var(--ink); border-color: var(--line); background: #fff; }
.btn--dark:hover { border-color: var(--blue-400); color: var(--blue-500); }

.hero__stats { display: flex; flex-wrap: wrap; }
.hero__stat { padding-right: 44px; }
.hero__stat + .hero__stat {
  padding-left: 44px;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}
.hero__stat b {
  display: block; font-size: 30px; font-weight: 700;
  letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
}
.hero__stat b span { font-size: 14px; color: #8f9daf; font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.hero__stat p {
  margin: 6px 0 0; font-family: var(--mono);
  font-size: 11px; color: #767f8e; letter-spacing: 0.12em;
}

/* ---------- Hero 右侧：仪器读数面板 ---------- */
.hero__visual { position: relative; }
.vcard {
  position: relative;
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.vcard::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.vcard__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vcard__bar i {
  width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.14);
  flex-shrink: 0;
}
.vcard__bar span {
  font-family: var(--mono);
  font-size: 10.5px; color: #8892a2;
  letter-spacing: 0.16em;
}
.vcard__bar em {
  margin-left: auto; font-style: normal;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: #5b6579;
}
.vcard__body { padding: 8px 20px 20px; }
.vrow {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px; color: #a9b6c7;
}
.vrow:first-child { border-top: 0; }
.vrow__dot {
  width: 6px; height: 6px; border-radius: 1px;
  background: var(--cyan-400); flex-shrink: 0;
}
.vrow__txt b { font-weight: 600; color: #fff; margin-right: 7px; }
.vrow em {
  font-style: normal; font-family: var(--mono);
  font-size: 11.5px; color: #7b8698; letter-spacing: 0.02em;
}
.vbar {
  grid-column: 2 / -1;
  height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden; margin-top: 5px;
}
.vbar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 悬浮标签：深色玻璃 + 发丝边，比白色药丸克制得多 */
.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: var(--radius);
  background: rgba(10, 14, 21, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e4ebf5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
  animation: floaty 7s ease-in-out infinite;
}
.float-chip--a { top: -20px; left: -26px; }
.float-chip--b { bottom: -22px; right: -18px; animation-delay: -3.2s; }
.float-chip svg { width: 15px; height: 15px; }
.float-chip--a svg { color: #8fb0f5; }
.float-chip--b svg { color: var(--cyan-400); }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 客户/信任条 ---------- */
.trust { border-bottom: 1px solid var(--line-soft); background: #fff; }
.trust__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px 28px;
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center;
}
.trust__label {
  font-family: var(--mono);
  font-size: 10.5px; color: var(--ink-4);
  letter-spacing: 0.18em;
}
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; }
.trust__logos span {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  letter-spacing: 0.04em; padding: 0 34px;
  border-left: 1px solid var(--line-soft);
  transition: color 0.22s;
}
.trust__logos span:first-child { border-left: 0; }
.trust__logos span:hover { color: var(--ink); }

/* ============================================================
   产品中心
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.card {
  position: relative;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 30px 0 34px;
  display: flex; flex-direction: column;
  transition: border-color 0.28s;
}
.card::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 48px; height: 2px; background: var(--blue-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { border-color: #cfcabf; }
.card:hover::before { transform: scaleX(1); }
.card__idx {
  position: absolute; top: 34px; right: 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--ink-4);
  transition: color 0.28s;
}
.card:hover .card__idx { color: var(--blue-500); }
.card__icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: border-color 0.28s, color 0.28s, background 0.28s;
}
.card:hover .card__icon {
  border-color: var(--blue-400); color: var(--blue-500);
  background: rgba(29, 78, 216, 0.04);
}
.card__icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.card p { font-size: 13.5px; color: var(--ink-3); margin: 0 0 22px; line-height: 1.85; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__link {
  font-size: 13px; color: var(--ink-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color 0.24s;
}
.card__link::after { content: "→"; transition: transform 0.28s; }
.card:hover .card__link { color: var(--blue-500); }
.card:hover .card__link::after { transform: translateX(4px); }
.card__tag {
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; color: var(--blue-500);
  border: 1px solid rgba(29, 78, 216, 0.24);
  border-radius: var(--radius-s); padding: 3px 8px;
  letter-spacing: 0.12em;
}

/* ============================================================
   对话气泡
   ------------------------------------------------------------
   基样式偏深色（历史遗留），实际渲染由 .agent__body 内的
   浅色覆盖规则决定；右下角悬浮窗是唯一使用方。
   ============================================================ */
.bubble {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px; line-height: 1.78;
  white-space: pre-wrap; word-break: break-word;
}
.bubble--bot {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dce8fa;
  border-top-left-radius: 3px;
}
.bubble--me {
  margin-left: auto;
  background: var(--blue-500);
  color: #fff;
  border-top-right-radius: 3px;
}
.bubble code {
  background: rgba(255, 255, 255, 0.12); padding: 1px 5px; border-radius: 3px;
  font-family: var(--mono); font-size: 12px;
}

.typing { display: inline-flex; gap: 4px; align-items: center; height: 16px; }
.typing i {
  width: 4px; height: 4px; border-radius: 50%; background: #9db4d3;
  animation: blink 1.3s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.28; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* ============================================================
   解决方案
   ------------------------------------------------------------
   不做盒子卡片，改成发丝分栏行 —— 更像一本手册的目录页，
   而不是「又一个卡片网格」。
   ============================================================ */
.sols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.sol {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  background: transparent; border-radius: 0;
  transition: border-color 0.28s;
}
.sol:hover { border-top-color: var(--blue-400); }
.sol__no {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; color: var(--ink-4);
  letter-spacing: 0.1em;
  width: 34px; flex-shrink: 0; padding-top: 4px;
  background: none;
  transition: color 0.28s;
}
.sol:hover .sol__no { color: var(--blue-500); }
.sol h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.sol p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.85; }

/* ============================================================
   新闻
   ============================================================ */
.news { display: grid; grid-template-columns: 1.22fr 1fr; gap: 44px; align-items: start; }
.news__hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(620px 340px at 92% 0%, rgba(29, 78, 216, 0.34), transparent 64%),
    linear-gradient(160deg, #0d1119, #12161f);
  color: #fff; padding: 40px 38px 38px;
  display: flex; flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.news__hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
}
.news__date {
  font-family: var(--mono);
  font-size: 11px; color: #8a95a6;
  letter-spacing: 0.14em; margin-bottom: 20px;
}
.news__hero h3 { font-size: 21px; line-height: 1.5; margin: 0 0 18px; font-weight: 600; letter-spacing: -0.015em; }
.news__hero p { font-size: 13.5px; color: #9aa6b8; line-height: 1.9; margin: 0 0 28px; position: relative; z-index: 1; }
.news__hero a {
  font-size: 13.5px; font-weight: 600; color: #fff;
  margin-top: auto; position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px; align-self: flex-start;
  transition: border-color 0.24s, color 0.24s;
}
.news__hero a:hover { color: var(--cyan-400); border-bottom-color: var(--cyan-400); }

.news__list { display: grid; align-content: start; }
.news-item {
  display: flex; gap: 22px; align-items: baseline;
  padding: 22px 0;
  background: transparent; border: 0; border-top: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.24s;
}
.news-item:first-child { border-top-color: var(--ink); }
.news-item:hover { border-top-color: var(--blue-400); }
.news-item time {
  font-family: var(--mono);
  font-size: 11.5px; color: var(--ink-4);
  flex-shrink: 0; font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.news-item h4 {
  margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.65;
  letter-spacing: -0.005em;
  transition: color 0.24s;
}
.news-item:hover h4 { color: var(--blue-500); }
.news-item h4 span {
  display: block; font-size: 12.5px; color: var(--ink-3);
  font-weight: 400; margin-top: 8px; line-height: 1.75;
}

/* ============================================================
   CTA 区块
   ============================================================ */
.cta { padding: 0 0 112px; }
.cta__box {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  padding: 60px 54px;
  background:
    radial-gradient(700px 340px at 88% 6%, rgba(29, 78, 216, 0.36), transparent 62%),
    linear-gradient(140deg, #0c1017, #141a25);
  color: #fff;
  display: flex; align-items: center; gap: 44px; justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta__box::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
}
.cta__box h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; font-weight: 700; letter-spacing: -0.03em; }
.cta__box p { margin: 0; color: #98a4b6; font-size: 14.5px; }
.cta__box > * { position: relative; z-index: 1; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 68px 0 30px;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; margin-bottom: 52px; }
.footer .brand__cn { color: var(--ink); }
.footer__about p { font-size: 13px; color: var(--ink-3); line-height: 1.9; margin: 20px 0 0; max-width: 310px; }
.footer h4 {
  font-family: var(--mono);
  font-size: 11px; margin: 0 0 20px; font-weight: 600;
  color: var(--ink-4); letter-spacing: 0.16em;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { font-size: 13px; color: var(--ink-3); transition: color 0.2s; }
.footer ul a:hover { color: var(--blue-500); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px; color: var(--ink-4); letter-spacing: 0.04em;
}
.footer__bottom a:hover { color: var(--blue-500); }
.portal-icp-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ============================================================
   登录弹窗
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(7, 10, 15, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.26s, visibility 0.26s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: 100%; max-width: 404px;
  background: #fff; border-radius: var(--radius-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-l);
  padding: 38px 36px 32px;
  transform: translateY(12px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: var(--radius-s);
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-4); font-size: 18px; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--bg-mute); color: var(--ink); }

.login__head { margin-bottom: 28px; }
.login__mark {
  width: 42px; height: 42px; margin: 0 0 20px;
  border-radius: var(--radius);
  background: var(--blue-500);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.login__mark svg { width: 20px; height: 20px; color: #fff; }
.login__head h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.login__head p { margin: 0; font-size: 13px; color: var(--ink-3); }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--mono);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.12em; margin-bottom: 9px;
}
.field__wrap { position: relative; display: flex; align-items: center; }
.field svg {
  position: absolute; left: 14px; width: 15px; height: 15px;
  color: var(--ink-4); pointer-events: none;
}
.field input {
  width: 100%;
  font-size: 14px; font-family: inherit; color: var(--ink);
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fdfcfa;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder { color: var(--ink-4); }
.field input:focus {
  background: #fff;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.login__row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 6px 0 22px; font-size: 12.5px; color: var(--ink-3);
}
.login__row label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.login__row input[type="checkbox"] { accent-color: var(--blue-500); width: 14px; height: 14px; }
.login__row a { color: var(--blue-500); }

.login__submit {
  width: 100%;
  font-size: 15px; font-weight: 600; color: #fff;
  padding: 13px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--blue-500);
  letter-spacing: 0.06em;
  transition: background 0.2s, opacity 0.2s;
  display: grid; place-items: center;
}
.login__submit:hover { background: var(--blue-600); }
.login__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.login__msg {
  display: none;
  align-items: center; gap: 8px;
  font-size: 12.5px; line-height: 1.6;
  padding: 11px 13px; border-radius: var(--radius);
  margin-bottom: 18px;
}
.login__msg.is-on { display: flex; }
.login__msg.is-err { color: #a4262c; background: #fdf3f3; border: 1px solid #f0d3d3; }
.login__msg.is-ok { color: #15704a; background: #f1faf5; border: 1px solid #cde9da; }

.login__hint {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--ink-4); line-height: 1.9;
}
.login__hint b { color: var(--ink-2); font-weight: 600; }
.login__hint code {
  background: var(--bg-mute); padding: 1px 6px; border-radius: 3px;
  font-family: var(--mono); color: var(--blue-600);
}

/* ============================================================
   悬浮智能体（右下角）
   ============================================================ */
.agent-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 1100;
  width: 56px; height: 56px;
  border-radius: 18px;
  border: 0; cursor: pointer;
  background: var(--blue-500);
  box-shadow: 0 14px 34px rgba(18, 22, 29, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: grid; place-items: center;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}
.agent-fab:hover { transform: translateY(-2px); background: var(--blue-600); box-shadow: 0 20px 44px rgba(18, 22, 29, 0.36); }
.agent-fab svg { width: 23px; height: 23px; color: #fff; }
.agent-fab::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 21px;
  border: 1px solid rgba(29, 78, 216, 0.45);
  animation: pulse 3.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}
.agent-fab.is-hidden { transform: scale(0); pointer-events: none; }

.agent-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 1101;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 64px));
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s, visibility 0.28s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.agent-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.agent__head {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 18px;
  background: #0c1018;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.agent__av {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--blue-500);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.agent__av svg { width: 17px; height: 17px; color: #fff; }
.agent__meta { line-height: 1.35; }
.agent__meta b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }
.agent__x {
  margin-left: auto;
  width: 28px; height: 28px; border-radius: var(--radius-s); border: 0;
  background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  transition: background 0.2s;
}
.agent__x:hover { background: rgba(255, 255, 255, 0.2); }

.agent__body {
  flex: 1; overflow-y: auto;
  padding: 20px 18px;
  background: var(--bg-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.agent__body::-webkit-scrollbar { width: 6px; }
.agent__body::-webkit-scrollbar-thumb { background: #d5cdc0; border-radius: 999px; }

.agent__body .bubble--bot {
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  max-width: 88%;
}
.agent__body .bubble--me { max-width: 88%; }
.agent__body .bubble code { background: var(--bg-mute); color: var(--blue-600); }
.agent__body .bubble a { color: var(--blue-500); text-decoration: underline; }
.agent__body .bubble b { color: var(--ink); }

/* 越界提问的回复：用暖色调和正常回答区分开 */
.agent__body .bubble--warn {
  background: #fffaf0;
  border-color: #eddcbb;
  color: #7a5c1f;
}
.agent__body .bubble--warn b { color: #6b4d12; }
.agent__body .bubble--warn code { background: #fdf1d8; color: #8a6212; }

.agent__quick {
  display: flex; gap: 7px; flex-wrap: wrap;
  padding: 0 18px 14px; background: var(--bg-soft);
  border-top: 1px solid transparent;
}
.agent__quick button {
  font-size: 11.5px; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 6px 11px; cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.agent__quick button:hover { border-color: var(--blue-400); color: var(--blue-500); background: #fff; }

.agent__foot {
  border-top: 1px solid var(--line);
  padding: 13px 16px;
  display: flex; gap: 9px; align-items: flex-end;
  background: #fff;
}
.agent__foot textarea {
  flex: 1; resize: none;
  font-family: inherit; font-size: 13.5px; line-height: 1.6; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 13px; max-height: 104px; outline: none;
  background: #fdfcfa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.agent__foot textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.11);
  background: #fff;
}
.agent__send {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--blue-500);
  display: grid; place-items: center;
  transition: background 0.2s, opacity 0.2s;
}
.agent__send:hover { background: var(--blue-600); }
.agent__send:disabled { opacity: 0.45; cursor: not-allowed; }
.agent__send svg { width: 17px; height: 17px; color: #fff; }

/* 滚动出现动画
   仅在 JS 可用时（html.js）才隐藏，避免脚本失效导致内容永久不可见 */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1), transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-chip, .agent-fab::after { animation: none; }
  html.js .reveal { transition: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1120px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .news { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header__cta { display: none; }
  .header__inner { gap: 16px; }
  .header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-m);
    margin-left: 0;
  }
  .header.is-open .nav a { padding: 13px 14px; font-size: 15px; color: var(--ink-2); }
  .sec { padding: 76px 0; }
  .sec-title { max-width: none; }
  .hero { padding-top: calc(var(--header-h) + 60px); padding-bottom: 92px; }
  .hero__actions { margin-bottom: 44px; }
  .hero__stat { padding-right: 30px; }
  .hero__stat + .hero__stat { padding-left: 30px; }
  .sols { grid-template-columns: 1fr; gap: 0; }
  .trust__logos span { padding: 0 20px; }
  .cta { padding-bottom: 76px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .header__inner { padding: 0 20px; }
  .cards { grid-template-columns: 1fr; gap: 0; }
  .cta__box { padding: 38px 26px; }
  .news__hero { padding: 30px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .float-chip--a { top: -14px; left: -10px; }
  .float-chip--b { right: -8px; }
  .modal__box { padding: 30px 24px 26px; }
  .agent-panel { right: 16px; left: 16px; bottom: 16px; width: auto; }
  .agent-fab { right: 16px; bottom: 16px; }
  .hero__stats { gap: 0; }
  .hero__stat { padding-right: 22px; }
  .hero__stat + .hero__stat { padding-left: 22px; }
  .hero__stat b { font-size: 24px; }
  .hero__stat p { font-size: 10px; letter-spacing: 0.08em; }
  .trust__logos span { padding: 0 14px; font-size: 13px; }
  .news-item { flex-direction: column; gap: 8px; }
  .sol { gap: 16px; }
}

/* ============================================================
   网页B · 数据表组件（.dbt-*）
   ============================================================ */

.dbt__bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px;
}
.dbt__pick { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-3); }
.dbt__select, .dbt__input, .dbt__search {
  font: inherit; font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.dbt__select:focus, .dbt__input:focus, .dbt__search:focus {
  border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.11);
}
.dbt__search { flex: 1; min-width: 190px; }
.dbt__btn {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 16px; cursor: pointer; transition: all 0.18s; white-space: nowrap;
}
.dbt__btn:hover:not(:disabled) { border-color: var(--blue-400); color: var(--blue-500); }
.dbt__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dbt__btn--primary { background: var(--blue-500); color: #fff; border-color: transparent; }
.dbt__btn--primary:hover:not(:disabled) { background: var(--blue-600); color: #fff; }
.dbt__btn--mini { padding: 6px 11px; font-size: 12px; }
.dbt__tag {
  margin-left: auto; font-family: var(--mono);
  font-size: 11px; color: var(--ink-3);
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 6px 12px;
  letter-spacing: 0.06em;
}

.dbt__meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.dbt__metaText { font-size: 12.5px; color: var(--ink-3); }
.dbt__notice {
  font-size: 12.5px; color: #7a5c1f; background: #fffaf0;
  border: 1px solid #eddcbb; border-radius: var(--radius); padding: 11px 14px; line-height: 1.75;
}
.dbt__hint { font-size: 12.5px; color: var(--ink-4); }
.dbt__error {
  font-size: 12.5px; color: #a4262c; background: #fdf3f3;
  border: 1px solid #f0d3d3; border-radius: var(--radius); padding: 12px 15px; line-height: 1.75;
}
.dbt__error strong { display: block; color: #8c2323; }
.dbt__code { font-family: var(--mono); color: #a85c5c; }

.dbt__body { display: flex; gap: 18px; align-items: flex-start; }
.dbt__main { flex: 1; min-width: 0; }
.dbt__scroll {
  overflow: auto; max-height: 560px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.dbt__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dbt__table th {
  position: sticky; top: 0; z-index: 2;
  text-align: left; white-space: nowrap; cursor: pointer;
  background: var(--bg-soft); color: var(--ink-2);
  font-family: var(--mono);
  font-weight: 600; font-size: 11px; letter-spacing: 0.1em;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  user-select: none;
}
.dbt__table th:hover { color: var(--blue-500); }
.dbt__table th.is-asc::after { content: " ↑"; color: var(--blue-500); }
.dbt__table th.is-desc::after { content: " ↓"; color: var(--blue-500); }
.dbt__table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2); vertical-align: top; max-width: 320px;
}
.dbt__table tbody tr { cursor: pointer; transition: background 0.15s; }
.dbt__table tbody tr:hover { background: #fbfaf7; }
.dbt__table tbody tr.is-active { background: #f4f7fd; }
.dbt__state { text-align: center; color: var(--ink-4); padding: 44px 0 !important; cursor: default; }
.dbt__bool {
  font-family: var(--mono);
  font-size: 11px; padding: 3px 9px; border-radius: var(--radius-s);
  background: var(--bg-mute); color: var(--ink-2);
}

.dbt__pager {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; margin-top: 4px;
}
.dbt__pageInfo { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-right: auto; letter-spacing: 0.04em; }

.dbt__detail {
  width: 320px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px 20px 18px;
}
.dbt__detailTitle { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.dbt__kv { display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--radius-s); overflow: hidden; margin-bottom: 16px; }
.dbt__kv div { display: flex; gap: 12px; padding: 10px 13px; background: #fff; font-size: 12.5px; align-items: baseline; }
.dbt__kv span:first-child { color: var(--ink-4); flex-shrink: 0; min-width: 82px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.dbt__kv span:last-child { color: var(--ink); word-break: break-all; white-space: pre-wrap; max-height: 180px; overflow: auto; }

.dbt__filters { display: grid; gap: 8px; margin-bottom: 14px; }
.dbt__filterRow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dbt__filterRow .dbt__select { flex: 0 0 auto; }
.dbt__filterRow .dbt__input { flex: 1; min-width: 130px; }

@media (max-width: 900px) {
  .dbt__body { flex-direction: column; }
  .dbt__detail { width: 100%; }
  .dbt__tag { margin-left: 0; }
}

/* ============================================================
   网页B · 接入状态面板（.conn-*）
   ============================================================ */

.conn { display: grid; gap: 16px; }
.conn__item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 19px; background: #fdfcfa;
}
.conn__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.conn__head h4 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.conn__dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #c9d3e0; }
.conn__dot--on { background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.14); }
.conn__dot--off { background: #d9a441; }
.conn__state {
  margin-left: auto; font-family: var(--mono);
  font-size: 10.5px; padding: 4px 10px; border-radius: var(--radius-s);
  background: #fff; border: 1px solid var(--line); color: var(--ink-3);
  letter-spacing: 0.08em;
}
.conn__state--on { color: #15704a; border-color: #cde9da; background: #f1faf5; }
.conn__state--off { color: #7a5c1f; border-color: #eddcbb; background: #fffaf0; }
.conn__desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.8; margin: 0 0 12px; }
.conn__todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.conn__todo li {
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 9px 12px; font-family: var(--mono);
  word-break: break-all;
}
.conn__todo li.done { color: var(--ink-4); font-family: inherit; text-decoration: line-through; text-decoration-color: var(--ink-4); }
.conn__kv { display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--radius-s); overflow: hidden; margin-top: 12px; }
.conn__kv div { display: flex; gap: 12px; padding: 9px 13px; background: #fff; font-size: 12.5px; align-items: baseline; }
.conn__kv span:first-child { color: var(--ink-4); flex-shrink: 0; min-width: 80px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.conn__kv span:last-child { color: var(--ink); word-break: break-all; font-family: var(--mono); font-size: 12px; }

/* ============================================================
   门户用户菜单 / 我的工单
   ============================================================ */
.user-menu { position: relative; display: none; }
.user-menu.is-on { display: block; }
.user-menu.is-open .user-chip { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.user-chip svg { width: 14px; height: 14px; color: var(--ink-4); }
.user-popover {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 1300;
  width: 304px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; box-shadow: 0 18px 48px rgba(18,22,29,.16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, visibility .18s, transform .18s;
}
.user-menu.is-open .user-popover { opacity: 1; visibility: visible; transform: none; }
.user-popover__profile { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--ink); }
.user-popover__profile:hover { background: #fafbfd; }
.user-popover__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--blue-500); color: #fff; font-weight: 700; }
.user-popover__profile span:nth-child(2) { flex: 1; min-width: 0; }
.user-popover__profile b { display: block; color: var(--ink); font-size: 14px; }
.user-popover__profile small { display: block; margin-top: 3px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-popover i { color: var(--ink-4); font-style: normal; }
.user-popover__group { border-top: 1px solid var(--line-soft); padding: 7px 0; }
.user-popover__group a, .user-popover__group button {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px;
  padding: 0 16px; color: var(--ink-2); font: inherit; font-size: 13.5px;
  text-align: left; background: none; border: 0; cursor: pointer;
}
.user-popover__group a:hover, .user-popover__group button:hover { background: #f8faff; color: var(--blue-500); }
.user-popover__group i { margin-left: auto; }
.up-icon { display: grid; place-items: center; width: 17px; color: var(--ink-4); font-size: 14px; }
.ticket-count { display: grid; place-items: center; min-width: 21px; height: 21px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--blue-500); color: #fff; font-size: 11px; }
.user-popover__group button .up-icon { color: #a04444; }

.portal-workspace { min-height: 100vh; background: #f5f7fb; padding-top: calc(var(--header-h) + 34px); }
.portal-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 70px; }
.portal-title h1 { margin: 0; color: #17233d; font-size: 28px; }
.portal-title p { margin: 8px 0 0; color: #8a96ad; font-size: 14px; }
.portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.portal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 17px; border: 1px solid #dbe2ee; border-radius: 7px; background: #fff; color: #43536e; font: inherit; font-size: 13.5px; cursor: pointer; }
.portal-btn:hover { border-color: #b9c9e4; color: #3269c8; }
.portal-btn--primary { border-color: #3269c8; background: #3269c8; color: #fff; font-weight: 600; }
.portal-btn--primary:hover { background: #2a5aad; color: #fff; }
.portal-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.portal-kpi { position: relative; min-height: 82px; padding: 16px 18px; border: 1px solid #e7ebf3; border-radius: 10px; background: #fff; cursor: pointer; }
.portal-kpi::before { position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 10px 0 0 10px; background: #3269c8; content: ''; }
.portal-kpi.is-ok::before { background: #2ea86a; }
.portal-kpi.is-warn::before { background: #e08a1e; }
.portal-kpi.is-danger::before { background: #d4574a; }
.portal-kpi span { color: #68758e; font-size: 13px; }
.portal-kpi strong { margin-left: 7px; color: #1f2d48; font-size: 24px; }
.portal-kpi small { display: block; margin-top: 7px; color: #9aa6ba; font-size: 11.5px; }
.portal-panel { border: 1px solid #e7ebf3; border-radius: 10px; background: #fff; }
.portal-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #eef1f7; }
.portal-tabs { display: inline-flex; padding: 3px; border: 1px solid #e7ebf3; border-radius: 8px; background: #f6f8fb; }
.portal-tabs button { height: 30px; padding: 0 13px; border: 0; border-radius: 6px; background: none; color: #68758e; font: inherit; font-size: 13px; cursor: pointer; }
.portal-tabs button.is-active { background: #fff; color: #3269c8; font-weight: 600; box-shadow: 0 1px 3px rgba(35,54,85,.1); }
.portal-input, .portal-select { height: 36px; padding: 0 12px; border: 1px solid #dbe2ee; border-radius: 7px; background: #fff; color: #263650; font: inherit; font-size: 13px; outline: none; }
.portal-input:focus, .portal-select:focus { border-color: #3269c8; box-shadow: 0 0 0 3px rgba(50,105,200,.08); }
.portal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.portal-table th { padding: 11px 16px; background: #f7f9fc; color: #7c8aa2; font-size: 12.5px; font-weight: 500; text-align: left; }
.portal-table td { padding: 13px 16px; border-top: 1px solid #eef1f7; color: #3c4b64; vertical-align: middle; }
.portal-table tbody tr { cursor: pointer; }
.portal-table tbody tr:hover { background: #fafcff; }
.portal-ticket-no { color: #3567c8; font-family: Consolas, monospace; font-weight: 600; }
.portal-ticket-title { color: #1e2c47; font-weight: 600; }
.portal-ticket-sub { display: block; margin-top: 4px; color: #9aa6ba; font-size: 12px; }
.portal-type, .portal-status { display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.portal-type--bug { background: #fdeceb; color: #b23c35; }
.portal-type--issue { background: #fdf3e3; color: #b4740f; }
.portal-type--question { background: #e9f0fd; color: #2f6bdc; }
.portal-status--processing { background: #e9f0fd; color: #2f6bdc; }
.portal-status--pending { background: #fdf3e3; color: #b4740f; }
.portal-status--resolved { background: #e8f6ee; color: #1f8a52; }
.portal-status--closed { background: #f1f3f7; color: #6b7893; }
.portal-pager { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 18px; color: #8a96ad; font-size: 13px; }
.portal-pager button { width: 30px; height: 30px; border: 1px solid #e7ebf3; border-radius: 6px; background: #fff; cursor: pointer; }
.portal-pager button.is-active { border-color: #3269c8; background: #3269c8; color: #fff; }

.portal-drawer-mask { position: fixed; inset: 0; z-index: 1400; display: none; background: rgba(23,35,61,.38); }
.portal-drawer-mask.is-open { display: block; }
.portal-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 640px; max-width: 96vw; background: #fff; box-shadow: -12px 0 34px rgba(23,35,61,.14); }
.portal-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid #e2e7ef; }
.portal-drawer__head h3 { margin: 0; color: #15223a; font-size: 19px; }
.portal-drawer__head p { margin: 7px 0 0; color: #8a96ad; font-size: 13px; }
.portal-drawer__body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.portal-drawer__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid #e2e7ef; }
.portal-section { margin-bottom: 24px; }
.portal-section h4 { margin: 0 0 13px; color: #536581; font-size: 14px; }
.portal-type-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.portal-type-card { padding: 13px; border: 1px solid #dbe2ee; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.portal-type-card.is-active { border-color: #3269c8; background: #f6f9ff; box-shadow: 0 0 0 3px rgba(50,105,200,.08); }
.portal-type-card strong { display: block; color: #2a3a56; font-size: 13.5px; }
.portal-type-card span { display: block; margin-top: 6px; color: #9aa6ba; font-size: 11.5px; line-height: 1.6; }
.portal-field { margin-bottom: 16px; }
.portal-field label { display: block; margin-bottom: 7px; color: #62728d; font-size: 13px; font-weight: 500; }
.portal-field input, .portal-field textarea, .portal-field select { width: 100%; box-sizing: border-box; border: 1px solid #dbe2ee; border-radius: 7px; background: #fff; color: #263650; font: inherit; font-size: 13.5px; outline: none; }
.portal-field input, .portal-field select { height: 38px; padding: 0 12px; }
.portal-field textarea { min-height: 130px; padding: 10px 12px; resize: vertical; line-height: 1.7; }
.portal-field input:focus, .portal-field textarea:focus, .portal-field select:focus { border-color: #3269c8; box-shadow: 0 0 0 3px rgba(50,105,200,.08); }
.portal-empty { padding: 44px 0; color: #9aa6ba; text-align: center; }

@media (max-width: 900px) {
  .portal-kpis { grid-template-columns: repeat(2,1fr); }
  .portal-filters { align-items: stretch; }
  .portal-tabs { width: 100%; overflow-x: auto; }
  .portal-table { min-width: 820px; }
  .portal-panel { overflow-x: auto; }
  .portal-type-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .user-popover { position: fixed; top: calc(var(--header-h) + 8px); right: 12px; left: 12px; width: auto; }
  .portal-workspace { padding-top: calc(var(--header-h) + 22px); }
  .portal-wrap { padding: 0 16px 50px; }
  .portal-head { flex-direction: column; }
  .portal-kpis { grid-template-columns: 1fr; }
  .portal-drawer { width: 100%; }
}
