/* =========================================================
   AI 工具台 — 样式表
   设计原则：浅色优先、单色主调、少边框多留白、圆角 10px
   ========================================================= */

:root {
  color-scheme: light;

  --brand: #0a59f7;
  --brand-weak: #eaf1ff;
  --brand-deep: #0642bd;

  --ink-1: #1b1f27;
  --ink-2: #475061;
  --ink-3: #6b7280;
  --ink-4: #9aa1ad;

  /* 浅色「护眼底」：页面用柔和的雾灰，卡片用纯白略微浮起，避免大白板的刺眼感 */
  --bg: #f3f5f9;
  --bg-soft: #eceff4;
  --bg-mute: #e3e7ee;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --line: #e4e8ef;
  --line-soft: #eef1f6;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 6px 20px rgba(16, 24, 40, 0.07);
  --shadow-3: 0 14px 38px rgba(16, 24, 40, 0.1);

  --header-h: 60px;
  --maxw: 1440px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 深色模式：整体压暗、降低纯白占比，文字提高亮度，长时间阅读更舒适 */
[data-theme="dark"] {
  color-scheme: dark;

  --brand: #5b93ff;
  --brand-weak: rgba(91, 147, 255, 0.16);
  --brand-deep: #7daaff;

  --ink-1: #e9ecf2;
  --ink-2: #b4bdcb;
  --ink-3: #8b94a4;
  --ink-4: #646c79;

  --bg: #0e1117;
  --bg-soft: #161b23;
  --bg-mute: #1c222c;
  --surface: #161b23;
  --surface-2: #1b212b;
  --line: #272e3a;
  --line-soft: #20262f;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 14px 38px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

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

/* 锚点跳转时给吸顶头部留出空隙，避免区块标题被遮住 */
.sec[id], .cat-sec[id], details[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

html { scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  /* 吸底页脚：内容短时页脚固定在视口底部，不随筛选结果变少而"跳上来"打扰阅读 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* #main 占据剩余高度，让 .ftr / .bot-nav 始终贴底；内容超长时自然下滚 */
#main { flex: 0 1 auto; display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }
.bot-nav, .ftr { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

img { max-width: 100%; display: block; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 内容容器：最大宽度与左右留白改由 .g-layout（含全局左栏）统一控制，
   这里只保留 width:100% + 居中，避免与 .g-layout 的 padding 双重叠加 */
.container { width: 100%; margin: 0 auto; }

/* ---------------- Header ---------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), #4f8bff);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--ink-2);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav a:hover { background: var(--bg-mute); color: var(--ink-1); }
.nav a.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }

/* 顶栏搜索位。正常渲染 .sbx-hdr（多引擎），宽度要放得下
   「引擎名 + 输入框 + 按钮」；规则限定在直接子元素上，避免串到 .sbx 内部。 */
.hdr-search {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.hdr-search > input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.hdr-search > input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(10, 89, 247, 0.08);
}

.hdr-search > .ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 13px;
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 500;
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* ---------------- 三栏工作台 ----------------
   分类页已不再单列筛选栏（全局左栏覆盖分类导航），改为单栏内容；
   这里保留 .workbench 仅作兼容占位，不再预留死掉的右列。 */
.workbench {
  display: block;
}

.rail {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* 全局布局：左栏分类导航（永驻所有页面）+ 右侧主内容。
   左栏在 ≥1100px 时显示并吸顶；更窄则隐藏，主内容拉满。 */
.g-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  /* 关键：#main 是竖向 flex 容器，flex 子项一旦带 margin:auto 就不再 stretch，
     会按内容收缩（fit-content）再居中——导致左栏在窄内容页被挤向中间。
     显式 width:100% 让布局宽度与右侧内容解耦，恒定占满（上限仍为 --maxw）。 */
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}
.g-rail {
  width: 244px;
  flex: none;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  /* 左右栏视觉分隔：浅色面板 + 细边框，让左侧导航与右侧主内容清晰分开 */
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
}
.g-rail::-webkit-scrollbar { width: 5px; }
.g-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.g-main { flex: 1; min-width: 0; }

/* 首页两栏：左侧分类快速导航已提升为全局 .g-rail，这里只承载主内容列 */
.home-wb {
  display: block;
}

.cat-nav .cat-nav-in { padding: 0; }
.cat-nav-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.6px;
  margin: 2px 4px 12px;
  text-transform: uppercase;
}
.cat-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  min-height: 44px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}
.cat-nav-list a > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-nav-list a .cnt {
  flex: none;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg-mute);
  border-radius: 999px;
  padding: 2px 9px;
  min-width: 26px;
  text-align: center;
}
.cat-nav-list a:hover { background: var(--bg-mute); color: var(--ink-1); }
.cat-nav-list a.on {
  background: var(--brand-weak);
  color: var(--brand-deep);
  font-weight: 600;
}
.cat-nav-list a.on .cnt { color: var(--brand-deep); background: rgba(10, 89, 247, 0.12); }

.rail-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.4px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

/* 首页底部：今日快讯平铺 + 提交/广告条（主区拉满后，右栏内容下沉到底部） */
.home-bottom { margin-top: 18px; }
.home-bottom-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}
.home-bottom .panel { margin: 0; }

.filter-group { margin-bottom: 22px; }

.filter-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
}

.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.filter-list { display: flex; flex-direction: column; gap: 1px; }

.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background 0.12s;
}

.filter-list a:hover { background: var(--bg-mute); color: var(--ink-1); }
.filter-list a.on { background: var(--brand-weak); color: var(--brand); font-weight: 600; }
.filter-list .cnt { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* ---------------- 区块 ---------------- */
/* 每个内容块做成独立白卡：边框 + 圆角 + 浅阴影 + 内边距，
   相邻块之间靠间距与卡片边界清晰区分，不再是一片白底往下垂。 */
.sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
}

.sec:last-child { margin-bottom: 0; }

.sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.sec-hd h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-hd .sub { font-size: 13px; color: var(--ink-3); }
.sec-hd .more { font-size: 13px; color: var(--brand); white-space: nowrap; }
.sec-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* 分类图标：柔和品牌底色卡片，比 emoji 更精致 */
.sec-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--brand-weak); color: var(--brand-deep);
}
.sec-ico .cat-svg { width: 19px; height: 19px; }
/* 左栏 / 筛选列表内的分类图标 */
.fl-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--brand-deep); }
.fl-ico .cat-svg { width: 19px; height: 19px; }

/* 平铺布局：工具库首页/分类首页按分类垂直堆叠 */
.flat-tools { display: flex; flex-direction: column; gap: 6px; }
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filter-bar .sub { font-size: 13px; color: var(--ink-3); }
.filter-bar .filter-group { margin: 0; }
.filter-bar .filter-group h4 { display: none; }
.filter-bar .chip-wrap { gap: 8px; }

/* 折叠区块：场景选型路径默认收起，作为首页底部的「额外选项」，用户点开才看 */
.collapse { padding-bottom: 8px; }
.collapse > summary { list-style: none; cursor: pointer; }
.collapse > summary::-webkit-details-marker { display: none; }
.collapse-sum {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}
.collapse-t { font-size: 18px; font-weight: 700; letter-spacing: -0.2px; }
.collapse-sub { font-size: 13px; color: var(--ink-3); }
.collapse-arr { margin-left: auto; color: var(--ink-3); font-size: 18px; transition: transform 0.2s; }
.collapse[open] > summary .collapse-arr { transform: rotate(180deg); }
.collapse-body { padding-top: 14px; }
.collapse-body > .more { display: inline-block; margin-top: 12px; }

