/* =========================================================
   校招雷达 · 设计系统 v2
   方向：编辑式信息界面 —— 纸感底色、发丝分隔、克制的语义色
   原则：
   1. 一份颜色只有一种用途：底色用 surface，语义色只落在文字与圆点
   2. 表格靠对齐与留白分区，不靠整格铺色和竖线
   3. 移动端是「紧凑卡片」，不是「表格拆行」
   ========================================================= */

/* ---------------------------------------------------------------
   配色方向：冷灰纸面 × 森林深绿单一强调 × 低饱和语义色
   原则：强调色只有一个家族；模块色靠色相区分，不靠饱和度；
         语义色只落在文字与小圆点，不铺背景块。
   --------------------------------------------------------------- */
:root {
  /* —— 纸面（近中性，微冷，不偏暖） —— */
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #f9f9f7;
  --surface-3: #efeeeb;
  --line: #e3e1db;
  --line-2: #cbc9c1;

  /* —— 文字（近黑 / 中灰 / 淡灰，对比度 ≥ 4.5:1） —— */
  --text: #1a1a18;
  --text-2: #484840;
  --text-3: #7c7c74;

  /* —— 主强调：深森林绿，单一冷静色 —— */
  --accent: #2a5e45;
  --accent-ink: #1b3d2e;
  --accent-soft: #e8f2ed;

  /* —— 状态色：低饱和度，配合整体克制感 —— */
  --danger: #b83830;
  --danger-soft: #fceeed;
  --warn: #7a5100;
  --warn-solid: #c97c0e;
  --warn-soft: #fdf5e0;
  --ok: #2a5e45;
  --ok-soft: #e8f2ed;

  /* —— 模块身份色：同一暗色家族，色相各异，饱和均低 —— */
  --m-campus: #2a5e45; --m-campus-soft: #e8f2ed; --m-campus-ink: #1b3d2e; /* 森绿 */
  --m-intern: #2b4f82; --m-intern-soft: #e8eef8; --m-intern-ink: #1c3561; /* 靛蓝 */
  --m-qa:     #6b4719; --m-qa-soft:     #f5eddf; --m-qa-ink:     #4a3010; /* 深琥珀 */
  --m-mj:     #5c3272; --m-mj-soft:     #f1eaf6; --m-mj-ink:     #3d2050; /* 低调李紫 */
  --m-soe:    #8a3626; --m-soe-soft:    #f7ecea; --m-soe-ink:    #62251a; /* 砖红 */

  /* —— AI 身份色：深紫罗兰，独立于一众绿/蓝/棕模块色 —— */
  --ai-hi:   #63489c;
  --ai:      #523a85;
  --ai-lo:   #432e6d;
  --ai-ink:  #3a2760;
  --ai-soft: #f0ebf9;
  --ai-line: rgba(82, 58, 133, .22);

  /* —— 语义色阶：降低饱和，避免整格铺色时刺眼 —— */
  --t-blue-3: #eaeff8;   --t-blue-9: #4a7cc2;   --t-blue-11: #2b5ba8;
  --t-cyan-3: #e4f2f5;   --t-cyan-9: #3a94a8;   --t-cyan-11: #236d80;
  --t-teal-3: #e6f2ef;   --t-teal-9: #3a9078;   --t-teal-11: #206b56;
  --t-green-3: #e8f2ed;  --t-green-9: #3a8c60;  --t-green-11: #206040;
  --t-amber-3: #f8f0dc;  --t-amber-9: #c49020;  --t-amber-11: #8a6400;
  --t-orange-3: #f8ede0; --t-orange-9: #c26830;  --t-orange-11: #934c18;
  --t-red-3: #f6eded;    --t-red-9: #c04040;    --t-red-11: #962c2c;
  --t-violet-3: #f0edf8; --t-violet-9: #7050b8;  --t-violet-11: #503888;
  --t-slate-3: #ebebea;  --t-slate-9: #7a7a78;  --t-slate-11: #545450;

  /* —— 形 —— */
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;

  --shadow-1: 0 1px 2px rgba(46, 30, 16, .05);
  --shadow-2: 0 10px 28px -14px rgba(46, 30, 16, .2), 0 2px 6px -3px rgba(46, 30, 16, .07);
  --shadow-3: 0 30px 64px -26px rgba(46, 30, 16, .3), 0 8px 24px -14px rgba(46, 30, 16, .14);

  /* —— 动 —— */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  --dur-1: .15s;
  --dur-2: .22s;
  --dur-3: .34s;

  /* —— 字 —— */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --topbar-h: 58px;
  --page-max: 1240px;
  --row-pad-y: 11px;
  --row-pad-x: 12px;
}

