/* ==========================================================================
   AI Agent Guide — Design System v2
   --------------------------------------------------------------------------
   目标气质：Global · American enterprise software · Editorially clean ·
   Sophisticated · Neutral · Trustworthy · Expensive-looking · Data-driven.

   相对 v1 的设计决策：
   1. 字体：Inter Variable（可变字重，自托管，无第三方请求，无外部 CDN 依赖）。
      去掉偏窄、偏粗、偏"科技感"的字重；标题用 600 而非 700/800，靠字号与
      字距建立层次，而不是靠加粗。
   2. 颜色：白 / 暖白为主，文字用近黑（#0A0A0B）而非纯黑。单一克制强调色
      （松墨绿 teal-petrol）——刻意避开蓝紫 AI 渐变、霓虹与发光效果。
      语义色（绿/琥珀/中性）只服务于证据强度，绝不用于装饰。
   3. 边界：减少边框、阴影、胶囊与容器。默认状态几乎无阴影；卡片仅用 1px
      发丝线 + 12px 圆角。信息分组优先用留白与发丝线，而不是套盒子。
   4. 排版：大标题更紧凑（负字距）、行距更舒展；正文 16px / 1.65 保证可读性。
   5. 赞助区：用结构与标签区分（暖灰面板 + 明确 Sponsored 标记），
      不靠第二个高饱和强调色，保持"全站只有一个强调色"的纪律。

   不变的东西：全部 class 名、数据结构、路由、内容逻辑、赞助逻辑、证据分级。
   ========================================================================== */

/* ---------- 1. 字体（自托管 Inter Variable） ------------------------------ */
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Tokens ---------------------------------------------------- */
:root {
  /* 中性：近黑文字（不用纯黑），冷调中性灰阶，容器边界极浅 */
  --c-ink-900: #0A0A0B;
  --c-ink-800: #17171A;
  --c-ink-700: #33333A;
  --c-ink-600: #55555F;
  --c-ink-500: #74747F;
  --c-ink-400: #9A9AA4;
  --c-ink-300: #C5C5CD;
  --c-ink-200: #E4E4E9;
  --c-ink-150: #EDEDF1;
  --c-ink-100: #F1F1F4;
  --c-ink-50:  #F7F7F9;
  --c-ink-25:  #FBFBFC;
  --c-white:   #FFFFFF;

  /* 唯一强调色：松墨绿。低饱和、克制、非"AI 蓝紫"。
     只用于交互、焦点、选中态与极少量品牌标记。 */
  --c-accent-700: #0B4A46;
  --c-accent-600: #0E5A55;
  --c-accent-500: #12706A;
  --c-accent-100: #D3EAE7;
  --c-accent-50:  #EEF7F6;

  /* 语义色：只服务证据强度与比较状态 */
  --c-pos-600: #15803D;
  --c-pos-100: #E8F4EC;
  --c-warn-600: #9A6207;
  --c-warn-100: #FBF3E0;
  --c-neg-600: #B42318;
  --c-neg-100: #FBEBE9;
  --c-unknown-600: #5F5F6B;
  --c-unknown-100: #EFEFF3;

  /* 赞助区：中性暖灰，不引入第二个强调色，用结构与标签区分 */
  --c-sponsored-ink: #6B6255;
  --c-sponsored-line: #E7E2D8;
  --c-sponsored-bg: #FAF9F6;

  /* 间距：8px 基数，节奏比 v1 更松 */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* 圆角：方正克制，避免消费级糖果感 */
  --r-sm: 5px; --r-md: 8px; --r-lg: 12px;

  /* 阴影：只给浮动元素用（搜索面板、对比托盘、悬停） */
  --sh-xs: 0 1px 2px rgba(10,10,11,.04);
  --sh-sm: 0 1px 2px rgba(10,10,11,.05), 0 1px 1px rgba(10,10,11,.03);
  --sh-md: 0 4px 14px rgba(10,10,11,.07), 0 1px 2px rgba(10,10,11,.04);
  --sh-lg: 0 16px 40px rgba(10,10,11,.10), 0 2px 6px rgba(10,10,11,.04);

  --font-sans: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --maxw: 1240px;
  --maxw-text: 70ch;
  --header-h: 64px;
}

