:root {
  --ink: #111111;
  --muted: #3f4743;
  --line: #dfe5e1;
  --surface: #ffffff;
  --surface-2: #f6f8f7;
  --green: #176b4d;
  --green-soft: #e9f5ef;
  --blue: #2d64aa;
  --blue-soft: #edf4ff;
  --orange: #9a5a13;
  --orange-soft: #fff4e5;
  --red: #b23b3b;
  --red-soft: #fff0f0;
}

* { box-sizing: border-box; }
html { background: #f4f6f5; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f6f5;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4, strong, .stat strong, .deadline b {
  font-family: inherit;
  letter-spacing: 0;
  color: #111;
}
h1, h2 { font-weight: 800; }
h3, h4, strong, b { font-weight: 700; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  padding: 9px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: none; }
.brand b { font-size: 18px; letter-spacing: 0; }
.brand small { color: #3f4743; font-size: 12px; letter-spacing: 0; }
.button { min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 700; box-shadow: none !important; }
.button:hover { transform: none; filter: brightness(.98); }
.button.primary { background: var(--green); }
.button.subtle { background: #fff; border-color: var(--line); }
.refresh-dot { background: #fff; }

.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; overflow: visible; }
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 22px;
}
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 14px; font-weight: 800; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(34px, 4vw, 44px); line-height: 1.15; }
.hero-copy { margin: 9px 0 0; color: #252a27; font-size: 17px; line-height: 1.6; }
.header-status { display: grid; gap: 7px; min-width: 330px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #303632; font-size: 14px; font-weight: 600; }
.header-status span { display: flex; align-items: center; gap: 7px; }
.header-status span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a6b0ab; }

.stats { grid-template-columns: repeat(4, 1fr); max-width: none; margin: 0 0 16px; padding: 0; gap: 10px; }
.stat, .stat:first-child, .stat:last-child {
  min-height: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.stat strong { margin-bottom: 4px; font-size: 29px; font-weight: 800; line-height: 1.2; }
.stat span { color: #303632; font-size: 14px; font-weight: 600; }

.notice { max-width: none; margin: 0 0 32px; padding: 13px 15px; border: 1px solid #eedfc7; border-left: 3px solid #d89535; border-radius: 8px; background: #fffaf2; }
.notice-mark { flex-basis: 24px; width: 24px; height: 24px; color: #fff; background: #d89535; font-family: Arial, sans-serif; font-size: 13px; }
.notice b { font-size: 15px; font-weight: 800; }
.notice p { margin-top: 4px; color: #303632; font-size: 14px; line-height: 1.6; }

.workspace { max-width: none; margin: 0; padding: 0 0 46px; }
.section-head { margin-bottom: 15px; }
.section-head > div { gap: 9px; }
.section-head h2, .resume-panel h2 { margin: 0 0 10px; font-size: 25px; font-weight: 800; }
.section-index { color: var(--green); font-size: 13px; font-weight: 800; }
.result-count, .section-note { color: #303632; font-size: 14px; }
.toolbar { margin-bottom: 14px; }
.searchbox { max-width: 470px; height: 46px; border-radius: 8px; background: #fff; font-size: 15px; }
.filter { padding: 8px 14px; border-radius: 7px; background: #fff; font-size: 14px; font-weight: 700; }
.filter.active { border-color: var(--green); background: var(--green); }

.opportunity-list { gap: 8px; }
.opportunity, .opportunity[open] { border-radius: 10px; background: #fff; box-shadow: none; }
.opportunity[open] { border-color: #aebdb6; }
.opportunity summary { grid-template-columns: 74px minmax(0,1fr) 105px 20px; min-height: 76px; padding: 12px 15px; gap: 12px; }
.priority { min-height: 36px; border-radius: 6px; background: var(--surface-2); font-size: 13px; font-weight: 800; }
.priority.p1 { color: #815015; background: var(--orange-soft); }
.opportunity-title h3 { margin-bottom: 7px; font-size: 18px; font-weight: 800; }
.meta-row { gap: 6px 13px; color: #303632; font-size: 13px; font-weight: 600; }
.deadline b { font-size: 17px; font-weight: 800; }
.deadline span { color: #303632; font-size: 12px; }
.chevron { font-size: 18px; }
.opportunity-body { grid-template-columns: 1fr 1fr; gap: 18px; padding: 4px 15px 17px 101px; }
.body-block h4 { margin-bottom: 7px; color: #111; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.body-block p, .body-block li { color: #252a27; font-size: 14px; line-height: 1.75; }
.tag { border-radius: 5px; }
.positions-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.positions-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.positions-table th, .positions-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #202421; text-align: left; vertical-align: top; font-size: 13px; line-height: 1.65; }
.positions-table th { color: #111; background: var(--surface-2); font-weight: 800; }
.positions-table tr:last-child td { border-bottom: 0; }
.positions-table td:first-child { width: 19%; color: var(--ink); font-weight: 700; }
.evidence-list { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: #174f98; border: 1px solid #d7e3f2; border-radius: 6px; background: var(--blue-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.evidence-link small { color: #405a78; font-size: 11px; font-weight: 600; }
.card-actions { padding-top: 13px; }
.status-select { min-height: 38px; border-radius: 8px; }
.verify::before { background: #d19137; }
.verify.official::before { background: var(--green); }

.resume-panel { max-width: none; margin: 0 0 46px; padding: 24px 26px; border-radius: 12px; background: #203c33; box-shadow: none; }
.resume-panel p { font-size: 14px; }
.button.warm { border-radius: 8px; }

.companies-workspace { padding-bottom: 36px; }
.section-note { margin-bottom: 15px; }
.company-matrix { gap: 8px; }
.company-group { border-radius: 10px; background: #fff; }
.company-group summary { padding: 15px 16px; color: #111; font-size: 16px; font-weight: 800; }
.company-group summary span { color: #3f4743; font-size: 13px; font-weight: 600; }
.company-card { min-height: 72px; padding: 13px 14px; }
.company-name b { color: #111; font-size: 15px; font-weight: 800; }
.company-name small { color: #303632; font-size: 12px; font-weight: 600; line-height: 1.55; }
.source-dot.discovery { background: var(--blue); box-shadow: 0 0 0 4px rgba(45,100,170,.1); }
.source-dot.browser { background: #d18a2f; box-shadow: 0 0 0 4px rgba(209,138,47,.1); }
.channel-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.channel-pill { padding: 3px 6px; border-radius: 4px; color: #303632; background: #eef2f0; font-size: 11px; font-weight: 700; }
.discovery-link-row { display: grid; gap: 3px; margin-top: 7px; }
.company-card .discovery-link { display: block; max-width: 100%; overflow: hidden; color: #174f98; font-size: 12px; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.company-card .discovery-link:hover { text-decoration: underline; }
.company-card .official-link { align-self: start; padding-top: 2px; }
.discovery-panel { margin-top: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.discovery-panel h3 { margin: 0 0 5px; font-size: 14px; }
.discovery-panel p { margin: 0; color: var(--muted); font-size: 11px; }

footer { padding-top: 12px; color: #303632; font-size: 13px; }

@media (max-width: 800px) {
  .page-header { align-items: stretch; flex-direction: column; padding-top: 24px; }
  .header-status { min-width: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; }
  .searchbox { max-width: none; }
  .opportunity summary { grid-template-columns: 64px minmax(0,1fr) 18px; }
  .deadline { display: none; }
  .opportunity-body { grid-template-columns: 1fr; padding-left: 15px; }
  .wide { grid-column: auto; }
  .resume-panel { margin-inline: 0; }
}

@media (max-width: 520px) {
  .app-shell { width: min(100% - 20px, 1180px); }
  .topbar { padding-inline: 10px; }
  .top-actions .button.subtle { display: none; }
  .button.primary { padding-inline: 11px; }
  .stat { padding: 13px 14px; }
  .opportunity summary { grid-template-columns: 55px minmax(0,1fr) 16px; padding-inline: 10px; gap: 8px; }
  .opportunity-body { padding-inline: 10px; }
}