body[data-mod="campus"] { --accent: var(--m-campus); --accent-ink: var(--m-campus-ink); --accent-soft: var(--m-campus-soft); }
body[data-mod="intern"] { --accent: var(--m-intern); --accent-ink: var(--m-intern-ink); --accent-soft: var(--m-intern-soft); }
body[data-mod="qa"]     { --accent: var(--m-qa);     --accent-ink: var(--m-qa-ink);     --accent-soft: var(--m-qa-soft); }
body[data-mod="mj"]     { --accent: var(--m-mj);     --accent-ink: var(--m-mj-ink);     --accent-soft: var(--m-mj-soft); }
body[data-mod="soe"]    { --accent: var(--m-soe);    --accent-ink: var(--m-soe-ink);    --accent-soft: var(--m-soe-soft); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111210;
    --surface: #191b18;
    --surface-2: #1f211d;
    --surface-3: #272923;
    --line: rgba(220, 225, 210, .10);
    --line-2: rgba(220, 225, 210, .18);

    --text: #e8e8e2;
    --text-2: #a8a89e;
    --text-3: #72726a;

    --accent: #5a9e7a;
    --accent-ink: #80c09a;
    --accent-soft: rgba(90, 158, 122, .15);

    --danger: #d47070;
    --danger-soft: rgba(190, 60, 60, .15);
    --warn: #d4a850;
    --warn-solid: #a07820;
    --warn-soft: rgba(200, 158, 50, .15);
    --ok: #5a9e7a;
    --ok-soft: rgba(90, 158, 122, .15);

    --m-campus: #5a9e7a; --m-campus-soft: rgba(90, 158, 122, .15); --m-campus-ink: #80c09a;
    --m-intern: #6090cc; --m-intern-soft: rgba(96, 144, 204, .15); --m-intern-ink: #88aadd;
    --m-qa:     #c09050; --m-qa-soft:     rgba(192, 144, 80, .15); --m-qa-ink:     #d4aa78;
    --m-mj:     #a870c8; --m-mj-soft:     rgba(168, 112, 200, .15); --m-mj-ink:    #c098dc;
    --m-soe:    #d07868; --m-soe-soft:    rgba(208, 120, 104, .15); --m-soe-ink:   #e09888;

    --t-blue-3: #1a2535;   --t-blue-9: #5888cc;   --t-blue-11: #88aadd;
    --t-cyan-3: #142030;   --t-cyan-9: #4494a8;   --t-cyan-11: #68b0c0;
    --t-teal-3: #142820;   --t-teal-9: #449880;   --t-teal-11: #68b898;
    --t-green-3: #152a1e;  --t-green-9: #4a9668;  --t-green-11: #72b888;
    --t-amber-3: #2a2010;  --t-amber-9: #c89830;  --t-amber-11: #d8b858;
    --t-orange-3: #2a1a0e; --t-orange-9: #c07040; --t-orange-11: #d89060;
    --t-red-3: #2a1414;    --t-red-9: #c04848;    --t-red-11: #d47070;
    --t-violet-3: #201830; --t-violet-9: #8060c0; --t-violet-11: #a888d8;
    --t-slate-3: #1e1f1c;  --t-slate-9: #686860;  --t-slate-11: #989890;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .55);
    --shadow-2: 0 10px 28px -14px rgba(0, 0, 0, .85);
    --shadow-3: 0 30px 64px -26px rgba(0, 0, 0, .95);
  }
}

/* ============ 基础 ============ */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

/* 顶部只留一条极淡的纸面渐隐，不做彩色光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 180px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--surface) 60%, transparent), transparent);
}
body > #app { position: relative; z-index: 1; }

h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, button { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); }

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

kbd {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 5px;
}

/* 数字统一等宽，滚动与倒计时时不抖 */
.stat-num, .wchip b, .result-meta b, .cd-val b, .seg-count, .group-count,
.page-num, .col-date, .dl, .batch-pill, .mj-meta, .page-total, .list-table {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ============ 启动态 ============ */
.boot {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 13.5px;
}
.boot-spinner {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 30%, var(--accent) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 1.1s linear infinite;
}
.boot.is-error { color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 按钮 ============ */
.btn {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.btn:hover { border-color: var(--text-3); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-3); }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.topbar-in {
  max-width: var(--page-max);
  margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  border-radius: var(--radius-sm);
}
.brand-mark {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform var(--dur-2) var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* 分段导航：指示器位置由 JS 计算（支持换行） */
.segmented {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg-indicator {
  position: absolute;
  top: 3px;
  left: 0;
  width: 0;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(40, 26, 12, .07), inset 0 0 0 1px color-mix(in srgb, var(--dot, var(--accent)) 22%, transparent);
  transition: transform var(--dur-3) var(--ease), width var(--dur-3) var(--ease),
              height var(--dur-2) var(--ease), opacity var(--dur-1) linear;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.seg-indicator.is-ready { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .seg-indicator {
    background: color-mix(in srgb, var(--dot, var(--accent)) 16%, var(--surface-3));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dot, var(--accent)) 34%, transparent);
  }
}
.seg {
  position: relative;
  z-index: 1;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  white-space: nowrap;
}
.seg:hover { color: var(--text); }
.seg:active { transform: scale(.97); }
.seg.is-active { color: var(--text); font-weight: 600; }
.seg-count {
  font-size: 11px;
  color: var(--text-3);
  transition: color var(--dur-1) var(--ease-out);
}
.seg.is-active .seg-count { color: var(--dot, var(--accent)); }

.seg-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dot);
  opacity: .5;
  flex: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.seg:hover .seg-dot { opacity: .8; }
.seg.is-active .seg-dot { opacity: 1; transform: scale(1.15); }

/* 顶栏搜索 */
.searchbox {
  margin-left: auto;
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out);
}
.searchbox:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.searchbox svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; color: var(--text-3); }
.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.search-clear {
  border: 0; background: transparent; padding: 3px;
  display: grid; place-items: center;
  color: var(--text-3); cursor: pointer; border-radius: 5px;
}
.search-clear:hover { color: var(--text); background: var(--surface-3); }
.search-clear svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.topbar-note { margin-left: auto; font-size: 12.5px; color: var(--text-3); }

/* ============ 页面骨架 ============ */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px 20px 72px;
}

/* ============ 概览（数据牌）：浅色多彩 ============
   白底 + 五色体系：每个指标一种色相，词云按色循环，
   顶部一条五色细带作为整块的签名。 */
