:root {
  color-scheme: light;
  --bg: #f7f0f0;
  --panel: #fffafa;
  --panel-strong: #ffffff;
  --ink: #291d1e;
  --muted: #786667;
  --line: #e5d5d5;
  --blue: #b75f64;
  --blue-deep: #7c353a;
  --blue-soft: #f8e4e5;
  --teal: #c9797d;
  --amber: #b7813e;
  --coral: #a9474d;
  --shadow: 0 12px 30px rgba(74, 38, 41, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scrollbar-gutter: stable;
}

html.subpage-root {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #fffafa 0%, var(--bg) 46%, #f2e8e8 100%);
  color: var(--ink);
  font-family:
    "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html.subpage-root body {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  display: flex;
  width: 100vw;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 250, 0.96);
  padding: 0 18px;
}

.site-wordmark {
  display: flex;
  min-width: 150px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.site-wordmark > img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(59, 36, 38, 0.12);
}

.site-wordmark strong {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  width: 390px;
  height: 100%;
  flex: 0 0 390px;
  align-items: stretch;
}

.site-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.site-nav a::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: transparent;
  content: "";
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-deep);
}

.site-nav a.active::after {
  background: var(--blue);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(270px, 300px) minmax(520px, 1fr) minmax(290px, 330px);
  gap: 14px;
  height: calc(100vh - 88px);
  padding: 14px;
}

.side {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.side-left {
  overflow: hidden;
}

.side-left .stats-panel {
  margin-top: auto;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 19px;
  line-height: 1.2;
}

h2 {
  font-size: 15px;
  line-height: 1.3;
}

.filters-panel {
  padding: 11px 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.icon-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.field {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #fbfcf8;
  color: var(--ink);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(183, 95, 100, 0.14);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.check-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf8;
  min-height: 32px;
  padding: 6px 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.check-grid input {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcf8;
  color: #37483f;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip.active {
  border-color: rgba(183, 95, 100, 0.34);
  background: var(--blue);
  color: white;
}

.stats-panel {
  padding: 10px 12px;
}

.metric-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--blue-deep);
}

.metric-main span {
  font-size: 30px;
  font-weight: 900;
  line-height: 0.9;
}

.metric-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.metric-inline strong {
  margin-right: 3px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.metric-inline span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.map-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 52% 43%, rgba(255, 255, 255, 0.94) 0 20%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #fff7f7 0%, #f1dddd 100%);
  box-shadow: var(--shadow);
}

.map-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: auto;
}

.map-controls button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(217, 222, 213, 0.95);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.94);
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(74, 38, 41, 0.07);
}

.map-controls button:hover {
  border-color: rgba(183, 95, 100, 0.42);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.map-stage:fullscreen {
  border-radius: 0;
  background:
    radial-gradient(circle at 52% 43%, rgba(255, 255, 255, 0.94) 0 20%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #fff7f7 0%, #f1dddd 100%);
}

.map-chart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.three-map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
  touch-action: none;
}

.three-map-canvas:active {
  cursor: grabbing;
}

.map-hover-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: grid;
  width: min(236px, calc(100% - 20px));
  gap: 4px;
  border: 1px solid rgba(224, 201, 202, 0.96);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.97);
  box-shadow: 0 14px 30px rgba(85, 42, 46, 0.14);
  padding: 10px 12px;
  pointer-events: none;
  will-change: transform;
}

.map-hover-card[hidden] {
  display: none;
}

.map-hover-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.map-hover-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.legend-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  width: 170px;
  border: 1px solid rgba(217, 222, 213, 0.95);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.94);
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.legend-title {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
}

.legend-ramp {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7e5e5, #eababc, #d17f83, #b65359);
}

.legend-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.detail-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: min(360px, calc(100% - 210px));
  max-height: calc(100% - 32px);
  overflow-y: auto;
  border: 1px solid rgba(217, 222, 213, 0.98);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 18px 36px rgba(74, 38, 41, 0.12);
  padding: 14px;
}

.detail-card.hidden {
  display: none;
}