/* ---------- 3. Reset & 基础排版 ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink-700);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4 {
  margin: 0 0 var(--s-3);
  color: var(--c-ink-900);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -.028em; line-height: 1.08; }
h2 { font-size: clamp(22px, 2.1vw, 27px); letter-spacing: -.02em; }
h3 { font-size: 16.5px; letter-spacing: -.012em; }
h4 { font-size: 15px; letter-spacing: -.008em; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 22px; }
li { margin-bottom: var(--s-2); }
strong { font-weight: 600; color: var(--c-ink-900); }

:focus-visible { outline: 2px solid var(--c-accent-500); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 4. 布局 -------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-6); }
.wrap-narrow { max-width: 760px; }
.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-8) 0; }
.section-head { margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-3); }
.lede {
  font-size: 18px; line-height: 1.6; color: var(--c-ink-600);
  max-width: var(--maxw-text); margin: 0; text-wrap: pretty;
}
.muted { color: var(--c-ink-500); }
.small { font-size: 13.5px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.section-alt { background: var(--c-ink-25); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
/* Grid 子项默认 min-width:auto，会被 min-content 撑破轨道，造成移动端横向溢出。 */
.grid-2 > *, .grid-3 > *, .grid-4 > *,
.agent-grid > *, .quick-facts > *, .vendor-facts > *,
.footer-grid > *, .detail-layout > *, .discover > *,
.custom-grid > *, .cap-grid > *, .role-list > * { min-width: 0; }

/* ---------- 5. Header / Nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-ink-150);
}
.header-inner { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--c-ink-900); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 12.5px; letter-spacing: -.01em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 14.5px; font-weight: 600; color: var(--c-ink-900); letter-spacing: -.014em; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--c-ink-500); letter-spacing: -.002em; }
.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a {
  padding: 6px 0; color: var(--c-ink-600); font-size: 14px; font-weight: 450;
  white-space: nowrap; border-bottom: 1.5px solid transparent;
}
.nav a:hover { color: var(--c-ink-900); text-decoration: none; border-bottom-color: var(--c-ink-300); }
.nav a[aria-current="page"] { color: var(--c-ink-900); font-weight: 550; border-bottom-color: var(--c-ink-900); }
.header-cta { display: flex; gap: var(--s-2); align-items: center; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--c-ink-200);
  border-radius: var(--r-md); width: 36px; height: 34px; cursor: pointer; font-size: 15px; color: var(--c-ink-700);
}

/* ---------- 6. 按钮 ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 36px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--c-ink-200);
  background: var(--c-white); color: var(--c-ink-800);
  font-size: 14px; font-weight: 500; font-family: inherit; letter-spacing: -.006em;
  cursor: pointer; white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { background: var(--c-ink-25); border-color: var(--c-ink-300); text-decoration: none; }
.btn-primary { background: var(--c-ink-900); border-color: var(--c-ink-900); color: #fff; }
.btn-primary:hover { background: #232328; border-color: #232328; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--c-ink-600); }
.btn-ghost:hover { background: var(--c-ink-100); border-color: transparent; color: var(--c-ink-900); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: var(--r-sm); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 7. 卡片 ------------------------------------------------------- */
.card {
  background: var(--c-white); border: 1px solid var(--c-ink-150);
  border-radius: var(--r-lg); padding: var(--s-5);
}
.card-flat { box-shadow: none; }
.card-hover { transition: border-color .14s ease, box-shadow .14s ease; }
.card-hover:hover { border-color: var(--c-ink-300); box-shadow: var(--sh-sm); }
.card-title { font-size: 16px; margin-bottom: var(--s-2); }
.card-meta { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-3); }
.card-foot { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--c-ink-150); }

/* ---------- 8. Agent 卡片 ------------------------------------------------ */
.agent-card {
  display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--c-ink-150);
  border-radius: var(--r-lg); padding: var(--s-5);
  height: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.agent-card:hover { border-color: var(--c-ink-300); box-shadow: var(--sh-sm); }