.overview {
  --hero-text: var(--text);
  --hero-dim: var(--text-3);
  --hero-line: var(--line);

  /* 概览专用五色（浅色：深而鲜，保证白底对比度） */
  --ov-green: #178a50; --ov-green-soft: #e4f3ea;
  --ov-blue:  #2f6fd6; --ov-blue-soft:  #e8effb;
  --ov-amber: #b26a08; --ov-amber-soft: #fbf0da;
  --ov-red:   #d64550; --ov-red-soft:   #fbe8e9;
  --ov-plum:  #7c5cbf; --ov-plum-soft:  #f0ebfa;

  position: relative;
  overflow: hidden;
  background: var(--surface);
  color: var(--hero-text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 19px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  box-shadow: var(--shadow-1);
  animation: rise-in var(--dur-3) var(--ease-out) both;
}
/* 顶部五色细带：绿 → 蓝 → 琥珀 → 珊瑚 → 李紫 */
.overview::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--ov-green) 0%, var(--ov-blue) 26%,
    var(--ov-amber) 52%, var(--ov-red) 76%, var(--ov-plum) 100%);
}
@media (prefers-color-scheme: dark) {
  .overview {
    --ov-green: #63c892; --ov-green-soft: rgba(99, 200, 146, .13);
    --ov-blue:  #7fa9f2; --ov-blue-soft:  rgba(127, 169, 242, .13);
    --ov-amber: #e2a955; --ov-amber-soft: rgba(226, 169, 85, .13);
    --ov-red:   #ef8f96; --ov-red-soft:   rgba(239, 143, 150, .13);
    --ov-plum:  #b79ce8; --ov-plum-soft:  rgba(183, 156, 232, .13);
    box-shadow: var(--shadow-2);
  }
}

.ov-stats {
  display: flex;
  flex: 1 1 460px;
  min-width: 0;
}
.stat-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--hero-line);
  display: flex;
  flex-direction: column-reverse; /* 标签在上、数字在下 */
  justify-content: flex-end;
  gap: 2px;
  animation: rise-in var(--dur-3) var(--ease-out) both;
}
.stat-item:first-child { padding-left: 0; border-left: 0; }
.stat-item:nth-child(1) { animation-delay: .02s; }
.stat-item:nth-child(2) { animation-delay: .06s; }
.stat-item:nth-child(3) { animation-delay: .1s; }
.stat-item:nth-child(4) { animation-delay: .14s; }
.stat-item:nth-child(5) { animation-delay: .18s; }
.stat-num {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -.035em;
  line-height: 1.15;
  color: var(--text);
}
/* 数字下方一小段同色刻度线，代替整块铺色 */
.stat-num::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  margin-top: 5px;
  background: currentColor;
  opacity: .45;
}
/* 五张卡按数据 tone 映射五色 */
.stat-num[data-tone="green"]  { color: var(--ov-green); }
.stat-num[data-tone="orange"] { color: var(--ov-amber); }
.stat-num[data-tone="red"]    { color: var(--ov-red); }
.stat-num[data-tone="blue"]   { color: var(--ov-blue); }
.stat-num[data-tone="dark"]   { color: var(--ov-plum); }
.stat-num[data-tone="muted"]  { color: var(--text-3); }
.stat-cap {
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: .09em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-side {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 1 auto;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.countdown { display: flex; flex-direction: column; gap: 2px; }
.cd-cap { font-size: 10.5px; color: var(--text-3); letter-spacing: .09em; }
.cd-val {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.cd-val b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ov-amber);
}
.cd-val i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-3);
  margin: 0 2px;
}
.progress { display: flex; flex-direction: column; gap: 6px; min-width: 138px; }
.progress-track {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ov-green), var(--ov-amber) 62%, var(--ov-red));
}
.progress-meta { font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.progress-meta b { color: var(--ov-red); font-weight: 600; }

.ov-words {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.word-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}
.word-cap {
  flex: none;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: .08em;
  width: 32px;
}
/* 词云按五色循环上淡底（word-cap 占第 1 个子位，chip 从第 2 个起） */
.wchip:nth-child(5n+2) { --wc: var(--ov-green); --wcs: var(--ov-green-soft); }
.wchip:nth-child(5n+3) { --wc: var(--ov-blue);  --wcs: var(--ov-blue-soft); }
.wchip:nth-child(5n+4) { --wc: var(--ov-amber); --wcs: var(--ov-amber-soft); }
.wchip:nth-child(5n+5) { --wc: var(--ov-red);   --wcs: var(--ov-red-soft); }
.wchip:nth-child(5n+1) { --wc: var(--ov-plum);  --wcs: var(--ov-plum-soft); }
.wchip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  color: var(--wc, var(--text-2));
  background: var(--wcs, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--wc, var(--line-2)) 20%, transparent);
  border-radius: 5px;
  padding: 1px 7px;
  white-space: nowrap;
  transition: border-color var(--dur-1) var(--ease-out), filter var(--dur-1) var(--ease-out);
}
.wchip:hover { border-color: color-mix(in srgb, var(--wc, var(--text-3)) 45%, transparent); }
.wchip b {
  font-weight: 400;
  font-size: 10.5px;
  color: color-mix(in srgb, var(--wc, var(--text-3)) 62%, transparent);
}
.wchip:hover b { color: var(--wc, var(--text-2)); }

/* ============ 模块 ============ */
.module { margin-top: 26px; }

.module-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.module-title h1 {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.mod-mark {
  display: inline-block;
  width: 4px;
  height: 19px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 10px;
  flex: none;
}
.module-title p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-3);
}

.search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 260px;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.search-inline:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-inline svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; color: var(--text-3); flex: none; }
.search-inline input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--text); }
.search-inline input::placeholder { color: var(--text-3); }

/* ============ 工具条 ============ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}
.filter-toggle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.filter-toggle b {
  min-width: 17px; height: 17px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 10.5px;
  font-weight: 600;
  padding: 0 4px;
}

.quick-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.field { display: inline-flex; align-items: center; gap: 6px; }
.field > span { font-size: 12px; color: var(--text-3); }
.field select {
  appearance: none;
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 25px 5px 9px;
  font-size: 12.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8177' stroke-width='2' stroke-linecap='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 7px center;
  max-width: 170px;
  text-overflow: ellipsis;
}
.field select:hover { background-color: var(--surface-3); }
.field select:focus-visible { border-color: var(--accent); }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  width: 30px; height: 17px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  transition: background var(--dur-1) var(--ease-out);
  flex: none;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: transform var(--dur-1) var(--ease-out);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(13px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch-label { font-size: 12.5px; color: var(--text-2); }

.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.text-btn {
  border: 0; background: transparent; padding: 4px 2px;
  font-size: 12.5px; color: var(--accent); cursor: pointer;
  border-radius: 5px;
}
.text-btn:hover { color: var(--accent-ink); text-decoration: underline; }

/* ============ 筛选面板 ============ */
.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 8px;
  box-shadow: var(--shadow-1);
}
.filter-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-cap {
  flex: none;
  font-size: 12px;
  color: var(--text-3);
  width: 32px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-3);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  white-space: nowrap;
}
.chip:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.chip:active { transform: scale(.96); }
.chip.is-on {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
  font-weight: 500;
}
.chip.is-on:hover { background: var(--text-2); border-color: var(--text-2); }
.chip.is-static { cursor: default; color: var(--text-3); }
.chip.is-static:hover { background: transparent; color: var(--text-3); border-color: var(--line); }

