:root {
  --brand: #217cbf;
  --brand-bright: #2b8fda;
  --brand-deep: #155f9a;
  --brand-soft: #e7f3fc;
  --page: #f0f6fb;
  --panel: #ffffff;
  --line: #e3e8ed;
  --text: #23384d;
  --muted: #687f94;
  --shadow: 0 10px 28px rgba(40, 94, 137, 0.1);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  min-width: 1080px;
}

button,
input,
select { font: inherit; }

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(43, 143, 218, 0.35);
  outline-offset: 2px;
}

.platform-header {
  display: block;
  width: 100%;
  height: auto;
  background: #217cbf;
}

/* 独立专题页头部：脱离原平台导航后的正式门户识别区 */
.standalone-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% -80%, rgba(103, 190, 242, 0.48), transparent 44%),
    linear-gradient(112deg, #183883 0%, #17649d 48%, #2489cb 100%);
  box-shadow: 0 3px 12px rgba(22, 83, 128, 0.13);
}

.standalone-header::before,
.standalone-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.standalone-header::before {
  width: 560px;
  height: 560px;
  right: -170px;
  top: -390px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
}

.standalone-header::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.standalone-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  min-height: 108px;
  margin: 0 auto;
  padding: 17px 26px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.standalone-brand {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.standalone-brand-mark {
  flex: 0 0 66px;
  width: 66px;
  height: 63px;
  overflow: hidden;
  background-color: #183883;
  background-image: url("../assets/河北工信形象识别手册-反白标识.jpg");
  background-repeat: no-repeat;
  background-size: 762px 542px;
  background-position: -538px -394px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.standalone-brand-copy {
  min-width: 0;
}

.standalone-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.standalone-brand-copy h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.standalone-brand-copy p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.standalone-overview {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  white-space: nowrap;
}

.standalone-overview .overview-item {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.standalone-overview strong {
  margin-right: 4px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.standalone-overview i {
  color: rgba(255, 255, 255, 0.34);
  font-size: 16px;
  font-style: normal;
}

.standalone-toolbar {
  padding-top: 15px;
  padding-bottom: 15px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(35, 103, 154, 0.05);
}

.standalone-view-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.standalone-view-label strong {
  color: var(--brand-deep);
  font-size: 20px;
  font-weight: 600;
}

.standalone-view-label span {
  color: var(--muted);
  font-size: 13px;
}

.page-shell {
  max-width: 1920px;
  margin: 0 auto;
  min-height: calc(100vh - 150px);
}

.page-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 520px) 240px;
  align-items: center;
  gap: 16px;
  padding: 22px 30px 18px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
}

.page-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  position: relative;
}

.search-box::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  transform: translateY(-58%);
}

.search-box::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 57%;
  width: 7px;
  height: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

.search-input,
.office-select {
  width: 100%;
  height: 46px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid #cfdce7;
  border-radius: 6px;
}

.search-input {
  padding: 0 16px 0 46px;
}

.office-select {
  padding: 0 14px;
}

.content-wrap { padding: 22px 30px 34px; }

