/* ==========================================================================
   秋招雷达 (Autumn Recruitment Radar)
   现代高端求职情报看板样式系统 · Premium Precision Design System
   ========================================================================== */

:root {
  /* 基础中性色调 (Slate Palette) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* 主题与背景 */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --line-subtle: rgba(226, 232, 240, 0.85);
  --line-focus: #3b82f6;

  /* 文字层级 */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* 状态强调色 */
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber-600: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --rose-600: #e11d48;
  --rose-soft: #fff1f2;
  --rose-border: #fecdd3;

  --blue-600: #2563eb;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  --indigo-600: #4f46e5;
  --indigo-soft: #eef2ff;
  --indigo-border: #c7d2fe;

  /* 阴影系统 (Layered Soft Shadows) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -2px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-dropdown: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* 字体栈 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 全局基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 5%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(243, 244, 246, 0.6) 0%, transparent 50%);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   顶部导航栏 (Topbar)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.brand span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.brand small {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.top-center-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-full);
  background: var(--emerald-soft);
  color: var(--emerald-600);
  font-size: 12px;
  font-weight: 600;
}

.radar-live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.radar-live-dot::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--emerald-500);
  animation: radar-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 通用按钮系统 (Button Design) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 3px 8px -1px rgba(15, 23, 42, 0.2);
}

.button.primary:hover {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  box-shadow: 0 4px 14px -1px rgba(15, 23, 42, 0.25);
}

.button.subtle {
  color: var(--slate-700);
  background: #ffffff;
  border-color: var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.button.subtle:hover {
  color: var(--slate-900);
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.button.warm {
  color: #78350f;
  background: #fef3c7;
  border-color: #fde68a;
}

.button.warm:hover {
  background: #fde68a;
  color: #92400e;
}

.button.outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.button.outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button.disabled, .button:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.refresh-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.refreshing .refresh-dot {
  animation: pulse-dot 1s infinite alternate;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* ==========================================================================
   页面主体布局 (App Shell)
   ========================================================================== */
.app-shell {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

/* ==========================================================================
   页面头部 (Hero / Page Header)
   ========================================================================== */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-border);
  color: var(--indigo-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--slate-900);
}

.hero-copy {
  margin-top: 10px;
  max-width: 640px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.65;
}

.header-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 320px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}

.header-status span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-700);
  font-weight: 500;
}

.header-status span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-400);
  flex-shrink: 0;
}

.header-status span:first-child::before {
  background: var(--emerald-500);
}

.header-status span:nth-child(2)::before {
  background: var(--blue-600);
}

.header-status span:nth-child(3)::before {
  background: var(--amber-600);
}

/* ==========================================================================
   指标数据卡片 (Stats Cards)
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--slate-300);
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--slate-200);
  transition: background 0.2s ease;
}

.stat:nth-child(1)::before { background: var(--emerald-500); }
.stat:nth-child(2)::before { background: var(--amber-600); }
.stat:nth-child(3)::before { background: var(--rose-600); }
.stat:nth-child(4)::before { background: var(--indigo-600); }

.stat strong {
  margin-bottom: 4px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
}

/* ==========================================================================
   使用边界提醒卡片 (Notice Card)
   ========================================================================== */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #fffbeb 0%, #fefce8 100%);
  border: 1px solid #fef08a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.notice-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 3px;
}

.notice p {
  color: #78350f;
  font-size: 13px;
  line-height: 1.6;
}

/* ==========================================================================
   工作区模块 (Workspaces)
   ========================================================================== */
.workspace {
  margin-bottom: 40px;
}

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

.section-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--slate-900);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-index.light {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.result-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.section-note {
  margin-top: -6px;
  margin-bottom: 16px;
  color: var(--slate-500);
  font-size: 13px;
}

/* ==========================================================================
   搜索与筛选栏 (Toolbar)
   ========================================================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 480px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  min-width: 0;
}

.searchbox:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.searchbox span {
  display: flex;
  align-items: center;
  color: var(--slate-400);
  font-size: 15px;
  margin-right: 8px;
  user-select: none;
}

.searchbox input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--slate-900);
  font-size: 14px;
}

.searchbox input::placeholder {
  color: var(--slate-400);
}

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
}

.filter {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  user-select: none;
}

.filter:hover {
  color: var(--slate-900);
}

.filter.active {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   机会卡片列表 (Opportunity Cards)
   ========================================================================== */
.opportunity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opportunity {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.opportunity:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-card-hover);
}

.opportunity[open] {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
}

/* Summary 头部 */
.opportunity summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  min-height: 80px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}

.opportunity summary::-webkit-details-marker {
  display: none;
}

.opportunity summary:hover {
  background: var(--slate-50);
}

/* 优先级标签 */
.priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.priority.p1 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.priority.p2 {
  background: var(--blue-soft);
  color: var(--blue-600);
  border: 1px solid var(--blue-border);
}

.priority.p3 {
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

/* 标题与元数据 */
.opportunity-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.opportunity-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--slate-500);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 审核标记 */
.verify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.verify.official {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-600);
}

.verify.cross-check {
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue-600);
}

.verify.pending {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber-600);
}

/* 截止时间展示 */
.deadline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 100px;
}

.deadline b {
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
}

.deadline span {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 2px;
}

/* 展开图标 (Chevron) */
.chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--slate-400);
  transition: transform 0.25s ease, background 0.15s ease;
}