.text-input {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  width: 120px;
  transition: border-color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.text-input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.text-input::placeholder { color: var(--text-3); }

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  border-radius: 999px;
  padding: 3px 8px 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.filter-pill:hover { border-color: var(--danger); color: var(--danger); }
.filter-pill svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.2; opacity: .75; }

/* ============ 结果元信息 ============ */
.result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 9px;
  font-size: 12.5px;
  color: var(--text-3);
}
.result-meta b { color: var(--text); font-weight: 600; }
.meta-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-2);
  flex: none;
}

/* ============ 表格 ============ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  animation: rise-in var(--dur-3) var(--ease-out) both;
}
.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.list-table th {
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-3);
  padding: 10px var(--row-pad-x);
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.list-table th.is-emph { color: var(--text-2); }
.list-table td {
  padding: var(--row-pad-y) var(--row-pad-x);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-2);
  position: relative;
}
.list-table tbody tr:last-child td { border-bottom: 0; }
.list-table tbody tr { transition: background var(--dur-1) var(--ease-out); }
.list-table tbody tr:hover { background: var(--surface-2); }

/* 悬停时用左侧 2px 强调条提示「当前行」，比整行铺色克制 */
.list-table tbody tr td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: -1px;
  width: 2px;
  background: transparent;
  transition: background var(--dur-1) var(--ease-out);
}
.list-table tbody tr:hover td:first-child::before { background: var(--accent); }

/* 列宽：日期 / 公司 / 链接 / 行业 / 性质 / 批次 / 热度 / 职位 / 地点 / 截止 */
.list-table th:nth-child(1), .list-table td:nth-child(1) { width: 58px; }
.list-table th:nth-child(2), .list-table td:nth-child(2) { width: 188px; }
.list-table th:nth-child(3), .list-table td:nth-child(3) { width: 172px; }
.list-table th:nth-child(4), .list-table td:nth-child(4) { width: 136px; }
.list-table th:nth-child(5), .list-table td:nth-child(5) { width: 96px; }
.list-table th:nth-child(6), .list-table td:nth-child(6) { width: 86px; }
.list-table th:nth-child(7), .list-table td:nth-child(7) { width: 46px; }
.list-table th:nth-child(8), .list-table td:nth-child(8) { width: auto; }
.list-table th:nth-child(9), .list-table td:nth-child(9) { width: 104px; }
.list-table th:nth-child(10), .list-table td:nth-child(10) { width: 108px; }

.col-date {
  color: var(--text-3);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: -.01em;
}

.company-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.company {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: var(--text);
  font-weight: 550;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  cursor: pointer;
  border-radius: 3px;
  transition: color var(--dur-1) var(--ease-out);
}
.company:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.src {
  display: inline-block;
  flex: none;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-3);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.6;
}
.src[data-src="公众号"] { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 26%, transparent); }
.src[data-src="政府"]   { color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 26%, transparent); }

/* —— 链接：两个外链 + 一个主按钮 —— */
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 9px; }
.ghost {
  border: 0;
  background: transparent;
  padding: 1px 0;
  border-radius: 5px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color var(--dur-1) var(--ease-out);
}
.ghost:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ghost svg { width: 9px; height: 9px; stroke: currentColor; fill: none; stroke-width: 2.2; opacity: .55; }
.ghost:hover svg { opacity: .9; }
.ghost-strong {
  color: var(--text);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  padding: 1px 8px;
  font-weight: 500;
  transition: box-shadow var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.ghost-strong:hover {
  box-shadow: inset 0 0 0 1px var(--text-3);
  color: var(--text);
  text-decoration: none;
}

/* —— 行业：色点 + 语义色文字（不铺底） —— */
.ind {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--tone-text);
  word-break: break-word;
}
.dot {
  width: 6px; height: 6px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--tone-9);
}

/* —— 性质：描边标签，语义色只落在文字 —— */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.75;
  white-space: nowrap;
  background: transparent;
  color: var(--tone-text, var(--text-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone-text, var(--text-3)) 24%, transparent);
}
.tag-plain {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 400;
}

/* —— 批次：描边胶囊 —— */
.batch-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.75;
  white-space: nowrap;
  background: transparent;
  color: var(--tone-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone-text) 24%, transparent);
}

/* —— 热度：三格信号柱 —— */
.heat { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.heat i {
  width: 3px;
  background: var(--line-2);
  border-radius: 1px;
}
.heat i:nth-child(1) { height: 5px; }
.heat i:nth-child(2) { height: 8px; }
.heat i:nth-child(3) { height: 11px; }
.heat[data-lv="1"] i:nth-child(-n+1),
.heat[data-lv="2"] i:nth-child(-n+2),
.heat[data-lv="3"] i:nth-child(-n+3) { background: var(--accent); }

/* —— 职位 —— */
.col-positions { color: var(--text-2); }
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.55;
}

