:root {
  --ink: #141820;
  --muted: #667085;
  --soft: #f5f7fa;
  --line: #dde5ef;
  --orange: #ff6a00;
  --orange-soft: #fff2e8;
  --blue: #1f91c7;
  --red: #e84c3d;
  --green: #0f9f7a;
  --card: #ffffff;
  --shadow: 0 16px 45px rgba(20, 24, 32, .08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --section-gap: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
.app-shell { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 100vh; }
.side-nav {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  padding: 24px 14px; border-right: 1px solid var(--line); background: #fff;
}
.brand-mark {
  width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 18px;
  display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 900; letter-spacing: 0;
}
.side-nav nav { display: grid; gap: 8px; }
.nav-btn {
  border: 1px solid transparent; background: transparent; color: #596579; width: 100%;
  border-radius: 12px; padding: 10px 8px; text-align: left; cursor: pointer; font-weight: 700; font-size: 13px;
}
.nav-btn:hover, .nav-btn.active { color: var(--orange); background: var(--orange-soft); border-color: #ffd7bd; }
.main { padding: 28px 32px 56px; max-width: 1480px; width: 100%; margin: 0 auto; }
.hero-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 10px; text-transform: uppercase; font-size: 13px; font-weight: 900; color: var(--orange); letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.06; max-width: 860px; }
.lede { margin: 18px 0 0; color: var(--muted); font-size: 20px; line-height: 1.65; max-width: 780px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-stats div { border: 1px solid var(--line); border-radius: 18px; background: var(--soft); padding: 18px; }
.hero-stats strong { display: block; font-size: 34px; line-height: 1; color: var(--ink); }
.hero-stats span { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; font-size: 13px; }
.hr-section {
  margin-top: var(--section-gap);
  border: 1px solid #ffd7bd;
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 62%);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hr-intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hr-intro-card {
  background: #fff; border: 1px solid #ffe0ca; border-radius: var(--radius-md); padding: 18px;
  display: grid; grid-template-rows: auto auto 1fr; gap: 10px; min-height: 168px;
}
.hr-intro-card span {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px;
  background: var(--orange); color: #fff; font-weight: 900;
}
.hr-intro-card h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.hr-intro-card p { margin: 0; color: #4c5769; line-height: 1.7; }
.hr-module-panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
.hr-module-map {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 10px 34px rgba(20,24,32,.06);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1fr);
  align-items: stretch;
}
.hr-module-media { aspect-ratio: 16 / 9; min-height: 260px; border-right: 1px solid var(--line); background: #fff; overflow: hidden; }
.hr-module-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hr-module-copy { padding: 22px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; align-content: center; }
.hr-module-copy span {
  display: inline-grid; place-items: center; min-width: 42px; height: 38px; border-radius: 13px;
  background: var(--ink); color: #fff; font-weight: 900;
}
.hr-module-copy h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.hr-module-copy p { margin: 8px 0 0; color: #4c5769; line-height: 1.62; }
.hr-module-use { background: #fbfcfe; border: 1px solid #e8edf5; border-radius: 13px; padding: 10px 12px; }
.hr-module-head { margin-bottom: 12px; }
.hr-module-head h3 { margin: 0; font-size: 25px; line-height: 1.18; }
.hr-module-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.hr-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hr-module-card {
  background: #fff; border: 1px solid #e8edf5; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; box-shadow: 0 8px 24px rgba(20,24,32,.045);
}
.hr-module-card-media { aspect-ratio: 16 / 9; background: #fff; border-bottom: 1px solid #f1e1d5; overflow: hidden; }
.hr-module-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hr-module-card-body { padding: 15px; display: grid; gap: 10px; align-content: start; }
.hr-module-card-top { display: flex; align-items: center; gap: 10px; }
.hr-module-card-top span {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px;
  background: var(--orange); color: #fff; font-weight: 900; font-size: 12px; flex: 0 0 auto;
}
.hr-module-card h4 { margin: 0; font-size: 18px; line-height: 1.24; }
.hr-module-card p { margin: 0; color: #4c5769; line-height: 1.6; font-size: 14px; }
.hr-module-user { color: #0b6f58 !important; font-weight: 800; }
.hr-module-problem { color: var(--ink) !important; font-weight: 760; }
.hr-module-ai {
  color: #bd4a00 !important;
  background: var(--orange-soft);
  border: 1px solid #ffd7bd;
  border-radius: 12px;
  padding: 9px 10px;
}
.hr-module-warning { color: #9f3128 !important; background: #fff1ef; border-radius: 12px; padding: 9px 10px; }
.hr-map-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hr-map-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 10px 34px rgba(20,24,32,.06);
}
.hr-map-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.hr-map-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hr-map-body { padding: 18px; display: grid; gap: 12px; }
.hr-map-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.hr-map-top h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.hr-map-top span {
  display: inline-grid; place-items: center; min-width: 44px; height: 40px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 900;
}
.hr-map-body p { margin: 0; color: #4c5769; line-height: 1.68; }
.hr-map-use { background: #fbfcfe; border: 1px solid #e8edf5; border-radius: 14px; padding: 12px; }
.hr-map-trap { background: #fff1ef; border: 1px solid #ffd1cc; border-radius: 14px; padding: 12px; color: #9f3128 !important; }
.hr-checklist-panel {
  margin-top: 20px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-lg); padding: 20px;
  display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px;
}
.hr-checklist-panel h3 { margin: 0; font-size: 24px; line-height: 1.2; }
.hr-checklist-panel p { margin: 10px 0 0; color: var(--muted); line-height: 1.7; }
.hr-checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hr-check-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start;
  border: 1px solid #e8edf5; background: #fbfcfe; border-radius: 15px; padding: 12px;
}
.hr-check-item span {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px;
  background: var(--orange-soft); color: #bd4a00; font-weight: 900; font-size: 12px;
}
.hr-check-item h4 { margin: 0 0 4px; font-size: 15px; line-height: 1.25; }
.hr-check-item p { margin: 0; color: #5d6878; line-height: 1.55; font-size: 14px; }
.toolbar {
  position: sticky; top: 0; z-index: 5; margin: var(--section-gap) 0 24px; background: rgba(247, 249, 252, .94);
  backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 14px;
}
.search-box { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; }
.search-box span { font-weight: 900; color: var(--orange); }
.search-box input { width: 100%; border: 0; outline: 0; padding: 15px 0; color: var(--ink); background: transparent; }
.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
select, #resetFilters { height: 50px; border-radius: 15px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 0 14px; font-weight: 750; }
#resetFilters { cursor: pointer; color: var(--orange); border-color: #ffc8a4; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin: 0 0 16px; }
h2 { margin: 0; font-size: 30px; line-height: 1.15; }
.result-count, .active-summary { color: var(--muted); font-weight: 750; }
.starter-section, .map-section, .terms-section { margin-top: var(--section-gap); }
.starter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.starter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 34px rgba(20,24,32,.06); }
.starter-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.starter-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.starter-body { padding: 18px; display: grid; gap: 12px; }
.starter-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.starter-top h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.starter-top span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 900; }
.starter-body p { margin: 0; color: #4c5769; line-height: 1.68; }
.starter-use { background: #fbfcfe; border: 1px solid #e8edf5; border-radius: 14px; padding: 12px; }
.starter-takeaway { color: #bd4a00 !important; font-weight: 900; }
.cluster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cluster-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 34px rgba(20,24,32,.06); }
.cluster-card[hidden], .term-card[hidden] { display: none; }
.cluster-media { background: #fff; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; overflow: hidden; }
.cluster-media img { width: 100%; height: 100%; display: block; object-fit: contain; }
.cluster-body { padding: 18px; }
.cluster-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.cluster-no { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 900; }
.cluster-title { margin: 0; font-size: 22px; line-height: 1.2; }
.cluster-short { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.map-reading { margin-top: 14px; border: 1px solid #e8edf5; background: #fbfcfe; border-radius: 16px; padding: 13px 14px; }
.map-reading strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; }
.map-reading p { margin: 0; color: #4c5769; line-height: 1.65; font-size: 14px; }
.map-reading .reading-use { margin-top: 8px; color: #2f3a4c; }
.map-reading .reading-hr { margin-top: 8px; color: #0b6f58; background: #eefaf6; border-radius: 10px; padding: 8px 10px; }
.map-reading .reading-focus { margin-top: 8px; color: #bd4a00; font-weight: 800; }
.term-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.term-chip { border: 1px solid #ffd7bd; background: var(--orange-soft); color: #bd4a00; border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 800; cursor: pointer; }
.term-chip:hover { background: var(--orange); color: #fff; }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.term-card { scroll-margin-top: 120px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; min-height: 280px; display: grid; gap: 12px; align-content: start; }
.term-card.is-highlighted { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow); }
.term-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 850; background: var(--soft); color: #5b6677; }
.badge.orange { background: var(--orange-soft); color: #bd4a00; }
.badge.blue { background: #e8f5fb; color: #136c99; }
.badge.green { background: #e7f7f2; color: #08785c; }
.term-card h3 { margin: 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.term-card p { margin: 0; color: #4c5769; line-height: 1.62; }
.term-card .xiaohei-says { border-left: 4px solid var(--ink); padding: 10px 12px; background: #fbfcfe; color: var(--ink); font-weight: 750; }
.term-card .warning { color: #9f3128; background: #fff1ef; border-radius: 12px; padding: 10px 12px; }
.term-card code { background: #f0f3f8; border: 1px solid #e1e7f0; border-radius: 7px; padding: 1px 5px; }
.related-row { display: flex; flex-wrap: wrap; gap: 6px; }
.related-row button { border: 0; border-radius: 999px; background: #edf6fb; color: #146d99; padding: 6px 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.route-section { margin-top: var(--section-gap); border: 1px solid var(--line); background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.route-track { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.route-track span { position: relative; border: 1px solid #ffd7bd; background: var(--orange-soft); color: #bd4a00; border-radius: 999px; padding: 10px 14px; font-weight: 850; }
.guide-section { margin-top: var(--section-gap); border: 1px solid var(--line); background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 24px; }
.guide-content { max-width: 980px; color: #30394a; }
.guide-content h1 { font-size: clamp(32px, 4vw, 56px); margin: 10px 0 18px; max-width: 900px; }
.guide-content h2 { margin: 36px 0 14px; padding-top: 6px; font-size: 28px; }
.guide-content h3 { margin: 26px 0 10px; font-size: 21px; }
.guide-content h4 { margin: 20px 0 8px; font-size: 18px; }
.guide-content p, .guide-content li { font-size: 16px; line-height: 1.85; color: #4c5769; }
.guide-content blockquote { margin: 18px 0; padding: 16px 18px; border-left: 4px solid var(--orange); background: var(--orange-soft); border-radius: 14px; color: #4c5769; }
.guide-content ul, .guide-content ol { padding-left: 24px; }
.guide-content pre { overflow: auto; background: #111820; color: #f6f8fb; border-radius: 16px; padding: 16px; line-height: 1.65; }
.guide-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.guide-content p code, .guide-content li code, .guide-content td code { background: #f0f3f8; border: 1px solid #e1e7f0; color: var(--ink); border-radius: 7px; padding: 1px 5px; }
.guide-table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; }
.guide-content table { width: 100%; border-collapse: collapse; min-width: 620px; }
.guide-content th, .guide-content td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.7; }
.guide-content th { background: var(--soft); color: var(--ink); font-weight: 900; }
.guide-content tr:last-child td { border-bottom: 0; }
.guide-link { text-decoration: none; display: block; }
.zoomable-image { cursor: zoom-in; }
.zoomable-image:focus-visible { outline: 4px solid var(--orange-soft); outline-offset: -4px; }
.has-lightbox { overflow: hidden; }
.image-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none; place-items: center;
  padding: 28px; background: rgba(15, 23, 42, .72); backdrop-filter: blur(12px);
}
.image-lightbox.is-open { display: grid; }
.image-lightbox-panel {
  position: relative; width: min(1480px, 96vw); max-height: 94vh; display: grid; gap: 12px;
}
.image-lightbox-panel img {
  width: 100%; max-height: 84vh; object-fit: contain; display: block;
  background: #fff; border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.image-lightbox-panel p {
  margin: 0; justify-self: center; color: #fff; font-weight: 850; line-height: 1.45;
  text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.image-lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.75); background: #fff; color: var(--ink); cursor: pointer;
  font-size: 28px; line-height: 1; font-weight: 800; box-shadow: 0 12px 32px rgba(0,0,0,.22);
}
.image-lightbox-close:hover { color: var(--orange); }
.empty-state { grid-column: 1 / -1; padding: 34px; border-radius: 20px; border: 1px dashed #cbd5e1; color: var(--muted); background: #fff; }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
  .side-nav { position: static; height: auto; display: flex; align-items: center; gap: 14px; padding: 14px 18px; max-width: 100vw; overflow-x: hidden; }
  .brand-mark { margin: 0; flex: 0 0 auto; }
  .side-nav nav { display: flex; overflow-x: auto; min-width: 0; flex: 1; }
  .nav-btn { white-space: nowrap; }
  .main { min-width: 0; }
  .hero-panel { grid-template-columns: 1fr; }
  .toolbar { position: static; grid-template-columns: 1fr; }
  .hr-intro-grid, .hr-module-panel, .hr-module-map, .hr-module-grid, .hr-map-grid, .hr-checklist-panel, .hr-checklist-grid { grid-template-columns: 1fr; }
  .hr-module-media { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .starter-grid { grid-template-columns: 1fr; }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 560px) and (max-width: 1180px) {
  .hr-module-card, .hr-map-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .hr-module-card-media, .hr-map-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 220px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .hr-module-card-media img, .hr-map-media img { height: 100%; }
  .hr-module-card-body, .hr-map-body { padding: 16px; }
}
@media (max-width: 760px) {
  .main { padding: 18px 14px 42px; }
  .hero-panel { padding: 22px; border-radius: 20px; }
  .hero-stats { grid-template-columns: 1fr; }
  .cluster-grid, .term-grid { grid-template-columns: 1fr; }
  .filter-row { display: grid; grid-template-columns: 1fr; }
  select, #resetFilters { width: 100%; }
  .section-head { display: block; }
  h1 { font-size: 38px; }
  .lede { font-size: 17px; }
  .image-lightbox { padding: 14px; }
  .image-lightbox-panel { width: 100%; }
  .image-lightbox-close { top: -10px; right: -4px; }
}