.opportunity summary:hover .chevron {
  background: var(--slate-200);
  color: var(--slate-700);
}

.opportunity[open] .chevron {
  transform: rotate(180deg);
  background: var(--slate-100);
  color: var(--slate-900);
}

/* 抽屉内容区 (Opportunity Body) */
.opportunity-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--slate-100);
  background: #fafbfc;
  min-width: 0;
  max-width: 100%;
}

.body-block {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  min-width: 0;
  max-width: 100%;
}

.body-block.wide {
  grid-column: 1 / -1;
}

.body-block h4 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.body-block p {
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.7;
}

.body-block ul {
  padding-left: 18px;
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.7;
}

.body-block li {
  margin-bottom: 4px;
}

/* 标签行 */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 600;
}

/* 岗位矩阵表格 (Positions Table) */
.positions-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.positions-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

.positions-table th {
  padding: 10px 14px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 700;
}

.positions-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  font-size: 13px;
  line-height: 1.55;
  vertical-align: top;
}

.positions-table tr:hover td {
  background: #f8fafc;
}

.positions-table tr:last-child td {
  border-bottom: none;
}

.positions-table td:first-child {
  font-weight: 700;
  color: var(--slate-900);
  width: 22%;
}

/* 证据链接列表 */
.evidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.evidence-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.evidence-link small {
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  font-size: 10px;
  color: #1e40af;
}

/* 底部操作条 */
.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.status-select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.status-select:focus {
  border-color: #6366f1;
}

/* 空状态提示 */
.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--slate-400);
  background: var(--bg-surface);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  font-size: 14px;
}

/* ==========================================================================
   企业监控矩阵 (Company Matrix)
   ========================================================================== */
.company-matrix {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-searchbox {
  margin: 14px 0 16px;
  max-width: 640px;
}

.company-empty {
  padding: 28px 20px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  background: var(--slate-50);
  text-align: center;
  font-size: 14px;
}

.company-group {
  background: var(--bg-surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.company-group[open] {
  border-color: var(--slate-300);
}

.company-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface);
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--slate-900);
  user-select: none;
}

.company-group summary::-webkit-details-marker {
  display: none;
}

.company-group summary span {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-500);
}

.company-group summary:hover {
  background: var(--slate-50);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--slate-100);
  background: #fafbfc;
}

.company-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
}

.company-card:hover {
  border-color: var(--slate-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.source-dot.ok {
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.source-dot.discovery {
  background: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.source-dot.changed {
  background: var(--amber-600);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.source-dot.fail {
  background: var(--slate-400);
}

.company-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.company-name b {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
}

.company-name small {
  font-size: 11px;
  color: var(--slate-500);
  line-height: 1.4;
}

.company-profile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 3px;
  color: var(--slate-700);
  font-size: 11px;
  line-height: 1.55;
}

.company-profile strong {
  display: inline-block;
  min-width: 34px;
  margin-right: 4px;
  color: var(--slate-900);
  font-size: 11px;
}

.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.channel-pill {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 600;
}

.discovery-link-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.discovery-link {
  font-size: 11px;
  color: var(--blue-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.discovery-link:hover {
  text-decoration: underline;
}

.official-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-600);
  padding: 3px 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.official-link:hover {
  color: var(--slate-900);
  border-color: var(--slate-300);
  background: #ffffff;
}

/* ==========================================================================
   浮动通知 (Toast Notification)
   ========================================================================== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   页脚 (Footer)
   ========================================================================== */
footer {
  padding-top: 20px;
  text-align: center;
  color: var(--slate-400);
  font-size: 12px;
}

/* ==========================================================================
   响应式设计 (Media Queries)
   ========================================================================== */
@media (max-width: 900px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-status {
    min-width: 0;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .searchbox {
    max-width: none;
  }

  .opportunity summary {
    grid-template-columns: 76px minmax(0, 1fr) auto 24px;
    padding: 14px 16px;
    gap: 12px;
  }

  .opportunity-body {
    grid-template-columns: 1fr;
    padding: 14px 16px 20px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: calc(100% - 24px);
    padding-top: 14px;
  }

  .topbar {
    min-height: 56px;
    padding: 0 12px;
  }

  .top-center-badge {
    display: none;
  }

  #installBtn {
    display: none !important;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand b {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .filters {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .page-header {
    padding-top: 10px;
    gap: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .hero-copy {
    font-size: 13px;
  }

  .header-status {
    padding: 12px 14px;
    gap: 6px;
    font-size: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat {
    padding: 12px 14px;
  }

  .stat strong {
    font-size: 26px;
  }

  .stat span {
    font-size: 12px;
  }

  .opportunity summary {
    grid-template-columns: 66px minmax(0, 1fr) auto 20px;
    gap: 10px;
    padding: 12px 14px;
  }

  .priority {
    font-size: 11px;
    padding: 4px 6px;
  }

  .opportunity-title h3 {
    font-size: 15px;
    white-space: normal;
  }

  .meta-row {
    gap: 4px 8px;
    font-size: 11px;
  }

  .deadline {
    display: flex;
    min-width: auto;
  }

  .deadline b {
    font-size: 13px;
  }

  .deadline span {
    display: none;
  }

  .positions-table {
    min-width: 540px;
  }

  .positions-table th, .positions-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

}
