/* =====================================================================
   智遴 AgentMart · 设计系统
   浅色纸感 + 墨色 + 鎏金，机构级 B2B 视觉
   ===================================================================== */

:root {
  --ink: #0E1421;
  --ink-2: #1A2334;
  --ink-3: #2B3546;
  --slate: #5C6474;
  --slate-2: #8A90A0;
  --paper: #FAF8F3;
  --paper-2: #F4F0E7;
  --card: #FFFFFF;
  --line: #E7E1D5;
  --line-2: #F0EBE1;
  --gold: #A87C2A;
  --gold-2: #C79A3C;
  --gold-3: #E9D5A8;
  --gold-bg: #FBF4E4;
  --teal: #0F6B58;
  --teal-bg: #E9F4F0;
  --red: #A83A2C;
  --red-bg: #FBEDEA;
  --blue: #2B4A78;
  --blue-bg: #EAF0F8;
  --moss: #5C6B3A;
  --moss-bg: #EFF2E4;
  --clay: #8C5334;
  --clay-bg: #F8EDE4;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(20, 24, 33, .04);
  --shadow-2: 0 12px 30px -18px rgba(20, 24, 33, .22);
  --shadow-3: 0 30px 60px -30px rgba(14, 20, 33, .35);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--gold-3); color: var(--ink); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D9D2C4; border-radius: 20px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #C4BBA8; }

/* ---------------------------------------------------------------- 布局 */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: 940px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper-2); }
.section--white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.row { display: flex; align-items: center; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.spacer { flex: 1; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--slate); }
.dim { color: var(--slate-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- 排版 */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-3); }

.h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.12; font-weight: 640; letter-spacing: -.035em; text-wrap: balance; }
.h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.22; font-weight: 620; letter-spacing: -.028em; text-wrap: balance; }
.h3 { font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.018em; }
.h4 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 1.78; color: var(--slate); }
.prose p { color: var(--slate); margin-bottom: 14px; line-height: 1.85; }
.prose p:last-child { margin-bottom: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head__text { max-width: 720px; }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--gold { --bg: linear-gradient(135deg, #C89B3D, #A87C2A); --bd: transparent; --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bd: #CFC5B0; background: #fff; }
.btn--quiet { --bg: transparent; --fg: var(--slate); --bd: transparent; height: 36px; padding: 0 10px; font-weight: 500; }
.btn--quiet:hover { --fg: var(--ink); box-shadow: none; background: var(--paper-2); }
.btn--light { --bg: rgba(255,255,255,.06); --fg: #EDE7DA; --bd: rgba(255,255,255,.18); }
.btn--light:hover { --bg: rgba(255,255,255,.12); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--danger { --bg: var(--red-bg); --fg: var(--red); --bd: #F0D3CC; }
.btn--ok { --bg: var(--teal); --fg: #fff; --bd: var(--teal); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: var(--gold); }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- 卡片 */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.card--pad { padding: 24px; }
.card--hover { transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #DCD4C4; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--line-2); background: linear-gradient(#fff, #FDFCF9);
}
.panel__body { padding: 24px; }

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-diamond { display: flex; align-items: center; gap: 12px; color: var(--gold-2); }
.rule-diamond::before, .rule-diamond::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.rule-diamond span { width: 5px; height: 5px; transform: rotate(45deg); background: currentColor; }

/* ---------------------------------------------------------------- 图标块 */

.chip {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 600; letter-spacing: -.02em;
  background: var(--gold-bg); color: var(--gold);
  border: 1px solid rgba(168, 124, 42, .18);
}
.chip--sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; font-size: 15px; }
.chip--lg { width: 60px; height: 60px; flex-basis: 60px; border-radius: 14px; font-size: 25px; }
.chip--gold { background: var(--gold-bg); color: var(--gold); border-color: rgba(168,124,42,.18); }
.chip--teal { background: var(--teal-bg); color: var(--teal); border-color: rgba(15,107,88,.15); }
.chip--indigo { background: var(--blue-bg); color: var(--blue); border-color: rgba(43,74,120,.15); }
.chip--clay { background: var(--clay-bg); color: var(--clay); border-color: rgba(140,83,52,.15); }
.chip--moss { background: var(--moss-bg); color: var(--moss); border-color: rgba(92,107,58,.16); }
.chip--ink { background: #ECEFF4; color: var(--ink-3); border-color: rgba(43,53,70,.12); }

/* ---------------------------------------------------------------- 标签 */

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .01em;
  background: var(--paper-2); color: var(--slate); border: 1px solid var(--line-2);
  white-space: nowrap;
}
.tag--gold { background: var(--gold-bg); color: var(--gold); border-color: rgba(168,124,42,.2); }
.tag--teal { background: var(--teal-bg); color: var(--teal); border-color: rgba(15,107,88,.16); }
.tag--red { background: var(--red-bg); color: var(--red); border-color: rgba(168,58,44,.16); }
.tag--blue { background: var(--blue-bg); color: var(--blue); border-color: rgba(43,74,120,.16); }
.tag--ink { background: #EFF1F5; color: var(--ink-3); border-color: rgba(43,53,70,.1); }
.tag--lg { height: 28px; padding: 0 12px; font-size: 12.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 100px;
  background: var(--paper-2); color: var(--slate); border: 1px solid var(--line-2);
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--teal-bg); color: var(--teal); border-color: rgba(15,107,88,.16); }
.pill--wait { background: var(--gold-bg); color: var(--gold); border-color: rgba(168,124,42,.2); }
.pill--warn { background: var(--red-bg); color: var(--red); border-color: rgba(168,58,44,.16); }
.pill--info { background: var(--blue-bg); color: var(--blue); border-color: rgba(43,74,120,.16); }
.pill--mute { color: var(--slate-2); }

/* ---------------------------------------------------------------- 表单 */

.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--slate); text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 92px; padding: 11px 13px; line-height: 1.7; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #D6CDBB; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(199,154,60,.13); }
.input::placeholder, .textarea::placeholder { color: #B3B8C3; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%235C6474' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--gold); }

.seg { display: inline-flex; padding: 3px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; gap: 2px; }
.seg button {
  height: 30px; padding: 0 13px; border: 0; background: transparent; border-radius: 7px;
  font-size: 12.5px; font-weight: 500; color: var(--slate); cursor: pointer; white-space: nowrap;
  transition: background .16s, color .16s, box-shadow .16s;
}
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20,24,33,.09); }

/* ---------------------------------------------------------------- 数据 */

.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi__label { font-size: 12px; color: var(--slate-2); letter-spacing: .03em; }
.kpi__value { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.kpi__value em { font-style: normal; font-size: 14px; color: var(--slate-2); font-weight: 500; margin-left: 3px; }
.kpi__hint { font-size: 12px; color: var(--slate-2); }

.stat-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat-grid > * { background: #fff; padding: 20px 22px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate-2); padding: 0 14px 10px; border-bottom: 1px solid var(--line);
}
.table td { padding: 14px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .14s; }
.table tbody tr:hover { background: #FBF9F4; }
.table--tight td { padding: 11px 14px; }

.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 13.5px; }
.dl dt { color: var(--slate-2); }
.dl dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.leader { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; padding: 7px 0; }
.leader__dots { flex: 1; border-bottom: 1px dotted #DCD5C6; transform: translateY(-4px); }

.bar-line { height: 5px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.bar-line span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); }

/* ---------------------------------------------------------------- 头部导航 */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 243, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231, 225, 213, .9);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(150deg, #2A3346, #0E1421);
  color: var(--gold-3); font-size: 15px; font-weight: 600; letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.brand__name { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.1; }
.brand__sub { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--slate-2); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  position: relative; padding: 7px 12px; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--slate);
  transition: color .16s, background .16s;
}
.nav__links a:hover { color: var(--ink); background: rgba(0,0,0,.035); }
.nav__links a.router-link-active { color: var(--ink); font-weight: 600; }
.nav__links a.router-link-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px;
  background: var(--gold); border-radius: 2px;
}

.nav__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff;
  font-size: 12.5px; color: var(--slate); transition: border-color .16s;
}
.credit-pill:hover { border-color: var(--gold-3); }
.credit-pill b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 13px; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #F3E8CE; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(0,0,0,.06); cursor: pointer;
}
.menu { position: relative; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 216px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-3); z-index: 80;
}
.menu__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu__item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: var(--slate); cursor: pointer; }
.menu__item:hover { background: var(--paper-2); color: var(--ink); }

