
:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #132033;
  --muted: #5d6b82;
  --line: #dde5f0;
  --brand: #1c5d99;
  --brand-2: #1a9a8a;
  --warn: #a85500;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 18px 50px rgba(15, 37, 64, 0.10);
  --radius: 18px;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f7fbfd 0%, #eef6f8 34%, #f7fafb 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  position: static;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246,248,251,.84);
  border-bottom: 1px solid rgba(221,229,240,.85);
}
.tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.tool-compliance-note {
  margin-bottom: 28px;
}
.tool-compliance-note p {
  color: var(--muted);
}
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 22px; }
.tool-shell {
  padding-bottom: 28px;
}
.tool-hero {
  padding: 22px 0 12px;
}
.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 16px;
  align-items: stretch;
}
.tool-hero-grid > *, .search-row > *, .quick-facts > *, .grid > *, .tabs > * {
  min-width: 0;
}
.tool-hero-card, .panel {
  min-width: 0;
  max-width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(221,229,240,.95);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(15, 37, 64, 0.08);
}
.tool-hero-card { padding: 20px; }
.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  border: 1px solid rgba(28, 93, 153, .18);
  background: rgba(28, 93, 153, .08);
  color: var(--brand);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
  white-space: normal;
}
h1 {
  font-size: 28px;
  line-height: 1.18;
  margin: 12px 0 8px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.subtitle {
  color: var(--muted);
  margin: 0;
  max-width: 980px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  padding: 14px;
}
.fact {
  min-height: 96px;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(28, 93, 153, .08), rgba(26, 154, 138, .06));
  border: 1px solid rgba(221,229,240,.85);
}
.fact .num { font-size: 25px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.fact .label { font-size: 13px; color: var(--muted); margin-top: 3px; }
.toolbar {
  margin: 12px 0 14px;
  padding: 14px;
  max-width: 100%;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(221,229,240,.95);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,37,64,.07);
}
.search-row {
  display: grid;
  grid-template-columns:
    minmax(360px, 1.45fr)
    repeat(4, minmax(138px, .58fr))
    minmax(86px, .34fr)
    minmax(118px, .42fr);
  gap: 10px;
  align-items: stretch;
}
input, select, button {
  font: inherit;
}
input[type="search"], select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: var(--text);
}
button, .btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  white-space: nowrap;
}
button:hover, .btn:hover { border-color: rgba(28,93,153,.45); color: var(--brand); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
}
.btn-primary:hover { color: #fff; filter: brightness(.96); text-decoration: none; }
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  max-width: 100%;
}
.tab {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 650;
}
.tab.active {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.content { padding-bottom: 24px; }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15,37,64,.055);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
.card h3 { margin: 10px 0 7px; font-size: 17px; line-height: 1.35; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 650;
  background: #eef4fb;
  color: #24577f;
  border: 1px solid rgba(36,87,127,.10);
}
.badge.hf { background: #eaf8f5; color: #076a5d; }
.badge.fsmp { background: #f1efff; color: #5840a6; }
.badge.common { background: #eef4fb; color: #24577f; }
.badge.status-现行 { background: #ecfdf3; color: var(--ok); }
.badge.status-即将实施 { background: #fff7ed; color: var(--warn); }
.badge.status-过渡 { background: #fef3c7; color: #92400e; }
.badge.core { background: #fff1f3; color: var(--danger); }
.summary { color: var(--muted); font-size: 14px; margin: 8px 0 10px; }
.points {
  padding-left: 18px;
  margin: 4px 0 12px;
  color: #26364d;
  font-size: 14px;
}
.points li { margin: 4px 0; }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
}
.panel { padding: 18px; margin-bottom: 14px; }
.panel h2, .panel h3 { margin-top: 0; }
.matrix {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}
.matrix th, .matrix td {
  border: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
}
.matrix th { background: #eef4fb; text-align: left; }
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--line);
}
.t-item {
  position: relative;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.t-item::before {
  content: "";
  position: absolute;
  left: -22px; top: 18px;
  width: 12px; height: 12px;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.rel-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}
.rel-card h3 { margin: 0 0 8px; }
.rel-card .ids { display: flex; flex-wrap: wrap; gap: 6px; }
.id-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  background: #f8fafc;
}
.id-pill:hover { color: var(--brand); border-color: var(--brand); }
.checklists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.check-item:last-child { border-bottom: 0; }
.check-item input { margin-top: 4px; }
.portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.portal-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  padding: 14px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.58);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  max-width: 980px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
  border: 1px solid var(--line);
}
.modal-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}
.modal-body { padding: 18px 20px 22px; }
.modal h2 { margin: 0 0 8px; line-height: 1.25; }
.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 14px 0;
}
.kv div:nth-child(odd) { color: var(--muted); }
.warning {
  border-left: 4px solid var(--warn);
  background: #fff7ed;
  padding: 12px 14px;
  border-radius: 12px;
  color: #663c00;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-note {
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .tool-hero-grid, .grid, .rel-grid, .portals { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .search-row {
    grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(130px, .6fr));
  }
  .quick-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 14px; }
  .tool-hero { padding-top: 16px; }
  .tool-hero-grid, .grid, .rel-grid, .portals, .checklists, .quick-facts { grid-template-columns: 1fr; }
  .tool-hero-card, .panel, .toolbar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .tool-hero-card { padding: 16px; }
  .eyebrow {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    align-items: flex-start;
    line-height: 1.35;
  }
  h1,
  .subtitle,
  .warning,
  .card h3,
  .summary,
  .points,
  .panel p,
  .portal-card,
  .rel-card {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  h1 { font-size: 22px; }
  .subtitle, .warning { font-size: 14px; }
  .search-row { grid-template-columns: 1fr; }
  .result-head { flex-direction: column; align-items: flex-start; }
  .kv { grid-template-columns: 1fr; }
  .tool-topline { align-items: flex-start; flex-direction: column; }
  button, .btn { width: 100%; }
}
@media print {
  .topbar, .toolbar, .tabs, .card-actions, .modal-backdrop { display: none !important; }
  body { background: #fff; }
  .card, .panel, .tool-hero-card { box-shadow: none; break-inside: avoid; }
  .grid { grid-template-columns: 1fr 1fr; }
}
