:root {
  --brand: #59bfb5;
  --brand-dark: #168f85;
  --brand-deep: #0f6f68;
  --brand-soft: #e8f6f3;
  --brand-pale: #f4fbfa;
  --ink: #26363e;
  --ink-soft: #445860;
  --muted: #71838a;
  --muted-light: #96a5aa;
  --line: #dce8e6;
  --line-strong: #c9dcda;
  --page: #f3f7f6;
  --panel: #fff;
  --section: #ecf2f1;
  --open: #269b68;
  --open-soft: #eaf8f0;
  --closing: #e8902f;
  --closing-soft: #fff3e2;
  --closed: #77858a;
  --closed-soft: #eef1f1;
  --scholarship: #c77a12;
  --scholarship-soft: #fff2dd;
  --radius: 14px;
  --radius-small: 9px;
  --shadow: 0 14px 35px rgba(38, 70, 70, .09);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input {
  font: inherit;
}

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

button,
input {
  color: inherit;
}

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(22, 143, 133, .28);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: rgba(89, 191, 181, .28);
}

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

/* 2026-08-06 14:51 前台留学页面电脑版最大宽度调整为1280px，手机端保留自适应宽度 */
.page-container {
  width: calc(100% - 64px);
  max-width: 1280px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-small);
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.secondary-button {
  border: 1px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
}

.secondary-button:hover {
  background: var(--brand-soft);
}

/* Platform header */

.platform-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  padding-inline: 32px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-top: 3px solid #173750;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 3px 16px rgba(41, 65, 72, .035);
  backdrop-filter: blur(8px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
}

.brand-logo {
  width: min(100%, 292px);
  height: 54px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.global-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.55vw, 29px);
  white-space: nowrap;
}

.global-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: #3f5158;
  font-size: 16px;
  transition: color .15s ease;
}

.global-nav a:hover,
.global-nav a.is-active {
  color: var(--brand-dark);
}