/* —— 地点：首城市加粗，其余弱化 —— */
.place {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.place b { font-weight: 600; color: var(--text); }
.place i {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  white-space: nowrap;
}

/* —— 截止：行内「日期 + 剩余」，只有紧急才上色块 —— */
.dl {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.dl time { font-weight: 600; color: var(--text-2); letter-spacing: -.01em; }
.dl em { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--text-3); }

.dl[data-tone="warn"],
.dl[data-tone="danger"] {
  padding: 1px 7px;
  border-radius: 6px;
  gap: 5px;
}
/* 紧急状态：只用色字 + 淡底/描边，不做高饱和实心块 */
.dl[data-tone="warn"] {
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 32%, transparent);
}
.dl[data-tone="warn"] time, .dl[data-tone="warn"] em { color: var(--warn); }
.dl[data-tone="danger"] {
  background: var(--danger-soft);
}
.dl[data-tone="danger"] time, .dl[data-tone="danger"] em { color: var(--danger); font-weight: 600; }
.dl[data-tone="muted"] time {
  color: var(--text-3);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.dl[data-tone="muted"] em { color: var(--text-3); font-size: 10.5px; }
.dl-plain { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.dl-plain::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  opacity: .55;
  margin-right: 5px;
  vertical-align: 1px;
}

.dim { color: var(--text-3); }

.empty-cell {
  padding: 56px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}

/* ============ 分页 ============ */
.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.page-step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.page-step:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); background: var(--surface-2); }
.page-step:disabled { opacity: .5; cursor: default; }
.page-nums { display: flex; align-items: center; gap: 2px; }
.page-num {
  min-width: 30px;
  height: 30px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.page-num:hover { background: var(--surface-3); color: var(--text); }
.page-num:active { transform: scale(.94); }
.page-num.is-current {
  background: var(--text);
  color: var(--surface);
  font-weight: 600;
}
.page-gap { color: var(--text-3); padding: 0 2px; }
.page-jump { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.page-jump input {
  width: 54px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  font-size: 12.5px;
  outline: none;
}
.page-jump input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.page-jump button {
  height: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}
.page-jump button:hover { border-color: var(--line-2); color: var(--text); }
.page-total { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* ============ 题库 / 面经 ============ */
.qa-list, .mj-list { display: flex; flex-direction: column; gap: 6px; }
.qa-item, .mj-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.qa-item:hover, .mj-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.qa-item[open], .mj-item[open] {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: var(--shadow-2);
}
.qa-item > summary, .mj-item > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  transition: background var(--dur-1) var(--ease-out);
}
.qa-item > summary::-webkit-details-marker,
.mj-item > summary::-webkit-details-marker { display: none; }
.qa-item > summary:hover, .mj-item > summary:hover { background: var(--surface-2); }

.qa-index {
  flex: none;
  width: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  transition: color var(--dur-1) var(--ease-out);
}
.qa-item[open] .qa-index { color: var(--accent); }
.qa-question {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
  color: var(--text);
  line-height: 1.45;
}
.chev {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: transform var(--dur-2) var(--ease), color var(--dur-1) var(--ease-out);
}
summary:hover .chev { color: var(--text-2); }
.chev svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
details[open] > summary .chev { transform: rotate(180deg); color: var(--accent); }

.qa-body, .mj-body {
  padding: 6px 16px 16px 52px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  animation: reveal var(--dur-3) var(--ease-out) both;
}
.qa-block { margin-top: 12px; }
.qa-block h4, .mj-round h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: 5px;
}
.qa-block ul, .mj-round ol { padding-left: 17px; color: var(--text-2); }
.qa-block li, .mj-round li { margin: 3px 0; line-height: 1.75; }
.qa-answer {
  color: var(--text-2);
  line-height: 1.85;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 3px var(--radius-sm) var(--radius-sm) 3px;
}
.mj-round { margin-top: 14px; }
.mj-round:first-child { margin-top: 6px; }

.mj-company { flex: none; font-size: 14px; font-weight: 600; color: var(--text); }
.mj-role {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mj-meta { flex: none; font-size: 11.5px; color: var(--text-3); }

/* ============ 名录 ============ */
.soe-group { margin-top: 22px; }
.soe-group:first-of-type { margin-top: 6px; }
.soe-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 9px;
}
.group-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 0 7px;
}
.soe-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
}
.soe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              box-shadow var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.soe-item svg { width: 11px; height: 11px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; color: var(--text-3); }
a.soe-item:hover {
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
a.soe-item:hover svg { color: var(--accent); }
.soe-item.is-static { color: var(--text-2); }

/* ============ 详情弹层 ============ */
.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 11, 6, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade var(--dur-2) var(--ease-out) both;
}
.dialog {
  position: relative;
  width: min(660px, 100%);
  max-height: min(82vh, 740px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  animation: dialog-in var(--dur-3) var(--ease) both;
  overflow: hidden;
  will-change: transform, opacity;
}
.dialog-layer.is-closing { pointer-events: none; }
.dialog-layer.is-closing .dialog { animation: dialog-out .19s var(--ease-in-out) both; }
.dialog-layer.is-closing .dialog-mask { animation: fade-out .19s var(--ease-in-out) both; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes dialog-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(6px) scale(.99); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

.dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 8px;
}
.dialog-title { flex: 1; min-width: 0; }
.dialog-head h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.dialog-head p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.icon-btn {
  flex: none;
  margin-left: auto;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.dialog-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 18px 6px; }
.dialog-tags .tag {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.dialog-loc {
  display: flex;
  gap: 8px;
  padding: 2px 18px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}
.dialog-loc span { flex: none; color: var(--text-3); }
.dialog-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.detail-block + .detail-block { margin-top: 16px; }
.detail-block h3 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.detail-block p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 5px;
  word-break: break-word;
}
.dialog-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.dialog-foot .ghost { font-size: 13px; }
.dialog-foot .btn { margin-left: auto; }

/* ============ 页脚 ============ */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.foot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* ============ 语义色阶：每个 tone 三档 —— 底 / 实心 / 文字 ============
   文字档直接引用色阶 step11，明暗两套值已在 :root / dark 中定义 */
[data-tone="blue"]   { --tone-3: var(--t-blue-3);   --tone-9: var(--t-blue-9);   --tone-text: var(--t-blue-11); }
[data-tone="cyan"]   { --tone-3: var(--t-cyan-3);   --tone-9: var(--t-cyan-9);   --tone-text: var(--t-cyan-11); }
[data-tone="teal"]   { --tone-3: var(--t-teal-3);   --tone-9: var(--t-teal-9);   --tone-text: var(--t-teal-11); }
[data-tone="green"]  { --tone-3: var(--t-green-3);  --tone-9: var(--t-green-9);  --tone-text: var(--t-green-11); }
[data-tone="amber"]  { --tone-3: var(--t-amber-3);  --tone-9: var(--t-amber-9);  --tone-text: var(--t-amber-11); }
[data-tone="orange"] { --tone-3: var(--t-orange-3); --tone-9: var(--t-orange-9); --tone-text: var(--t-orange-11); }
[data-tone="red"]    { --tone-3: var(--t-red-3);    --tone-9: var(--t-red-9);    --tone-text: var(--t-red-11); }
[data-tone="violet"] { --tone-3: var(--t-violet-3); --tone-9: var(--t-violet-9); --tone-text: var(--t-violet-11); }
[data-tone="slate"]  { --tone-3: var(--t-slate-3);  --tone-9: var(--t-slate-9);  --tone-text: var(--t-slate-11); }

/* ============ 动效 ============ */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
#results.is-enter > * { animation: fade-in-up var(--dur-3) var(--ease-out) both; }
#results.is-enter > *:nth-child(2) { animation-delay: .04s; }
#results.is-enter > *:nth-child(3) { animation-delay: .07s; }

/* ============ 响应式：平板 ============ */
@media (max-width: 1120px) {
  .list-table th:nth-child(2), .list-table td:nth-child(2) { width: 160px; }
  .list-table th:nth-child(3), .list-table td:nth-child(3) { width: 116px; }
  .list-table th:nth-child(4), .list-table td:nth-child(4) { width: 124px; }
  .searchbox { max-width: 260px; }
}

/* 桌面端表头吸附在顶栏下方 */
@media (min-width: 1024px) {
  .table-wrap { overflow: visible; }
  .list-table thead th {
    position: sticky;
    top: var(--topbar-h);
    z-index: 2;
    box-shadow: inset 0 1px 0 var(--surface), 0 1px 0 var(--line-2);
  }
}

/* ============ 响应式：移动端（表格转紧凑卡片） ============ */
@media (max-width: 860px) {
  /* —— 顶栏：允许换行，5 个模块全部可见 —— */
  .topbar-in {
    height: auto;
    padding: 8px 14px 9px;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 10px;
  }
  .brand { order: 1; }
  .brand-name { font-size: 14px; }
  .ai-cta {
    order: 2;
    margin-left: auto;
    height: 32px;
    padding: 0 11px 0 9px;
    font-size: 12.5px;
  }
  .ai-cta-text b { display: none; }
  .segmented {
    order: 4;
    flex: 1 1 100%;
    row-gap: 2px;
    overflow: visible;
  }
  .seg { padding: 5px 9px; font-size: 12.5px; }
  .ai-cta-text { display: none; }
  .ai-cta { padding: 0 10px; gap: 0; }
  .ai-cta-ico svg { width: 17px; height: 17px; }
  .seg-count { font-size: 10.5px; }
  .searchbox {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    height: 32px;
  }
  .searchbox kbd { display: none; }
  .topbar-note { display: none; }

  .page { padding: 16px 14px 56px; }

  /* —— 概览：紧凑三列 —— */
  .overview { flex-direction: column; align-items: stretch; gap: 14px; padding: 15px 16px 14px; }
  .ov-stats { flex: 0 0 auto; flex-wrap: wrap; row-gap: 12px; }
  .stat-item { flex: 1 1 30%; padding: 0 10px; }
  .stat-item:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .stat-num { font-size: 18px; }
  .stat-cap { font-size: 11px; white-space: normal; line-height: 1.35; }
  .ov-side { justify-content: space-between; gap: 14px; flex: 0 0 auto; border-left: 0; padding-left: 0; }
  .progress { min-width: 120px; }
  .ov-words { display: none; }

  .module-head { align-items: flex-start; }
  .module-title h1 { font-size: 22px; }
  .search-inline { width: 100%; min-width: 0; }

  /* —— 工具条：折叠为「筛选 + 排序」 —— */
  .toolbar { padding: 8px 10px; gap: 10px; border-radius: var(--radius); }
  .filter-toggle { display: inline-flex; }
  .quick-filters { display: none; }
  .filter-panel { display: none; margin-top: 8px; }
  .filter-panel.is-open { display: flex; }
  .toolbar-right { margin-left: auto; gap: 10px; }

  /* —— 列表卡片 —— */
  .table-wrap { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .list-table { display: block; font-size: 13px; }
  .list-table thead { display: none; }
  .list-table tbody { display: flex; flex-direction: column; gap: 9px; }
  .list-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 6px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
  }
  .list-table td {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    width: auto !important;
    font-size: 12.5px;
  }
  /* 卡片里不需要列名，信息本身自解释 */
  .list-table td::before { display: none; }
  /* 取消桌面端的强调条与竖线 */
  .list-table tbody tr td:first-child::before { display: none; }
  .list-table th + th, .list-table td + td { border-left: 0; }
  .list-table tbody tr:hover { background: var(--surface); }
  .list-table tbody tr:active { background: var(--surface-2); }

  .col-date  { grid-row: 1; grid-column: 1; align-self: center; font-size: 11.5px; }
  .col-heat  { grid-row: 1; grid-column: 3; justify-self: end; }
  .col-company { grid-row: 2; grid-column: 1 / -1; }
  .col-company .company { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
  .col-company .src { font-size: 10px; }

  .col-industry { grid-row: 3; grid-column: 1; justify-self: start; min-width: 0; }
  .col-nature   { grid-row: 3; grid-column: 2; justify-self: start; flex-wrap: wrap; }
  .col-batch    { grid-row: 3; grid-column: 3; justify-self: end; }

  .col-positions { grid-row: 4; grid-column: 1 / -1; color: var(--text-2); }
  .col-positions .clamp-2 { -webkit-line-clamp: 2; }

  .col-place    { grid-row: 5; grid-column: 1 / 3; min-width: 0; }
  .col-deadline { grid-row: 5; grid-column: 3; justify-self: end; }

  .col-links {
    grid-row: 6;
    grid-column: 1 / -1;
    gap: 18px;
    padding-top: 9px;
    margin-top: 2px;
    border-top: 1px dashed var(--line);
  }
  .link-row { gap: 16px; width: 100%; align-items: center; }
  .ghost { font-size: 13px; }
  .ghost-strong { margin-left: auto; }

  /* 卡片内标签尺寸略放大，方便点击判断 */
  .tag, .batch-pill { font-size: 11.5px; }
  .ind { font-size: 12.5px; }

  /* —— 分页 —— */
  .pager { gap: 6px; margin-top: 14px; }
  .page-total { display: none; }
  .page-jump { margin-left: auto; }

  /* —— 文档类模块 —— */
  .qa-body, .mj-body { padding-left: 16px; }
  .soe-grid { grid-template-columns: 1fr; }
  .foot { font-size: 11.5px; }

  /* —— 弹层：底部抽屉 —— */
  .dialog-layer { align-items: flex-end; padding: 0; }
  .dialog {
    width: 100%;
    max-height: min(88vh, 780px);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    animation: sheet-in var(--dur-3) var(--ease) both;
  }
  .dialog-layer.is-closing .dialog { animation: sheet-out .2s var(--ease-in-out) both; }
  .dialog-head { padding: 16px 16px 6px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-tags, .dialog-loc { padding-left: 16px; padding-right: 16px; }
  .dialog-body { padding: 12px 16px 16px; }
  .dialog-foot {
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }
  .dialog-foot .ghost { font-size: 13.5px; }
}

@keyframes sheet-in {
  from { opacity: .6; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sheet-out {
  from { opacity: 1; transform: none; }
  to   { opacity: .5; transform: translateY(24px); }
}

@media (max-width: 420px) {
  .stat-item { flex: 1 1 30%; padding: 0 8px; }
  .stat-num { font-size: 17px; }
  .stat-cap { font-size: 10.5px; }
  .cd-val b { font-size: 13px; }
  .brand-name { display: none; }
  .list-table tr { padding: 11px 12px; }
  .col-company .company { font-size: 15px; }
}

/* ============ 可访问性与输出 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .dialog-mask { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 11, 6, .72); }
}

@media print {
  .topbar, .toolbar, .filter-panel, .active-filters, .pager, .foot,
  .searchbox, .search-inline, .filter-toggle, .segmented { display: none !important; }
  body { background: #fff; color: #000; }
  .overview { background: #fff !important; color: #000; border-color: #ccc; box-shadow: none; }
  .overview ::before { display: none; }
  .stat-num, .stat-num[data-tone] { color: #000 !important; }
  .stat-cap, .cd-cap, .progress-meta { color: #444 !important; }
  .table-wrap { border-color: #ccc; box-shadow: none; }
  .list-table th { background: #f2f2f2; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10px; color: #666; }
}

/* ============ AI 帮找 CTA（深紫罗兰） ============ */
.ai-cta {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px 0 11px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ai-hi) 92%, #ffffff 8%) 0%,
      var(--ai) 46%,
      var(--ai-lo) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .16) inset,
    0 -1px 0 rgba(0, 0, 0, .18) inset,
    0 2px 6px -1px rgba(58, 39, 96, .42),
    0 8px 22px -10px rgba(58, 39, 96, .55);
  transition: transform var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              filter var(--dur-1) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
/* 顶部一层柔光，模拟「玻璃釉面」 */
.ai-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* 缓慢扫光 */
.ai-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 36%, rgba(255, 255, 255, .3) 50%, transparent 64%);
  transform: translateX(-125%);
  animation: cta-shine 4.6s var(--ease-in-out) infinite;
  pointer-events: none;
}
@keyframes cta-shine {
  0%, 64% { transform: translateX(-125%); }
  90%, 100% { transform: translateX(125%); }
}
.ai-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.07) saturate(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .2) inset,
    0 -1px 0 rgba(0, 0, 0, .18) inset,
    0 3px 8px -1px rgba(58, 39, 96, .45),
    0 12px 26px -10px rgba(58, 39, 96, .62);
}
.ai-cta:active { transform: translateY(0) scale(.985); }
.ai-cta:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ai-soft);
}