.agent-card-top { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-4); }
.agent-logo {
  width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0;
  display: grid; place-items: center; font-weight: 600; font-size: 12.5px;
  background: var(--c-ink-100); color: var(--c-ink-700); letter-spacing: -.01em;
}
.agent-logo-lg { width: 52px; height: 52px; font-size: 16px; border-radius: var(--r-lg); }
.agent-name { font-size: 15.5px; font-weight: 600; color: var(--c-ink-900); margin: 0 0 3px; letter-spacing: -.014em; }
.agent-name a { color: inherit; }
.agent-name a:hover { color: var(--c-accent-700); text-decoration: none; }
.agent-vendor { font-size: 12.5px; color: var(--c-ink-500); margin: 0; line-height: 1.5; }
.agent-tagline { font-size: 13.5px; color: var(--c-ink-600); line-height: 1.6; margin: var(--s-3) 0 var(--s-4); }
.agent-facts {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  margin-bottom: var(--s-4); font-size: 12.5px;
}
.fact { display: flex; align-items: baseline; gap: 5px; color: var(--c-ink-600); }
.fact-label { color: var(--c-ink-400); }
.fact-val { font-weight: 550; color: var(--c-ink-800); }
.agent-tasks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.agent-actions {
  margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--c-ink-150);
  display: flex; gap: var(--s-2); flex-wrap: wrap;
}

/* ---------- 9. 标签与证据状态 --------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 500; line-height: 1.55;
  background: var(--c-ink-100); color: var(--c-ink-600); border: 1px solid transparent;
  white-space: nowrap;
}
.tag-task { background: var(--c-accent-50); color: var(--c-accent-700); border-color: var(--c-accent-100); }
/* 行业标签：中性描边，不与"任务"标签争抢注意力层级。 */
.tag-industry { background: transparent; border-color: var(--c-ink-200); color: var(--c-ink-600); }
.tag-industry:hover { border-color: var(--c-ink-400); color: var(--c-ink-900); text-decoration: none; }
.tag-industry-secondary { background: transparent; border-color: var(--c-ink-150); color: var(--c-ink-400); }
/* 目录对象类型标记：平台与方案必须一眼可辨，否则会被当成成品 Agent 比较。 */
.tag-catalog { font-size: 11px; font-weight: 600; letter-spacing: .01em; background: var(--c-ink-900); color: var(--c-white); border-color: var(--c-ink-900); }
.tag-catalog-solution { background: transparent; color: var(--c-ink-700); border-color: var(--c-ink-400); }
.tag-outline { background: transparent; border-color: var(--c-ink-200); color: var(--c-ink-600); }
/* 长句型标签必须能换行，否则移动端撑破布局。 */
.tag-long { white-space: normal; max-width: 100%; }

/* 证据状态：颜色 + 形状双编码，色觉障碍下同样可读 */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: var(--r-sm);
  font-size: 11.5px; font-weight: 550; line-height: 1.55; white-space: nowrap;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-verified { background: var(--c-pos-100); color: var(--c-pos-600); }
.status-verified::before { background: var(--c-pos-600); }
.status-confirmed { background: var(--c-unknown-100); color: var(--c-accent-700); }
.status-confirmed::before { background: var(--c-accent-600); border-radius: 1px; }
.status-claimed { background: var(--c-warn-100); color: var(--c-warn-600); }
.status-claimed::before { background: transparent; border: 1.5px solid var(--c-warn-600); width: 6px; height: 6px; }
.status-unconfirmed { background: var(--c-unknown-100); color: var(--c-unknown-600); }
.status-unconfirmed::before { background: var(--c-ink-400); }

/* 比较维度状态：明确区分"不支持"与"未知" */
.cstate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.cstate::before { content: ''; width: 7px; height: 7px; border-radius: 1px; flex-shrink: 0; }
.cstate-pos { color: var(--c-pos-600); } .cstate-pos::before { background: var(--c-pos-600); }
.cstate-warn { color: var(--c-warn-600); } .cstate-warn::before { background: var(--c-warn-600); }
.cstate-neg { color: var(--c-neg-600); } .cstate-neg::before { background: var(--c-neg-600); }
.cstate-unknown { color: var(--c-unknown-600); } .cstate-unknown::before { background: transparent; border: 1.5px dashed var(--c-ink-400); }
.cstate-muted { color: var(--c-ink-400); } .cstate-muted::before { background: var(--c-ink-300); }

.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.rating-stars { color: var(--c-warn-600); letter-spacing: -.5px; }
.rating-none { color: var(--c-ink-400); font-style: italic; font-size: 12.5px; }

