:root {
  --bg: #f6f2ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1d2320;
  --muted: #66706b;
  --subtle: #8b928e;
  --line: #ded7cb;
  --line-strong: #c9beb0;
  --primary: #2e6b5b;
  --primary-dark: #204d42;
  --primary-soft: #e6f1ed;
  --green-soft: #edf4e6;
  --orange: #c66a2b;
  --orange-soft: #fff0e2;
  --warning: #b45309;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(48, 42, 34, 0.08);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(246, 242, 234, 0) 360px),
    var(--bg);
  color: var(--ink);
}

body,
main,
section,
article,
div,
a,
span,
p,
strong {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(201, 190, 176, 0.78);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.city-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.city-button svg {
  width: 15px;
  height: 15px;
}

.updated {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 44px;
  align-items: start;
  padding: 48px 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-tools {
  display: grid;
  gap: 14px;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.chat-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  padding: 0 13px;
}

.chat-form button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 800;
}

.search-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
  padding: 20px;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--subtle);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
  padding: 7px 11px;
  font-size: 13px;
}

.quick-filters button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.city-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.75fr);
  gap: 18px;
  align-items: stretch;
  padding: 10px 0 16px;
}

.city-strip-main,
.city-tabs {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.82);
  padding: 18px;
}

.city-strip-main {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}

.city-strip-main h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.city-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 250px;
}

.city-coverage span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px 12px;
  font-size: 12px;
}

.city-coverage strong {
  color: var(--ink);
  font-size: 18px;
}

.city-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.city-tab {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.city-tab strong,
.city-tab small {
  display: block;
}

.city-tab strong {
  color: var(--ink);
  font-size: 14px;
}

.city-tab small {
  margin-top: 3px;
  font-size: 11px;
}

.city-tab.is-active {
  border-color: rgba(46, 107, 91, 0.58);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.city-tab.is-coming {
  background: #faf8f2;
  color: var(--subtle);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0 30px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(48, 42, 34, 0.05);
  padding: 24px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.icon-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
}

.icon-badge svg {
  width: 23px;
  height: 23px;
}

.teal {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.green {
  background: var(--green-soft);
  color: #536f2f;
}

.orange {
  background: var(--orange-soft);
  color: var(--orange);
}

.blue {
  background: #e7eff6;
  color: #2f5f7d;
}

.status-pill {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.neutral {
  background: #f0ede6;
  color: #5f625f;
}

.status-pill.warning {
  background: var(--orange-soft);
  color: var(--warning);
}

.status-pill.local {
  background: #e7eff6;
  color: #2f5f7d;
}

.category-card h2 {
  margin-bottom: 10px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.category-card p {
  min-height: 54px;
  color: var(--muted);
  line-height: 1.7;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.metric-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 11px 9px;
  font-size: 12px;
}

.metric-row strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.mini-list a {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: 1px;
}

.card-action {
  display: inline-flex;
  justify-content: center;
  margin-top: auto;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
}

.detail-overview {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(48, 42, 34, 0.05);
  margin-bottom: 18px;
  padding: 24px;
  scroll-margin-top: 92px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overview-grid article,
.event-table div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.overview-grid strong,
.overview-grid span,
.event-table strong,
.event-table span {
  display: block;
}

.overview-grid strong,
.event-table strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
}

.overview-grid span,
.event-table span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.event-table {
  display: grid;
  gap: 10px;
}

.page-hero {
  padding: 36px 0 22px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: stretch;
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.summary-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.summary-panel span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 14px 12px;
  font-size: 13px;
}

.summary-panel strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 25px;
}

.year-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(48, 42, 34, 0.05);
  margin-top: 4px;
  padding: 18px;
}

.year-switcher h2 {
  margin: 0;
  font-size: 22px;
}

.year-tabs {
  display: flex;
  gap: 10px;
}

.year-tab {
  min-width: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
}

.year-tab strong,
.year-tab small {
  display: block;
}

.year-tab strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.year-tab small {
  margin-top: 5px;
  font-size: 12px;
}

.year-tab.is-active {
  border-color: rgba(46, 107, 91, 0.55);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tech-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  padding: 16px 0 76px;
}

.filter-panel,
.school-panel,
.right-rail .rail-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.filter-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
  padding: 18px;
}

.filter-group h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group > div {
  display: grid;
  gap: 8px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
  font-size: 13px;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: rgba(46, 107, 91, 0.45);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.filter-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
}

.school-panel {
  padding: 22px;
}

.view-tools {
  display: flex;
  gap: 8px;
}

.view-tools button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.view-tools button.is-active {
  border-color: rgba(46, 107, 91, 0.45);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.district-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(198, 106, 43, 0.22);
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--warning);
  margin-bottom: 16px;
  padding: 13px 14px;
  font-size: 13px;
}

.district-alert a {
  font-weight: 900;
}

.school-list {
  display: grid;
  gap: 12px;
}

.admissions-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 16px 0 76px;
}