.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; place-items: center; }

/* ---------------------------------------------------------------- 首页 Hero */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(168,124,42,.20), transparent 62%),
    radial-gradient(700px 380px at 12% 110%, rgba(43,74,120,.28), transparent 60%),
    linear-gradient(180deg, #0E1421 0%, #101827 55%, #0C1119 100%);
  color: #F1ECE1;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(72% 62% at 50% 32%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 32%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero__inner { position: relative; padding: 92px 0 76px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { color: #A9B0BF; max-width: 540px; margin-top: 22px; }
.hero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__foot { display: flex; gap: 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); flex-wrap: wrap; }
.hero__foot div { font-size: 12px; color: #7E8798; }
.hero__foot b { display: block; font-family: var(--mono); font-size: 19px; font-weight: 600; color: #EFE7D6; margin-bottom: 2px; letter-spacing: -.02em; }

/* Hero 右侧：结算流程卡 */
.deal {
  position: relative; padding: 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.deal__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.deal__row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.deal__row:last-of-type { border-bottom: 0; }
.deal__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-3); box-shadow: 0 0 0 4px rgba(233,213,168,.12); }
.deal__dot--ok { background: #6FD3A6; box-shadow: 0 0 0 4px rgba(111,211,166,.12); }
.deal__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: flex-end; }
.deal__amt { font-family: var(--mono); font-size: 22px; font-weight: 600; color: #F4EBD8; letter-spacing: -.02em; }

/* 深色区块 */
.band { background: var(--ink); color: #E8E3D6; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 300px at 84% 0%, rgba(168,124,42,.16), transparent 65%);
}
.band .h2, .band .h3 { color: #F4EFE4; }
.band .lead { color: #98A0AF; }
.band .muted { color: #8B92A2; }

/* ---------------------------------------------------------------- 首页模块 */

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.asset { position: relative; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .24s var(--ease), box-shadow .24s, border-color .24s; }
.asset:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #DBD2C1; }
.asset__idx { font-family: var(--mono); font-size: 11px; color: var(--gold-2); letter-spacing: .14em; }
.asset h3 { margin: 14px 0 9px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.asset p { font-size: 13.5px; color: var(--slate); line-height: 1.75; }
.asset__meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; gap: 14px; font-size: 12px; color: var(--slate-2); }

.cat-list { border-top: 1px solid var(--line); }
.cat-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
  transition: background .16s, padding .2s var(--ease);
}
.cat-row:hover { background: #fff; padding-left: 12px; padding-right: 12px; }
.cat-row__no { font-family: var(--mono); font-size: 12px; color: var(--gold-2); }
.cat-row h4 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.cat-row p { font-size: 13px; color: var(--slate); }
.cat-row__count { font-family: var(--mono); font-size: 13px; color: var(--slate-2); }

.scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scene {
  display: block; padding: 22px; border-radius: var(--r);
  background: linear-gradient(160deg, #fff, #FCFAF5);
  border: 1px solid var(--line);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.scene:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--gold-3); }
.scene__n { font-family: var(--mono); font-size: 22px; color: var(--gold); letter-spacing: -.02em; }
.scene h4 { margin: 12px 0 4px; font-size: 15.5px; }
.scene p { font-size: 12.5px; color: var(--slate); line-height: 1.65; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.flow__step { position: relative; padding: 0 22px 0 0; }
.flow__step:not(:last-child)::after {
  content: ""; position: absolute; left: calc(100% - 22px); top: 17px; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--gold-3), transparent);
}
.flow__n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-3); background: var(--gold-bg); color: var(--gold);
  font-family: var(--mono); font-size: 12px; font-weight: 600; margin-bottom: 16px;
}
.flow h4 { font-size: 15px; margin-bottom: 6px; }
.flow p { font-size: 13px; color: var(--slate); line-height: 1.7; }

.arch { display: flex; flex-direction: column; gap: 8px; }
.arch__layer {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 16px 20px; border-radius: 10px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  transition: background .2s, border-color .2s;
}
.arch__layer:hover { background: rgba(255,255,255,.06); border-color: rgba(233,213,168,.28); }
.arch__name { font-size: 14px; font-weight: 600; color: #EFE9DC; display: flex; align-items: center; gap: 10px; }
.arch__name i { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--gold-3); opacity: .8; }
.arch__desc { font-size: 12.5px; color: #8D94A3; line-height: 1.6; }

/* ---------------------------------------------------------------- 商店 */

.market { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 26px; }
.filter-block__title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 11px; }
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 9px; border-radius: 7px; font-size: 13.5px; color: var(--slate); cursor: pointer;
  transition: background .14s, color .14s;
}
.filter-item:hover { background: #fff; color: var(--ink); }
.filter-item.on { background: var(--ink); color: #F2ECDD; font-weight: 500; }
.filter-item.on span { color: rgba(242,236,221,.6); }
.filter-item span { font-family: var(--mono); font-size: 11.5px; color: var(--slate-2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips button {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; color: var(--slate); cursor: pointer; transition: all .15s;
}
.filter-chips button:hover { border-color: var(--gold-3); color: var(--ink); }
.filter-chips button.on { background: var(--gold-bg); border-color: var(--gold-3); color: var(--gold); font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--slate-2); pointer-events: none; }

.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.agent-card { display: flex; flex-direction: column; padding: 20px; min-width: 0; }
.agent-card__top { display: flex; gap: 13px; align-items: flex-start; }
.agent-card h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.agent-card__dev { font-size: 12px; color: var(--slate-2); margin-top: 3px; }
.agent-card__tagline { margin-top: 13px; font-size: 13px; color: var(--slate); line-height: 1.65; min-height: 42px; }
.agent-card__tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 13px; }
.agent-card__foot {
  margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line-2);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.price { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.price em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--slate-2); font-family: var(--sans); margin-left: 2px; }
.metrics { display: flex; gap: 12px; font-size: 11.5px; color: var(--slate-2); }
.metrics b { color: var(--ink-3); font-family: var(--mono); font-weight: 600; }

.stars { display: inline-flex; gap: 1px; color: var(--gold-2); }

/* ---------------------------------------------------------------- 详情 */

.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate-2); padding: 22px 0 0; }
.crumb a:hover { color: var(--gold); }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 40px; align-items: start; }
.detail__head { display: flex; gap: 18px; align-items: flex-start; }
.detail__side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 32px 0 0; }
.tabs button {
  position: relative; padding: 0 0 12px; border: 0; background: transparent;
  font-size: 13.5px; font-weight: 500; color: var(--slate); cursor: pointer;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); font-weight: 600; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }

.spec-block { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.spec-block:last-child { border-bottom: 0; }
.spec-block h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.spec-block h4::before { content: ""; width: 3px; height: 13px; background: var(--gold-2); border-radius: 2px; }
.spec-block p, .spec-block pre { font-size: 13.5px; color: var(--slate); line-height: 1.8; white-space: pre-wrap; }
.spec-block pre { font-family: var(--mono); font-size: 12.5px; background: var(--paper-2); padding: 14px; border-radius: 8px; border: 1px solid var(--line-2); overflow-x: auto; }

.buy-box { padding: 22px; }
.plan-opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer; margin-bottom: 8px;
  transition: border-color .15s, background .15s;
}
.plan-opt:hover { border-color: var(--gold-3); }
.plan-opt.on { border-color: var(--gold-2); background: var(--gold-bg); }
.plan-opt__radio { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #C9C2B2; flex: 0 0 14px; position: relative; }
.plan-opt.on .plan-opt__radio { border-color: var(--gold); }
.plan-opt.on .plan-opt__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.plan-opt__label { font-size: 13.5px; font-weight: 500; }
.plan-opt__hint { font-size: 11.5px; color: var(--slate-2); }

.calc { margin-top: 16px; padding: 14px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 9px; }
.calc__row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--slate); padding: 3px 0; }
.calc__row b { font-family: var(--mono); color: var(--ink-3); font-weight: 600; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.calc__total span { font-size: 12.5px; color: var(--slate); }
.calc__total b { font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -.03em; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review__body { font-size: 13.5px; color: var(--slate); line-height: 1.75; }

/* ---------------------------------------------------------------- 订单 */

.order { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.order:hover { border-color: #DCD3C2; box-shadow: var(--shadow-2); }
.order__head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); background: linear-gradient(#fff,#FDFCF9); }
.order__no { font-family: var(--mono); font-size: 11.5px; color: var(--slate-2); letter-spacing: .02em; }
.order__body { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 24px; padding: 18px 20px; }
.order__meta { display: flex; gap: 26px; flex-wrap: wrap; }
.order__meta div { font-size: 11.5px; color: var(--slate-2); }
.order__meta b { display: block; font-family: var(--mono); font-size: 14.5px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.split-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.split-grid div { background: #fff; padding: 9px 11px; }
.split-grid span { display: block; font-size: 10.5px; color: var(--slate-2); letter-spacing: .03em; }
.split-grid b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.order__actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; border-left: 1px dashed var(--line); padding-left: 24px; }

.stepper { display: flex; align-items: center; gap: 0; margin-top: 14px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--slate-2); }
.step__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 9.5px; font-family: var(--mono); background: #fff; }
.step.done { color: var(--teal); }
.step.done .step__dot { border-color: var(--teal); background: var(--teal-bg); color: var(--teal); }
.step.now { color: var(--gold); font-weight: 600; }
.step.now .step__dot { border-color: var(--gold); background: var(--gold-bg); color: var(--gold); }
.step__line { width: 26px; height: 1px; background: var(--line); margin: 0 8px; }
.step__line.done { background: var(--teal); opacity: .45; }

/* ---------------------------------------------------------------- 钱包 */

.wallet-hero {
  position: relative; overflow: hidden; padding: 32px;
  background: linear-gradient(150deg, #141C2C, #0E1421 60%);
  border-radius: var(--r-lg); color: #EAE4D6;
}
.wallet-hero::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200,155,61,.28), transparent 62%);
}
.wallet-hero .kpi__label { color: #8C94A4; }
.wallet-hero .kpi__value { color: #F6EEDC; font-size: 40px; }

.tx-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px; }
.tx-kind--in { background: var(--teal-bg); color: var(--teal); }
.tx-kind--out { background: var(--paper-2); color: var(--slate); }
.tx-kind--info { background: var(--blue-bg); color: var(--blue); }
.tx-amt { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.tx-amt--plus { color: var(--teal); }
.tx-amt--minus { color: var(--ink-3); }

/* ---------------------------------------------------------------- 治理 */

.gov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gov-item { padding: 20px; }
.risk-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; }
.risk-low { background: var(--teal-bg); color: var(--teal); }
.risk-mid { background: var(--gold-bg); color: var(--gold); }
.risk-high { background: var(--red-bg); color: var(--red); }

.trace { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.trace__head { display: flex; align-items: center; gap: 14px; padding: 13px 16px; cursor: pointer; }
.trace__head:hover { background: #FCFAF6; }
.trace__id { font-family: var(--mono); font-size: 11.5px; color: var(--slate-2); }
.trace__body { border-top: 1px dashed var(--line); padding: 16px; background: #FCFBF8; }
.trace__step { display: grid; grid-template-columns: 20px 150px 1fr 76px 54px; gap: 10px; align-items: center; font-size: 12.5px; padding: 7px 0; }
.trace__bar { height: 4px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.trace__bar span { display: block; height: 100%; background: var(--gold-2); }

/* ---------------------------------------------------------------- 洞察 */

.chart-card { padding: 22px 24px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--slate); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

.eco-table td { font-size: 13px; }
.eco-table .total { background: var(--gold-bg); font-weight: 600; }

.scenario { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.scenario--mid { border-color: var(--gold-3); background: linear-gradient(#fff, #FDF8EC); }
.scenario h4 { font-size: 14px; margin-bottom: 4px; }
.scenario .num { font-size: 26px; font-weight: 600; margin: 8px 0 2px; }

/* ---------------------------------------------------------------- 报告 */

.report { display: grid; grid-template-columns: 208px minmax(0,1fr); gap: 48px; align-items: start; }
.report__nav { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.report__nav a {
  padding: 8px 0 8px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 13px; color: var(--slate); transition: all .15s;
}
.report__nav a:hover { color: var(--ink); }
.report__nav a.on { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }
.chapter { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
.chapter h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.chapter__no { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.quote { padding: 18px 22px; border-left: 2px solid var(--gold-2); background: var(--gold-bg); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.85; color: var(--ink-3); }
.figure-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 18px; }
.figure-row > div { background: #fff; padding: 16px 18px; }
.figure-row b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 2px; }
.figure-row span { font-size: 11.5px; color: var(--slate-2); line-height: 1.5; display: block; }

/* ---------------------------------------------------------------- 登录 */

.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 66px); }
.auth__side {
  position: relative; overflow: hidden; padding: 64px 56px; color: #EDE7D8;
  background: radial-gradient(700px 380px at 20% 0%, rgba(168,124,42,.24), transparent 60%), linear-gradient(160deg,#0F1626,#0B1017);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth__side::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 100%);
}
.auth__main { display: flex; align-items: center; justify-content: center; padding: 56px 32px; }
.auth__form { width: 100%; max-width: 392px; }
.demo-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 12.5px; cursor: pointer; text-align: left; transition: all .16s;
}
.demo-btn:hover { border-color: var(--gold-3); background: var(--gold-bg); }
.demo-btn b { font-weight: 600; color: var(--ink); }
.demo-btn span { color: var(--slate-2); font-family: var(--mono); font-size: 11px; }

/* ---------------------------------------------------------------- 弹层 */

.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(14,20,33,.52); backdrop-filter: blur(3px);
  animation: fade .18s var(--ease);
}
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
  animation: rise .24s var(--ease);
}
.modal--wide { max-width: 760px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line-2); }
.modal__body { padding: 22px 24px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line-2); background: #FDFCFA; }
.x-btn { width: 30px; height: 30px; border-radius: 7px; border: 0; background: var(--paper-2); color: var(--slate); cursor: pointer; display: grid; place-items: center; }
.x-btn:hover { background: #EDE7DB; color: var(--ink); }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.99) } to { opacity: 1; transform: none } }

/* Toast */
.toasts { position: fixed; top: 78px; right: 24px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 380px;
  padding: 12px 15px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 9px; box-shadow: var(--shadow-2); font-size: 13px; line-height: 1.55;
  animation: slidein .22s var(--ease);
}
.toast--ok { border-left-color: var(--teal); }
.toast--err { border-left-color: var(--red); }
@keyframes slidein { from { opacity: 0; transform: translateX(16px) } to { opacity: 1; transform: none } }

/* 空态 / 骨架 */
.empty { padding: 64px 20px; text-align: center; color: var(--slate-2); }
.empty b { display: block; color: var(--slate); font-size: 14px; margin-bottom: 4px; }

.skel { background: linear-gradient(90deg, #F1EDE4 25%, #F8F5EF 37%, #F1EDE4 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: -100% 0 } }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.pager button {
  min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); background: #fff;
  border-radius: 7px; font-size: 12.5px; color: var(--slate); cursor: pointer; transition: all .15s;
  font-family: var(--mono);
}
.pager button:hover:not(:disabled) { border-color: var(--gold-3); color: var(--ink); }
.pager button.on { background: var(--ink); border-color: var(--ink); color: #F2ECDD; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 页脚 */
.footer { background: #0B1017; color: #8B92A2; padding: 56px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #D9D3C6; margin-bottom: 14px; }
.footer a { display: block; font-size: 13px; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--gold-3); }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; flex-wrap: wrap; }

/* 页面标题区 */
.page-head { padding: 40px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-head--dark { background: var(--ink); color: #EFE9DC; border-bottom: 0; margin-bottom: 0; padding: 52px 0 44px; }
.page-head--dark .lead { color: #98A0AF; }

/* 响应式 */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .asset-grid, .agent-grid, .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .detail__side { position: static; }
  .market { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 20px; }
  .filter-block { min-width: 0; }
  .report { grid-template-columns: 1fr; }
  .report__nav { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .report__nav a { border-left: 0; padding: 6px 12px; border-radius: 6px; }
  .report__nav a.on { border-left: 0; background: var(--paper-2); }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .figure-row { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .nav__links { display: none; }
  .burger { display: grid; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 66px; padding: 10px 18px 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
  }
  .agent-grid, .asset-grid, .gov-grid, .scene-grid, .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__step { padding: 0 0 26px; }
  .flow__step:not(:last-child)::after { display: none; }
  .order__body { grid-template-columns: 1fr; }
  .order__actions { border-left: 0; border-top: 1px dashed var(--line); padding: 16px 0 0; flex-direction: row; flex-wrap: wrap; }
  .split-grid { grid-template-columns: repeat(2,1fr); }
  .hero__inner { padding: 60px 0 52px; }
  .stat-grid { grid-template-columns: repeat(2,1fr) !important; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .arch__layer { grid-template-columns: 1fr; gap: 6px; }
  .figure-row { grid-template-columns: 1fr; }
  .toasts { left: 18px; right: 18px; top: 74px; }
  .toast { max-width: none; }
  .tabs { gap: 16px; overflow-x: auto; }
}

/* 工具类 */
@media (max-width: 760px) { .hide-sm { display: none !important; } }
.fade-in { animation: fade .3s var(--ease); }

/* ---------------------------------------------------------------- 图表细节 */

.ac { position: relative; }
.ac-x { display: flex; justify-content: space-between; margin-top: 8px; }
.ac-x span { font-family: var(--mono); font-size: 10.5px; color: var(--slate-2); letter-spacing: .02em; transition: color .14s; }
.ac-x span.on { color: var(--ink); font-weight: 600; }
.ac-tip {
  position: absolute; top: -6px; transform: translate(-50%, -100%);
  padding: 6px 10px; background: var(--ink); color: #F2ECDD; border-radius: 7px;
  font-size: 11px; white-space: nowrap; pointer-events: none; z-index: 5;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.5);
}
.ac-tip b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.ac-tip span { color: #9AA2B2; font-size: 10.5px; }

.bc-bars { display: flex; align-items: flex-end; gap: 6px; }
.bc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bc-bar { width: 100%; border-radius: 4px 4px 2px 2px; transition: opacity .16s, transform .16s; transform-origin: bottom; }
.bc-col:hover .bc-bar { opacity: .78; }
.bc-x { display: flex; gap: 6px; margin-top: 8px; }
.bc-x span { flex: 1; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--slate-2); }

.dn { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.dn__ring { position: relative; flex: 0 0 auto; }
.dn__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.dn__center b { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.dn__center span { font-size: 10.5px; color: var(--slate-2); }
.dn__legend { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 9px; }
.dn__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.dn__row i { width: 8px; height: 8px; border-radius: 3px; flex: 0 0 8px; }
.dn__label { color: var(--slate); }
.dn__val { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 600; }

/* ---------------------------------------------------------------- CTA 区 */

.cta-band {
  position: relative; overflow: hidden; padding: 52px 48px; border-radius: var(--r-lg);
  background: radial-gradient(680px 300px at 88% 10%, rgba(168,124,42,.30), transparent 62%), linear-gradient(145deg, #131B2B, #0C1119);
  color: #EDE7D8; display: flex; gap: 48px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 80% at 80% 20%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 80% at 80% 20%, #000, transparent);
}
.cta-band__stats { position: relative; z-index: 2; display: flex; gap: 40px; flex-wrap: wrap; }
.cta-band__stats b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 600; color: #E9D5A8; letter-spacing: -.03em; }
.cta-band__stats span { font-size: 11.5px; color: #868E9E; display: block; max-width: 130px; line-height: 1.5; margin-top: 4px; }

@media (max-width: 1080px) {
  .cta-band { padding: 40px 30px; }
}

.msg-warn {
  padding: 11px 13px; border-radius: 8px; font-size: 12.5px;
  background: var(--red-bg); border: 1px solid #F0D3CC; color: var(--red);
}
.msg-ok {
  padding: 11px 13px; border-radius: 8px; font-size: 12.5px;
  background: var(--teal-bg); border: 1px solid rgba(15,107,88,.18); color: var(--teal);
}

/* ---------------------------------------------------------------- 布局补充 */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg-note { font-size: 12.5px; color: var(--slate); line-height: 1.75; }

@media (max-width: 1080px) {
  .ws-grid, .ins-grid, .gov-risk-grid, .wallet-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field { grid-column: span 1 !important; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .order__meta { gap: 16px; }
  .tabs { padding-bottom: 2px; }
  .report .chapter h2 { font-size: 21px; }
}

/* 导航激活态（覆盖 router-link 默认） */
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav__links a.router-link-active { font-weight: 500; color: var(--slate); }
.nav__links a.router-link-active::after { display: none; }

.bc-col { position: relative; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.bc-val { font-family: var(--mono); font-size: 10px; color: var(--slate-2); text-align: center; margin-bottom: 4px; white-space: nowrap; }

.head-kpis { display: flex; gap: 32px; flex: 0 0 auto; flex-wrap: wrap; }
.head-kpis .kpi { min-width: 108px; }
.head-kpis .kpi__value { font-size: 21px; }
@media (max-width: 760px) {
  .head-kpis { gap: 20px; }
  .head-kpis .kpi { min-width: 46%; }
}

.head-kpis--dark .kpi__label { color: #7C8494; }
.head-kpis--dark .kpi__value { color: #E9D5A8; font-size: 22px; }

/* 移动端：分段控件可横向滚动，避免撑破版心 */
@media (max-width: 760px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 0 0 auto; }
  .toolbar .seg { width: 100%; }
}

/* ---------------------------------------------------------------- 架构页 */

.arch-layout { display: grid; grid-template-columns: 316px minmax(0, 1fr); gap: 40px; align-items: start; }

.layer-rail { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 4px; }
.layer-rail__hint { padding: 0 0 10px 2px; }
.layer-rail__foot { margin-top: 14px; padding: 14px; border-top: 1px solid var(--line); }

.layer-item {
  position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 12px 14px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; text-align: left; cursor: pointer;
  transition: background .16s, border-color .16s, transform .16s;
}
.layer-item:hover { background: #fff; border-color: var(--line); }
.layer-item.on { background: #fff; border-color: var(--gold-3); box-shadow: 0 10px 24px -18px rgba(20,24,33,.35); }
.layer-item.on::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px;
  background: var(--gold); border-radius: 2px;
}
.layer-item__code {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--slate-2);
  padding-top: 2px; flex: 0 0 22px;
}
.layer-item.on .layer-item__code { color: var(--gold); }
.layer-item__body { flex: 1; min-width: 0; }
.layer-item__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); letter-spacing: -.01em; }
.layer-item.on .layer-item__name { color: var(--ink); }
.layer-item__role { display: block; font-size: 11.5px; color: var(--slate-2); line-height: 1.5; margin-top: 3px; }
.layer-item__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line); margin-top: 7px; flex: 0 0 5px; }
.layer-item.on .layer-item__dot { background: var(--gold-2); }

.layer-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px 28px; box-shadow: var(--shadow-1);
}
.layer-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.layer-code-big {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ink); color: var(--gold-3); font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
}
.layer-panel__apis { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.layer-panel__desc { font-size: 13.5px; color: var(--slate); line-height: 1.85; margin-top: 16px; max-width: 820px; }

.layer-stats { grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 22px; }
.layer-stats .kpi__value { font-size: 21px; }
.layer-body { margin-top: 22px; }

.mech-list { display: flex; flex-direction: column; gap: 10px; }
.mech-item {
  display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px;
  padding: 10px 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line-2);
}
.mech-item__no { font-family: var(--mono); font-size: 10.5px; color: var(--gold-2); padding-top: 3px; }

.code-map {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px;
  padding: 16px 18px; background: var(--ink); border-radius: 10px;
}
.code-map .xs.dim { color: #7A8292; }
.code-pill {
  font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 5px;
  background: rgba(255,255,255,.06); color: #C9CFDA; border: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1080px) {
  .arch-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .layer-rail { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .layer-rail__hint, .layer-rail__foot { display: none; }
  .layer-item { min-width: 208px; border-color: var(--line); background: #fff; }
  .layer-item.on::before { display: none; }
  .layer-stats { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  .layer-panel { padding: 20px 18px; }
  .code-map { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .layer-stats { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

/* 柱状图：限制单柱宽度，避免少量柱子过宽 */
.bc-bar { max-width: 72px; margin: 0 auto; }

/* 表格：表头与数字列不换行；紧凑模式 */
.table th { white-space: nowrap; }
.table .num { white-space: nowrap; }
.table--dense th, .table--dense td { padding-left: 10px; padding-right: 10px; }
.table--dense td:first-child, .table--dense th:first-child { padding-left: 20px; }
.table--dense td:last-child, .table--dense th:last-child { padding-right: 20px; }

/* ---------------------------------------------------------------- 运行台 */

.run-form .textarea { min-height: 84px; }
.run-tips { padding: 12px 14px; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; }

.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.run-meter { display: flex; gap: 22px; flex-wrap: wrap; }
.run-meter__row { display: flex; flex-direction: column; gap: 1px; }
.run-meter__row span { font-size: 10.5px; color: var(--slate-2); letter-spacing: .04em; }
.run-meter__row b { font-size: 14px; font-weight: 600; }

.run-progress { margin-top: 18px; }
.run-progress__bar { height: 4px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.run-progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, #E9D5A8, #A87C2A); border-radius: 3px; transition: width .4s var(--ease); }
.run-progress__meta { display: flex; justify-content: space-between; margin-top: 6px; }

.run-routing { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; margin-top: 16px; }
.run-routing__col { background: var(--paper); padding: 12px 14px; }

.run-steps { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.run-step { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.run-step:last-child { border-bottom: 0; }
.run-step__dot {
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--slate-2); margin-top: 1px;
}
.run-step.is-done .run-step__dot { background: var(--teal-bg); color: var(--teal); }
.run-step.is-failed .run-step__dot { background: var(--red-bg); color: var(--red); }
.run-step.is-skipped .run-step__dot { background: var(--paper-2); color: var(--slate-2); opacity: .6; }
.run-step.is-running .run-step__dot { background: var(--gold-bg); }

.run-spin {
  width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--gold-3);
  border-top-color: var(--gold); animation: rtspin .7s linear infinite;
}
@keyframes rtspin { to { transform: rotate(360deg) } }

.run-output {
  margin-top: 18px; padding: 14px 16px; background: var(--teal-bg);
  border: 1px solid rgba(15,107,88,.16); border-radius: 9px;
}

.interop-list { display: flex; flex-direction: column; gap: 6px; }
.interop-item { display: flex; flex-direction: column; }
.interop-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 7px;
  cursor: pointer; transition: background .16s var(--ease);
}
.interop-row:hover { background: var(--paper-2); }
.interop-row.is-open { border-radius: 7px 7px 0 0; border-bottom-color: transparent; }
.interop-detail {
  padding: 12px; background: var(--paper-2);
  border: 1px solid var(--line-2); border-top: 0; border-radius: 0 0 7px 7px;
}
.interop-kv { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.interop-payload { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.interop-detail__pre {
  margin: 4px 0 0; padding: 8px 10px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--slate);
  max-height: 160px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}

@media (max-width: 760px) {
  .run-routing { grid-template-columns: minmax(0,1fr); }
  .run-head { gap: 14px; }
  .run-meter { gap: 16px; }
  .interop-row { flex-wrap: wrap; gap: 6px 10px; }
  .interop-kv, .interop-payload { grid-template-columns: minmax(0,1fr); }
}

/* ---------------------------------------------------------------- 常驻对话窗口 */

.chat-shell {
  display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 16px;
  height: calc(100vh - 210px); min-height: 520px; max-width: 1280px;
}
.chat-side, .chat-main {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  min-height: 0; overflow: hidden; display: flex; flex-direction: column;
}
.chat-side__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.chat-side__list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }
.chat-side__empty { padding: 18px 12px; line-height: 1.8; }
.chat-side__foot { padding: 10px 14px; border-top: 1px solid var(--line-2); }
.chat-session {
  width: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 11px 10px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--ink); cursor: pointer; transition: background .16s var(--ease);
}
.chat-session:hover { background: var(--paper-2); }
.chat-session.on { background: var(--gold-bg); border-color: var(--gold-3); }
.chat-session__more { color: var(--slate-2); font-size: 16px; padding: 0 4px; line-height: 1; }
.chat-session__more:hover { color: var(--gold); }

.chat-main__head {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid var(--line-2); background: var(--paper);
}
.chat-main__meta { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.chat-back { display: none; }
.chat-stream {
  flex: 1; min-height: 0; overflow-y: auto; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 18px; background: var(--paper);
}
.chat-welcome { margin: auto; text-align: center; padding: 30px 16px; }
.chat-msg { display: flex; gap: 12px; max-width: 86%; }
.chat-msg.is-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg__avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff; background: var(--gold);
}
.chat-msg__avatar.is-assistant { background: var(--teal); }
.chat-msg__body { min-width: 0; }
.chat-msg__meta {
  display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--slate-2);
  margin-bottom: 6px;
}
.chat-msg.is-user .chat-msg__meta { justify-content: flex-end; }
.chat-msg__bubble {
  padding: 11px 15px; border-radius: 12px 12px 12px 3px; background: var(--card);
  border: 1px solid var(--line); font-size: 13.5px; line-height: 1.8;
  color: var(--ink-3); white-space: pre-wrap; word-break: break-word;
}
.chat-msg.is-user .chat-msg__bubble {
  background: var(--gold); border-color: var(--gold); color: #2B2210;
  border-radius: 12px 12px 3px 12px;
}
.chat-msg__foot { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.chat-msg__typing { color: var(--slate); font-style: italic; }
.chat-dots { display: inline-flex; gap: 3px; margin-left: 6px; }
.chat-dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
  animation: chatblink 1.2s infinite ease-in-out;
}
.chat-dots i:nth-child(2) { animation-delay: .2s; }
.chat-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes chatblink { 0%,80%,100% { opacity:.25 } 40% { opacity:1 } }

.chat-compose { padding: 12px 18px 14px; border-top: 1px solid var(--line-2); background: var(--card); }
.chat-compose__box {
  display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.chat-compose__box:focus-within { border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(199,154,60,.12); }
.chat-compose__input {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-family: inherit; font-size: 13.5px; line-height: 1.7;
  max-height: 140px; padding: 4px 0;
}
.chat-compose__send { flex: 0 0 auto; }
.chat-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.chat-picker__item {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--paper); color: var(--ink); cursor: pointer; transition: all .16s var(--ease);
}
.chat-picker__item:hover { border-color: var(--gold-3); background: var(--gold-bg); }

@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 270px minmax(0,1fr); }
  .chat-picker { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .chat-shell {
    grid-template-columns: minmax(0,1fr); height: calc(100vh - 168px); min-height: 460px;
    padding-left: 12px; padding-right: 12px;
  }
  .chat-shell .is-mobile-hidden { display: none; }
  .chat-back { display: inline-flex; }
  .chat-main__meta span { display: none; }
  .chat-stream { padding: 16px 14px; }
  .chat-msg { max-width: 94%; }
  .chat-compose { padding: 10px 12px 12px; }
}

/* ---------------------------------------------------------------- 智能体工坊 */

.ws-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tabs button {
  height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--slate); font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .16s var(--ease);
}
.ws-tabs button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.ws-tabs button.on {
  background: var(--card); color: var(--ink); border-color: var(--line);
  box-shadow: 0 1px 3px rgba(20,24,33,.08);
}

.ws-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 20px; align-items: start; }
.ws-section-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
}

.check-row, .check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.check-row:last-child, .check-item:last-child { border-bottom: 0; }
.check-ok { color: var(--teal); font-weight: 700; }
.check-no { color: var(--red); font-weight: 700; }
.check-item > span:first-child { width: 18px; flex: 0 0 18px; }
.check-item b { font-weight: 600; }

.flow-canvas { display: flex; flex-direction: column; gap: 0; }
.flow-node {
  position: relative; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-1);
}
.flow-node + .flow-node { margin-top: 18px; }
.flow-node + .flow-node::before {
  content: ""; position: absolute; left: 26px; top: -18px; width: 1px; height: 18px;
  background: var(--line);
}
.flow-node + .flow-node::after {
  content: ""; position: absolute; left: 23px; top: -5px; width: 7px; height: 7px;
  border-right: 1px solid var(--slate-2); border-bottom: 1px solid var(--slate-2);
  transform: rotate(45deg); background: var(--card);
}
.flow-node.fn--trigger { border-left: 3px solid var(--teal); }
.flow-node.fn--model { border-left: 3px solid var(--blue); }
.flow-node.fn--tool { border-left: 3px solid var(--gold); }
.flow-node.fn--validate { border-left: 3px solid var(--moss); }
.flow-node.fn--human_review { border-left: 3px solid var(--red); }
.flow-node.fn--output { border-left: 3px solid var(--clay); }

.issue-row { font-size: 12.5px; color: var(--red); padding: 5px 0; border-bottom: 1px dashed var(--line-2); }
.case-table { display: flex; flex-direction: column; gap: 8px; }
.case-row { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); }
.eval-row, .release-row { padding: 11px 0; border-bottom: 1px dashed var(--line-2); cursor: pointer; }
.eval-row:hover { background: var(--paper); }
.eval-row:last-child, .release-row:last-child { border-bottom: 0; }

@media (max-width: 980px) {
  .ws-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .ws-tabs button { padding: 0 12px; }
  .ws-layout > *, .ws-layout .panel { min-width: 0; }
  .ws-layout .panel__head { flex-wrap: wrap; }
  .ws-layout .panel__head .select { width: 100%; max-width: none !important; }
  .ws-layout .panel__body { padding: 16px; min-width: 0; }
  .ws-layout .panel__body .row > .input,
  .ws-layout .panel__body .row > .select { flex: 1 1 100%; min-width: 0; max-width: none !important; }
  .flow-node { padding: 12px; min-width: 0; }
  .flow-node .btn--sm { padding: 0 8px; }
  .flow-node .row { min-width: 0; gap: 6px; }
  .flow-node .row > .btn { flex: 0 0 auto; }
  .stat-grid[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .gov-model-grid { grid-template-columns: minmax(0,1fr) !important; }
}