/* ---------- 10. 赞助区（结构区分，不靠第二个强调色） ---------------------- */
.sponsored-block {
  border: 1px solid var(--c-sponsored-line); border-radius: var(--r-lg);
  background: var(--c-sponsored-bg); padding: var(--s-5);
}
.sponsored-head {
  display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4);
  font-size: 11.5px; font-weight: 600; color: var(--c-sponsored-ink);
  text-transform: uppercase; letter-spacing: .08em;
}
.sponsored-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-sm);
  border: 1px solid var(--c-sponsored-line); background: var(--c-white);
  color: var(--c-sponsored-ink); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.sponsored-note { font-size: 12.5px; color: var(--c-ink-500); margin: var(--s-4) 0 0; line-height: 1.6; }
.sponsored-zone { margin-bottom: var(--s-7); }
.sponsored-entity-type {
  font-size: 11.5px; font-weight: 500; color: var(--c-ink-400);
  text-transform: none; letter-spacing: 0;
}
.sponsored-entity { display: flex; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.sponsored-headline {
  font-size: 19px; margin: 0 0 var(--s-2); font-weight: 600;
  letter-spacing: -.02em; color: var(--c-ink-900);
}
.sponsored-text { font-size: 14.5px; color: var(--c-ink-600); margin: 0 0 var(--s-4); max-width: 72ch; }
.agent-logo-sm { width: 32px; height: 32px; font-size: 11.5px; flex: none; }

/* ---------- 11. 供货关系（原厂 vs 方案商） -------------------------------- */
/* 这两行必须有明确不同的视觉层级：读者一眼能分清"谁做的"和"谁能落地" */
.supply-block { margin-top: var(--s-2); display: flex; flex-direction: column; gap: 7px; }
.supply-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.rel-label {
  display: inline-block; min-width: 148px; font-size: 10.5px; font-weight: 600;
  color: var(--c-ink-400); text-transform: uppercase; letter-spacing: .07em;
}
.rel-label-sol { color: var(--c-accent-700); }
.agent-vendor .rel-label { min-width: 0; margin-right: 2px; }
.agent-solution { margin-top: 7px; }

.rel-block { border-top: 1px solid var(--c-ink-150); padding-top: var(--s-4); margin-bottom: var(--s-5); }
.rel-arrow { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-size: 16px; }
.rel-company { font-weight: 600; }
.rel-symbol { color: var(--c-ink-300); }
.tag-rel { background: var(--c-accent-50); color: var(--c-accent-700); border-color: var(--c-accent-100); }

/* ---------- 12. Agent 类型标记 ------------------------------------------- */
.tag-type { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.tag-type-general-purpose { background: var(--c-accent-50); color: var(--c-accent-700); border-color: var(--c-accent-100); }
.tag-type-custom { background: var(--c-ink-900); color: var(--c-white); border-color: var(--c-ink-900); }
.tag-type-specialized { background: var(--c-ink-100); color: var(--c-ink-600); border-color: var(--c-ink-200); }
.tag-role { background: var(--c-ink-100); color: var(--c-ink-700); }

/* ---------- 13. 定制方案区块 ---------------------------------------------- */
.custom-block {
  border: 1px solid var(--c-accent-100); border-radius: var(--r-lg);
  background: var(--c-accent-50); padding: var(--s-5); margin-bottom: var(--s-7);
}
.custom-head { margin-bottom: var(--s-5); display: flex; flex-direction: column; gap: 5px; }
.custom-head strong { font-size: 15px; color: var(--c-ink-900); }
.custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-5); }
.custom-item { border-top: 1px solid var(--c-accent-100); padding-top: var(--s-3); }
.custom-label {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-accent-700); margin-bottom: 5px;
}
.custom-value { font-weight: 600; margin-bottom: 5px; color: var(--c-ink-900); }

/* ---------- 14. 公司页 ---------------------------------------------------- */
.role-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.role-item { padding: var(--s-4) 0; border-bottom: 1px solid var(--c-ink-150); }
.role-item:last-child { border-bottom: 0; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s-5); margin-top: var(--s-4); }
.cap-item { border-top: 1px solid var(--c-ink-150); padding-top: var(--s-3); }
.cap-item strong { display: block; text-transform: capitalize; margin-bottom: 4px; }
.callout { border-radius: var(--r-lg); padding: var(--s-5); font-size: 14.5px; line-height: 1.65; }
.callout strong { display: block; margin-bottom: 4px; }
.callout-info { background: var(--c-ink-25); border: 1px solid var(--c-ink-150); color: var(--c-ink-700); }
.callout-note {
  background: var(--c-ink-25); border: 1px solid var(--c-ink-150);
  border-left: 2px solid var(--c-ink-300); color: var(--c-ink-600);
}
.callout-note strong { color: var(--c-ink-900); }
.fact-flag { color: var(--c-accent-700); font-weight: 600; }
.panel { margin-bottom: var(--s-8); }
.panel h2 { font-size: 21px; margin-bottom: var(--s-2); }
.section-title-sm { font-size: 17px; margin: 0; }