/* ---------------- 广告位（预留占位） ---------------- */
/* 虚线边框 + 「广告」角标，明确区别于正常内容；接真实投放时只换内部素材，结构不变。 */
.ad {
  position: relative;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  margin-bottom: 14px;
}
.ad-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 10px;
  line-height: 1;
  color: var(--ink-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 5px;
  z-index: 1;
}
.ad-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mute);
  color: var(--ink-4);
  font-size: 12px;
}
/* 横幅（图文）：「我的导航」下方 */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.ad-banner .ad-media {
  width: 132px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 8px;
}
.ad-banner .ad-body { flex: 1; min-width: 0; }
.ad-title { font-size: 14px; font-weight: 600; color: var(--ink-1); }
.ad-desc { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 6px; }
.ad-cta { display: inline-block; font-size: 12.5px; color: var(--brand); font-weight: 600; }
/* 卡片（图文）：右栏 */
.ad-card { padding: 10px; }
.ad-card .ad-media {
  width: 100%;
  height: 116px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.ad-card .ad-body { padding: 0 2px; }
/* 文字：右栏 */
.ad-text { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.ad-text a { font-size: 12.5px; color: var(--ink-2); }
.ad-text a:hover { color: var(--brand); }

/* ---------------- Hero ---------------- */
.hero {
  padding: 36px 0 28px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.3;
}

.hero p { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; }

/* 首屏搜索已换成 .sbx-hero（多引擎），原 .hero-search 整套规则随之删除，
   样式统一收在文件末尾的「多引擎搜索框」区块。 */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

/* ---------------- 卡片网格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}

.grid-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---------------- 快讯：一行一图一文 ---------------- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.news-row:hover { border-color: #d6deea; box-shadow: var(--shadow-2); transform: translateY(-1px); }
.news-thumb {
  display: block;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  min-height: 110px;
  aspect-ratio: 3 / 2;
}
.news-row-bd { min-width: 0; display: flex; flex-direction: column; }
.news-row-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.news-date { font-size: 12px; color: var(--ink-4); }
.news-row-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
}
.news-row-title a { color: var(--ink-1); text-decoration: none; }
.news-row-title a:hover { color: var(--brand-deep); }
.news-row-sum {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.news-src { color: var(--ink-4); }
.news-more { margin-left: auto; color: var(--brand-deep); font-weight: 600; }
.news-row:hover .news-more { text-decoration: underline; }

@media (max-width: 560px) {
  .news-row { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .news-thumb { min-height: 80px; }
  .news-row-title { font-size: 15px; }
}

/* ---------------- 资讯：每日精选时间轴 ---------------- */
.news-timeline { display: flex; flex-direction: column; }
.tl-day {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  position: relative;
}
.tl-day + .tl-day { border-top: 1px solid var(--line); }
.tl-date { position: sticky; top: 88px; align-self: start; text-align: right; }
.tl-d { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink-1); line-height: 1; }
.tl-ym { display: block; font-size: 12px; color: var(--ink-4); margin-top: 5px; }
.tl-items { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tl-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.25, 1),
    box-shadow 0.22s ease, border-color 0.22s ease;
}
.tl-item:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 89, 247, 0.3);
  box-shadow: 0 12px 26px -12px rgba(16, 24, 40, 0.2);
}
.tl-item-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tl-src { font-size: 12px; color: var(--ink-4); }
.tl-t { font-size: 16px; font-weight: 700; line-height: 1.45; margin: 0 0 5px; color: var(--ink-1); }
.tl-item:hover .tl-t { color: var(--brand-deep); }
.tl-sum {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tl-go { font-size: 12px; font-weight: 600; color: var(--brand); }
.tl-item:hover .tl-go { text-decoration: underline; }

@media (max-width: 640px) {
  .tl-day { grid-template-columns: 1fr; gap: 8px; }
  .tl-date { position: static; text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .tl-d { font-size: 20px; }
  .tl-ym { margin-top: 0; }
}

.card {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.25, 1),
    box-shadow 0.28s ease, border-color 0.28s ease;
}

/* 顶部品牌强调条：悬停时从左展开，强化高级感 */
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #6aa0ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 89, 247, 0.35);
  box-shadow: 0 14px 30px -12px rgba(16, 24, 40, 0.22);
}

.card:hover::before { transform: scaleX(1); }
.card:hover .card-logo { transform: scale(1.08); }

.card-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  overflow: hidden;
  background: var(--brand);
  transition: transform 0.28s ease;
  transform-origin: center;
}

/* 首字母色块在底层，网站图标叠在上层同一格：
   图标加载成功就盖住字母，失败被 JS 移除后自动露出字母，不留破图 */
.card-logo > *, .info-logo > * { grid-area: 1 / 1; }
.card-logo img, .info-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { min-width: 0; flex: 1; }

.card-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 6px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-4);
  flex-wrap: wrap;
}

.tag {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-mute);
  color: var(--ink-3);
  font-size: 11px;
  white-space: nowrap;
}

.tag-free { background: #e7f7ee; color: #15925c; }
.tag-paid { background: #fff2e8; color: #c2620f; }
.tag-cn { background: #fdecec; color: #c93b3b; }

/* ---------------- 分类磁贴 ---------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  background: var(--surface);
  transition: all 0.15s;
}

.tile:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-2);
}

.tile-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tile-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--brand-weak); color: var(--brand-deep);
}
.tile-ico .cat-svg { width: 17px; height: 17px; }
.tile-name { font-weight: 600; font-size: 14.5px; }
.tile-cnt { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.tile-desc { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }

.tile-top {
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tile-top span {
  background: var(--bg-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ---------------- 选型路径 ---------------- */
.path-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--surface);
  margin-bottom: 12px;
  transition: all 0.15s;
}

.path-card:hover { border-color: var(--brand); box-shadow: var(--shadow-2); }
.path-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.path-desc { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }

.steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.step {
  flex: 1;
  min-width: 132px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg-soft);
  position: relative;
}

.step + .step { margin-left: 20px; }

.step + .step::before {
  content: "→";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 13px;
}

.step-n {
  font-size: 11px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 3px;
}

.step-name { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }

.step-tools {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}

.step-tools a { color: var(--ink-2); }
.step-tools a:hover { color: var(--brand); }

/* ---------------- 右栏内容流 ---------------- */
.feed { padding: 0; border-left: 0; }

.feed-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 9px;
}

.feed-item:last-child { border-bottom: 0; }

.feed-time {
  font-size: 11.5px;
  color: var(--ink-4);
  flex-shrink: 0;
  width: 42px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.feed-t {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

.feed-t a:hover { color: var(--brand); }
.feed-sum { font-size: 12px; color: var(--ink-3); margin: 2px 0 0; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface);
  margin-top: 16px;
}

.panel h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; }
.panel p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------------- 详情页 ---------------- */
.crumb {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 14px 0;
}

.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--ink-4); margin: 0 6px; }

.detail {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}
.detail > div { min-width: 0; }

.info-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.info-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }

.info-logo {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  overflow: hidden;
  background: var(--brand);
  flex-shrink: 0;
}

.info-logo img { width: 100%; height: 100%; object-fit: cover; }
.info-name { font-size: 17px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.info-tag { font-size: 12.5px; color: var(--ink-3); margin: 0; }

.info-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.info-actions .btn { flex: 1; justify-content: center; }

.attr-list { display: flex; flex-direction: column; gap: 1px; }

.attr {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}

.attr:first-child { border-top: 0; }
.attr .k { color: var(--ink-3); }
.attr .v { font-weight: 500; text-align: right; max-width: 60%; }

.attr-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }

.article { font-size: 14.5px; line-height: 1.85; color: #26292f; }
.article h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--brand);
  letter-spacing: -0.2px;
}

.article h3 { font-size: 15.5px; font-weight: 600; margin: 20px 0 8px; }
.article p { margin: 0 0 12px; }
.article ul, .article ol { margin: 0 0 14px; padding-left: 22px; }
.article li { margin-bottom: 7px; }
.article strong { font-weight: 600; color: var(--ink-1); }

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 13.5px;
}

.article table th,
.article table td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  text-align: left;
}

.article table th { background: var(--bg-soft); font-weight: 600; }
.article table tr:nth-child(even) td { background: #fcfcfd; }

.quote {
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 14px 0;
  color: var(--ink-2);
}

/* ---------------- 表格页（企业/政策/机会） ---------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--surface);
}
.table-scroll .dt { min-width: 1100px; }
.table-scroll .dt th { position: static; }

.dt {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.dt th {
  background: var(--bg-soft);
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: sticky;
  top: var(--header-h);
  z-index: 1;
}

.dt td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt tr:last-child td { border-bottom: 0; }
.dt tbody tr:hover { background: var(--bg-soft); }
.dt .nm { font-weight: 600; }
.dt .muted { color: var(--ink-3); font-size: 12.5px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--brand-weak);
  color: var(--brand);
  white-space: nowrap;
}

.badge.g { background: #e7f7ee; color: #15925c; }
.badge.o { background: #fff2e8; color: #c2620f; }
.badge.n { background: var(--bg-mute); color: var(--ink-2); }

/* ---------------- 筛选工具栏 ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar .count { font-size: 13px; color: var(--ink-3); }
.toolbar .spacer { flex: 1; }

.sortsel {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}

/* ---------------- 分页 ---------------- */
.pager { display: flex; gap: 5px; justify-content: center; padding: 32px 0 8px; }

.pager a, .pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
}

.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .dis { color: var(--ink-4); background: var(--bg-soft); }

/* ---------------- 页脚 ---------------- */
/* 底部导航：顶部移除的栏目入口统一收到底部，居中成一排可换行的胶囊 */
.bot-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.bot-nav a {
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: all 0.15s;
}

.bot-nav a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }

.ftr {
  border-top: 1px solid var(--line);
  margin-top: 0;
  padding: 32px 0 40px;
  background: var(--bg-soft);
}

.ftr-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.ftr-brand { max-width: 280px; }
.ftr-brand p { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; line-height: 1.7; }

.ftr-cols { display: flex; gap: 56px; flex-wrap: wrap; flex: 1; }
.ftr-col { min-width: 120px; }
.ftr-col-t { font-size: 13px; font-weight: 700; color: var(--ink-1); margin: 0 0 14px; letter-spacing: 0.3px; }
.ftr-col-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr-col-l a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; transition: color 0.15s ease, padding-left 0.15s ease; }
.ftr-col-l a:hover { color: var(--brand); padding-left: 3px; }

.ftr-extra {
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 16px 24px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.ftr-extra a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ftr-extra a:hover { color: var(--brand); }
.ftr-extra a::after {
  content: "";
}

.ftr-bot {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* ICP 备案号：页脚内低调融入，但须可点击（工信部要求链接备案系统） */
.ftr-icp { color: inherit; text-decoration: none; }
.ftr-icp:hover { color: var(--brand); text-decoration: underline; }
.ftr-icp:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

/* ---------------- 空态 ---------------- */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-3);
}

.empty .ic { font-size: 34px; margin-bottom: 10px; }

/* ---------------- 大模型排行榜 ---------------- */
.rank-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 16px;
  flex-wrap: wrap;
}
.rank-title { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.4px; }
.rank-updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.rank-updated strong { color: var(--ink-1); font-weight: 600; }
.rank-updated .upd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1fb46a; box-shadow: 0 0 0 3px rgba(31, 180, 106, 0.16);
}
.rank-updated .upd-sub { color: var(--ink-4); }

.rank-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.rank-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-tab {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rank-tab:hover { border-color: var(--brand); color: var(--brand); }
.rank-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.rank-filter { display: flex; gap: 4px; }
.rank-filter .rf {
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-3); font-size: 13px; padding: 6px 12px;
  border-radius: 8px; cursor: pointer;
}
.rank-filter .rf.on { background: var(--brand-weak); border-color: var(--brand); color: var(--brand-deep); }