.ai-cta-ico { display: inline-flex; position: relative; z-index: 1; }
.ai-cta-ico svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22));
}
.ai-cta-text { display: inline-flex; align-items: baseline; gap: 4px; position: relative; z-index: 1; }
.ai-cta-text b { font-weight: 700; }

/* 深色模式下 --ai 变亮，实心紫块一律改用深色字，保证对比度 */
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #1a1327; }
  .rec-chip.is-on { color: #1a1327; }
  .rec-rank { color: var(--ai-ink); }
}

/* 深色模式：紫调提亮，避免糊在暗底上 */
@media (prefers-color-scheme: dark) {
  .ai-cta {
    color: #1a1327;
    background: linear-gradient(180deg, #c4b0ff 0%, var(--ai) 55%, #9376ea 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .34) inset,
      0 2px 8px -1px rgba(0, 0, 0, .5),
      0 10px 26px -12px rgba(167, 139, 250, .55);
  }
  .ai-cta:hover { filter: brightness(1.06); }
  .ai-cta-ico svg { filter: none; }
}

/* ============ AI 帮找 · 对话式界面 ============ */
.rec-dialog {
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
}
.ai-head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.ai-head h2 { font-size: 19px; letter-spacing: -.02em; }
.ai-head p { margin-top: 5px; color: var(--text-3); }
.rec-spark svg { width: 19px; height: 19px; }
.rec-body { padding: 0 22px 22px; }

/* —— 输入区 —— */
.ai-hero { padding-top: 20px; }
.ai-lead {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 12px;
}
.ai-field {
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--surface);
  padding: 4px 4px 4px 0;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.ai-field:focus-within {
  border-color: var(--ai);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ai) 12%, transparent);
}
.ai-input {
  width: 100%;
  min-height: 74px;
  max-height: 180px;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  padding: 12px 14px 6px;
  outline: none;
  display: block;
  overflow-y: auto;
}
.ai-input::placeholder { color: var(--text-3); }
.ai-field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px 8px 14px;
}
.ai-count {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ai-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ai-hi) 92%, #fff 8%) 0%, var(--ai) 55%, var(--ai-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18),
              0 2px 8px -2px color-mix(in srgb, var(--ai) 50%, transparent);
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.ai-go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.ai-go:hover { transform: translateY(-1px); filter: brightness(1.06); }
.ai-go:active { transform: translateY(0) scale(.98); }