/* ---------- 15. Hero 与搜索（产品级主交互） ------------------------------ */
/* 桌面两列：左文右搜索。搜索是这一页的主产品动作，把它放在右栏的视觉
   重心上，比通栏一条输入框更像一个成熟产品，而不是一个落地页表单。 */
.hero {
  padding: var(--s-9) 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-ink-150);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--s-9); align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 3.9vw, 52px); max-width: 19ch;
  margin-bottom: var(--s-5); letter-spacing: -.034em; line-height: 1.05;
}
.hero .lede { font-size: 17.5px; max-width: 54ch; color: var(--c-ink-600); margin-bottom: 0; }
.search-panel {
  background: var(--c-white); border: 1px solid var(--c-ink-200);
  border-radius: var(--r-lg); box-shadow: var(--sh-md);
  padding: var(--s-4);
}
.search-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--c-ink-500);
  margin: 0 0 var(--s-2) var(--s-3); text-transform: uppercase; letter-spacing: .07em;
}
.search-row { display: flex; gap: var(--s-2); }
.search-input {
  flex: 1; height: 52px; padding: 0 var(--s-4); font-size: 16px; font-family: inherit;
  border: 1px solid transparent; border-radius: var(--r-md); color: var(--c-ink-900);
  background: var(--c-ink-25); min-width: 0; letter-spacing: -.008em;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.search-input::placeholder { color: var(--c-ink-400); }
.search-input:hover { background: var(--c-ink-100); }
.search-input:focus {
  background: var(--c-white); border-color: var(--c-accent-500); outline: none;
  box-shadow: 0 0 0 3px var(--c-accent-50);
}
.search-row .btn { height: 52px; padding: 0 24px; font-size: 15px; }
.search-examples {
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid var(--c-ink-150);
  font-size: 13px; color: var(--c-ink-500);
}
.search-examples > span {
  display: block; margin-bottom: var(--s-2);
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-ink-400);
}
.search-examples a {
  display: inline-block; margin: 0 var(--s-4) var(--s-2) 0; padding: 0;
  background: none; border: 0; color: var(--c-ink-600); font-size: 13px;
  border-bottom: 1px solid var(--c-ink-200);
}
.search-examples a:hover { color: var(--c-ink-900); border-bottom-color: var(--c-ink-500); text-decoration: none; }

/* 功能入口：去卡片化，用发丝线 + 大字排版，像编辑版的功能索引 */
.tile {
  display: block; padding: var(--s-4) 0 0; background: none;
  border: 0; border-top: 1px solid var(--c-ink-200);
  text-decoration: none; height: 100%;
  transition: border-color .14s ease;
}
.tile:hover { border-top-color: var(--c-ink-900); text-decoration: none; }
/* 入口标记：不再用 Unicode 几何字符（▸ ◧ ◨ ◩ ⬒）——它们在不同字体下
   字形不稳定，视觉上偏廉价。这里用 CSS 画一个极简的 12px 方点。 */
.tile-icon {
  width: 8px; height: 8px; border-radius: 2px; background: var(--c-ink-900);
  display: block; margin-bottom: var(--s-4); font-size: 0; line-height: 0;
}
.tile-title { font-size: 15px; font-weight: 600; color: var(--c-ink-900); margin-bottom: 5px; letter-spacing: -.012em; }
.tile-desc { font-size: 13.5px; color: var(--c-ink-500); line-height: 1.6; margin: 0; }
.task-tile { display: flex; flex-direction: column; gap: var(--s-2); }
.task-count { font-size: 12.5px; color: var(--c-ink-400); font-variant-numeric: tabular-nums; }