.rank-boards {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.rank-board-h {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  color: var(--ink-1);
}
.rank-board-meta {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 13px;
}
.rank-metric { color: var(--brand-deep); font-weight: 600; }
.rank-desc { color: var(--ink-3); }

.rank-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank-table th, .rank-table td {
  text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.rank-table thead th {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.rank-table tbody tr:hover { background: var(--bg-soft); }
.rank-c { width: 64px; }
.rank-score { font-weight: 700; color: var(--ink-1); white-space: nowrap; }
.rank-ctx { color: var(--ink-2); white-space: nowrap; }
.rank-strength { color: var(--ink-2); min-width: 180px; }
.rank-no {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 8px; font-weight: 700; font-size: 13px;
  background: var(--bg-mute); color: var(--ink-2);
}
.rank-top { color: #fff; }
.rank-1 { background: linear-gradient(135deg, #f6b73c, #e8910c); }
.rank-2 { background: linear-gradient(135deg, #c7ccd6, #9aa1ad); }
.rank-3 { background: linear-gradient(135deg, #e0a070, #c07b3e); }
.rank-model { display: flex; align-items: center; gap: 5px; }
.rank-name { font-weight: 600; color: var(--ink-1); }
a.rank-name:hover { color: var(--brand); }
.rank-go { color: var(--ink-4); font-size: 12px; }
.rank-vendor { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.rank-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.chip-sm {
  font-size: 12px; color: var(--ink-2);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}
.rank-source {
  margin-top: 22px; font-size: 12px; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; line-height: 1.7;
}

/* Top3 奖牌英雄卡（借鉴 Arena 的 🥇🥈🥉 展示区） */
.rank-hero { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.hero-card {
  flex: 1 1 0; min-width: 180px;
  position: relative;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 16px 16px; text-align: center;
  background: var(--bg); overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--line);
}
.hero-1::before { background: linear-gradient(90deg, #f6b73c, #e8910c); }
.hero-2::before { background: linear-gradient(90deg, #c7ccd6, #9aa1ad); }
.hero-3::before { background: linear-gradient(90deg, #e0a070, #c07b3e); }
.hero-medal { font-size: 30px; line-height: 1; }
.hero-rank { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.hero-name { display: block; font-size: 17px; font-weight: 700; color: var(--ink-1); margin: 6px 0 2px; }
a.hero-name:hover { color: var(--brand); }
.hero-vendor { font-size: 12px; color: var(--ink-3); }
.hero-score { font-size: 26px; font-weight: 800; color: var(--ink-1); margin-top: 8px; letter-spacing: -0.5px; }
.hero-score-unit { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.hero-price { font-size: 12px; color: var(--brand-deep); margin-top: 4px; }

/* 价格列 + 厂商筛选（借鉴 Arena 的 $/1M 列与厂商筛选条） */
.rank-price { color: var(--ink-1); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-price-h { white-space: nowrap; }
.rank-price-note { font-size: 12px; color: var(--ink-3); margin: 0 0 18px; }
.rank-vfilter { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.rank-vfilter .vf-lbl { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.rank-vfilter .vf {
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-3); font-size: 13px; padding: 5px 11px;
  border-radius: 8px; cursor: pointer; transition: all 0.15s ease;
}
.rank-vfilter .vf:hover { border-color: var(--brand); color: var(--brand); }
.rank-vfilter .vf.on { background: var(--brand-weak); border-color: var(--brand); color: var(--brand-deep); }

/* ---------------- AI 行业人物 ---------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
/* 人物列表：一行一个（纵向堆叠，整行一张卡），并在卡片内联「代表产品」小标签 */
.people-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.people-strip > .person-card {
  width: 100%;
  flex: initial;
}
.person-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.pt-lbl { font-size: 12px; color: var(--ink-3); flex: none; }
.pt-chip {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-weak);
  color: var(--brand-deep);
  text-decoration: none;
  border: 1px solid rgba(10, 89, 247, 0.2);
  white-space: nowrap;
}
.pt-chip:hover { background: var(--brand); color: #fff; }
.person-products {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.pp-lbl { font-size: 12px; color: var(--ink-3); flex: none; }
.pp-chip {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-weak);
  color: var(--brand-deep);
  text-decoration: none;
  border: 1px solid rgba(10, 89, 247, 0.2);
  white-space: nowrap;
}
.pp-chip:hover { background: var(--brand); color: #fff; }
.person-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.person-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 22px rgba(16, 24, 40, 0.07);
}
.person-top { display: flex; align-items: center; gap: 12px; }
.person-ava {
  position: relative; overflow: hidden;
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  color: #fff; font-size: 22px; font-weight: 700;
  flex-shrink: 0;
}
.ava-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-id { min-width: 0; }
.person-name {
  font-size: 17px; margin: 0; line-height: 1.25;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.person-en { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.person-badge {
  display: inline-block; margin-top: 6px;
  font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.badge-leader { background: rgba(225, 29, 72, 0.1); color: #c2153e; border-color: rgba(225, 29, 72, 0.25); }
.badge-innovator { background: rgba(10, 89, 247, 0.1); color: #0a59f7; border-color: rgba(10, 89, 247, 0.25); }
.badge-shaper { background: rgba(124, 58, 237, 0.1); color: #7c3aed; border-color: rgba(124, 58, 237, 0.25); }
.badge-thinker { background: rgba(16, 163, 122, 0.1); color: #0a8f63; border-color: rgba(16, 163, 122, 0.25); }
.person-role {
  font-size: 13px; color: var(--ink-2);
  padding: 8px 10px; background: var(--bg-soft);
  border-radius: 8px; line-height: 1.5;
}
.person-body { display: flex; flex-direction: column; gap: 8px; }
.person-line { margin: 0; font-size: 13px; line-height: 1.7; display: flex; gap: 8px; }
.person-line .lbl {
  flex-shrink: 0; color: var(--ink-3);
  background: var(--bg-mute); border-radius: 6px;
  padding: 1px 7px; font-size: 12px; height: fit-content;
}
.person-line .val { color: var(--ink-1); }
.person-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.person-card { text-decoration: none; color: inherit; }
.person-card:hover { text-decoration: none; }

/* 人物详情页 */
.person-detail {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 26px 30px;
  margin: 8px 0 30px;
  max-width: 880px;
}
.pd-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px;
}
.pd-ava {
  position: relative; overflow: hidden;
  width: 76px; height: 76px; border-radius: 20px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 700;
}
.pd-meta { min-width: 0; flex: 1; }
.pd-name {
  font-size: 24px; margin: 0; line-height: 1.2;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.pd-en { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.pd-sub { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.pd-role { font-size: 13.5px; color: var(--ink-2); }
.pd-back {
  margin-left: auto; align-self: flex-start;
  font-size: 13px; padding: 7px 14px;
}
.pd-sec { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.pd-sec:last-of-type { border-bottom: none; }
.pd-h {
  font-size: 14px; font-weight: 700; color: var(--ink-1);
  margin: 0 0 10px; display: flex; align-items: center; gap: 8px;
}
.pd-h::before {
  content: ''; width: 4px; height: 14px; border-radius: 2px; background: var(--brand);
}
.pd-bio { font-size: 15px; line-height: 1.8; color: var(--ink-1); margin: 0; }
.pd-sec p { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.pd-list { margin: 0; padding-left: 20px; }
.pd-list li { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.pd-companies li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pd-c-name { font-weight: 600; color: var(--ink-1); }
.pd-c-role { font-size: 13px; color: var(--ink-3); }
.pd-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-tool {
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-weak);
  color: var(--brand-deep);
  text-decoration: none;
  border: 1px solid rgba(10, 89, 247, 0.2);
}
.pd-tool:hover { background: var(--brand); color: #fff; }
.pd-rels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-rel {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
}
.pd-rel-type {
  flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--brand-deep);
  background: var(--brand-weak); border-radius: 6px; padding: 2px 9px;
}
.pd-rel-name { font-weight: 600; color: var(--ink-1); }
a.pd-rel-name { color: var(--brand-deep); text-decoration: none; }
a.pd-rel-name:hover { text-decoration: underline; }
.pd-rel-note { font-size: 13px; color: var(--ink-3); }
.pd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 640px) {
  .people-grid { grid-template-columns: 1fr; }
  .pd-head { flex-direction: column; align-items: flex-start; }
  .pd-back { margin-left: 0; }
  .person-detail { padding: 20px 16px 24px; }
}

/* ---------------- AI 短剧：分类入口 / 平台 / 作业流 ---------------- */

/* 分类入口：五张纵排卡片，悬停抬升 + 图标反色，与全站卡片 hover 语言保持一致 */
.dcat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.dcat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 16px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dcat::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.dcat:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 89, 247, 0.35);
  box-shadow: 0 14px 30px -12px rgba(16, 24, 40, 0.22);
}
.dcat:hover::before { transform: scaleX(1); }
.dcat-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-weak); color: var(--brand-deep);
  margin-bottom: 4px;
}
.dcat-ico .cat-svg { width: 19px; height: 19px; }
.dcat-name { font-size: 15px; font-weight: 700; color: var(--ink-1); }
.dcat-cnt { font-size: 12px; color: var(--brand-deep); font-weight: 600; }
.dcat-desc { font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }

/* 短剧平台：横向条目，色块标记 + 名称 + 主营 + 地区 */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.plat {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.plat:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 89, 247, 0.35);
  box-shadow: 0 12px 26px -14px rgba(16, 24, 40, 0.22);
}
.plat-mark {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff; font-size: 17px; font-weight: 700;
}
.plat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plat-name { font-size: 14.5px; font-weight: 600; color: var(--ink-1); }
.plat-desc {
  font-size: 12.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plat-meta { font-size: 12px; color: var(--ink-4); }

/* 作业流：小节标题 + 环节块 */
.stage-sub {
  font-size: 13px; font-weight: 700; color: var(--ink-3);
  margin: 22px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.stage-sub::after {
  content: ''; flex: 1; height: 1px; background: var(--line-soft);
}
.stage-list { display: flex; flex-direction: column; gap: 16px; }
.stage {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
  background: var(--bg-soft);
}
.stage-hd { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.stage-n {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700;
}
.stage-t { flex: 1; min-width: 0; }
.stage-t h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--ink-1); }
.stage-t p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.stage-cnt { flex-shrink: 0; font-size: 12px; color: var(--ink-4); }

/* 环节内的「短剧专用首选」胶囊 */
.stage-first {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 12px;
  background: var(--brand-weak);
  border: 1px solid rgba(10, 89, 247, 0.18);
  border-radius: 10px;
}
.sf-lbl { font-size: 12px; font-weight: 700; color: var(--brand-deep); flex-shrink: 0; }
.sf-chip {
  font-size: 12.5px; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-card, #fff); color: var(--brand-deep);
  border: 1px solid rgba(10, 89, 247, 0.22);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.sf-chip:hover { background: var(--brand); color: #fff; }

/* 短剧专用平台卡片上的能力角标 */
.nat-card { position: relative; }
.nat-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 11px; font-weight: 600; line-height: 1;
  padding: 4px 8px; border-radius: 999px;
  background: var(--brand); color: #fff;
}

@media (max-width: 1100px) {
  .dcat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat-grid { grid-template-columns: 1fr; }
  .stage-hd { gap: 10px; }
}
.rank-note { font-size: 12px; color: var(--ink-4); margin: 10px 0 0; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .g-rail { display: none; }
  .g-layout { gap: 0; }
}

@media (max-width: 1280px) {
  .workbench { grid-template-columns: 220px minmax(0, 1fr); }
  .rail-right { display: none; }
}

@media (max-width: 960px) {
  .g-layout, .container, .hdr-in, .ftr-in, .ftr-bot { padding-left: 16px; padding-right: 16px; }
  .workbench { grid-template-columns: 1fr; gap: 16px; }
  .home-wb { grid-template-columns: 1fr; gap: 16px; }
  .rail { position: static; max-height: none; display: none; }
  .rail.open { display: block; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .hero h1 { font-size: 23px; }
  .hdr-search { display: none; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .steps { flex-direction: column; }
  .step + .step { margin-left: 0; margin-top: 8px; }
  .step + .step::before { content: "↓"; left: auto; right: 14px; top: -6px; transform: none; }
  .home-bottom-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .logo span { display: none; }
}

/* ---------------- 无障碍 ---------------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.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;
}

/* =========================================================
   我的导航（首页自定义收藏位）
   格子高度与列数都写死：图标不会因为名字长短、数量增减而错位，
   这也是「每个图标固定位置」的落地方式——位置由顺序决定，不由内容决定。
   ========================================================= */
.mybar {
  padding: 6px 0 14px;
  background: var(--surface);
}

.mybar-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mybar-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mybar-t { font-size: 15px; font-weight: 700; }
.mybar-tip { font-size: 12.5px; color: var(--ink-3); }
.mybar-sp { flex: 1; }
.mybar-cnt { font-size: 12px; color: var(--ink-4); }

.mybar-clear {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.mybar-clear:hover { border-color: #f0b4b4; color: #d9433f; }

.mybar-grid {
  display: grid;
  grid-template-columns: repeat(var(--myb-cols, 12), minmax(0, 1fr));
  gap: 10px;
}

.myb-item,
.myb-add,
.myb-ph { height: 88px; }

.myb-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.myb-item:hover { border-color: #d6def0; box-shadow: var(--shadow-2); }

.myb-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0 8px;
}

.myb-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.myb-ico > * { grid-area: 1 / 1; }
.myb-ico img { width: 100%; height: 100%; object-fit: cover; }

.myb-n {
  font-size: 12.5px;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.myb-item:hover .myb-n { color: var(--ink-1); }

.myb-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: var(--shadow-1);
}

.myb-item:hover .myb-del,
.myb-item:focus-within .myb-del { display: grid; }
.myb-del:hover { background: #fdecec; border-color: #f3c2c2; color: #d9433f; }

/* 悬停时把整张卡片抬到相邻卡片之上。
   角标即使只溢出 1px，那一点也会落在网格间隙里：点在间隙等于什么都没点，
   点偏一点又会命中隔壁卡片直接跳走 —— 想删 A 却打开 B，这种误操作代价太高。
   内收 + 提层双管齐下，触屏（角标常驻、没有 hover）同样安全。 */
.myb-item:hover,
.myb-item:focus-within { z-index: 3; }

.myb-add {
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  font-family: inherit;
}

.myb-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }
.myb-add .plus { font-size: 22px; line-height: 1; }
.myb-add .lb { font-size: 12.5px; }

/* 拖拽中：被拖起的卡片脱离网格跟随指针，虚线占位框顶替它在流里的位置 */
.myb-item.dragging {
  position: fixed;
  z-index: 999;
  margin: 0;
  pointer-events: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-3);
  transition: none;
}

.myb-ph {
  border: 1px dashed var(--brand);
  border-radius: 12px;
  background: var(--brand-weak);
}

/* 拖拽期间锁掉页面滚动与选中，否则手指拖动会带着整页一起滑 */
body.myb-dragging {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* ---------------- 添加工具弹层 ---------------- */
.myb-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  background: rgba(16, 24, 40, 0.42);
}

.myb-modal[hidden] { display: none; }

.myb-box {
  width: 100%;
  max-width: 520px;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.myb-box-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.myb-box-hd input {
  flex: 1;
  height: 36px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.myb-box-hd .x {
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

.myb-list { overflow-y: auto; padding: 6px; }

.myb-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.myb-opt:hover { background: var(--bg-soft); }
.myb-opt[disabled] { opacity: 0.45; cursor: default; }
.myb-opt .nm { font-size: 13.5px; font-weight: 600; }
.myb-opt .tg { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myb-opt .st { margin-left: auto; font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }

.myb-empty { padding: 26px 14px; text-align: center; color: var(--ink-3); font-size: 13px; }

.myb-box-ft {
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 1200px) { .mybar-grid { --myb-cols: 9; } }
@media (max-width: 900px)  { .mybar-grid { --myb-cols: 6; } }
@media (max-width: 600px)  { .mybar-grid { --myb-cols: 4; } }

/* 触屏没有 hover，删除按钮必须常驻，否则根本点不到 */
@media (hover: none) { .myb-del { display: grid; } }

/* =========================================================
   主题切换 + 首页广告位
   ========================================================= */

/* 主题切换时让主要表面平滑过渡，避免硬闪 */
.card, .panel, .tile, .sec, .rail, .hdr, .ftr, .bot-nav, .rank-board,
.rank-table, .person-card, .person-detail, .mybar, .myb-box, .pager,
.chip, .btn, .tag, .badge, .crud, .info, input, select, textarea,
.sbox, .ad-tile, .cat-nav-list a, .nav a, .ftr-col-l a, .dcat, .plat {
  /* .ftr-links 已随页脚改版废弃，换成 .ftr-col-l，避免留死选择器 */
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

/* 主题切换按钮（头部右侧） */
.theme-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.tt-icon::before { content: "🌙"; }
[data-theme="dark"] .tt-icon::before { content: "☀️"; }

/* 首页：一条通栏拆成 4 个等宽广告卡 */
.ad-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.ad-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  /* 渐变作为兜底，真实广告图通过 --ad-img 覆盖在上方 */
  background: var(--ad-grad, var(--brand));
  background-image: var(--ad-img, none);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 112px;
}
/* 图片上方的暗化蒙版，保证白字在任何底图上都清晰可读 */
.ad-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 12, 20, 0.64), rgba(8, 12, 20, 0.3));
  z-index: 0;
}
.ad-tile > * { position: relative; z-index: 1; }
.ad-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); color: #fff; }
.ad-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.9);
  padding: 1px 6px;
  border-radius: 6px;
  z-index: 2;
}
.ad-tile-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.ad-tile-bd { min-width: 0; flex: 1; }
.ad-tile-name { font-size: 17px; font-weight: 800; line-height: 1.2; }
.ad-tile-sub { font-size: 12.5px; opacity: 0.92; margin-top: 2px; }
.ad-tile-desc {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-tile-go { font-size: 20px; opacity: 0.9; flex-shrink: 0; }

@media (max-width: 960px) {
  .ad-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ad-row { grid-template-columns: 1fr; }
}

/* =========================================================
   名录 / 政策页：分组锚点胶囊、表格内链接、出海角标
   ========================================================= */

/* 分组锚点：一行胶囊，点一下跳到对应分组，同时给出每组的条数 */
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.tl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.tl-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }
.tl-chip span {
  font-size: 11px;
  color: var(--ink-4);
  background: var(--bg-mute);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 16px;
}
.tl-chip:hover span { background: rgba(10, 89, 247, 0.12); color: var(--brand); }

/* 表格里的官网链接：整列是域名，不能再用主色大字号抢走企业名称的视觉重心 */
.dt-link {
  color: var(--ink-3);
  font-size: 12.5px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.dt-link:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* 表格下方免责说明 */
.dt-note { margin-top: 16px; font-size: 12px; color: var(--ink-4); line-height: 1.7; }

/* 列少的表格不必撑到 1100px，否则桌面端也横着滚 */
.table-scroll.narrow .dt { min-width: 760px; }

/* 平台卡上的「出海」角标 */
.plat-name { display: inline-flex; align-items: center; gap: 6px; }
.plat-tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--brand-weak);
  color: var(--brand);
  letter-spacing: 0.3px;
}

/* 政策时间轴里，人工核实条目与资讯条目共用卡片，用左侧色条区分 */
.tl-item.is-policy { border-left: 3px solid var(--brand); }
/* 政策页页内筛选：整组（日期）或单条没命中就藏起来 */
.tl-item.is-policy.is-hidden, .tl-day.is-hidden { display: none; }
/* 政策页筛选 chips：复用工具库 .chip/.chip-wrap，加 active 配色更醒目 */
.chip[data-pol-level].on { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 640px) {
  .tl-chips { gap: 6px; }
  .tl-chip { padding: 4px 10px; font-size: 12px; }
}

/* ================= 多引擎搜索框（分组标签 + 子引擎切换） ================= */
/* 结构参照 ai-bot.cn：先选分组（常用/搜索/社区/图片），再选组内子引擎，最后输入。
   hero 变体全部平铺；hdr 变体把分组与引擎收进 :focus-within 的下拉面板。 */

.sbx { position: relative; }

.sbx-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sbx-tab {
  height: 28px; padding: 0 15px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--ink-3); font-size: 13px; cursor: pointer;
  transition: background-color .18s, color .18s;
}
.sbx-tab:hover { color: var(--ink-1); background: rgba(127, 127, 127, .09); }
.sbx-tab.on { background: var(--brand); color: #fff; font-weight: 600; }
.sbx-tab.on:hover { color: #fff; background: var(--brand); }

.sbx-engines { display: flex; flex-wrap: wrap; gap: 6px; }
.sbx-eng {
  height: 24px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink-3); font-size: 12px; cursor: pointer;
  white-space: nowrap; transition: border-color .18s, color .18s, background-color .18s;
}
.sbx-eng:hover { border-color: var(--brand); color: var(--brand); }
.sbx-eng.on {
  border-color: var(--brand); color: var(--brand);
  background: rgba(10, 89, 247, .07); font-weight: 600;
}
/* 必须显式写：UA 的 [hidden]{display:none} 优先级低于上面 .sbx-eng 的 display，
   不补这条，切换分组时上一组的引擎不会消失。 */
.sbx-eng[hidden] { display: none; }

.sbx-form { position: relative; display: flex; align-items: center; }
.sbx-ico { pointer-events: none; }
.sbx-input { min-width: 0; }
.sbx-go {
  flex-shrink: 0; border: 0; background: var(--brand); color: #fff;
  font-weight: 600; cursor: pointer; transition: filter .18s;
}
.sbx-go:hover { filter: brightness(1.07); }

/* ---- hero 变体：整块平铺在首屏 ---- */
.sbx-hero { max-width: 680px; margin: 24px auto 0; }
.sbx-hero .sbx-tabs { justify-content: center; margin-bottom: 12px; }
.sbx-hero .sbx-engines { justify-content: center; margin-bottom: 12px; }
.sbx-hero .sbx-form {
  height: 48px; padding: 0 6px 0 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.sbx-hero .sbx-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 89, 247, .09);
}
.sbx-hero .sbx-ico {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  color: var(--ink-4); font-size: 15px;
}
.sbx-hero .sbx-input {
  flex: 1; height: 46px; padding: 0 10px 0 44px;
  border: 0; background: transparent; outline: none;
  font-size: 15px; color: var(--ink-1);
}
.sbx-hero .sbx-go { height: 36px; padding: 0 22px; border-radius: 9px; font-size: 14px; }

/* ---- hdr 变体：输入框在上，分组/引擎收进下拉面板 ---- */
.sbx-hdr { display: flex; flex-direction: column; width: 100%; }
.sbx-hdr .sbx-form { order: 1; }
.sbx-hdr .sbx-panel {
  order: 2; display: none;
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); box-shadow: 0 14px 36px rgba(16, 24, 40, .15); z-index: 300;
}
.sbx-hdr:focus-within .sbx-panel { display: block; }
.sbx-hdr .sbx-tabs { margin-bottom: 10px; }
.sbx-hdr .sbx-tab { height: 26px; padding: 0 12px; font-size: 12.5px; }
.sbx-hdr .sbx-engines { max-height: 132px; overflow-y: auto; }

.sbx-hdr .sbx-form {
  height: 34px; padding-left: 6px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.sbx-hdr .sbx-form:focus-within {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(10, 89, 247, .08);
}
.sbx-cur {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px;
  max-width: 92px; height: 32px; padding: 0 8px;
  border: 0; border-right: 1px solid var(--line); background: transparent;
  color: var(--ink-3); font-size: 12px; cursor: pointer; white-space: nowrap;
}
.sbx-cur span[data-sbx-cur-name] { overflow: hidden; text-overflow: ellipsis; }
.sbx-caret { font-size: 9px; line-height: 1; }
.sbx-hdr .sbx-input {
  flex: 1; height: 32px; padding: 0 8px;
  border: 0; background: transparent; outline: none;
  font-size: 13px; color: var(--ink-1);
}
.sbx-hdr .sbx-ico { display: none; }
.sbx-hdr .sbx-go { height: 26px; margin-right: 3px; padding: 0 12px; border-radius: 6px; font-size: 12px; }

@media (max-width: 640px) {
  .sbx-hero { margin-top: 18px; }
  .sbx-hero .sbx-form { height: 44px; }
  .sbx-hero .sbx-input { height: 42px; font-size: 14px; }
  .sbx-hero .sbx-go { padding: 0 16px; }
}

/* =========================================================
   AI 公众号聚合页
   卡片是「左文右码」的两栏：左边承载名称/主体/自述，右边是二维码。
   二维码必须自带白底 —— 深色模式下卡片背景是深色，二维码没有静区就扫不出来。
   ========================================================= */

.acct-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--bg-soft);
}
.acct-note-t {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
}
.acct-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.acct-note strong { color: var(--brand-deep); font-weight: 600; }

/* 分组切换按钮里的条目数角标 */
.rank-tab .tb-n {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  background: var(--bg-mute);
  color: var(--ink-3);
}
.rank-tab.on .tb-n { background: rgba(255, 255, 255, .22); color: #fff; }

.acct-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  transition: border-color .15s, background .15s;
}
.acct-search:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(10, 89, 247, .08);
}
.acct-search .ico { color: var(--ink-4); font-size: 14px; }
.acct-search input {
  width: 190px;
  height: 32px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--ink-1);
}

.acct-cat-desc { margin: -2px 0 14px; font-size: 13px; color: var(--ink-3); }
.acct-cat-desc[hidden] { display: none; }

.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
  align-items: start;
}

.acct-card {
  display: flex;
  gap: 16px;
  padding: 16px 16px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.acct-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-2);
}
.acct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.acct-top { display: flex; align-items: center; gap: 12px; }
.acct-ava {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #fff; font-size: 19px; font-weight: 700;
}
.acct-id { min-width: 0; }
.acct-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-1);
  overflow-wrap: anywhere;
}
.acct-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.acct-org {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.acct-prio {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.acct-prio.p3 { background: rgba(225, 29, 72, .1); color: #c2153e; border-color: rgba(225, 29, 72, .25); }
.acct-prio.p2 { background: rgba(10, 89, 247, .1); color: var(--brand-deep); border-color: rgba(10, 89, 247, .25); }
.acct-prio.p1 { background: var(--bg-mute); color: var(--ink-3); border-color: var(--line); }

.acct-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.acct-act { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.acct-copy,
.acct-go {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.acct-copy { font-family: inherit; }
/* 微信号 chip：复用 .acct-copy 的复制逻辑，但压成轻量行内样式，不抢「复制名称」按钮的视觉 */
.acct-wxid {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  color: var(--ink-2);
  cursor: pointer;
}
.acct-wxid code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}
.acct-wxid:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.acct-wxid:hover code { color: #fff; }
.acct-wxid.done { background: rgba(31, 180, 106, .12); border-color: rgba(31, 180, 106, .35); color: #0a8f63; }
.acct-wxid.done code { color: #0a8f63; }
.acct-copy:hover,
.acct-go:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.acct-copy.done { background: rgba(31, 180, 106, .12); border-color: rgba(31, 180, 106, .35); color: #0a8f63; }

.acct-qr {
  flex-shrink: 0;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
/* 码图本身可点：手机上点它等于点「主页」，不必再去够那个小按钮 */
.acct-qr-link { display: block; border-radius: 10px; line-height: 0; }
.acct-qr-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.acct-qr img {
  width: 104px; height: 104px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  /* 二维码自带的静区与底色：深色卡片下不加白底会直接扫不出来 */
  background: #fff;
  display: block;
  transition: border-color .15s ease;
}
.acct-qr-link:hover img { border-color: var(--brand); }
.acct-qr-cap { font-size: 11px; color: var(--ink-4); }

/* 没核到 __biz 的号：留一个等高的空位，不塞假图 */
.acct-qr-na {
  justify-content: center;
  min-height: 104px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--ink-4);
}
.acct-qr-dash { font-size: 22px; line-height: 1; color: var(--ink-4); }
.acct-card-noqr { border-style: dashed; }

/* 改名标记：旧名搜不到，新名才是能用的那个 */
.acct-renamed {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: 2px;
  background: rgba(234, 147, 26, .12);
  color: #9a5b00;
  border: 1px solid rgba(234, 147, 26, .3);
  white-space: nowrap;
}
:root[data-theme="dark"] .acct-renamed {
  background: rgba(240, 168, 60, .16);
  color: #f0b45a;
  border-color: rgba(240, 168, 60, .32);
}

.acct-empty[hidden] { display: none; }
.acct-empty {
  padding: 48px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-card { gap: 12px; }
  .acct-qr, .acct-qr img { width: 88px; }
  .acct-qr img { height: 88px; }
  .acct-search { width: 100%; }
  .acct-search input { width: 100%; }
}

/* ---------------- 搜索结果页 /search/ ---------------- */
.search-page { max-width: 860px; padding: 40px 24px 64px; }
.sp-head { margin-bottom: 22px; }
.sp-title { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.5px; }
.sp-sub { color: var(--ink-3); margin: 0 0 18px; font-size: 14px; }
.sp-form {
  display: flex; align-items: center; gap: 10px;
  position: relative;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 0 14px; height: 52px;
  transition: border-color .15s, box-shadow .15s;
}
.sp-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.sp-ico { font-size: 20px; color: var(--ink-3); }
.sp-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--ink); height: 100%;
}
.sp-input::placeholder { color: var(--ink-4); }
.sp-clear {
  border: 0; background: var(--bg-soft); color: var(--ink-3);
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.sp-clear:hover { background: var(--line); color: var(--ink); }
.sp-meta { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.sp-meta strong { color: var(--ink); }

.sp-results { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sp-loading { padding: 32px; text-align: center; color: var(--ink-3); }
.sp-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .15s, transform .05s, box-shadow .15s;
}
.sp-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgba(16,24,40,.06); }
.sp-card:active { transform: scale(.995); }
.sp-card-main { min-width: 0; flex: 1; }
.sp-card-name { font-size: 15.5px; font-weight: 650; margin-bottom: 3px; }
.sp-card-name mark, .sp-card-desc mark { background: var(--brand-soft); color: var(--brand-ink); border-radius: 3px; padding: 0 1px; }
.sp-card-desc { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.sp-card-tags { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.sp-badge {
  font-size: 11.5px; color: var(--ink-3); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.sp-badge-price { color: #0a7d4b; background: rgba(10,125,75,.08); border-color: rgba(10,125,75,.18); }
.sp-badge-region { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

.sp-empty { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.sp-empty-ic { font-size: 34px; margin-bottom: 10px; }
.sp-empty p { margin: 0; font-size: 14px; }

@media (max-width: 640px) {
  .sp-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sp-card-desc { max-width: 100%; }
}

/* ===== 开源模型专区 / 提示词库（独立栏目） ===== */
.os-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px;
}
.os-toc a {
  padding: 7px 14px; border-radius: 20px; font-size: 13.5px;
  color: var(--ink-2); background: var(--bg-soft);
  border: 1px solid var(--line); transition: all .15s;
}
.os-toc a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }

.os-groups { display: flex; flex-direction: column; gap: 34px; }
.os-g-t, .pm-g-t { font-size: 18px; margin: 0; }
.os-grid, .pm-grid { margin-top: 14px; }

/* 开源模型 / 提示词：固定一行 3 列（卡片更宽，长文本更好读） */
.os-grid, .pm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .os-grid, .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .os-grid, .pm-grid { grid-template-columns: minmax(0, 1fr); } }

/* 模型卡 */
.os-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.os-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.os-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.os-name { font-size: 16px; margin: 0; }
.os-org { font-size: 12.5px; color: var(--ink-3); }
.os-desc { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.os-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ink-3); }
.os-meta b { color: var(--ink-1); font-weight: 600; }
.os-lic { color: var(--brand); background: var(--brand-weak); padding: 1px 8px; border-radius: 10px; }
.os-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.os-tag { font-size: 11.5px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 10px; }
.os-go { font-size: 13px; color: var(--brand); white-space: nowrap; }

/* 提示词卡 */
.pm-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.pm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pm-title { font-size: 16px; margin: 0; }
.pm-use { font-size: 12px; color: var(--brand); background: var(--brand-weak); padding: 2px 9px; border-radius: 10px; }
.pm-body {
  margin: 0; padding: 12px 14px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.65; color: var(--ink-1);
  white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto;
}
.pm-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-tag { font-size: 11.5px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); padding: 2px 9px; border-radius: 10px; }
.pm-copy {
  font-size: 13px; color: var(--brand); background: transparent;
  border: 1px solid var(--brand); border-radius: 18px; padding: 5px 14px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.pm-copy:hover { background: var(--brand); color: #fff; }

/* 提示词：详情页 / 列表新增（pm-前缀复用页面既有变量） */
.pm-title-a { color: inherit; text-decoration: none; font-size: 16px; font-weight: 600; }
.pm-title-a:hover { color: var(--brand); text-decoration: none; }
.pm-card-link { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pm-card-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pm-card-link .pm-title { color: var(--ink-1); }
.pm-card-link .pm-more { font-size: 12.5px; color: var(--brand); }
.pm-d { font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.pm-d:hover { color: var(--brand); text-decoration: underline; }
.pm-tags { gap: 6px; margin-top: 6px; }

/* 详情页正文：不要把整段模板截断在 220px，并让它与周围段落一眼区分 */
.pm-body.pm-body-big {
  max-height: none;
  position: relative;
  font-size: 13.5px; line-height: 1.75;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 7%, transparent) 0 4px, transparent 4px),
    var(--bg-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-left: 3px solid var(--brand);
  padding: 16px 18px 16px 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.pm-body-big::-webkit-scrollbar { width: 8px; height: 8px; }
.pm-body-big::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 8px; }
.pm-var { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-var li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.pm-var-k {
  flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 8px; color: var(--brand); font-size: 12.5px;
}
.pm-var-v { color: var(--ink-2); line-height: 1.6; }
.note { font-size: 13px; color: var(--ink-3); background: var(--bg-soft); border-left: 3px solid var(--brand); padding: 8px 12px; border-radius: 6px; }
.info-avat {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand), #6a5cff);
}
.pm-prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.pm-prevnext a { color: var(--ink-2); text-decoration: none; font-size: 14px; max-width: 46%; }
.pm-prevnext a:hover { color: var(--brand); }
.dt-var { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dt-var li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.dt-var b { display: block; color: var(--ink-1); margin-bottom: 4px; font-size: 14px; }
.dt-var p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.dt-var div { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.dt-var code { background: var(--surface); padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* .is-hidden 必须写在 .pm-card / .os-card 之后，否则被它们的 display:flex 覆盖 */
.pm-card.is-hidden, .pm-group.is-hidden, .pm-empty.is-hidden,
.os-card.is-hidden, .os-group.is-hidden { display: none; }
.pm-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pm-filter-box {
  position: relative; display: flex; align-items: center; flex: 1 1 320px; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 12px; transition: border-color .15s;
}
.pm-filter-box:focus-within { border-color: var(--brand); }
.pm-filter-ico {
  width: 16px; height: 16px; flex: none; fill: none;
  stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round;
}
.pm-filter-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--ink-1); padding: 10px 8px;
}
.pm-filter-input::placeholder { color: var(--ink-3); }
.pm-filter-input::-webkit-search-cancel-button { display: none; }
.pm-filter-clear {
  flex: none; border: 0; background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--ink-3); padding: 4px 6px; border-radius: 50%;
}
.pm-filter-clear:hover { color: var(--ink-1); background: var(--bg-soft); }
.pm-filter-meta { font-size: 13px; color: var(--ink-3); }
.pm-empty {
  margin: 48px 0; text-align: center; color: var(--ink-3); font-size: 14px;
}


/* 资讯详情页「相关资讯」
   这 113 个详情页正文只有一句话摘要（约 175 字），属薄内容；数据里没有原文全文
   （聚合站，全文在外站），补正文只能靠编造 —— 不做。改用同标签的站内真实文章增厚。
   用列表而非卡片：不抢正文注意力，也更省纵向空间。 */
.rel-news { list-style: none; margin: 0; padding: 0; }
.rel-news li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.rel-news li:first-child { border-top: 0; padding-top: 0; }
.rel-news-t {
  font-size: 15px; font-weight: 500; color: var(--ink-1);
  line-height: 1.45; text-decoration: none;
}
.rel-news-t:hover { color: var(--brand); }
.rel-news-m { font-size: 12px; color: var(--ink-4); }

/* ============ 开源模型：列表评分徽章 + 详情评分计量条 ============ */
.os-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.os-name { font-size: 16px; margin: 0; }
.os-name-a { color: inherit; text-decoration: none; font-weight: 600; }
.os-name-a:hover { color: var(--brand); }
.os-score {
  flex: none; font-size: 12px; font-weight: 700; line-height: 1;
  color: #fff; background: hsl(152 68% 42%); border-radius: 8px;
  padding: 4px 7px;
}
.os-detail { margin-left: auto; font-size: 12.5px; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.os-detail:hover { color: var(--brand); text-decoration: underline; }

/* 详情页评分区 */
.rt-score { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.rt-big {
  flex: none; display: grid; place-items: center; min-width: 92px; min-height: 92px;
  font-size: 40px; font-weight: 800; color: #fff; border-radius: 14px;
  background: linear-gradient(150deg, hsl(211 90% 55%), hsl(152 68% 42%));
}
.rt-score.rt-good .rt-big { background: linear-gradient(150deg, hsl(152 70% 42%), hsl(150 70% 36%)); }
.rt-meat { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.rt-m { }
.rt-m-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.rt-m-l { font-size: 13px; color: var(--ink-2); }
.rt-m-v { font-size: 12.5px; font-weight: 700; }
.rt-bg { height: 8px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.rt-f { height: 100%; border-radius: 8px; }
.rt-note { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.rt-none { color: var(--ink-3); }
.info-avat { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--brand), #6a5cff); }
