:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #14171f;
  --ink-2: #3d4351;
  --muted: #7a8293;
  --line: #e5e7ec;
  --brand: #2b59ff;
  --brand-soft: #eef2ff;
  --warn: #d97706;
  --warn-soft: #fff6e6;
  --danger: #d92d20;
  --danger-soft: #fef1f0;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* hidden 属性必须能压过 .layout / .page-pane 上的 display，否则切换板块时列表不会被隐藏 */
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.55;
}

button { font-family: inherit; cursor: pointer; }

/* ---------- header ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2b59ff, #6d8cff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.brand-text h1 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-text p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.search-box {
  position: relative;
  flex: 1 1 300px;
  max-width: 460px;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f7f8fa;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.search-box input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 89, 255, 0.12);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
}

.search-clear:hover { background: #eceef2; color: var(--ink); }

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 9px 4px 11px;
  margin-right: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

.tab .tab-count {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}

/* ---------- layout ---------- */

.layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 118px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sidebar-head strong { font-size: 13px; }

.reset-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
}

.reset-btn:hover { background: var(--brand-soft); }

.filter-group { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.filter-group:last-child { border-bottom: 0; }

.filter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-title .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

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

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  transition: all 0.12s;
  white-space: nowrap;
}

.chip:hover { border-color: #c9cfdb; background: #fafbfc; }

.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip .chip-count { opacity: 0.6; margin-left: 3px; font-size: 11px; }

.chip.more { border-style: dashed; color: var(--brand); }

.city-search {
  width: 100%;
  height: 30px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  outline: none;
}

.city-search:focus { border-color: var(--brand); }

.city-list {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 2px;
}

.city-list.open { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- results ---------- */

.results-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.result-count { font-size: 13px; color: var(--muted); }
.result-count b { color: var(--ink); font-weight: 600; }

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

.active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-soft);
  color: #2447cc;
  border-radius: 6px;
  padding: 2px 6px 2px 8px;
  font-size: 12px;
}

.active-tag button {
  border: 0;
  background: transparent;
  color: #2447cc;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
}

.sort-select {
  margin-left: auto;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  font-size: 12px;
  color: var(--ink-2);
  outline: none;
}

.card-list { display: grid; gap: 10px; }

.job-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.job-card:hover {
  border-color: #cdd5e6;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.job-card-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.job-company { font-size: 15px; font-weight: 700; letter-spacing: 0.1px; }

.badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 5px;
  background: #f1f3f7;
  color: var(--ink-2);
  white-space: nowrap;
}