.admissions-filter {
  position: sticky;
  top: 92px;
}

.admissions-panel {
  min-width: 0;
}

.admissions-list {
  display: grid;
  gap: 14px;
}

.admission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.admission-card h3 {
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.35;
}

.admission-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.admission-headline,
.admission-meta,
.admission-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admission-meta span,
.admission-schedule span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf8f2;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
}

.admission-schedule {
  margin-top: 10px;
}

.admission-schedule span {
  align-items: flex-start;
  border-radius: 8px;
  line-height: 1.5;
  padding: 7px 10px;
}

.source-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.source-badge.trusted {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.source-badge.pending {
  background: var(--orange-soft);
  color: var(--orange);
}

.source-link-inline {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.admission-detail-page {
  padding-bottom: 56px;
}

.admission-overview article strong {
  font-size: 18px;
}

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

.district-group {
  display: grid;
  gap: 12px;
}

.district-group + .district-group {
  margin-top: 18px;
}

.district-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f2;
  padding: 12px 14px;
}

.district-group-head strong {
  color: var(--ink);
  font-size: 16px;
}

.district-group-head span {
  color: var(--muted);
  font-size: 13px;
}

.school-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.school-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
}

.school-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.school-meta {
  display: grid;
  gap: 8px;
}

.school-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #faf8f2;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  text-align: center;
}

.secondary-action {
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.right-rail {
  display: grid;
  gap: 16px;
}

.right-rail .rail-card {
  padding: 18px;
}

.rail-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.rail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.rail-list strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.rail-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-hero {
  padding: 36px 0 18px;
}

.detail-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-title-grid h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.source-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.source-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.source-missing {
  border: 1px solid rgba(198, 106, 43, 0.24);
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--warning);
  margin-bottom: 12px;
  padding: 12px;
}

.source-missing strong,
.source-missing span {
  display: block;
}

.source-missing strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.source-missing span {
  font-size: 12px;
  line-height: 1.55;
}

.source-card a {
  display: block;
  border-top: 1px solid var(--line);
  color: var(--primary);
  padding: 12px 0;
  font-size: 14px;
  font-weight: 900;
}

.source-card .official-site-link {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  margin-bottom: 8px;
  padding: 12px 14px;
  text-align: center;
}

.source-section {
  padding: 0 0 80px;
}

.inline-source {
  color: var(--primary);
  font-weight: 900;
}

.compact-year {
  margin-top: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  padding: 18px 0 34px;
}

.detail-main,
.detail-rail {
  display: grid;
  gap: 16px;
}

.detail-section,
.detail-rail .rail-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px;
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.priority-brief {
  border-color: rgba(46, 107, 91, 0.34);
  background:
    linear-gradient(180deg, rgba(230, 241, 237, 0.84), rgba(255, 253, 248, 0.98)),
    var(--surface);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.brief-grid div {
  border: 1px solid rgba(46, 107, 91, 0.2);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.brief-grid strong,
.brief-grid span {
  display: block;
}

.brief-grid strong {
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.brief-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admission-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admission-plan span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 13px;
  font-size: 13px;
}

.admission-plan strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}

.program-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.program-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.program-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.info-grid,
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-grid div,
.numbered-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
}

.info-grid strong,
.info-grid span,
.numbered-grid strong,
.numbered-grid span,
.numbered-grid em {
  display: block;
}