.global-nav a.is-active {
  font-weight: 800;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.header-search {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #263a42;
}

.header-search:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.header-login {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 15px;
  white-space: nowrap;
}

.header-login:hover {
  background: var(--brand-soft);
}

/* Directory intro and controls */

.directory-page {
  padding-block: 22px 12px;
}

.directory-intro {
  margin-bottom: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.intro-copy h1 {
  margin: 0;
  color: #24373f;
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1.2;
}

.intro-copy > p:last-child {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.search-panel {
  margin-top: 20px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 12px;
}

.search-field {
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-small);
  background: #fff;
  color: #819298;
}

.search-field:focus-within {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(22, 143, 133, .1);
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-field input::placeholder {
  color: #9aa9ad;
}

.search-submit {
  min-height: 52px;
  border-radius: var(--radius-small);
  font-size: 16px;
}

.quick-filter-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-filter-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 13px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #65777e;
  font-size: 13px;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
  border-color: #cce9e4;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

/* Directory layout */

.directory-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

/* 2026-08-06 15:08 取消前台留学页面侧边分类定位效果，按设计稿保持页面正常随滚动流动 */
.category-sidebar {
  position: static;
  top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.category-sidebar > h2 {
  margin: 0;
  padding: 20px 18px;
  background: #ccefeb;
  color: var(--brand-dark);
  font-size: 17px;
}

.category-nav {
  display: grid;
  padding-block: 6px;
}

.category-nav__item {
  width: 100%;
  min-height: 54px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: #5b6c73;
  text-align: left;
  font-size: 14px;
}

.category-nav__item:hover {
  color: var(--brand-dark);
  background: var(--brand-pale);
}

.category-nav__item.is-active,
.category-nav__item[aria-pressed="true"] {
  border-left-color: var(--brand);
  background: #edf9f7;
  color: var(--brand-dark);
  font-weight: 800;
}

.category-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.category-icon svg {
  width: 18px;
  height: 18px;
}

.category-icon--bachelor { background: #739bc9; }
.category-icon--master { background: #5c82ba; }
.category-icon--doctor { background: #8277bc; }
.category-icon--chinese { background: #48b5a4; }
.category-icon--exchange { background: #49a3c5; }
.category-icon--short { background: #e4a33f; }

.category-note {
  margin: 14px 16px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.7;
}

.directory-results {
  min-width: 0;
}

.results-heading {
  min-height: 61px;
  padding: 2px 4px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.results-heading h2 {
  margin: 0;
  color: #263a42;
  font-size: 26px;
}

.result-count {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

#programSections {
  display: grid;
  gap: 14px;
}

.program-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(194, 214, 211, .4);
  border-radius: var(--radius);
  background: var(--section);
}

.program-section__header,
.program-section__heading {
  min-height: 37px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.program-section__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2b3e45;
  font-size: 20px;
}

.program-section__title::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f3bd59;
  content: "";
}

.program-section__count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

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

.program-section__empty {
  margin: 0;
  padding: 26px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, .62);
  color: var(--muted-light);
  font-size: 13px;
  text-align: center;
}

.program-card {
  position: relative;
  min-width: 0;
  min-height: 196px;
  padding: 16px 16px 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 3px 10px rgba(40, 72, 71, .035);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.program-card:hover {
  border-color: rgba(22, 143, 133, .42);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.program-card--closed {
  background: #fbfcfc;
}

.program-card:has(> .status--closed) {
  background: #fbfcfc;
  box-shadow: none;
}

.program-card:has(> .status--closed) .program-card__logo,
.program-card:has(> .status--closed) .program-card__tags {
  opacity: .78;
}

.program-card__logo,
.university-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.program-card__logo {
  width: 58px;
  height: 58px;
  padding: 7px;
  grid-column: 1;
  grid-row: 1;
}

.program-card__logo img,
.university-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.program-card__body {
  min-width: 0;
  padding: 1px 0 12px;
  grid-column: 2;
  grid-row: 1;
}

.program-card__title {
  min-height: calc(1.42em * 2);
  margin: 0;
  padding-right: 74px;
  display: -webkit-box;
  overflow: hidden;
  color: #293c44;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.program-card__university {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.program-card__tags,
.program-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.program-card__tags {
  margin-top: 12px;
}

.program-tag {
  min-height: 25px;
  padding: 3px 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 11px;
  line-height: 1.2;
}

.program-tag--neutral {
  background: #f0f4f4;
  color: #63757c;
}

.program-tag--scholarship {
  background: var(--scholarship-soft);
  color: var(--scholarship);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.program-card > .status-badge,
.program-card__status {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 28px;
  padding: 5px 10px;
  font-size: 11px;
}

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

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

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

.program-card__footer {
  min-width: 0;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 0;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.program-card__deadline {
  min-width: 0;
  color: #65777d;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.program-card__detail {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.program-card:hover .program-card__detail {
  color: var(--brand-deep);
}

.empty-state,
.not-found {
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}

.empty-state__icon,
.not-found__icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 27px;
  font-weight: 700;
}

.empty-state h3,
.not-found h1 {
  margin: 0;
  color: var(--ink);
}

.empty-state h3 {
  font-size: 21px;
}

.empty-state p,
.not-found p {
  margin: 10px 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.noscript-notice {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--closing);
  border-radius: var(--radius-small);
  background: var(--closing-soft);
  color: #875012;
  text-align: center;
}

/* Detail page */

.breadcrumbs {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a:hover,
.breadcrumbs span[aria-current="page"] {
  color: var(--brand-dark);
}

.detail-page {
  padding-bottom: 12px;
}

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

/* 2026-08-06 15:16 取消详情页主体头部受公共 header 粘性样式影响，按前端设计稿正常随页面滚动 */
.detail-hero {
  position: static;
  top: auto;
  z-index: auto;
  min-height: 220px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 34px;
}

.detail-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.detail-logo {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  padding: 11px;
  border-radius: 14px;
}

.detail-identity__copy {
  min-width: 0;
}

.detail-identity h1 {
  margin: 0;
  color: #273a42;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-university {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.detail-status-panel {
  min-height: 144px;
  padding: 21px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #f8fbfa;
}

.detail-status-panel__label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.detail-status-panel .status-badge {
  position: static;
  min-height: 34px;
  padding: 7px 13px;
  font-size: 18px;
}

.detail-deadline {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.closed-notice {
  margin: 14px 0 0;
  padding: 14px 18px;
  border: 1px solid #d8dfdf;
  border-radius: var(--radius-small);
  background: var(--closed-soft);
  color: #5f6e73;
  font-size: 14px;
  line-height: 1.6;
}

.detail-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, .9fr);
  align-items: start;
  gap: 20px;
}

.detail-primary {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.detail-panel {
  min-width: 0;
  padding: 25px 24px;
}

.panel-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-heading > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f1b95b;
}

.panel-heading h2 {
  margin: 0;
  color: #283b43;
  font-size: 21px;
}

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

.key-facts > .fact-card {
  grid-column: span 2;
}

.key-facts--without-scholarship > .fact-card:nth-last-child(-n + 2) {
  grid-column: span 3;
}

.fact-card {
  min-width: 0;
  min-height: 102px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #f4f8f7;
}

.fact-card--closing {
  border-color: #f3d6b3;
  background: var(--closing-soft);
}

.fact-card--positive {
  border-color: #cee9da;
  background: var(--open-soft);
}

.fact-card__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.fact-card__value {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fact-card--closing .fact-card__value {
  color: var(--closing);
}

.fact-card--positive .fact-card__value {
  color: var(--open);
}

.fact-card--scholarship {
  border-color: #ead9bb;
  background: #fff9ef;
}

.fact-card--scholarship .fact-card__label {
  color: var(--scholarship);
}

.fact-card--scholarship .fact-card__value {
  font-size: 14px;
  line-height: 1.65;
}

.requirements-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.requirement-item {
  min-width: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(176px, .33fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 11px;
  background: #f4f8f7;
}

.requirement-item dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.requirement-item dt span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.requirement-item dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* 2026-08-06 15:08 取消详情页右侧官网信息定位效果，避免滚动时固定停留 */
.official-panel {
  position: static;
  top: auto;
  background: linear-gradient(180deg, #fff 0%, #f9fcfb 100%);
}

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

.official-actions {
  margin-top: 24px;
}

.official-visit {
  width: 100%;
  min-height: 50px;
}

.not-found {
  max-width: 720px;
  margin: 44px auto;
}

.not-found h1 {
  font-size: 28px;
}

.site-footer {
  min-height: 78px;
  padding: 25px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* Compact desktop */

@media (max-width: 1400px) {
  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet */

@media (max-width: 1100px) {
  :root {
    --header-height: 72px;
  }

  .platform-header {
    grid-template-columns: minmax(220px, 270px) minmax(52px, 1fr) auto;
    gap: 16px;
  }

  .global-nav a:not(.is-active) {
    display: none;
  }

  .global-nav {
    justify-content: flex-end;
  }

  .directory-shell {
    grid-template-columns: 1fr;
  }

 .category-sidebar {
    position: static;
    border-radius: var(--radius);
  }

  .category-sidebar > h2,
  .category-note {
    display: none;
  }

  .category-nav {
    display: flex;
    overflow-x: auto;
    padding: 9px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-nav__item {
    width: auto;
    min-width: max-content;
    min-height: 44px;
    padding: 5px 12px;
    border: 0;
    border-radius: 9px;
  }

  .category-nav__item.is-active,
  .category-nav__item[aria-pressed="true"] {
    border-left-color: transparent;
  }

  .category-icon {
    width: 27px;
    height: 27px;
  }

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

  .program-card {
    min-height: 221px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .official-panel {
    position: static;
  }

}

/* Mobile */

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
    --radius: 12px;
  }

  .page-container {
    width: calc(100% - 28px);
  }

  .platform-header {
    min-height: var(--header-height);
    padding-inline: 14px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .brand-logo {
    width: min(100%, 190px);
    height: 44px;
  }

  .header-search {
    display: none;
  }

  .global-nav a {
    min-height: 38px;
    font-size: 14px;
  }

  .header-login {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .directory-page {
    padding-top: 14px;
  }

  .directory-intro {
    margin-bottom: 12px;
    padding: 19px 16px;
  }

  .intro-copy h1 {
    font-size: 27px;
  }

  .intro-copy > p:last-child {
    font-size: 13px;
  }

  .search-panel {
    margin-top: 16px;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .search-field,
  .search-submit {
    min-height: 48px;
    height: 48px;
  }

  .quick-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -3px;
    padding: 2px 3px 5px;
    scrollbar-width: none;
  }

  .quick-filter-row::-webkit-scrollbar {
    display: none;
  }

  .quick-filter-label,
  .filter-chip {
    flex: 0 0 auto;
  }

  .category-nav {
    scrollbar-width: none;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .results-heading {
    min-height: 55px;
    align-items: center;
  }

  .results-heading .eyebrow {
    display: none;
  }

  .results-heading h2 {
    font-size: 22px;
  }

  .result-count {
    margin: 0;
    font-size: 12px;
  }

  .program-section {
    padding: 14px;
  }

  .program-section__title {
    font-size: 18px;
  }

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

  .program-card {
    min-height: 221px;
    padding-inline: 14px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0 11px;
  }

  .program-card__logo {
    width: 52px;
    height: 52px;
  }

  .program-card__title {
    padding-right: 62px;
    font-size: 16px;
  }

  .program-card > .status-badge,
  .program-card__status {
    top: 13px;
    right: 12px;
    padding-inline: 8px;
  }

  .program-card__footer {
    min-height: 46px;
  }

  .breadcrumbs {
    min-height: 50px;
    gap: 8px;
    font-size: 12px;
  }

  .detail-hero {
    min-height: 0;
    padding: 22px 18px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-identity {
    align-items: flex-start;
    gap: 14px;
  }

  .detail-logo {
    width: 72px;
    height: 72px;
    padding: 7px;
  }

  .detail-identity h1 {
    font-size: 25px;
  }

  .detail-university {
    margin-block: 7px 11px;
    font-size: 14px;
  }

  .detail-status-panel {
    min-height: 0;
    padding: 16px;
  }

  .detail-status-panel .status-badge {
    font-size: 15px;
  }

  .detail-layout,
  .detail-primary {
    gap: 14px;
  }

  .detail-layout {
    margin-top: 14px;
  }

  .detail-panel {
    padding: 20px 16px;
  }

  .panel-heading h2 {
    font-size: 19px;
  }

  .key-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .key-facts > .fact-card,
  .key-facts--without-scholarship > .fact-card:nth-last-child(-n + 2) {
    grid-column: auto;
  }

  .key-facts > .fact-card:nth-child(5),
  .key-facts > .fact-card--scholarship {
    grid-column: 1 / -1;
  }

  .fact-card {
    min-height: 96px;
    padding: 13px;
  }

  .fact-card__value {
    font-size: 14px;
  }

  .requirement-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .empty-state,
  .not-found {
    padding: 45px 18px;
  }

  .site-footer {
    min-height: 68px;
    padding-block: 20px;
  }
}

@media (max-width: 420px) {
  .platform-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-logo {
    width: min(100%, 184px);
  }

  .global-nav {
    display: none;
  }

  .header-login {
    padding-inline: 8px;
  }

  .detail-identity {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .detail-logo {
    width: 62px;
    height: 62px;
  }

  .detail-identity h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* 2026-08-06 11:58 按已上传留学前端HTML接入当前项目公共头尾后的补充样式 */
.detail-content{color:var(--ink-soft);font-size:15px;line-height:1.9;}
.detail-content img{max-width:100%;height:auto;border-radius:10px;}
.official-source-title{margin:0 0 16px;color:var(--ink-soft);font-size:14px;line-height:1.7;}
.detail-related{margin-top:24px;}
.program-section__empty{margin:0;padding:30px 16px;color:var(--muted);text-align:center;background:#fff;border:1px dashed var(--line-strong);border-radius:var(--radius-small);}
.program-card[aria-disabled="true"]{pointer-events:none;}
@media (max-width: 640px){.directory-page{padding-top:16px;}.detail-page{padding-bottom:24px;}}