/* —— 示例 —— */
.ai-examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; align-items: center; }
.ai-ex-cap { font-size: 11.5px; color: var(--text-3); margin-right: 2px; }
.ai-ex {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.ai-ex:hover {
  border-color: color-mix(in srgb, var(--ai) 40%, var(--line));
  color: var(--ai-ink);
  background: var(--ai-soft);
  transform: translateY(-1px);
}

/* —— 运行态 —— */
.ai-running {
  padding: 46px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ai-orb { position: relative; width: 46px; height: 46px; margin-bottom: 18px; }
.ai-orb span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ai) 26%, transparent);
  animation: orb 1.8s var(--ease-in-out) infinite;
}
.ai-orb span:nth-child(2) { animation-delay: .3s; }
.ai-orb span:nth-child(3) { animation-delay: .6s; }
.ai-orb::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--ai);
  box-shadow: 0 0 18px color-mix(in srgb, var(--ai) 60%, transparent);
}
@keyframes orb {
  0% { transform: scale(.55); opacity: .85; }
  100% { transform: scale(1.25); opacity: 0; }
}
.ai-running-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.ai-steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ai-steps li {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ai-steps li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-2);
  flex: none;
}
.ai-steps li.is-done { color: var(--text-2); }
.ai-steps li.is-done::before { background: color-mix(in srgb, var(--ai) 55%, transparent); }
.ai-steps li.is-live { color: var(--ai-ink); font-weight: 500; }
.ai-steps li.is-live::before {
  background: var(--ai);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ai) 18%, transparent);
  animation: pulse 1.2s var(--ease-in-out) infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* —— 结果头部 —— */