/* ---------- 16. 发现页 ---------------------------------------------------- */
.discover { display: grid; grid-template-columns: 284px 1fr; gap: var(--s-8); align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + var(--s-5));
  padding-right: var(--s-5); border-right: 1px solid var(--c-ink-150);
  max-height: calc(100vh - var(--header-h) - var(--s-6)); overflow-y: auto;
  /* 细滚动条：原生滚动条在桌面端太重，会破坏整页的克制感。 */
  scrollbar-width: thin; scrollbar-color: var(--c-ink-200) transparent;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters::-webkit-scrollbar-thumb {
  background: var(--c-ink-200); border-radius: 3px;
}
.filters::-webkit-scrollbar-thumb:hover { background: var(--c-ink-300); }
.filters h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--c-ink-400); margin-bottom: var(--s-4); font-weight: 600;
}
.filter-group { border-top: 1px solid var(--c-ink-150); padding: var(--s-4) 0; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > summary {
  font-size: 13.5px; font-weight: 600; color: var(--c-ink-800); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  padding: 2px 0; letter-spacing: -.006em;
}
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after { content: '+'; color: var(--c-ink-400); font-weight: 400; font-size: 14px; }
.filter-group[open] > summary::after { content: '−'; }
.check {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 4px 0; font-size: 13.5px; color: var(--c-ink-600); cursor: pointer;
}
.check:hover { color: var(--c-ink-900); }
.check input { width: 14px; height: 14px; accent-color: var(--c-accent-600); cursor: pointer; flex-shrink: 0; }
.check-name { flex: 1; }
.check-count { font-size: 11.5px; color: var(--c-ink-400); font-variant-numeric: tabular-nums; }
.results-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap;
}
.results-count { font-size: 14px; color: var(--c-ink-500); margin: 0; }
.results-count strong { color: var(--c-ink-900); font-size: 17px; font-weight: 600; }
.agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.active-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-5); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  background: var(--c-white); border: 1px solid var(--c-ink-200);
  border-radius: var(--r-sm); font-size: 12.5px; color: var(--c-ink-700);
}
.chip a { color: var(--c-ink-400); text-decoration: none; font-weight: 600; }
.chip a:hover { color: var(--c-neg-600); }

/* ---------- 17. 空状态 / 占位说明 ----------------------------------------- */
.empty { padding: var(--s-9) var(--s-5); text-align: center; border-top: 1px solid var(--c-ink-150); }
.empty h3 { margin-bottom: var(--s-2); }
.empty p { color: var(--c-ink-500); max-width: 52ch; margin: 0 auto var(--s-5); font-size: 14.5px; }
.placeholder-note {
  padding: var(--s-5); background: var(--c-ink-25); border-left: 2px solid var(--c-ink-300);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 14px; color: var(--c-ink-600); line-height: 1.65;
}
.placeholder-note strong { color: var(--c-ink-900); }

/* ---------- 18. Agent 详情页（三层渐进披露） ------------------------------ */
.detail-hero { padding: var(--s-7) 0 var(--s-6); background: var(--c-ink-25); border-bottom: 1px solid var(--c-ink-150); }
.detail-top { display: flex; gap: var(--s-4); align-items: flex-start; margin-bottom: var(--s-5); }
.detail-top h1 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: var(--s-3); letter-spacing: -.03em; }
.detail-tagline { font-size: 16.5px; color: var(--c-ink-600); line-height: 1.6; max-width: 68ch; margin-bottom: var(--s-5); }
.detail-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-6) 0; }
.quick-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--c-ink-200); border-bottom: 1px solid var(--c-ink-200);
  margin-top: var(--s-5);
}
.quick-fact { padding: var(--s-4) var(--s-5); border-left: 1px solid var(--c-ink-200); }
.quick-fact:first-child { border-left: 0; padding-left: 0; }
.quick-fact-label {
  font-size: 11px; color: var(--c-ink-400); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .07em; font-weight: 600;
}
.quick-fact-value { font-size: 14.5px; font-weight: 600; color: var(--c-ink-900); margin-bottom: 6px; }

.level-head {
  display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-ink-150);
}
.level-badge {
  width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--c-ink-900); color: #fff;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 600; flex-shrink: 0;
}
.level-sub { font-size: 13px; color: var(--c-ink-400); margin-left: auto; }
.detail-section { margin-bottom: var(--s-9); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--s-8); align-items: start; }
.side .panel-sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.kv {
  display: flex; justify-content: space-between; gap: var(--s-3); padding: 9px 0;
  border-bottom: 1px solid var(--c-ink-150); font-size: 13px;
}
.kv:last-child { border-bottom: 0; }
.def-list { display: grid; grid-template-columns: 180px 1fr; gap: var(--s-3) var(--s-5); font-size: 14.5px; }
.def-list dt { color: var(--c-ink-500); font-size: 13.5px; }
.def-list dd { margin: 0; color: var(--c-ink-800); }
.bullet-list { display: grid; gap: var(--s-2); }
.bullet-item { display: flex; gap: var(--s-2); font-size: 14.5px; color: var(--c-ink-700); }
.bullet-item::before { content: '—'; color: var(--c-ink-300); flex-shrink: 0; }

