:root {
  --ink: #122b37;
  --ink-soft: #6c7e84;
  --paper: #edf2ef;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --line: #d9e3df;
  --line-strong: #c8d6d1;
  --deep: #102d3a;
  --deep-soft: #1b4350;
  --teal: #247879;
  --teal-dark: #15585d;
  --coral: #c96852;
  --gold: #d39b43;
  --blue: #5b819d;
  --shadow: 0 10px 30px rgba(17, 43, 55, .055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.5; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(211, 155, 67, .45); outline-offset: 2px; }
.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; height: 70px; color: #f5fbf8; background: var(--deep); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header-inner { width: min(1240px, calc(100% - 48px)); height: 100%; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; justify-self: start; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #f6d28a; border: 1px solid rgba(246, 210, 138, .7); font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.brand-copy strong { display: block; font-size: 14px; letter-spacing: .14em; }
.brand-copy small { display: block; margin-top: 2px; color: #9fc2bd; font-size: 8px; letter-spacing: .16em; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { position: relative; color: #c1d5d2; font-size: 12px; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-status { justify-self: end; display: flex; align-items: center; gap: 9px; color: #a9c5bf; font-size: 11px; }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: #d5a34e; box-shadow: 0 0 0 4px rgba(213, 163, 78, .14); }
.header-status b { padding-left: 10px; color: #dbe9e4; border-left: 1px solid rgba(255,255,255,.22); font-weight: 500; }

.hero { padding: 66px 0 52px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: end; gap: 70px; }
.eyebrow, .section-kicker { margin: 0 0 11px; color: var(--coral); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 720px; margin: 0 0 17px; color: var(--deep); font-family: Georgia, "Songti SC", serif; font-size: 58px; line-height: 1.08; font-weight: 500; letter-spacing: 0; }
h1 em { color: var(--teal); font-style: normal; }
.hero-lede { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 15px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags span { padding: 5px 9px; color: var(--teal-dark); background: #e0eeea; border-left: 2px solid var(--teal); font-size: 10px; }
.hero-index { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 3px 0 0 23px; border-left: 2px solid var(--gold); }
.hero-index-label { color: var(--coral); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.hero-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.hero-index-grid div { min-width: 0; }
.hero-index-grid span, .hero-index-grid small { display: block; color: var(--ink-soft); font-size: 10px; }
.hero-index-grid strong { display: block; margin: 4px 0 1px; color: var(--deep); font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.hero-index-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); color: #8a999a; font-size: 9px; letter-spacing: .12em; }
.hero-index-foot b { color: var(--teal-dark); font-weight: 600; letter-spacing: .04em; }

.notice-strip { min-height: 54px; padding: 11px 15px; display: flex; align-items: center; gap: 12px; color: #655d48; background: #fff8e9; border: 1px solid #eadcb9; }
.notice-strip p { flex: 1; margin: 0; font-size: 11px; }
.notice-icon { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; color: #9a6b1c; border: 1px solid var(--gold); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; color: var(--teal-dark); background: transparent; border: 1px solid #cdbd96; border-radius: 50%; font-size: 18px; line-height: 1; }
.icon-button:hover { color: #fff; background: var(--teal); border-color: var(--teal); }

.filter-panel { position: sticky; top: 70px; z-index: 10; margin-top: 18px; padding: 22px 24px 20px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 7px; box-shadow: var(--shadow); }
.filter-heading, .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.filter-heading { margin-bottom: 18px; }
.panel-heading { margin-bottom: 18px; }
.panel-heading.compact { margin-bottom: 14px; }
.filter-heading h2, .panel-heading h2, .source-intro h2 { margin: 0; color: var(--deep); font-size: 20px; line-height: 1.2; letter-spacing: .01em; }
.section-kicker { display: block; margin-bottom: 6px; color: var(--teal); font-size: 9px; letter-spacing: .15em; }
.filter-state { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 10px; }
.scope-pill { display: inline-block; max-width: 340px; overflow: hidden; padding: 6px 10px; color: var(--teal-dark); background: #e8f3ee; border: 1px solid #c9ded5; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.filter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; }
.filter-grid label { min-width: 0; color: var(--ink-soft); font-size: 10px; }
.filter-grid label > span { display: block; margin-bottom: 5px; }
select { width: 100%; min-height: 39px; padding: 8px 29px 8px 10px; overflow: hidden; color: var(--ink); background-color: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 4px; outline: none; text-overflow: ellipsis; white-space: nowrap; }
select:hover { border-color: #9ab7b0; }
select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(36, 120, 121, .12); }
.metric-row { min-height: 47px; display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.metric-caption b, .metric-caption small { display: block; }
.metric-caption b { color: var(--ink); font-size: 11px; font-weight: 600; }
.metric-caption small { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.metric-switch { display: flex; gap: 0; }
.metric-switch button { min-width: 88px; padding: 7px 11px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line-strong); border-right: 0; font-size: 11px; }
.metric-switch button:first-child { border-radius: 4px 0 0 4px; }
.metric-switch button:last-child { border-right: 1px solid var(--line-strong); border-radius: 0 4px 4px 0; }
.metric-switch button.active { position: relative; z-index: 1; color: #fff; background: var(--teal); border-color: var(--teal); }

.kpi-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.kpi { min-height: 128px; padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.kpi-top { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 11px; }
.kpi-top i { color: #a5b6b2; font-family: Georgia, serif; font-size: 11px; font-style: normal; }
.kpi strong { display: block; margin: 12px 0 2px; overflow: hidden; color: var(--deep); font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 500; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
.kpi small { color: var(--ink-soft); font-size: 10px; }
.kpi-primary { color: #f7fffb; background: var(--teal-dark); border-color: var(--teal-dark); }
.kpi-primary .kpi-top, .kpi-primary small { color: #b9d8d1; }
.kpi-primary .kpi-top i { color: #8dbdb4; }
.kpi-primary strong { color: #fff; }

.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.insight-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; margin-top: 18px; }
.panel { min-width: 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.unit-label, .muted { color: #8a999a; font-size: 10px; }
.trend-chart { height: 242px; display: flex; align-items: end; gap: 12px; padding: 10px 2px 0; border-bottom: 1px solid var(--line); }
.trend-column { height: 100%; flex: 1; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.trend-number { color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.trend-bar-wrap { position: relative; width: 100%; max-width: 46px; height: 185px; display: flex; align-items: end; }
.trend-bar { width: 100%; min-height: 3px; background: var(--teal); border-radius: 3px 3px 0 0; }
.trend-plan { position: absolute; left: -4px; width: calc(100% + 8px); border-top: 2px solid var(--gold); }
.trend-label { color: var(--ink-soft); font-size: 10px; }
.chart-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 14px; color: var(--ink-soft); font-size: 10px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; margin-right: 4px; }
.legend-dot.admitted { background: var(--teal); border-radius: 2px; }
.legend-dot.plan { background: var(--gold); border-radius: 50%; }
.score-chart { display: grid; gap: 14px; padding-top: 10px; }
.score-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 82px; align-items: center; gap: 9px; font-size: 10px; }
.score-year { color: var(--ink-soft); }
.score-track { position: relative; height: 9px; background: #e9efec; border-radius: 2px; }
.score-range { position: absolute; height: 100%; min-width: 3px; background: #b1d5c9; border-radius: 2px; }
.score-average { position: absolute; top: -4px; width: 8px; height: 17px; background: var(--coral); border-radius: 2px; }
.score-values { color: var(--ink-soft); font-size: 10px; text-align: right; }
.chart-caption, .panel-caption { color: var(--ink-soft); font-size: 10px; }
.chart-caption { margin: 15px 0 0; }
.panel-caption { margin: -8px 0 15px; }

.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #adc5be transparent; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 610px; border-collapse: collapse; }
th, td { padding: 11px 9px; border-bottom: 1px solid #e7eeea; text-align: left; font-size: 10px; white-space: nowrap; }
th { color: #7e9090; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
td { color: #40565d; }
tbody tr:hover { background: #f3f8f5; }
td.num, th.num { text-align: right; }
.direction-name strong { display: block; color: var(--ink); font-size: 11px; font-weight: 600; }
.direction-name span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.score-emphasis { color: var(--teal-dark); font-family: Georgia, "Songti SC", serif; font-size: 13px; }
.group-list { display: grid; gap: 0; }
.group-item { padding: 12px 0 13px; border-bottom: 1px solid #e7eeea; }
.group-item:last-child { border-bottom: 0; }
.group-item-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 11px; }
.group-item-head b { font-weight: 600; }
.group-item-head span { color: var(--ink-soft); }
.group-bar { height: 6px; background: #e9efec; border-radius: 2px; }
.group-bar i { display: block; height: 100%; background: var(--coral); border-radius: 2px; }
.group-metrics { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; margin-top: 7px; color: var(--ink-soft); font-size: 9px; }
.yearly-panel, .detail-panel { margin-top: 18px; }
.yearly-panel table { min-width: 760px; }
.year-status { color: var(--teal); }
.year-status.muted-status { color: #9da9a7; }
.detail-wrap { max-height: 570px; overflow-y: auto; }
.detail-wrap thead { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.candidate strong { display: block; color: var(--ink); font-weight: 600; }
.candidate small { color: #94a3a0; font-size: 9px; }
.row-source { color: var(--teal); text-decoration: none; }
.row-source::after { content: " ↗"; color: var(--gold); }
.row-source:hover { color: var(--coral); }
.empty { padding: 22px 8px; color: #8b9997; font-size: 11px; }

.source-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 24px 60px; padding: 35px 0 39px; margin-top: 18px; border-top: 1px solid var(--line-strong); }
.source-intro p { max-width: 325px; margin: 12px 0 0; color: var(--ink-soft); font-size: 11px; }
.source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 25px; }
.source-list a { display: block; padding: 9px 0; color: var(--teal-dark); border-bottom: 1px solid var(--line); font-size: 10px; text-decoration: none; }
.source-list a::after { content: " ↗"; color: var(--gold); }
.source-list a:hover { color: var(--coral); }
.source-list small { display: block; margin-top: 2px; color: #899a97; font-size: 9px; }
.method-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 21px; border-top: 1px solid var(--line); }
.method-grid div { padding-right: 14px; border-right: 1px solid var(--line); }
.method-grid div:last-child { border-right: 0; }
.method-grid b { display: block; margin-bottom: 5px; color: var(--coral); font-size: 11px; }
.method-grid span { display: block; color: var(--ink-soft); font-size: 10px; }
code { padding: 2px 4px; color: var(--teal-dark); background: #e1ece8; font-size: 9px; }
.footer { margin-top: 8px; padding: 19px 0; color: #bdd3cd; background: var(--deep); font-size: 9px; }
.footer .shell { display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid, .insight-grid { grid-template-columns: 1fr; }
  .source-section { grid-template-columns: 1fr; gap: 20px; }
  .source-intro p { max-width: none; }
}

@media (max-width: 620px) {
  .shell, .header-inner { width: calc(100% - 28px); }
  .site-header { height: 62px; }
  .header-status span, .header-status b { display: none; }
  .header-status i { margin-right: 2px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 7px; }
  .hero { display: block; padding: 41px 0 32px; }
  h1 { margin-bottom: 15px; font-size: 38px; }
  .hero-lede { font-size: 13px; }
  .hero-tags { margin-top: 19px; }
  .hero-index { min-height: 0; margin-top: 30px; padding: 17px 0 0; border-top: 2px solid var(--gold); border-left: 0; }
  .hero-index-grid { margin: 19px 0; gap: 9px; }
  .hero-index-grid strong { font-size: 25px; }
  .notice-strip { align-items: flex-start; padding: 10px 11px; }
  .notice-strip p { font-size: 10px; }
  .filter-panel { position: static; margin-top: 14px; padding: 18px 14px; }
  .filter-heading { align-items: flex-start; }
  .filter-heading h2 { font-size: 18px; }
  .filter-state { display: block; text-align: right; }
  .filter-state > span { display: block; }
  .filter-state #filter-result { margin-top: 5px; }
  .scope-pill { max-width: 155px; }
  .filter-grid { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .metric-row { display: block; }
  .metric-caption { margin-bottom: 10px; }
  .metric-switch { width: 100%; }
  .metric-switch button { flex: 1; min-width: 0; padding-right: 5px; padding-left: 5px; font-size: 10px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
  .kpi { min-height: 106px; padding: 14px 13px; }
  .kpi strong { margin-top: 10px; font-size: 25px; }
  .kpi small { font-size: 9px; }
  .dashboard-grid, .insight-grid { gap: 14px; margin-top: 14px; }
  .panel { padding: 18px 14px; }
  .panel-heading h2 { font-size: 18px; }
  .trend-chart { height: 215px; gap: 5px; }
  .trend-bar-wrap { height: 165px; }
  .chart-foot { gap: 8px; font-size: 9px; }
  .score-row { grid-template-columns: 33px minmax(0, 1fr) 72px; gap: 7px; }
  .yearly-panel, .detail-panel { margin-top: 14px; }
  .source-section { gap: 18px; padding: 29px 0 31px; }
  .source-list { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; gap: 13px 10px; }
  .method-grid div { padding-right: 8px; }
  .method-grid div:nth-child(2) { border-right: 0; }
  .footer .shell { display: block; }
  .footer .shell span { display: block; margin: 4px 0; }
}

@media (max-width: 390px) {
  .filter-grid { grid-template-columns: 1fr; }
  .hero-index-grid strong { font-size: 23px; }
  .kpi strong { font-size: 22px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid div, .method-grid div:nth-child(2) { padding-right: 0; border-right: 0; }
}