.ai-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.ai-result-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
}
.ai-result-meta b { color: var(--text); font-weight: 600; font-size: 13px; }
.ai-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); flex: none; }
.ai-again {
  border: 0;
  background: transparent;
  color: var(--ai-ink);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background var(--dur-1) var(--ease-out);
}
.ai-again:hover { background: var(--ai-soft); }

/* —— 结果卡片 —— */
.ai-cards { display: flex; flex-direction: column; gap: 9px; }
.ai-card {
  display: flex;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
  animation: card-in var(--dur-3) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.ai-card:hover {
  border-color: color-mix(in srgb, var(--ai) 30%, var(--line));
  box-shadow: 0 10px 26px -16px color-mix(in srgb, var(--ai) 55%, transparent);
  transform: translateY(-1px);
}
.ai-card-main { flex: 1; min-width: 0; }
.ai-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-card-name {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}
.ai-card-name:hover { color: var(--ai-ink); text-decoration: underline; text-underline-offset: 3px; }
.ai-card-pos {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-3);
}
.ai-meta-i { color: var(--text-2); font-weight: 500; }
.ai-why {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ai-ink);
  background: var(--ai-soft);
  border-left: 2px solid color-mix(in srgb, var(--ai) 45%, transparent);
  border-radius: 0 8px 8px 0;
  padding: 7px 11px;
}

/* —— 分数环 —— */
.ring {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg {
  stroke: var(--ai);
  transition: stroke-dashoffset .7s var(--ease);
}
.ring b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.ring[data-tone="hi"] .ring-fg { stroke: var(--ai); }
.ring[data-tone="hi"] b { color: var(--ai-ink); }
.ring[data-tone="mid"] .ring-fg { stroke: color-mix(in srgb, var(--ai) 55%, var(--line-2)); }
.ring[data-tone="mid"] b { color: var(--text-2); }
.ring[data-tone="lo"] .ring-fg { stroke: var(--line-2); }
.ring[data-tone="lo"] b { color: var(--text-3); }

/* —— 空态 / 错误 —— */
.ai-empty { padding: 44px 16px; text-align: center; }
.ai-empty p { font-size: 13.5px; color: var(--text-2); }
.ai-empty-sub { margin-top: 5px; font-size: 12.5px; color: var(--text-3); }
.ai-empty .ai-go { margin-top: 16px; }
.ai-err {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 9px;
  padding: 9px 12px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  /* 移动端改为底部抽屉，占满宽度 */
  .dialog-layer { align-items: flex-end; padding: 0; }
  .dialog {
    width: 100%;
    max-width: none;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    animation: sheet-in var(--dur-3) var(--ease) both;
  }
  @keyframes sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .rec-dialog { max-height: 92vh; }
  .ai-head { padding: 16px 16px 12px; }
  .rec-body { padding: 0 16px 18px; }
  .ai-lead { font-size: 13px; }
  .ai-card { padding: 12px 13px; gap: 11px; }
  .ring { width: 38px; height: 38px; }
  .ring b { font-size: 12px; }
  .ai-card-name { font-size: 14px; }
  .ai-orb { width: 40px; height: 40px; }
  .ai-orb::after { inset: 14px; }
}

/* AI 结果卡里的公告/投递链接 */
.ai-card-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.ai-card-links .ghost { font-size: 12.5px; }
.ai-card-links .ghost svg { width: 10px; height: 10px; }