/* Level 3 折叠 */
details.acc { border-bottom: 1px solid var(--c-ink-150); margin-bottom: 0; background: var(--c-white); }
details.acc > summary {
  padding: var(--s-4) 0; cursor: pointer; font-weight: 600; font-size: 14.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  color: var(--c-ink-900); letter-spacing: -.008em;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '+'; color: var(--c-ink-400); font-size: 16px; font-weight: 400; }
details.acc[open] > summary::after { content: '−'; }
details.acc > summary:hover { color: var(--c-accent-700); }
.acc-body {
  padding: 0 0 var(--s-5); font-size: 14.5px; color: var(--c-ink-700); line-height: 1.7;
  max-width: 76ch;
}
.acc-meta { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); flex-wrap: wrap; }

.source-item { padding: var(--s-3) 0; border-top: 1px solid var(--c-ink-150); font-size: 13.5px; }
.source-item:first-child { border-top: 0; padding-top: 0; }
.source-type { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--c-ink-400); font-weight: 600; }

/* ---------- 19. 对比页 ---------------------------------------------------- */
.compare-scroll { overflow-x: auto; border-top: 1px solid var(--c-ink-200); border-bottom: 1px solid var(--c-ink-200); }
table.compare { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--c-white); }
table.compare th, table.compare td {
  padding: var(--s-4) var(--s-5); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--c-ink-100);
}
table.compare thead th {
  background: var(--c-ink-25); border-bottom: 1px solid var(--c-ink-200); position: sticky; top: 0;
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--c-ink-500); font-weight: 600;
}
table.compare tbody th {
  font-weight: 500; color: var(--c-ink-600); background: var(--c-white);
  width: 190px; min-width: 190px; font-size: 13px; position: sticky; left: 0;
  border-right: 1px solid var(--c-ink-100);
}
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: 0; }
.compare-col-head { display: flex; flex-direction: column; gap: var(--s-2); min-width: 190px; align-items: flex-start; }
.compare-col-head .btn { align-self: flex-start; }
.compare-col-head > a { align-self: flex-start; }
.compare-legend {
  display: flex; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-4) var(--s-5);
  background: var(--c-ink-25); border-bottom: 1px solid var(--c-ink-200); font-size: 12.5px; color: var(--c-ink-600);
}
.compare-legend .row { gap: var(--s-2); }

/* ---------- 20. 通用表格 -------------------------------------------------- */
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th, table.data td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--c-ink-150); }
table.data th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-ink-400); font-weight: 600;
}
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---------- 21. 面包屑 / 页头 --------------------------------------------- */
.breadcrumb { font-size: 13px; color: var(--c-ink-400); margin-bottom: var(--s-4); }
.breadcrumb a { color: var(--c-ink-500); }
.breadcrumb span { color: var(--c-ink-300); margin: 0 8px; }
.page-head { padding: var(--s-7) 0 var(--s-6); }
.page-head h1 { font-size: clamp(30px, 3.2vw, 40px); margin-bottom: var(--s-3); }

/* ---------- 22. 表单 -------------------------------------------------------- */
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-ink-800); margin-bottom: var(--s-2); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field select {
  width: 100%; height: 42px; padding: 0 var(--s-3); font-size: 15px; font-family: inherit;
  border: 1px solid var(--c-ink-200); border-radius: var(--r-md); color: var(--c-ink-900);
  background: var(--c-white);
}
.field input:focus, .field select:focus {
  border-color: var(--c-accent-500); outline: none; box-shadow: 0 0 0 3px var(--c-accent-50);
}
.field-hint { font-size: 13px; color: var(--c-ink-500); margin-top: 6px; }