.info-grid strong,
.numbered-grid strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.info-grid span,
.numbered-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.numbered-grid em {
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 900;
  margin-bottom: 10px;
  padding: 5px 8px;
  font-size: 12px;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.timeline-list div,
.process-list div {
  display: grid;
  grid-template-columns: 42px 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list em {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.timeline-list strong,
.process-list strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.timeline-list span,
.process-list span {
  color: var(--muted);
  line-height: 1.55;
}

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

.material-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  color: var(--muted);
  font-size: 14px;
}

.action-rail button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  padding: 12px;
  font-weight: 900;
}

.compare-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compare-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.compare-row:first-child {
  border-top: 0;
}

.compare-row span {
  border-left: 1px solid var(--line);
  color: var(--muted);
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.compare-row span:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 900;
}

.compare-head {
  background: var(--primary-soft);
}

.compare-head span {
  color: var(--primary-dark);
  font-weight: 900;
}

.full-brief-section {
  background: #fffdf8;
}

.official-outline {
  display: grid;
  gap: 12px;
}

.official-outline section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.official-outline em {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}

.official-outline h3 {
  margin: 2px 0 8px;
  font-size: 18px;
}

.official-outline p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.admin-page {
  padding-bottom: 72px;
}

.admin-hero {
  padding-bottom: 8px;
}

.admin-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 20px;
  margin-top: 18px;
}

.admin-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px;
}

.admin-status {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.admin-form textarea {
  min-height: 132px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.55;
}

.admin-form .check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.admin-form .check-line input {
  width: 16px;
  height: 16px;
}

.admin-form button,
.small-button {
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  padding: 11px 14px;
  font-weight: 900;
}

.small-button {
  padding: 8px 10px;
  font-size: 12px;
}

.admin-note,
.admin-empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.data-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  color: #856404;
  font-size: 14px;
  margin: 16px auto;
  max-width: 1180px;
  padding: 12px 24px;
  text-align: center;
}

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

.admin-metrics span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 14px;
  font-size: 13px;
}

.admin-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 5px;
}

.admin-list {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
}

.admin-list-item {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  padding: 12px;
  text-align: left;
}

.seed-button {
  cursor: pointer;
}

.seed-button:hover {
  border-color: rgba(46, 107, 91, 0.45);
  background: var(--primary-soft);
}

.admin-list-item strong,
.admin-list-item span {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.admin-list-item strong {
  font-size: 14px;
  margin-bottom: 5px;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-row-actions {
  margin-top: 10px;
}

.admin-published {
  display: inline-flex;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark) !important;
  padding: 5px 8px;
  font-weight: 900;
}

.admin-parse-error {
  color: #dc3545 !important;
  display: inline !important;
  font-size: 12px !important;
  font-weight: 600;
  margin-left: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr);
  gap: 22px;
  padding: 6px 0 64px;
}

.notice-panel,
.deadline-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head a,
#deadlineCount {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.notice-list {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.notice-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

.notice-item > * {
  min-width: 0;
}