.badge.ownership { background: #f0f4ff; color: #2b4bd0; }
.badge.batch { background: #f5f0ff; color: #6b3fd4; }
.badge.year { background: #eefaf3; color: #0b7a4b; }
.badge.test { background: #fff4e5; color: #a4610a; }
.badge.official { background: #e6f7ee; color: #047857; }
.badge.positions { background: #eef2ff; color: #4338ca; }

.deadline {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.deadline.urgent { color: var(--warn); font-weight: 600; }
.deadline.over { color: var(--danger); text-decoration: line-through; }
.deadline.asap { color: var(--ok); font-weight: 600; }

.job-positions {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}

.job-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-meta b { font-weight: 500; color: var(--ink-2); }

mark {
  background: #ffe58f;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

.empty button {
  margin-top: 14px;
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
}

.sentinel { height: 1px; }

.loading {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- drawer ---------- */

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 60;
}

.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(520px, 100%);
  background: var(--panel);
  z-index: 61;
  transform: translateX(102%);
  transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(16, 24, 40, 0.14);
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.drawer-head h2 { font-size: 17px; margin: 0 0 4px; line-height: 1.4; }
.drawer-head p { margin: 0; font-size: 12px; color: var(--muted); }

.drawer-close {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  flex: 0 0 auto;
}

.drawer-body { padding: 16px 20px 40px; overflow-y: auto; }

.detail-section { margin-bottom: 20px; }

.detail-section h3 {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.4px;
}

.detail-rows { display: grid; gap: 10px; }

.detail-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; color: var(--ink); word-break: break-word; }

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

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  text-decoration: none;
  margin: 0 8px 8px 0;
  transition: all 0.15s;
}

.link-btn:hover { border-color: #c3ccdd; background: #fafbff; }
.link-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.link-btn.primary:hover { background: #1f49e0; }

.copy-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  padding: 0 2px;
}

.note-box {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: pre-wrap;
}

.footer-note {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 40px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- mobile filter ---------- */

.mobile-filter-bar { display: none; }

@media (max-width: 1023px) {
  .header-inner { padding: 12px 16px 0; }
  .layout { grid-template-columns: 1fr; padding: 14px 16px 40px; }

  .search-box { order: 3; flex: 1 1 100%; max-width: none; }

  .mobile-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .filter-toggle {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .filter-toggle b { color: var(--brand); }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 70;
    max-height: 78vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
    transition: transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 -12px 40px rgba(16, 24, 40, 0.16);
  }

  .sidebar.open { transform: translateY(0); }

  .sidebar-foot {
    position: sticky;
    bottom: 0;
    padding: 10px 0 4px;
    background: #fff;
  }

  .sidebar-foot button {
    width: 100%;
    height: 38px;
    border: 0;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
  }

  .results-head .result-count { display: none; }
  .job-company { font-size: 14px; }
  .deadline { margin-left: 0; }
  .footer-note { padding: 0 16px 30px; }
}

@media (min-width: 1024px) {
  .sidebar-foot { display: none; }
}

/* ---------- 通用辅助 ---------- */

.muted { color: var(--muted); }

/* ---------- 视图容器 / 子导航 ---------- */

.page-pane {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.sub-tabs {
  display: flex;
  gap: 4px;
  margin-top: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sub-tab {
  border: 0;
  background: transparent;
  padding: 7px 14px;
  margin-right: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 8px;
  transition: all 0.15s;
}

.sub-tab:hover { background: #f0f2f7; color: var(--ink-2); }

.sub-tab[aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- 数据看板 ---------- */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--brand));
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.stat-val {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent, var(--brand));
  letter-spacing: -0.5px;
}

.stat-label {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 200px;
}

.dash-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.wordcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.wc-word {
  cursor: default;
  padding: 2px 5px;
  border-radius: 5px;
  line-height: 1.5;
  transition: background 0.15s, transform 0.15s;
  font-weight: 600;
}

.wc-word:hover {
  background: #f0f2f7;
  transform: translateY(-1px);
}

.cd-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.cd-row:hover { background: #f5f7fb; }

.cd-company {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-date {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.dash-tip {
  margin: 16px 0 0;
  font-size: 12px;
}

/* ---------- 央国企名录 ---------- */

.soe-head { margin-bottom: 16px; }

.soe-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.soe-head p {
  margin: 0;
  font-size: 12px;
}

.soe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.soe-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.soe-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.soe-card--nolink {
  cursor: default;
  opacity: 0.72;
}

.soe-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soe-go {
  font-size: 12px;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

.soe-go.muted { color: var(--muted); }

/* ---------- 求职资料 ---------- */

.doc-body {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.doc-title {
  margin: 0 0 16px;
  padding-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.doc-content {
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

.doc-content h1,
.doc-content h2,
.doc-content h3,
.doc-content h4 {
  color: var(--ink);
  line-height: 1.4;
}

.doc-content h1 { font-size: 20px; margin: 26px 0 12px; }
.doc-content h2 { font-size: 18px; margin: 24px 0 10px; }
.doc-content h3 { font-size: 16px; margin: 20px 0 8px; }
.doc-content h4 { font-size: 15px; margin: 16px 0 6px; }

.doc-content p { margin: 10px 0; }

.doc-content ul,
.doc-content ol {
  margin: 10px 0;
  padding-left: 24px;
}

.doc-content li { margin: 4px 0; }

.doc-content a {
  color: var(--brand);
  text-decoration: none;
}

.doc-content a:hover { text-decoration: underline; }

.doc-content img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 12px 0;
}

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

.doc-content code {
  background: #f1f3f7;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.doc-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

.doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.doc-content th,
.doc-content td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
}

.doc-content th { background: #f7f8fa; }

/* ---------- 响应式补充 ---------- */

@media (max-width: 1023px) {
  .page-pane { padding: 14px 16px 40px; }
  .dash-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .stat-val { font-size: 24px; }
  .dash-row { grid-template-columns: 1fr; }
  .soe-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .doc-body { padding: 20px 18px; }
  .doc-title { font-size: 19px; }
}

@media (max-width: 560px) {
  .sub-tab { padding: 6px 10px; font-size: 12px; margin-right: 4px; }
  .stat-card { padding: 12px 12px 10px; }
  .stat-val { font-size: 21px; }
  .dash-card { min-height: 0; padding: 12px; }
  .wc-word { font-weight: 500; }
}

/* ---------- 快捷筛选 / 收藏 ---------- */

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip.quick {
  border-color: #dbe2f3;
  background: #f7f9ff;
  color: #2b4bd0;
  font-weight: 500;
}

.chip.quick[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip.zero { opacity: 0.38; }

.fav-btn {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #c3c9d6;
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.fav-btn:hover { background: #fff6e6; color: var(--warn); }
.fav-btn.active { color: #f5a623; }

.drawer-fav {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 16px;
  flex: 0 0 auto;
}

.drawer-fav.active {
  color: #f5a623;
  border-color: #f5d79b;
  background: #fffbef;
}

.drawer-close { margin-left: 0; }

/* 页面顶部说明（利于搜索引擎与生成式引擎抓取正文） */
.seo-summary {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 0;
  color: #5b6472;
  font-size: 13px;
  line-height: 1.7;
}
.seo-summary h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #2b3442;
}
.seo-summary p { margin: 0; }
.seo-summary b { font-weight: 600; color: #1f2733; }
.seo-summary .seo-more { margin-top: 4px; }
.seo-summary .seo-more a { color: #3b5bdb; text-decoration: none; }
.seo-summary .seo-more a:hover { text-decoration: underline; }

.retry-btn {
  margin-left: 8px;
  padding: 4px 12px;
  border: 1px solid #cfd6e3;
  border-radius: 6px;
  background: #fff;
  color: #3b5bdb;
  font-size: 13px;
  cursor: pointer;
}
.retry-btn:hover { border-color: #3b5bdb; }

.noscript-note {
  max-width: 760px;
  margin: 24px auto;
  padding: 16px 20px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  color: #3d4655;
  font-size: 14px;
  line-height: 1.8;
}
.noscript-note h2 { margin: 0 0 8px; font-size: 16px; }
.noscript-note ul { margin: 8px 0 0; padding-left: 20px; }

/* ---------- 宣讲会日历 ---------- */
.events-head { margin-bottom: 16px; }

.events-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.events-head p {
  margin: 0 0 12px;
  font-size: 12px;
}

.event-day { margin-bottom: 22px; }

.event-day h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.event-day h3 span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.event-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.event-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.event-time {
  flex: 0 0 92px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.event-main { flex: 1; min-width: 0; }

.event-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-school {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .event-item { flex-wrap: wrap; gap: 6px 12px; }
  .event-time { flex-basis: auto; }
  .event-main { flex-basis: 100%; }
}

/* ===================== 新增功能样式 ===================== */

/* 顶部 tab 数量增多后允许横向滚动 */
.tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.results-head { gap: 10px; }

/* ---------- 我的专业（F9） ---------- */
.major-box { display: flex; flex-direction: column; gap: 6px; }
.major-box input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff; color: var(--ink);
}
.major-box input:focus { outline: none; border-color: var(--brand); }
.major-toggle { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.major-toggle input { width: auto; }

/* 匹配度徽章 */
.badge.match-high { background: #e6f7ee; color: #047857; font-weight: 600; }
.badge.match-mid  { background: #fff6e6; color: #a4610a; }
.badge.match-low  { background: #f1f3f7; color: var(--muted); }

/* 卡片对比切换（F3） */
.compare-toggle {
  margin-left: 4px; border: 0; background: transparent; color: #c3c9d6;
  font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 6px; flex: 0 0 auto;
}
.compare-toggle:hover { background: var(--brand-soft); color: var(--brand); }
.compare-toggle.active { color: var(--brand); background: var(--brand-soft); }

/* 工具按钮变体 */
.copy-btn.primary { background: var(--brand); color: #fff; border-radius: 7px; padding: 4px 12px; font-weight: 600; }
.copy-btn.primary:hover { background: #1f49e0; }
.copy-btn.danger { color: var(--danger); }
.share-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 7px; padding: 4px 12px; font-size: 12px; font-weight: 500; white-space: nowrap;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 对比栏 / 安装横幅 / toast ---------- */
.compare-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 10px 8px 16px; box-shadow: var(--shadow); font-size: 13px;
}
.compare-bar-actions { display: flex; gap: 6px; }
.install-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; max-width: 92vw;
}
.toast {
  position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%);
  z-index: 80; background: rgba(20,23,31,0.92); color: #fff;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
}

/* ---------- 对比抽屉（F3） ---------- */
.compare-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(20,23,31,0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.compare-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 1100px;
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.compare-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare-head h3 { margin: 0; font-size: 16px; }
.compare-body { overflow: auto; padding: 16px; }
.compare-grid { display: grid; gap: 12px; }
.compare-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.compare-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.compare-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.compare-cell { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fafbff; }
.compare-cell h4 { margin: 0 0 6px; font-size: 14px; }
.compare-cell .cc-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.compare-cell .cc-positions { font-size: 12px; color: var(--ink-2); margin-top: 6px; max-height: 150px; overflow: auto; white-space: pre-line; }
.compare-cell .cc-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 我的投递（F1） ---------- */
.apps-head { margin-bottom: 14px; }
.apps-head h2 { margin: 0 0 4px; font-size: 18px; }
.apps-head p { margin: 0 0 10px; font-size: 13px; }
.apps-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.apps-tools .copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 12px; font-size: 12px; }
.apps-tools .copy-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.apps-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.app-stat { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; font-size: 12px; color: var(--ink-2); }
.app-stat b { color: var(--brand); font-size: 14px; margin-right: 3px; }
.app-list { display: flex; flex-direction: column; gap: 8px; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
}
.app-card:hover { border-color: #c3ccdd; }
.app-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-card-top .company { font-weight: 700; font-size: 15px; }
.app-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.app-note { font-size: 12px; color: var(--ink-2); background: #f8f9fb; border-radius: 7px; padding: 6px 9px; min-height: 18px; }
.app-note[contenteditable="true"]:focus { outline: 1px solid var(--brand); background: #fff; }
.app-status-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.app-status-pick button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: 11px; color: var(--ink-2); cursor: pointer;
}
.app-status-pick button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 投递状态徽章 */
.badge.st-saved     { background: #eef2ff; color: #4338ca; }
.badge.st-applied   { background: #e6f7ee; color: #047857; }
.badge.st-test      { background: #fff6e6; color: #a4610a; }
.badge.st-interview { background: #f5f0ff; color: #6b3fd4; }
.badge.st-offer     { background: #e6f7ee; color: #047857; font-weight: 700; }
.badge.st-rejected  { background: #fef1f0; color: var(--danger); }

/* ---------- 详情抽屉扩展区块（F4 / F7 / F8 / F10） ---------- */
.rec-list { display: flex; flex-direction: column; gap: 6px; }
.rec-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; cursor: pointer; background: #fff;
}
.rec-item:hover { border-color: var(--brand); color: var(--brand); }
.rec-item .rec-sub { font-size: 11px; color: var(--muted); }
.review-item { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; background: #fafbff; }
.review-item .rv-title { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.review-item .rv-snippet { font-size: 12px; color: var(--ink-2); }
.review-item .rv-source { font-size: 11px; color: var(--muted); margin-top: 3px; }
.q-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; margin-bottom: 7px; background: #fff; }
.q-item .qq { font-weight: 600; font-size: 13px; }
.q-item .qa { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.q-src a { color: var(--brand); text-decoration: none; }
.q-src a:hover { text-decoration: underline; }
.section-source { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.event-link-badge { display: inline-flex; align-items: center; margin-top: 4px; }
.event-link-badge button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11px; color: var(--brand); cursor: pointer; }

@media (max-width: 640px) {
  .compare-grid.cols-3, .compare-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .install-banner { font-size: 12px; padding: 8px 10px; }
  .apps-tools .copy-btn { padding: 5px 9px; font-size: 11px; }
}

/* ---------- 数据看板 v2（沉浸式总览） ---------- */
.dash-v2 { display: flex; flex-direction: column; gap: 16px; }

.dash-hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px 24px; color: #fff;
  background:
    radial-gradient(900px 260px at 8% -30%, rgba(120,160,255,.55) 0%, transparent 60%),
    linear-gradient(135deg, #16225c 0%, #2b59ff 58%, #6b3fd4 100%);
  box-shadow: 0 18px 40px rgba(24, 45, 120, .22);
}
.dash-hero::after {
  content: ''; position: absolute; right: -70px; bottom: -140px; width: 340px; height: 340px;
  border-radius: 50%; border: 40px solid rgba(255,255,255,.06);
}
.dh-kicker { font-size: 11px; letter-spacing: .18em; opacity: .72; }
.dash-hero h2 { margin: 6px 0 18px; font-size: 20px; font-weight: 700; color: #fff; }
.dh-numbers { display: flex; gap: 44px; flex-wrap: wrap; position: relative; z-index: 1; }
.dh-num strong { display: block; font-size: 46px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dh-num span { font-size: 12px; opacity: .78; }
.dh-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 24px; position: relative; z-index: 1; }
.dh-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 10px 12px; }
.dh-pill-val { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dh-pill-label { font-size: 11px; opacity: .76; }

.dash-v2-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; align-items: start; }
.dash-v2-grid .dash-block:first-child { grid-row: span 2; }
.dash-block { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.dash-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dash-block-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.dash-mini { font-size: 11px; color: var(--muted); }
.dash-block .wordcloud { justify-content: flex-start; align-content: flex-start; min-height: 170px; }

.cd-timeline { display: flex; flex-direction: column; gap: 8px; }
.cd-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fbfcff; border-radius: 12px; padding: 10px 12px;
  cursor: pointer; font: inherit; transition: border-color .15s, background .15s, transform .15s;
}
.cd-item:hover { border-color: var(--brand); background: #f2f6ff; transform: translateX(2px); }
.cd-days {
  flex: 0 0 auto; min-width: 54px; text-align: center; font-size: 12px; font-weight: 700;
  color: #fff; background: var(--brand); border-radius: 999px; padding: 4px 8px; font-variant-numeric: tabular-nums;
}
.cd-days.urgent { background: var(--danger); }
.cd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cd-main strong { font-size: 13px; color: var(--ink); }
.cd-main small { color: var(--muted); font-size: 11px; }
.cd-arrow { color: var(--muted); font-size: 14px; }

.dash-added .rec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; }
.dash-v2-tip { margin: 0; font-size: 12px; }

/* ---------- 一键到底 ---------- */
.scroll-jump {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  border: 1px solid rgba(43, 89, 255, .22); background: #fff; color: var(--brand);
  box-shadow: 0 8px 22px rgba(20, 40, 110, .18); cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.scroll-jump.show { display: flex; }
.scroll-jump.scroll-top { bottom: 72px; }
.scroll-jump:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

@media (max-width: 860px) {
  .dash-v2-grid { grid-template-columns: 1fr; }
  .dash-v2-grid .dash-block:first-child { grid-row: auto; }
  .dh-numbers { gap: 28px; }
  .dh-num strong { font-size: 36px; }
  .dash-hero { padding: 20px 18px; }
  .scroll-jump { right: 12px; bottom: 16px; width: 38px; height: 38px; }
  .scroll-jump.scroll-top { bottom: 62px; }
}