.detail-card.empty {
  color: var(--muted);
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 254, 250, 0.92);
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.detail-close:hover {
  border-color: rgba(183, 95, 100, 0.42);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.detail-kicker {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.detail-card h2 {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.25;
}

.detail-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  background: #edf3f8;
  color: #355064;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.tag.hot {
  background: #fff1cf;
  color: #885a00;
}

.tag.blue {
  background: #dceaff;
  color: var(--blue-deep);
}

.tag.green {
  background: #dff3ed;
  color: #17634f;
}

.major-ranking,
.program-lines {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.major-head,
.major-row,
.line-row {
  display: grid;
  grid-template-columns: 1fr 42px 72px;
  align-items: center;
  gap: 8px;
}

.major-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.major-head strong {
  color: var(--ink);
  font-size: 12px;
}

.major-row,
.line-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf8;
  padding: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.major-row.selected,
.line-row.selected {
  border-color: rgba(184, 93, 61, 0.48);
  background: #fff3eb;
}

.major-row strong,
.line-row strong {
  color: var(--coral);
  font-size: 12px;
}

.major-row em,
.line-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.line-row {
  grid-template-columns: 1fr 78px 100px;
}

.city-school-list {
  display: grid;
  gap: 6px;
  max-height: 132px;
  margin-top: 10px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.city-school-list button {
  border: 0;
  border-radius: 6px;
  background: #f6f7f1;
  color: var(--ink);
  padding: 7px 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.city-school-list button:hover {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.primary-action,
.ghost-action {
  min-height: 35px;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.primary-action {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}

.ghost-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-deep);
}

.empty-note {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf8;
  padding: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.program-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf8;
  padding: 9px;
  text-align: left;
}

.program-card:hover {
  border-color: rgba(183, 95, 100, 0.42);
  background: var(--blue-soft);
}

.program-card .program-school {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.program-card strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.program-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.program-card em {
  color: #7a5a2a;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.soft-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.list-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.school-list {
  display: grid;
  min-height: 0;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.school-row {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf8;
  padding: 10px;
  text-align: left;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.school-row:hover,
.school-row.active {
  border-color: rgba(183, 95, 100, 0.42);
  box-shadow: 0 10px 22px rgba(183, 95, 100, 0.08);
  transform: translateY(-1px);
}

.school-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.school-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.load-more {
  display: none;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.load-more.visible {
  display: block;
}

.source-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.94);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.source-bar p {
  margin: 0;
}

.source-bar a {
  text-decoration: none;
}

.source-bar a:hover {
  text-decoration: underline;
}

.visit-counter {
  position: absolute;
  right: 14px;
  color: #8a7778;
  font-size: 10px;
  font-weight: 700;
}

.visit-counter strong {
  color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.subpage-body {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.subpage-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.subpage-heading > span,
.assessment-intro > span,
.about-heading > span,
.rank-output-head span,
.result-heading > span {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.subpage-heading h1,
.assessment-intro h1,
.about-heading h1 {
  margin-top: 7px;
  font-size: 30px;
  line-height: 1.15;
}

.subpage-heading p,
.assessment-intro p,
.about-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
}

.rank-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.rank-query-panel {
  position: sticky;
  top: 78px;
  padding: 22px;
}

.rank-page-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.rank-page-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.rank-page-form input,
.rank-page-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: #fffdfd;
  color: var(--ink);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 750;
}

.rank-page-form input:focus,
.rank-page-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(183, 95, 100, 0.12);
}

.rank-page-form button,
.assessment-submit {
  min-height: 43px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.model-note {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.model-note strong {
  font-size: 12px;
}

.model-note p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
}

.rank-output {
  min-width: 0;
}

.rank-output-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 2px 0 18px;
}

.rank-output-head h2 {
  margin-top: 7px;
  font-size: 24px;
}

.rank-output-head > strong {
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
}

.rank-page-summary {
  padding: 15px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.65;
}

.rank-page-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rank-page-card {
  min-height: 144px;
  text-decoration: none;
}

.program-rank-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.program-rank-line b {
  color: var(--coral);
  font-size: 12px;
}

.program-rank-line em {
  text-align: right;
}

.admission-source-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.admission-source-link:hover {
  text-decoration: underline;
}

.assessment-shell {
  width: min(920px, calc(100% - 32px));
}

.assessment-intro {
  max-width: 680px;
  margin-bottom: 26px;
}

.assessment-form {
  display: grid;
  gap: 12px;
}

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

.question-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 250, 0.86);
  padding: 16px;
}

.question-card legend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.question-card legend span {
  color: var(--blue);
  font-size: 11px;
}

.answer-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.answer-scale label {
  position: relative;
}

.answer-scale input {
  position: absolute;
  opacity: 0;
}

.answer-scale span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.answer-scale input:checked + span {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.answer-scale input:focus-visible + span {
  outline: 3px solid rgba(183, 95, 100, 0.16);
}

.assessment-submit {
  justify-self: end;
  min-width: 180px;
  margin-top: 8px;
}

.assessment-result {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.result-heading {
  max-width: 700px;
}

.result-heading h2 {
  margin-top: 7px;
  font-size: 28px;
}

.result-heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.7;
}

.result-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.result-direction-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 17px;
}

.result-direction-grid span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.result-direction-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.result-direction-grid p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.major-suggestions {
  margin-top: 20px;
}

.major-suggestions > strong {
  font-size: 13px;
}

.major-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.major-suggestions span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.result-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
}

html.about-root,
html.about-root body.about-page {
  height: 100%;
  overflow: hidden;
}

body.about-page {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 42px;
}

.about-shell {
  display: grid;
  width: min(980px, calc(100% - 32px));
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding: 20px 0;
}

.about-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
}

.about-heading {
  max-width: 650px;
  padding: 0;
}

.about-heading h1 {
  margin-top: 6px;
  font-size: 34px;
}

.about-heading p {
  max-width: 58ch;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.wechat-contact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.wechat-contact img {
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.wechat-contact span,
.about-reminder strong {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.wechat-contact strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
}

.wechat-contact p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.about-points {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.about-points article {
  min-width: 0;
  min-height: 150px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 250, 0.68);
  padding: 18px;
}

.about-points article > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.about-points h2 {
  margin-top: 12px;
  font-size: 18px;
}

.about-points p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.about-reminder {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.about-reminder p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.page-footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  text-align: center;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 1180px) {
  html,
  body {
    overflow: auto;
  }

  .app-shell {
    grid-template-columns: 300px 1fr;
    height: auto;
    min-height: calc(100vh - 88px);
  }

  .side-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
  }

  .list-panel {
    max-height: 360px;
  }

  .map-stage {
    min-height: 680px;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: 100%;
    height: auto;
    min-height: 58px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 9px 10px 0;
  }

  .site-wordmark {
    display: none;
  }

  .site-nav {
    width: 100%;
    min-height: 48px;
    flex: 1 1 auto;
  }

  .site-nav a {
    min-width: 0;
    flex: 1;
    font-size: 12px;
  }

  .site-nav a::after {
    right: 8px;
    left: 8px;
  }

  .app-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .side-right {
    grid-template-columns: 1fr;
  }

  .map-stage {
    min-height: 560px;
  }

  .map-controls {
    top: 10px;
    left: 10px;
  }

  .detail-card {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .legend-card {
    display: none;
  }

  .source-bar {
    height: auto;
    min-height: 32px;
    justify-content: space-between;
    padding: 6px 10px;
  }

  .source-bar .icp-record {
    text-align: left !important;
  }

  .visit-counter {
    position: static;
    flex: 0 0 auto;
  }

  .subpage-shell {
    width: min(100% - 20px, 760px);
    padding: 20px 0 36px;
  }

  .rank-workspace,
  .rank-page-results,
  .result-direction-grid {
    grid-template-columns: 1fr;
  }

  .rank-query-panel {
    position: static;
  }

  .answer-scale {
    gap: 5px;
  }

  .answer-scale span {
    min-height: 42px;
    padding: 4px;
    font-size: 10px;
    text-align: center;
  }

  .assessment-submit {
    width: 100%;
    justify-self: stretch;
  }

  body.about-page {
    grid-template-rows: 57px minmax(0, 1fr) 42px;
  }

  .about-shell {
    width: min(100% - 20px, 760px);
    gap: 10px;
    padding: 12px 0;
  }

  .about-summary {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 12px;
  }

  .about-heading h1 {
    font-size: 25px;
  }

  .about-heading p {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.5;
  }

  .wechat-contact {
    display: block;
    padding: 6px 0;
    text-align: center;
  }

  .wechat-contact img {
    width: 92px;
    height: 92px;
  }

  .wechat-contact strong {
    margin-top: 2px;
    font-size: 12px;
  }

  .wechat-contact p {
    display: none;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .about-points article {
    min-height: 0;
    padding: 10px 12px;
  }

  .about-points h2 {
    display: inline;
    margin: 0 0 0 8px;
    font-size: 15px;
  }

  .about-points p {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
  }

  .about-reminder {
    display: block;
    padding: 8px 0;
  }

  .about-reminder p {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.45;
  }
}