.tag {
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag.orange {
  background: var(--orange-soft);
  color: var(--warning);
}

.notice-title {
  margin-bottom: 6px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-meta {
  color: var(--subtle);
  font-size: 13px;
}

.notice-state {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.deadline-list {
  display: grid;
  gap: 12px;
}

.deadline-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.date-block {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.date-block small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}

.deadline-title {
  margin: 1px 0 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.deadline-meta {
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.5;
}

.deadline-status {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.deadline-status.urgent {
  background: #fee4df;
  color: var(--danger);
}

.deadline-status.soon {
  background: var(--orange-soft);
  color: var(--warning);
}

.deadline-status.normal {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.floating-agent {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(46, 107, 91, 0.34);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 46px rgba(29, 35, 32, 0.18);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 16px 10px 10px;
  backdrop-filter: blur(18px);
}

.floating-agent::before {
  content: "AI";
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.floating-agent::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(46, 107, 91, 0.12);
  opacity: 0;
  transform: scale(0.95);
  transition: 180ms ease;
}

.floating-agent:hover::after {
  opacity: 1;
  transform: scale(1);
}

.floating-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.floating-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.floating-copy small {
  color: var(--muted);
  font-size: 12px;
}

.mascot-avatar {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 20%, #ffcf9d 0 11%, transparent 12%),
    linear-gradient(145deg, #2e6b5b, #1e4d43);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 24px rgba(46, 107, 91, 0.24);
  color: #fff;
}

.mascot-avatar.small {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.mascot-avatar svg {
  position: relative;
  z-index: 2;
  width: 45px;
  height: 45px;
}

.mascot-avatar.small svg {
  width: 38px;
  height: 38px;
}

.mascot-ring {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
}

.mascot-map {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.52);
}

.mascot-compass {
  fill: #ffb86b;
  stroke: #fff3e3;
}

.mascot-face {
  fill: #fffdf8;
  stroke: #fffdf8;
}

.mascot-eye {
  fill: var(--primary-dark);
  stroke: none;
}

.mascot-mouth {
  stroke: var(--primary-dark);
  stroke-width: 2.3;
}

.agent-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(29, 35, 32, 0.24);
}

.agent-drawer.is-open {
  display: flex;
}

.agent-drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100%;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: -20px 0 50px rgba(29, 35, 32, 0.16);
  padding: 22px;
  transition: none;
}

.agent-drawer-panel.is-dragging {
  position: absolute;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 40px rgba(29, 35, 32, 0.22);
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  cursor: grab;
  user-select: none;
}

.drawer-head:active {
  cursor: grabbing;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-head h2 {
  margin: 0;
}

.drawer-head button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.agent-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 10px;
}

.agent-mode span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.agent-mode .is-active {
  border-color: rgba(46, 107, 91, 0.42);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.drawer-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.drawer-examples button {
  border: 1px solid rgba(46, 107, 91, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 7px 10px;
  font-size: 12px;
}

.chat-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding: 4px 0 18px;
}

.chat-message {
  max-width: 86%;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 13px;
  line-height: 1.62;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.chat-message p {
  margin: 0 0 8px;
}

.chat-message p:last-child {
  margin-bottom: 0;
}

.chat-message h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.chat-message ul {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding-left: 18px;
}

.chat-message li {
  color: var(--muted);
}

.chat-message code {
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 1px 4px;
  font-family: var(--font-family, inherit);
  font-size: 12px;
}

.chat-message.bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: #fff;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
}

.chat-message .result-link {
  display: block;
  margin-top: 9px;
  color: var(--primary);
  font-weight: 900;
  overflow-wrap: break-word;
  word-break: break-all;
}

.agent-matches {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.agent-matches a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.agent-matches strong,
.agent-matches span {
  display: block;
}

.agent-matches strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.agent-matches span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* 工具调用状态指示器 */
.agent-tools-container {
  margin-bottom: 8px;
}

.tool-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}

.tool-indicator.tool-done {
  color: #22c55e;
}

.tool-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: tool-spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes tool-spin {
  to { transform: rotate(360deg); }
}

.tool-check {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.tool-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.agent-error {
  color: #ef4444;
}

.agent-content {
  line-height: 1.65;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.agent-content a {
  word-break: break-all;
}

.chat-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 980px) {
  .header-inner,
  .hero,
  .city-strip,
  .page-hero-grid,
  .detail-title-grid,
  .year-switcher,
  .tech-layout,
  .admissions-layout,
  .detail-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: start;
    overflow-x: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-strip-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .city-coverage {
    justify-content: flex-start;
    min-width: 0;
  }

  .category-card {
    min-height: auto;
  }

  .filter-panel {
    position: static;
  }

  .school-card {
    grid-template-columns: 1fr;
  }

  .admission-card {
    grid-template-columns: 1fr;
  }

  .district-alert {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .admission-plan,
  .info-grid,
  .numbered-grid,
  .brief-grid,
  .material-list,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .official-outline section {
    grid-template-columns: 1fr;
  }

  .compare-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .compare-row span:first-child {
    border-top: 0;
    background: #faf8f2;
  }

  .admin-grid,
  .admin-grid.wide {
    grid-template-columns: 1fr;
  }

  .year-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    gap: 12px;
    padding: 12px 0;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .updated {
    width: fit-content;
  }

  .city-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .notice-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .notice-title {
    text-overflow: clip;
    white-space: normal;
  }

  .notice-state {
    width: fit-content;
    white-space: normal;
  }

  .section-head {
    flex-wrap: wrap;
  }

  .admin-card {
    padding: 18px;
  }

  .admin-list-item strong,
  .admin-list-item span,
  .notice-meta {
    word-break: break-word;
  }

  .floating-agent {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    justify-content: center;
    padding: 0;
  }

  .floating-agent .mascot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .floating-agent .mascot-avatar svg {
    width: 28px;
    height: 28px;
  }

  .floating-agent .mascot-ring {
    inset: 5px;
    border-radius: 8px;
  }

  .floating-copy {
    display: none;
  }
}