/* ---------- 23. 供应商 ------------------------------------------------------ */
.vendor-top { display: flex; gap: var(--s-4); align-items: flex-start; margin-bottom: var(--s-5); }
.vendor-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  padding: var(--s-5) 0; border-top: 1px solid var(--c-ink-150);
  border-bottom: 1px solid var(--c-ink-150); margin-bottom: var(--s-7);
}
.vendor-fact-label {
  font-size: 11px; color: var(--c-ink-400); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: 3px; font-weight: 600;
}
.vendor-fact-value { font-size: 15px; font-weight: 600; color: var(--c-ink-900); }

/* ---------- 24. 页脚 -------------------------------------------------------- */
.site-footer {
  background: var(--c-ink-25); color: var(--c-ink-500);
  padding: var(--s-8) 0 var(--s-6); margin-top: var(--s-9);
  border-top: 1px solid var(--c-ink-150);
}
/* 底部对比托盘是 fixed 定位，页脚要留出空间 */
body.cmp-tray-open .site-footer { padding-bottom: var(--s-9); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: var(--s-6); }
.site-footer h4 {
  color: var(--c-ink-900); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: var(--s-4); font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--c-ink-600); font-size: 13.5px; }
.site-footer a:hover { color: var(--c-ink-900); }
.site-footer .brand-text strong { color: var(--c-ink-900); }
.site-footer .brand-text em { color: var(--c-ink-400); }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-ink-200);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: 12.5px; color: var(--c-ink-400);
}

/* ---------- 25. 对比托盘 ---------------------------------------------------- */
.cmp-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--c-ink-900); color: #fff;
  box-shadow: 0 -8px 28px rgba(10,10,11,.14);
}
.cmp-tray[hidden] { display: none; }
.cmp-tray-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-3) 0; flex-wrap: wrap;
}
.cmp-tray-list { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #232328; color: #fff; border-radius: var(--r-sm);
  padding: 4px 6px 4px 10px; font-size: 12.5px; text-transform: capitalize;
}
.cmp-chip-x { background: none; border: 0; color: var(--c-ink-400); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.cmp-chip-x:hover { color: #fff; }
.cmp-tray-actions { display: flex; gap: var(--s-2); align-items: center; }

/* ---------- 26. 原型数据声明 ----------------------------------------------- */
/* 声明必须始终可见，但不该抢走整页注意力：用中性底 + 左侧暖色竖线，
   而不是整条高饱和黄色横幅。 */
.data-status-bar {
  background: var(--c-ink-25); border-bottom: 1px solid var(--c-ink-150);
  border-left: 2px solid var(--c-sponsored-line);
  padding: var(--s-3) 0; font-size: 12px; color: var(--c-ink-500); line-height: 1.6;
}
.data-status-bar strong { font-weight: 600; color: var(--c-ink-800); }
.data-status-bar a { color: var(--c-ink-700); text-decoration: underline; text-underline-offset: 2px; }
.data-status-bar a:hover { color: var(--c-ink-900); }

/* ---------- 27. 响应式 ------------------------------------------------------ */
@media (max-width: 1080px) {
  .discover { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--c-ink-150); padding-bottom: var(--s-5); }
  .agent-grid { grid-template-columns: 1fr; }
  .quick-facts, .vendor-facts { grid-template-columns: repeat(2, 1fr); }
  .quick-fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--c-white); border-bottom: 1px solid var(--c-ink-200);
    flex-direction: column; padding: var(--s-4); gap: 0; box-shadow: var(--sh-md);
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--c-ink-100); }
  .menu-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
  .hero { padding: var(--s-8) 0 var(--s-7); }
  .hero h1 { font-size: clamp(32px, 7vw, 40px); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); align-items: start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .side .panel-sticky { position: static; }
  .rel-label { min-width: 0; }
  .def-list { grid-template-columns: 1fr; gap: var(--s-1) 0; }
  .def-list dt { margin-top: var(--s-3); }
  .section { padding: var(--s-8) 0; }
  .section-sm { padding: var(--s-7) 0; }
  .detail-hero { padding: var(--s-6) 0 var(--s-5); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 var(--s-5); }
  .quick-facts, .vendor-facts, .footer-grid, .grid-4 { grid-template-columns: 1fr; }
  .quick-fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-ink-150); }
  .quick-fact:first-child { border-top: 0; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
  .search-input { height: 48px; font-size: 16px; }
  .detail-top { flex-direction: column; }
  .level-sub { display: none; }
  .search-examples a { margin-right: var(--s-3); }
}

@media print {
  .site-header, .site-footer, .filters, .header-cta, .cmp-tray { display: none; }
  body { font-size: 11pt; }
}