.business-tag-filter {
  margin-bottom: 16px;
  padding: 15px 18px;
  background: linear-gradient(100deg, #f7fbfe, #fff);
  border: 1px solid #d7e5ef;
  border-radius: 7px;
}

.business-tag-heading,
.business-tag-heading > div,
.business-tag-options,
.matter-meta,
.matter-tags {
  display: flex;
  align-items: center;
}

.business-tag-heading { justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.business-tag-heading > div { gap: 12px; }
.business-tag-heading strong { color: var(--brand-deep); font-size: 15px; }
.business-tag-heading span { color: var(--muted); font-size: 13px; }
.business-tag-heading .business-tag-result { color: var(--brand); }
.business-tag-options { flex-wrap: wrap; gap: 9px; }

.business-tag-button {
  padding: 7px 13px;
  color: #496272;
  background: #fff;
  border: 1px solid #cfdde7;
  border-radius: 18px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.business-tag-button span { margin-left: 4px; color: #7d919f; font-size: 12px; }
.business-tag-button:hover { border-color: #7db8df; box-shadow: 0 3px 10px rgba(35, 103, 154, 0.08); }
.business-tag-button.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }
.business-tag-button.is-active span { color: rgba(255, 255, 255, 0.8); }

.demo-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #e2ebf2;
}

.demo-filter-copy,
.demo-filter-controls,
.progress-filter-label,
.matter-labels {
  display: flex;
  align-items: center;
}

.demo-filter-copy { flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.demo-filter-copy strong { color: var(--brand-deep); font-size: 14px; }
.demo-label { padding: 2px 6px; color: #8a6419; background: #fff9e8; border: 1px solid #ead79c; border-radius: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }
.demo-filter-controls { flex: 0 0 auto; gap: 10px; }

.focus-filter-button {
  height: 36px;
  padding: 0 12px;
  color: #526f8b;
  background: #f9fbfd;
  border: 1px solid #c8d7e2;
  border-radius: 5px;
  cursor: pointer;
}

.focus-filter-button > span { margin-right: 5px; color: #547b9e; }
.focus-filter-button em { margin-left: 5px; color: #758b9d; font-size: 12px; font-style: normal; }
.focus-filter-button:hover { color: var(--brand-deep); border-color: #8eb4cf; background: #f4f9fc; }
.focus-filter-button.is-active { color: #fff; background: #426f96; border-color: #426f96; }
.focus-filter-button.is-active > span,
.focus-filter-button.is-active em { color: #fff; }

.progress-filter-label { gap: 7px; color: var(--muted); font-size: 13px; }
.progress-filter-label select { height: 36px; padding: 0 30px 0 10px; color: var(--text); background: #fff; border: 1px solid #cfdde7; border-radius: 5px; }

.summary-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.summary-line strong { color: var(--brand-deep); font-size: 18px; }

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 98px;
  padding: 18px 18px 16px;
  text-align: left;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 3px;
  background: transparent;
}

.category-card:hover,
.category-card.is-active {
  transform: translateY(-2px);
  border-color: #9fc9e8;
  background: linear-gradient(180deg, #ffffff, #f5faff);
  box-shadow: var(--shadow);
}

.category-card.is-active::after { background: var(--brand); }

.category-card .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
}

.category-card .name { font-size: 18px; font-weight: 600; }
.category-card .count { display: block; margin-top: 11px; color: var(--muted); font-size: 14px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title h2,
.panel-title h3 { margin: 0; font-size: 18px; font-weight: 600; }
.panel-title span { color: var(--muted); font-size: 14px; }

.topic-button {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.topic-button:last-child { border-bottom: 0; }
.topic-button:hover,
.topic-button.is-active { color: var(--brand-deep); background: var(--brand-soft); }
.topic-button .topic-count { color: var(--muted); font-size: 13px; white-space: nowrap; }

.matter-list { display: grid; gap: 10px; }

.matter-card {
  width: 100%;
  min-height: 62px;
  padding: 11px 14px 10px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-bright);
  border-radius: 5px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.matter-card:hover {
  transform: translateY(-1px);
  border-color: #abd1ec;
  background: #fbfdff;
  box-shadow: 0 6px 18px rgba(35, 103, 154, 0.1);
}

.matter-name { display: block; font-size: 15px; line-height: 1.45; }
.matter-meta { justify-content: space-between; gap: 10px; margin-top: 7px; }
.matter-office { display: block; color: var(--muted); font-size: 13px; }
.matter-labels,
.matter-tags { flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.matter-tag { padding: 2px 7px; border: 1px solid transparent; border-radius: 10px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.matter-tag-province { color: #8a6419; background: #fff9e8; border-color: #ead79c; }
.matter-tag-miit { color: #17669b; background: #edf7fd; border-color: #b8dcee; }
.matter-tag-ndrc { color: #654798; background: #f4f0fb; border-color: #d8c9ed; }

.matter-card-with-actions { position: relative; padding: 0; cursor: default; }
.matter-card-with-actions.is-leader-focus { border-left-color: var(--brand-bright); }
.matter-card-main { display: block; width: 100%; min-height: 60px; padding: 11px 14px 10px; color: inherit; background: transparent; border: 0; text-align: left; cursor: pointer; }
.matter-card-with-actions .matter-name { padding-right: 22px; }

.leader-focus-toggle {
  position: absolute;
  top: 11px;
  right: 12px;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #9cabb7;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 17px;
  line-height: 18px;
  cursor: pointer;
}

.leader-focus-toggle:hover { color: #547b9e; background: transparent; }
.leader-focus-toggle.is-active { color: #426f96; background: transparent; box-shadow: none; }
.leader-focus-toggle:focus-visible { outline: 2px solid rgba(66, 111, 150, 0.35); outline-offset: 2px; }

.matter-progress { padding: 2px 7px; border: 1px solid transparent; border-radius: 3px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.matter-progress-planning { color: #66518c; background: #f4f1fa; border-color: #d9ceea; }
.matter-progress-doing { color: #17669b; background: #edf7fd; border-color: #b8dcee; }
.matter-progress-milestone { color: #18726c; background: #edf9f7; border-color: #b9e0dc; }
.matter-progress-done { color: #39724e; background: #f0f8f2; border-color: #c5dfcd; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 46px 20px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  z-index: 50;
  padding: 12px 20px;
  color: #fff;
  background: rgba(21, 95, 154, 0.94);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 全景联动版 */
.linked-layout {
  display: grid;
  grid-template-columns: minmax(320px, 38%) minmax(0, 62%);
  gap: 18px;
  margin-top: 18px;
}

.linked-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
.linked-topics .topic-button:nth-child(odd) { border-right: 1px solid var(--line); }
.linked-matters { padding: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linked-path { color: var(--brand-deep); }

/* 全量导航版 */
.catalog-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.catalog-nav {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.catalog-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.catalog-nav a:hover { color: var(--brand-deep); background: var(--brand-soft); }
.catalog-nav .nav-category { color: var(--brand-deep); font-weight: 600; background: #f8fbfe; }
.catalog-nav .nav-topic { padding-left: 28px; font-size: 14px; }

.catalog-content { display: grid; gap: 22px; }

.catalog-category {
  scroll-margin-top: 20px;
}

.catalog-category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  color: #fff;
  background: linear-gradient(100deg, var(--brand-deep), var(--brand-bright));
  border-radius: var(--radius) var(--radius) 0 0;
}

.catalog-category-title h2 { margin: 0; font-size: 21px; }
.catalog-category-title span { font-size: 14px; opacity: 0.9; }

.catalog-topic {
  scroll-margin-top: 20px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
}

.catalog-topic:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.catalog-topic h3 { margin: 0 0 12px; color: var(--brand-deep); font-size: 17px; }
.catalog-topic .matter-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 聚焦舞台版 */
.stage-topic-strip {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stage-topic {
  flex: 0 0 auto;
  min-width: 150px;
  min-height: 46px;
  padding: 8px 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.stage-topic:hover,
.stage-topic.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

.focus-stage {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f4faff 100%);
  border: 1px solid #cfe0ed;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.focus-stage::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -210px;
  right: -130px;
  border: 1px solid rgba(43, 143, 218, 0.18);
  border-radius: 50%;
}

.focus-stage-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.focus-stage-header h2 { margin: 0; color: var(--brand-deep); font-size: 25px; }
.focus-stage-header p { margin: 7px 0 0; color: var(--muted); }
.keyboard-tip { color: var(--muted); font-size: 13px; }
.stage-matters { position: relative; z-index: 1; padding: 22px 26px 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 思维导图版 */
.mindmap-page { max-width: none; }
.mindmap-content { padding-top: 14px; }

.mindmap-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.mindmap-meta .summary-line { margin: 0; }

.mindmap-zoom {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.mindmap-zoom button {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #cfdce7;
  border-radius: 5px;
  cursor: pointer;
}

.mindmap-zoom button:hover { background: var(--brand-soft); border-color: #9fc9e8; }
.mindmap-zoom span { min-width: 48px; text-align: center; }

.mindmap-viewport {
  overflow: auto;
  min-height: 680px;
  padding: 28px 24px 60px;
  background: #edf6fc;
  border: 1px solid #d6e6f2;
  border-radius: var(--radius);
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: none;
}

.mindmap-viewport.is-panning { cursor: grabbing; user-select: none; }

.mindmap-canvas {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) 230px minmax(680px, 1fr);
  align-items: stretch;
  gap: 28px;
  min-width: 1700px;
  transform-origin: top center;
}

.mindmap-side { display: grid; align-content: center; gap: 30px; }
.mindmap-center { position: relative; }

.mindmap-root {
  position: sticky;
  top: 42vh;
  display: grid;
  gap: 7px;
  padding: 20px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-bright));
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(21, 95, 154, 0.22);
  text-align: center;
  z-index: 4;
  width: 100%;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.mindmap-root::before,
.mindmap-root::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 29px;
  height: 1px;
  background: #7db7e2;
}

.mindmap-root::before { right: 100%; }
.mindmap-root::after { left: 100%; }
.mindmap-root span { font-size: 22px; font-weight: 600; }
.mindmap-root small { opacity: 0.9; }
.mindmap-root:hover { background: linear-gradient(135deg, #104f82, #2384c9); }

.map-category {
  position: relative;
  display: grid;
  gap: 13px;
}

.map-category-head {
  position: relative;
  z-index: 2;
  width: 260px;
  padding: 13px 15px;
  color: #fff;
  background: linear-gradient(110deg, var(--brand-bright), var(--brand));
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(35, 103, 154, 0.15);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mindmap-left .map-category-head { justify-self: end; }
.mindmap-right .map-category-head { justify-self: start; }
.map-category-head strong { display: block; font-size: 17px; }
.map-category-head small { display: block; margin-top: 5px; opacity: 0.9; }

.map-topic-list { display: grid; gap: 9px; }

.map-topic-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  align-items: center;
  gap: 24px;
}

.mindmap-right .map-topic-row { grid-template-columns: 238px minmax(0, 1fr); }

.map-topic-row::before {
  content: "";
  position: absolute;
  left: calc(100% - 262px);
  right: 214px;
  top: 50%;
  height: 1px;
  background: #8fc4e9;
}

.mindmap-right .map-topic-row::before { left: 214px; right: calc(100% - 262px); }

.map-topic-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid #69abdd;
  border-radius: 4px;
  font-weight: 600;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-topic-node small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.mindmap-right .map-topic-node { grid-column: 1; }
.mindmap-right .map-matters { grid-column: 2; }

.map-matters {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.map-matters.is-collapsed { min-height: 1px; }

.map-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  color: var(--brand-deep);
  background: #dceefa;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.map-category-head .map-toggle { color: #fff; background: rgba(255, 255, 255, 0.2); }
.map-node-line { display: flex; align-items: center; min-width: 0; }
.map-node-label { min-width: 0; }
.map-category.is-collapsed { gap: 0; }

.map-matter {
  min-height: 38px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-inline-end: 2px solid #5da5dc;
  text-align: left;
  cursor: pointer;
}

.mindmap-right .map-matter { border-inline-end: 0; border-inline-start: 2px solid #5da5dc; }
.map-matter:hover { color: var(--brand-deep); background: #fff; box-shadow: 0 4px 12px rgba(35, 103, 154, 0.1); }
.map-matter small { color: var(--muted); white-space: nowrap; }

.map-category.is-filtered .map-category-head { background: linear-gradient(110deg, #4f9fd6, var(--brand-deep)); }
.mindmap-empty { grid-column: 1 / -1; padding: 80px 20px; color: var(--muted); text-align: center; }

/* 原型选择入口 */
.prototype-intro {
  padding: 34px 30px 24px;
  text-align: center;
}

.prototype-intro h1 { margin: 0; color: var(--brand-deep); font-size: 32px; }
.prototype-intro p { margin: 10px auto 0; max-width: 820px; color: var(--muted); line-height: 1.8; }

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 16px 30px 36px;
}

.prototype-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.prototype-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prototype-card .number { color: var(--brand-bright); font-size: 14px; }
.prototype-card h2 { margin: 14px 0 10px; color: var(--brand-deep); font-size: 23px; }
.prototype-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.prototype-card ul { margin: 18px 0 24px; padding-left: 20px; line-height: 1.9; }
.prototype-card .enter { margin-top: auto; color: var(--brand); font-weight: 600; }

.back-home {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 10px 15px;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 5px;
  text-decoration: none;
  box-shadow: var(--shadow);
}

[hidden] { display: none !important; }

@media (max-width: 1440px) {
  body { min-width: 1024px; }
  .standalone-header-inner { min-height: 104px; padding: 15px 24px 14px; gap: 26px; }
  .standalone-brand-copy h1 { font-size: 25px; }
  .standalone-overview { gap: 10px; }
  .standalone-overview .overview-item { font-size: 12px; }
  .standalone-overview strong { font-size: 22px; }
  .page-toolbar { grid-template-columns: minmax(240px, 1fr) minmax(300px, 420px) 210px; padding: 18px 24px 15px; }
  .content-wrap { padding: 18px 24px 30px; }
  .category-card { min-height: 90px; padding: 15px; }
  .category-card .name { font-size: 16px; }
  .catalog-topic .matter-list,
  .stage-matters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prototype-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
  body { min-width: 0; }
  .standalone-header-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .standalone-overview { align-self: stretch; justify-content: center; }
  .standalone-brand-copy h1 { font-size: 23px; }
  .page-toolbar { grid-template-columns: 1fr 1fr; }
  .demo-filter-row { align-items: flex-start; flex-direction: column; }
  .page-heading { grid-column: 1 / -1; }
  .category-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .linked-layout,
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-nav { position: static; max-height: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-nav .panel-title { grid-column: 1 / -1; }
  .prototype-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
