:root {
  --ink: #17233f;
  --muted: #6c7890;
  --line: #e4e8ef;
  --paper: #fff;
  --soft: #f5f7fa;
  --brand: #0a5cb8;
  --brand-dark: #064589;
  --accent: #e2512d;
  --green: #12825e;
  --shadow: 0 18px 48px rgba(20, 35, 65, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f6f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(221, 226, 234, .95);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 290px; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; }
.site-header nav { display: flex; align-items: stretch; height: 100%; gap: 24px; flex: 1; }
.site-header nav a { position: relative; display: grid; place-items: center; color: #4f5d75; font-size: 14px; }
.site-header nav a:hover, .site-header nav a.active { color: var(--brand); }
.site-header nav a.active::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.header-action { padding: 11px 18px; color: white; background: var(--brand); border-radius: 10px; font-size: 13px; font-weight: 700; }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }
.hero {
  margin-top: 26px;
  min-height: 292px;
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 38px;
  align-items: center;
  padding: 48px 54px;
  color: white;
  background:
    radial-gradient(circle at 78% 8%, rgba(82, 167, 255, .36), transparent 30%),
    linear-gradient(125deg, #052e62 0%, #0756a2 58%, #0b72c8 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(7, 68, 130, .24);
}
.eyebrow { display: block; margin-bottom: 14px; color: #a9d5ff; font-size: 13px; font-weight: 800; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.13; letter-spacing: -.04em; }
.hero h1 em { color: #ffca64; font-style: normal; }
.hero-copy > p { max-width: 720px; margin: 20px 0 22px; color: #dcecff; line-height: 1.8; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.trust-row span { padding: 7px 10px; color: #eaf5ff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: 12px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; overflow: hidden; }
.hero-metrics article { display: grid; gap: 7px; padding: 24px 8px; text-align: center; background: rgba(4, 52, 102, .48); }
.hero-metrics strong { font-size: 30px; color: #ffca64; }
.hero-metrics span { font-size: 12px; color: #dbeeff; }
.hero-metrics p { grid-column: 1 / -1; margin: 0; padding: 12px; text-align: center; font-size: 12px; background: rgba(4, 37, 75, .55); }
.hero-metrics p b { margin-left: 5px; color: white; }

.search-panel {
  position: relative;
  z-index: 3;
  margin: -24px 28px 28px;
  padding: 28px 32px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.focus-hubs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.focus-hubs button {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  padding: 18px 20px;
  color: var(--ink);
  text-align: left;
  background: linear-gradient(145deg, #f8fbff, #eef5fd);
  border: 1px solid #d7e5f5;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s ease;
  overflow: hidden;
}
.focus-hubs button::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  color: #90afd1;
  font-size: 22px;
  transform: translateY(-50%);
}
.focus-hubs button:nth-child(2) { background: linear-gradient(145deg, #fffaf5, #fff1e7); border-color: #f1ddce; }
.focus-hubs button:nth-child(3) { background: linear-gradient(145deg, #f8f6ff, #efebff); border-color: #ded7f6; }
.focus-hubs button:hover,
.focus-hubs button.active { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 26px rgba(18, 64, 112, .1); }
.focus-hubs button.active { outline: 2px solid rgba(10, 92, 184, .12); }
.focus-hubs span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.focus-hubs strong { font-size: 18px; }
.focus-hubs small { color: #647087; font-size: 11px; }
.focus-hubs small b { margin-right: 2px; color: var(--accent); font-size: 14px; }
.search-box { display: grid; grid-template-columns: 66px 1fr 128px; align-items: center; height: 54px; border: 2px solid var(--brand); border-radius: 10px; overflow: hidden; }
.search-box > span { padding-left: 20px; font-size: 13px; font-weight: 800; color: var(--brand); }
.search-box input { min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; color: var(--ink); }
.search-box button { height: 100%; border: 0; color: white; background: var(--brand); font-weight: 800; cursor: pointer; }
.search-box button:hover { background: var(--brand-dark); }
.hot-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 13px 2px 0; color: var(--muted); font-size: 12px; }
.hot-keywords button { padding: 0; color: var(--brand); background: none; border: 0; cursor: pointer; }
.category-filter { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; padding: 18px 0; margin-top: 4px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.category-filter > span { padding-top: 7px; color: var(--muted); font-size: 13px; }
#categoryOptions { display: flex; flex-wrap: wrap; gap: 8px; }
#categoryOptions button { padding: 7px 10px; color: #42506a; background: #f5f7fa; border: 1px solid transparent; border-radius: 7px; font-size: 12px; cursor: pointer; }
#categoryOptions button:hover, #categoryOptions button.active { color: var(--brand); background: #edf5ff; border-color: #c9e0fa; }
#categoryOptions small { margin-left: 4px; opacity: .65; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 18px 0 12px; }
.filter-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.filter-grid select, .filter-grid input:not([type="checkbox"]) { min-width: 0; height: 42px; padding: 0 11px; color: var(--ink); background: white; border: 1px solid #d9dfe8; border-radius: 8px; outline: 0; }
.filter-grid select:focus, .filter-grid input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 92, 184, .09); }
.filter-grid .check-filter { display: flex; align-items: end; padding-bottom: 11px; color: var(--ink); }
.check-filter input { width: 16px; height: 16px; accent-color: var(--brand); }
.filter-actions { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.active-filters span { padding: 5px 8px; color: var(--brand-dark); background: #eef5fe; border-radius: 999px; font-size: 11px; }
.text-button { flex: none; color: var(--muted); background: none; border: 0; cursor: pointer; }

.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 24px; }
.result-main { min-width: 0; }
.result-toolbar { min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 18px; background: white; border: 1px solid var(--line); border-radius: 10px 10px 0 0; }
.result-toolbar > div:first-child { color: var(--muted); font-size: 13px; }
.result-toolbar > div:first-child strong { margin-right: 4px; color: var(--accent); font-size: 18px; }
.sort-tabs { display: flex; align-self: stretch; }
.sort-tabs button { padding: 0 12px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; font-size: 12px; cursor: pointer; }
.sort-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.job-list { display: grid; gap: 12px; margin-top: 12px; }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 24px 25px; background: white; border: 1px solid var(--line); border-radius: 12px; transition: .2s ease; }
.job-card:hover { transform: translateY(-2px); border-color: #b9d5f3; box-shadow: 0 12px 34px rgba(18, 64, 112, .09); }
.job-card-main { min-width: 0; }
.job-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.badge { padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.badge-new { color: #bd3b1c; background: #fff0e8; }
.badge-priority { color: #9a5512; background: #fff2cf; }
.badge-official { color: #087154; background: #eaf8f2; }
.badge-verified { color: #5b3c9b; background: #f1edff; }
.badge-type { color: #295985; background: #edf4fb; }
.job-card h2 { margin: 12px 0 7px; font-size: 20px; line-height: 1.4; cursor: pointer; }
.job-card h2:hover { color: var(--brand); }
.company-line { margin: 0; color: #4e5c74; font-size: 14px; font-weight: 650; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 16px 0 13px; }
.job-meta span { padding: 0 12px; color: #536079; border-left: 1px solid var(--line); font-size: 12px; }
.job-meta span:first-child { padding-left: 0; border-left: 0; }
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.job-tags span { padding: 5px 8px; color: #5b6780; background: #f5f7fa; border-radius: 5px; font-size: 11px; }
.job-card-side { width: 120px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.job-card-side time { color: var(--muted); font-size: 11px; }
.job-card-actions { display: grid; width: 100%; gap: 8px; }
.job-card-actions button, .job-card-actions a { height: 36px; display: grid; place-items: center; border: 1px solid #ccd5e2; border-radius: 7px; background: white; color: #526078; font-size: 12px; cursor: pointer; }
.job-card-actions .detail-button { color: white; background: var(--brand); border-color: var(--brand); }
.job-card-actions .save-button.saved { color: var(--accent); border-color: #f1c4b9; background: #fff8f5; }
.loading-state, .empty-state, .error-state { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 40px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.loading-state i { width: 26px; height: 26px; border: 3px solid #dbe8f5; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state strong, .error-state strong { color: var(--ink); font-size: 18px; }
.empty-state button, .error-state button { padding: 9px 15px; color: white; background: var(--brand); border: 0; border-radius: 7px; cursor: pointer; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 25px 0; }
.pagination button { min-width: 36px; height: 36px; padding: 0 10px; color: #536079; background: white; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.pagination button.active { color: white; background: var(--brand); border-color: var(--brand); }
.pagination button:disabled { opacity: .45; cursor: default; }

.result-aside { display: grid; align-content: start; gap: 14px; }
.result-aside article { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.result-aside article > span { color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.agent-card { color: white; background: linear-gradient(145deg, #0a4f96, #092e62) !important; border: 0 !important; box-shadow: var(--shadow); }
.agent-card > span { color: #b9dcff !important; }
.agent-card h2 { margin: 12px 0; font-size: 23px; line-height: 1.35; }
.agent-card p { margin: 0 0 18px; color: #d8eaff; font-size: 13px; line-height: 1.75; }
.agent-card a { display: block; padding: 11px 13px; color: #12365e; background: #ffca64; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 800; }
.update-card ol { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: update; }
.update-card li { position: relative; display: grid; gap: 3px; padding: 0 0 17px 34px; counter-increment: update; }
.update-card li::before { content: counter(update); position: absolute; left: 0; top: -2px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--brand); background: #eaf3fd; border-radius: 50%; font-size: 10px; font-weight: 800; }
.update-card li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 21px; width: 1px; height: 21px; background: #cddff3; }
.update-card b { font-size: 13px; }
.update-card small { color: var(--muted); font-size: 11px; }
.saved-card strong { display: block; margin: 12px 0 3px; color: var(--accent); font-size: 34px; }
.saved-card p { color: var(--muted); font-size: 12px; }
.saved-card button { width: 100%; padding: 9px; color: var(--brand); background: #f1f7fe; border: 1px solid #d3e5f9; border-radius: 7px; cursor: pointer; }
.saved-card button.active { color: white; background: var(--brand); }
.source-policy-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.dialog-source b { color: var(--green); }

.job-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(10, 27, 53, .3); }
.job-dialog::backdrop { background: rgba(10, 22, 42, .62); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 16px; top: 14px; z-index: 2; width: 34px; height: 34px; color: #637088; background: #f2f4f7; border: 0; border-radius: 50%; font-size: 23px; cursor: pointer; }
.dialog-content { padding: 34px; }
.dialog-content h2 { margin: 14px 42px 7px 0; font-size: 26px; line-height: 1.35; }
.dialog-company { color: #4f5c73; font-weight: 700; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.dialog-grid div { display: grid; gap: 5px; padding: 13px 15px; background: white; }
.dialog-grid span { color: var(--muted); font-size: 10px; }
.dialog-grid strong { font-size: 13px; }
.dialog-section { padding: 18px 0; border-top: 1px solid var(--line); }
.dialog-section h3 { margin: 0 0 9px; font-size: 15px; }
.dialog-section p { margin: 0; color: #56627a; line-height: 1.8; font-size: 13px; }
.dialog-source { padding: 14px; color: #57647c; background: #f5f7fa; border-radius: 8px; font-size: 12px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; }
.dialog-actions a, .dialog-actions button { flex: 1; min-height: 44px; display: grid; place-items: center; border: 1px solid #ccd5e2; border-radius: 8px; background: white; cursor: pointer; }
.dialog-actions a { color: white; background: var(--brand); border-color: var(--brand); font-weight: 800; }

footer { display: flex; justify-content: space-between; gap: 40px; padding: 34px max(24px, calc((100vw - 1240px) / 2)); color: #aab5c8; background: #15213a; font-size: 12px; }
footer div { display: grid; gap: 5px; }
footer strong { color: white; font-size: 14px; }
footer p { max-width: 650px; margin: 0; line-height: 1.7; text-align: right; }

@media (max-width: 980px) {
  .site-header { gap: 16px; }
  .brand { min-width: auto; flex: 1; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 38px; }
  .search-panel { margin-inline: 12px; }
  .focus-hubs { grid-template-columns: repeat(3, 1fr); }
  .focus-hubs button { min-height: 102px; padding: 15px; }
  .focus-hubs button::after { display: none; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .result-layout { grid-template-columns: 1fr; }
  .result-aside { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .site-header { height: 64px; padding-inline: 14px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .header-action { padding: 9px 10px; font-size: 11px; }
  main { padding: 0 12px 42px; }
  .hero { min-height: 0; margin-top: 12px; padding: 30px 22px 54px; border-radius: 14px; }
  .hero h1 { font-size: 34px; }
  .hero-copy > p { font-size: 13px; }
  .hero-metrics article { padding: 18px 4px; }
  .hero-metrics strong { font-size: 25px; }
  .search-panel { margin: -26px 8px 20px; padding: 18px 14px; }
  .focus-hubs {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }
  .focus-hubs button {
    min-height: 78px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3px 12px;
    padding: 13px 16px;
  }
  .focus-hubs button span,
  .focus-hubs button strong { grid-column: 1; }
  .focus-hubs button small { grid-column: 2; grid-row: 1 / span 2; }
  .search-box { grid-template-columns: 1fr 92px; }
  .search-box > span { display: none; }
  .search-box input { padding-left: 13px; font-size: 13px; }
  .category-filter { grid-template-columns: 1fr; }
  .category-filter > span { padding: 0; }
  #categoryOptions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  #categoryOptions button { flex: none; }
  .filter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-grid label:nth-child(3) { grid-column: 1 / -1; }
  .result-toolbar { align-items: flex-start; flex-direction: column; padding: 13px 14px 0; overflow-x: auto; }
  .sort-tabs { min-height: 42px; align-self: auto; }
  .sort-tabs button { flex: none; padding-inline: 9px; }
  .job-card { grid-template-columns: 1fr; padding: 20px 17px; }
  .job-card h2 { font-size: 18px; }
  .job-card-side { width: 100%; flex-direction: row; align-items: center; }
  .job-card-actions { width: auto; grid-template-columns: repeat(2, minmax(86px, 1fr)); }
  .job-meta span { width: 50%; padding-left: 8px; }
  .job-meta span:nth-child(odd) { padding-left: 0; border-left: 0; }
  .result-aside { grid-template-columns: 1fr; }
  .dialog-content { padding: 27px 20px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-actions { flex-direction: column; }
  footer { flex-direction: column; padding: 28px 20px; }
  footer p { text-align: left; }
}
