:root {
  --navy: #052b5c;
  --blue: #075da5;
  --bright: #35b7e8;
  --ink: #10243a;
  --muted: #66788c;
  --line: #d9e5ef;
  --pale: #e8f5fc;
  --surface: #ffffff;
  --background: #f6f9fc;
  --shadow: 0 18px 48px rgba(5, 43, 92, 0.11);
  --content: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
body.menu-open::before { content: ""; position: fixed; inset: 68px 0 0; z-index: 90; background: rgba(5, 43, 92, .36); backdrop-filter: blur(2px); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container { width: min(var(--content), calc(100% - 64px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 229, 239, 0.9);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 205px; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.brand strong { display: block; font-size: 20px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.main-nav a { position: relative; padding: 26px 11px 24px; font-size: 14px; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 15px; height: 2px; background: var(--bright); transform: scaleX(0); transition: transform 180ms ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-group { position: relative; }
.nav-group-link { display: flex; align-items: center; gap: 5px; }
.nav-group.active > .nav-group-link { color: var(--blue); }
.nav-group.active > .nav-group-link::after { transform: scaleX(1); }
.nav-submenu { position: absolute; top: calc(100% - 7px); left: 50%; z-index: 110; width: max-content; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 18px 40px rgba(5,43,92,.16); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; }
.nav-group:hover .nav-submenu, .nav-group:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.main-nav .nav-submenu a { display: block; padding: 11px 13px; border-radius: 4px; color: var(--ink); }
.main-nav .nav-submenu a::after { display: none; }
.main-nav .nav-submenu a:hover, .main-nav .nav-submenu a:focus { color: var(--blue); background: var(--pale); }
.mobile-nav-cta { display: none; }
.header-cta { flex: 0 0 auto; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 7px; color: var(--navy); font-size: 22px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 93, 165, 0.24); background: #064f8d; }
.button.outline { color: white; background: rgba(0, 0, 0, 0.22); border-color: rgba(255, 255, 255, 0.9); }
.button.light { color: var(--blue); background: white; border-color: white; }
.button.text { color: var(--blue); background: transparent; border-color: transparent; padding-inline: 0; }
.button.small { min-height: 38px; padding: 7px 15px; font-size: 14px; }

.hero, .page-hero {
  position: relative;
  isolation: isolate;
  min-height: 648px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy);
}
.hero::after, .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 43, 92, 0.82) 0%, rgba(5, 43, 92, 0.68) 43%, rgba(5, 43, 92, 0.22) 70%, rgba(5, 43, 92, 0.05) 100%);
}
.hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: -24px 0; opacity: 0; transform: scale(1.035); transition: opacity 900ms ease, transform 6500ms ease; }
.hero-slide.active { opacity: 1; transform: scale(1.08); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 43, 92, 0.04), rgba(5, 43, 92, 0.13)); }
.hero-carousel-controls { position: absolute; z-index: 5; right: max(32px, calc((100vw - var(--content)) / 2)); bottom: 96px; display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; align-items: center; gap: 2px; }
.hero-dot { position: relative; width: 25px; height: 28px; padding: 0; border: 0; background: transparent; }
.hero-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transform: translate(-50%, -50%); transition: width 180ms ease, border-radius 180ms ease, background 180ms ease, transform 180ms ease; }
.hero-dot:hover::before, .hero-dot:focus-visible::before { background: rgba(255,255,255,.82); transform: translate(-50%, -50%) scale(1.12); }
.hero-dot.active::before { width: 22px; border-radius: 5px; background: white; }
.hero-credit { display: none; }
.hero-credit a { text-decoration: underline; }
.hero > .container, .page-hero > .container { position: relative; z-index: 2; }
.page-hero { min-height: 540px; }
.hero-content { width: min(620px, 62%); padding-block: 76px 94px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 14px; border-radius: 18px; background: rgba(53, 183, 232, 0.18); border: 1px solid rgba(142, 216, 244, 0.48); font-size: 13px; }
.hero h1, .page-hero h1 { margin: 22px 0 18px; font-size: 52px; line-height: 1.18; letter-spacing: 0; }
.hero p, .page-hero p { max-width: 560px; margin: 0; color: #e6f1fa; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-services { position: relative; z-index: 3; margin-top: -62px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 200ms ease, box-shadow 200ms ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(5, 43, 92, 0.16); }
.service-card img { width: 100%; aspect-ratio: 1.52; object-fit: cover; }
.service-card-body { padding: 18px 18px 20px; }
.service-card h3 { margin: 0 0 5px; font-size: 21px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; }
.service-card .arrow { display: block; margin-top: 17px; color: var(--blue); font-size: 20px; }

.section { padding: 76px 0; }
.section.compact { padding-block: 54px; }
.section.white { background: white; }
.section.navy { background: var(--navy); color: white; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.25; }
.section-heading p { max-width: 620px; margin: 8px 0 0; color: var(--muted); }
.section.navy .section-heading p { color: var(--pale); }
.kicker { color: var(--blue); font-weight: 700; font-size: 13px; }
.section.navy .kicker { color: #8ed8f4; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.decision-card { min-height: 190px; padding: 24px; border: 1px solid var(--line); background: white; }
.decision-card span { display: block; margin-bottom: 18px; color: var(--blue); font-weight: 800; font-size: 13px; }
.decision-card h3 { margin: 0 0 9px; font-size: 21px; }
.decision-card p { margin: 0; color: var(--muted); font-size: 14px; }
.section.navy .decision-card { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.section.navy .decision-card p { color: var(--pale); }
.comparison-shell { overflow-x: auto; border: 1px solid var(--line); background: white; }
.comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--navy); background: var(--background); font-size: 13px; }
.comparison-table td:first-child { width: 150px; color: var(--navy); font-weight: 800; }
.comparison-table tr:last-child td { border-bottom: 0; }
.pathway-list { display: grid; border-top: 1px solid var(--line); }
.pathway-row { display: grid; grid-template-columns: 72px 210px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pathway-row > span { color: var(--blue); font-weight: 800; }
.pathway-row h3 { margin: 0; font-size: 19px; }
.pathway-row p { margin: 0; color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.document-group { padding: 22px; border-top: 3px solid var(--blue); background: var(--background); }
.document-group h3 { margin: 0 0 12px; font-size: 19px; }
.document-group ul { margin: 0; padding-left: 18px; color: var(--muted); }
.document-group li + li { margin-top: 7px; }
.professional-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: start; }
.professional-band h2 { margin-top: 8px; font-size: 34px; }
.professional-band > p, .professional-band .lead-copy { color: var(--muted); }
.professional-points { display: grid; gap: 12px; }
.professional-points div { padding: 16px 18px; border-left: 3px solid var(--blue); background: var(--background); }
.professional-points strong, .professional-points small { display: block; }
.professional-points small { margin-top: 4px; color: var(--muted); }
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.risk-item { padding: 21px; border: 1px solid var(--line); background: white; }
.risk-item strong { display: block; margin-bottom: 8px; color: var(--navy); }
.risk-item p { margin: 0; color: var(--muted); font-size: 13px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.metric-card strong { display: block; color: var(--blue); font-size: 22px; margin-bottom: 6px; }
.metric-card p { margin: 0; color: var(--muted); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-item { position: relative; }
.process-item img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 8px; }
.process-number { display: grid; place-items: center; width: 38px; height: 38px; margin: -20px 0 10px 14px; position: relative; border: 2px solid white; border-radius: 50%; background: var(--blue); color: white; font-weight: 800; }
.process-item h3 { margin: 0 0 5px; font-size: 20px; }
.process-item p { margin: 0; color: var(--muted); font-size: 13px; }

.split-panel { display: grid; grid-template-columns: 0.88fr 1.12fr; min-height: 360px; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.split-panel > img { width: 100%; height: 100%; object-fit: cover; }
.split-content { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.split-content h2 { margin: 8px 0 14px; font-size: 34px; line-height: 1.25; }
.split-content > p { margin: 0; color: var(--muted); }
.check-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 14px 11px 45px; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfd; }
.check-list li::before { content: "✓"; position: absolute; left: 14px; top: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.article-card { background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform 180ms ease; }
.article-card:hover { transform: translateY(-4px); }
.article-card img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.article-card-body { padding: 17px; }
.article-card h3 { margin: 0 0 7px; font-size: 18px; }
.article-card p { margin: 0; color: var(--muted); font-size: 13px; }
.article-card a { display: inline-block; margin-top: 15px; color: var(--blue); font-weight: 700; font-size: 13px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; border: 1px solid #a9ddf3; border-radius: 8px; background: #f3fafe; }
.cta-band h2 { margin: 0; font-size: 28px; }
.cta-band p { margin: 5px 0 0; color: var(--muted); }

.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border: 0; background: white; color: var(--ink); text-align: left; font-weight: 700; }
.faq-question span:last-child { color: var(--blue); font-size: 22px; transition: transform 180ms ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.faq-answer p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter-button { min-height: 38px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }
.filter-button.active { color: white; background: var(--blue); border-color: var(--blue); }
.content-tag { color: var(--blue); font-size: 12px; font-weight: 700; }

.contact-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; }
.contact-form, .contact-aside { padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #f9fbfd; padding: 11px 12px; outline: none; transition: border 160ms ease, box-shadow 160ms ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(53, 183, 232, 0.16); }
.form-status { min-height: 24px; margin-top: 12px; color: var(--blue); font-size: 13px; }
.consent-field label { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; color: var(--muted); }
.consent-field input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.consent-field a { color: var(--blue); font-weight: 700; }
.contact-aside img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 8px; margin-bottom: 28px; }

.featured-university-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featured-university-row a { padding: 24px; border-right: 1px solid var(--line); transition: background 180ms ease; }
.featured-university-row a:last-child { border-right: 0; }
.featured-university-row a:hover { background: var(--pale); }
.featured-university-row strong, .featured-university-row span { display: block; }
.featured-university-row strong { font-size: 18px; }
.featured-university-row span { margin-top: 5px; color: var(--muted); font-size: 13px; }

.catalog-toolbar { display: flex; gap: 12px; margin-bottom: 28px; }
.catalog-toolbar input, .catalog-toolbar select { min-height: 44px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.catalog-toolbar input { flex: 1; }
.university-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.university-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.university-image { position: relative; }
.university-image img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.university-image span { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 5px; color: white; background: rgba(5,43,92,.72); font-size: 11px; }
.university-card-body { padding: 22px; }
.university-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.university-meta span, .highlight-list span { padding: 4px 9px; border-radius: 5px; color: var(--blue); background: var(--pale); font-size: 12px; font-weight: 700; }
.university-card h3 { margin: 14px 0 0; font-size: 22px; }
.university-card small { color: var(--muted); }
.university-card p { color: var(--muted); font-size: 14px; }
.empty-state { padding: 32px; color: var(--muted); text-align: center; border: 1px dashed var(--line); }

.detail-hero { position: relative; min-height: 520px; color: white; background: var(--navy); }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 70px; background: linear-gradient(90deg, rgba(5,43,92,.9), rgba(5,43,92,.28)); }
.detail-hero h1 { margin: 18px 0 4px; font-size: 52px; }
.detail-hero p { margin: 0; font-size: 18px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; }
.detail-layout article h2 { margin: 8px 0 20px; font-size: 32px; line-height: 1.35; }
.detail-layout article h3 { margin-top: 34px; }
.highlight-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.detail-aside { align-self: start; padding: 28px; border-left: 3px solid var(--bright); background: white; box-shadow: var(--shadow); }
.detail-aside strong { display: block; color: var(--blue); }
.detail-aside p { margin-top: 3px; color: var(--muted); }
.detail-aside .button { width: 100%; margin-top: 10px; }
.notice-box { margin-top: 28px; padding: 18px; border-left: 3px solid var(--bright); background: var(--pale); color: #3d5871; }

.deliverable-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deliverable-item { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.deliverable-item > span { color: var(--bright); font-size: 28px; font-weight: 800; }
.deliverable-item h3 { margin: 9px 0 7px; font-size: 22px; }
.deliverable-item p { color: var(--muted); }
.deliverable-item ul { margin: 18px 0 0; padding-left: 18px; color: #465b70; }

.result-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 70px 20px; background: linear-gradient(180deg, #f6f9fc, #e8f5fc); }
.result-panel { width: min(650px, 100%); padding: 52px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.result-panel h1 { margin: 12px 0; font-size: 38px; }
.result-panel p { color: var(--muted); }
.result-panel .hero-actions { justify-content: center; }
.result-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: white; background: var(--blue); font-size: 26px; }

.floating-consult { position: fixed; right: 22px; bottom: 82px; z-index: 49; min-height: 42px; display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 7px; color: white; background: var(--navy); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }
.qr-image { width: 104px; height: 104px; object-fit: contain; padding: 5px; background: white; }

.admin-body { min-height: 100vh; background: #eef4f8; }
.admin-shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 60px; }
.admin-header { position: sticky; top: 0; z-index: 130; height: 68px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; background: #eef4f8; }
.admin-userbar { display: flex; align-items: center; gap: 14px; }
.admin-userbar span { color: var(--muted); font-size: 13px; }
.admin-login { width: min(760px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; margin: 70px auto; padding: 42px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.admin-login h1 { margin: 7px 0; }
.admin-login p { color: var(--muted); }
.admin-login form { display: grid; align-content: center; gap: 15px; }
.admin-tabs { position: sticky; top: 68px; z-index: 125; display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); background: white; box-shadow: 0 8px 18px rgba(5, 43, 92, .06); }
.admin-tab { padding: 10px 16px; border: 0; background: transparent; color: var(--muted); font-weight: 700; }
.admin-tab.active { color: white; background: var(--blue); }
.admin-panel { display: none; padding: 30px; border: 1px solid var(--line); border-top: 0; background: white; }
.admin-panel.active { display: block; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dashboard-card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--background); color: var(--ink); text-align: left; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.dashboard-card:not(:disabled):hover { transform: translateY(-3px); border-color: #8ecce9; background: white; box-shadow: 0 12px 28px rgba(5,43,92,.1); }
.dashboard-card:not(:disabled):focus-visible { outline: 3px solid rgba(53,183,232,.28); outline-offset: 2px; }
.dashboard-card:disabled { cursor: default; opacity: .58; }
.dashboard-card em { display: block; margin-top: 13px; color: var(--blue); font-size: 12px; font-style: normal; font-weight: 700; }
.dashboard-stats span, .dashboard-stats small { display: block; color: var(--muted); }
.dashboard-stats strong { display: block; margin: 8px 0 2px; color: var(--blue); font-size: 34px; }
.dashboard-columns { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; margin-top: 28px; }
.dashboard-columns > section { padding: 24px; border: 1px solid var(--line); }
.dashboard-columns h3 { margin-top: 0; }
.system-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 28px; }
.system-summary > div { padding: 18px; border: 1px solid var(--line); background: var(--background); }
.system-summary span, .system-summary strong { display: block; }
.system-summary span { color: var(--muted); font-size: 12px; }
.system-summary strong { margin-top: 7px; font-size: 18px; }
.system-ok { color: #147a43; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.system-grid > section, .backup-section { padding: 22px; border: 1px solid var(--line); }
.system-grid h3, .backup-section h3 { margin: 0 0 14px; }
.check-list { display: grid; gap: 8px; }
.check-item { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-item > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: #147a43; font-size: 12px; font-weight: 800; }
.check-item.pending > span { background: #b46b00; }
.check-item strong, .check-item small { display: block; }
.check-item small { margin-top: 3px; color: var(--muted); }
.backup-section { margin-top: 22px; }
.license-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); gap: 48px; align-items: center; }
.license-panel > a { display: block; padding: 12px; border: 1px solid var(--line); background: white; }
.license-panel img { width: 100%; max-height: 460px; object-fit: contain; }
.license-meta { display: grid; gap: 12px; margin-top: 24px; }
.license-meta div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.license-meta dt { color: var(--muted); font-size: 12px; }
.license-meta dd { margin: 5px 0 0; font-weight: 700; }
.admin-toolbar.compact { margin-bottom: 8px; }
.content-stat-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.content-stat-row small { grid-column: 1 / -1; color: var(--muted); }
.activity-list { display: grid; }
.activity-list > div { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.activity-list span, .activity-list small { color: var(--muted); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-toolbar h2 { margin: 0; }
.admin-toolbar p { margin: 3px 0 0; color: var(--muted); }
.admin-toolbar select, .admin-actions input { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.audit-header-block { position: sticky; top: 126px; z-index: 40; margin: -1px 0 0; background: white; }
.audit-toolbar { min-height: 92px; margin: 0; padding: 16px 0; }
.audit-toolbar > div:first-child { flex: 0 0 300px; min-width: 0; }
.audit-toolbar p { white-space: nowrap; }
.audit-filters { flex: 1 1 auto; flex-wrap: nowrap; }
.audit-filters input[type="date"] { width: 132px; min-width: 132px; }
.audit-filters select { width: 140px; min-width: 140px; }
.audit-filters input[type="search"] { width: 180px; min-width: 150px; }
.audit-filters .button { flex: 0 0 auto; }
.audit-column-head { display: grid; grid-template-columns: 27% 16% 14% 19% 24%; min-width: 760px; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.audit-column-head span { padding: 10px 12px; }
.audit-table-wrap { margin-top: 0; }
.audit-table-wrap col:nth-child(1) { width: 27%; }
.audit-table-wrap col:nth-child(2) { width: 16%; }
.audit-table-wrap col:nth-child(3) { width: 14%; }
.audit-table-wrap col:nth-child(4) { width: 19%; }
.audit-table-wrap col:nth-child(5) { width: 24%; }

@media (max-width: 1180px) {
  .audit-header-block { position: static; margin: 0; }
  .audit-toolbar { min-height: 0; padding: 0; }
  .audit-toolbar > div:first-child { flex-basis: auto; }
  .audit-toolbar p { white-space: normal; }
  .audit-filters { flex-wrap: wrap; }
}
.content-admin-actions input { min-width: 220px; }
.content-admin-actions select { max-width: 180px; }
.content-result-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -10px 0 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--background); color: var(--muted); font-size: 12px; }
.content-result-summary strong { color: var(--ink); font-size: 13px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.admin-table th { color: var(--muted); font-size: 12px; }
.admin-table td small { display: block; color: var(--muted); }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.status-new { color: #075da5; background: #e8f5fc; }
.status-contacted { color: #8a5a00; background: #fff4d6; }
.status-qualified { color: #147a43; background: #e4f7ed; }
.status-closed { color: #66788c; background: #edf1f4; }
.content-manager { min-height: 620px; display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--line); }
.content-list { max-height: 760px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--background); }
.content-list-item { width: 100%; display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.content-list-item:hover, .content-list-item.active { background: white; }
.content-list-item strong, .content-list-item small { display: block; }
.content-list-item small { margin-top: 4px; color: var(--muted); }
.content-list-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.content-list-meta em { padding: 3px 6px; border: 1px solid #cedce7; color: #4f6578; background: white; font-size: 11px; font-style: normal; }
.status-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #8795a5; }
.status-dot-published { background: #16915a; }
.status-dot-review { background: #7b4fc7; }
.status-dot-scheduled { background: #2878c7; }
.status-dot-draft { background: #d89916; }
.status-dot-archived { background: #8795a5; }
.content-editor { padding: 28px; overflow: hidden; }
.empty-editor { min-height: 500px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-editor h3 { color: var(--ink); }
.editor-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.editor-heading h3 { margin: 5px 0 0; font-size: 25px; }
.content-body-editor { min-height: 320px !important; font-family: "Microsoft YaHei", sans-serif; line-height: 1.75; }
.field small { color: var(--muted); }
.checkbox-field label { display: inline-flex; align-items: center; gap: 8px; }
.checkbox-field input { width: 18px; height: 18px; }
.editor-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px -28px -28px; padding: 16px 28px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
.publish-button { color: #147a43 !important; border-color: #8bd5ae !important; background: #e4f7ed !important; }
.danger-text { color: #b13b3b !important; }
.editor-dirty-indicator { margin-left: auto; color: #8a5a00; font-size: 12px; font-weight: 700; }
.content-status-published { color: #147a43; background: #e4f7ed; }
.content-status-review { color: #6332a5; background: #f1eafd; }
.content-status-scheduled { color: #075da5; background: #e8f5fc; }
.content-status-draft { color: #8a5a00; background: #fff4d6; }
.content-status-archived { color: var(--muted); background: #edf1f4; }

.version-panel { margin-top: 28px; padding: 18px; border: 1px solid var(--line); background: var(--background); }
.version-heading, .version-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.version-heading h4, .version-heading p { margin: 0; }
.version-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.version-row { padding: 12px 0; border-top: 1px solid var(--line); }
.version-row:first-child { margin-top: 12px; }
.version-row strong, .version-row small { display: block; }
.version-row small { margin-top: 3px; color: var(--muted); }

.media-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); background: var(--background); }
.media-tools .field { margin: 0; }
.media-tools input, .media-tools select { background: white; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.media-item { overflow: hidden; border: 1px solid var(--line); background: white; }
.media-preview-button { display: block; width: 100%; padding: 0; border: 0; background: var(--background); cursor: zoom-in; }
.media-item img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; background: var(--background); }
.media-item > div { padding: 13px; }
.media-item strong, .media-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item small { color: var(--muted); }
.media-reference-count { display: block; margin-top: 7px; color: #8a5a00; font-size: 12px; }
.media-reference-count.unused { color: #3d7561; }
.media-tags { display: block; margin-top: 5px; color: #075da5; font-size: 12px; }
.media-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; }

.school-media-manager { grid-column: 1 / -1; margin-top: 6px; padding: 20px; border: 1px solid var(--line); background: var(--background); }
.school-media-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.school-media-heading h4 { margin: 0; font-size: 18px; }
.school-media-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.school-media-upload { cursor: pointer; white-space: nowrap; }
.school-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.school-media-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: white; }
.school-media-preview { width: 100%; display: block; padding: 0; overflow: hidden; border: 0; background: #e8eef4; cursor: zoom-in; }
.school-media-preview img { width: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform 180ms ease; }
.school-media-preview:hover img, .school-media-preview:focus-visible img { transform: scale(1.025); }
.school-media-card-body { padding: 11px; }
.school-media-badge { display: inline-block; margin-bottom: 8px; padding: 4px 8px; color: var(--blue); background: var(--pale); font-size: 12px; font-weight: 800; }
.school-media-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.school-media-card-actions .button { min-height: 30px; padding: 4px 0; font-size: 12px; cursor: pointer; }
.school-media-card-actions .button:disabled { opacity: .38; cursor: default; }
.school-media-empty { grid-column: 1 / -1; padding: 34px 20px; border: 1px dashed #abc2d6; color: var(--muted); text-align: center; background: white; }
.admin-image-preview { width: min(1100px, calc(100% - 40px)); max-height: 92vh; padding: 0; overflow: visible; border: 0; background: transparent; }
.admin-image-preview::backdrop { background: rgba(2,18,38,.82); }
.admin-image-preview img { display: block; width: 100%; max-height: 88vh; object-fit: contain; background: #021226; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.admin-image-preview .dialog-close { top: 14px; right: 14px; }
.admin-save-row { display: flex; align-items: center; gap: 15px; margin-top: 18px; }
.settings-form { max-width: 900px; }
.site-operation-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.site-operation-heading, .site-config-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-operation-heading h3, .site-config-card-heading strong { margin: 0; }
.site-operation-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.site-operation-list { display: grid; gap: 14px; margin-top: 18px; }
.site-config-card { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--background); }
.site-config-card-heading.compact { margin-top: 16px; }
.site-config-fields { display: grid; grid-template-columns: 1fr 1fr 150px; gap: 12px; margin-top: 14px; }
.site-config-fields .field { margin: 0; }
.sub-navigation-list { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sub-navigation-row, .footer-link-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr) auto auto; align-items: center; gap: 9px; margin-top: 9px; }
.footer-link-row { grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.2fr) auto auto auto auto; padding: 12px; border: 1px solid var(--line); background: var(--background); }
.sub-navigation-row input, .sub-navigation-row select, .footer-link-row input, .footer-link-row select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.site-config-empty { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.operations-panel { max-width: 1080px; }
.operations-panel .form-grid { margin-top: 18px; }
.operations-panel label small { color: var(--blue); font-weight: 800; }
.seo-operation-status { display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 16px 0 24px; padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--background); }
.seo-operation-status span { color: var(--muted); font-size: 13px; }
.site-operation-heading.compact { margin-top: 24px; }
.site-operation-heading h4 { margin: 0; }
.redirect-editor { display: grid; gap: 10px; margin-top: 14px; }
.redirect-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(170px, 1.2fr) 120px auto auto; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); background: var(--background); }
.redirect-row input, .redirect-row select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.backup-detail { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding: 16px; border-left: 3px solid var(--blue); background: var(--background); }
.backup-detail strong { width: 100%; }
.backup-detail span { color: var(--muted); font-size: 13px; }
.carousel-setting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.carousel-setting-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--background); }
.carousel-setting-preview { width: 100%; aspect-ratio: 16 / 8.5; padding: 0; border: 0; background: #dce6ed; }
.carousel-setting-preview img { width: 100%; height: 100%; object-fit: cover; }
.carousel-setting-body { display: grid; gap: 12px; padding: 14px; }
.carousel-setting-body .field { margin: 0; }
.setting-image-control { display: grid; gap: 9px; }
.setting-image-preview { display: grid; place-items: center; width: 100%; min-height: 130px; padding: 8px; border: 1px dashed #aabac6; border-radius: 7px; background: #f6f9fb; color: var(--muted); cursor: zoom-in; }
.setting-image-preview img { display: block; width: 100%; height: 150px; object-fit: contain; }
.setting-image-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-create-form { max-width: 980px; padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.user-table-wrap { margin-top: 14px; }
.table-input, .table-select { width: 100%; min-width: 130px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.switch-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.switch-label input { width: 17px; height: 17px; }
.table-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.lead-filters { flex-wrap: wrap; }
.lead-filters input { min-width: 210px; }
.priority-pill { display: inline-flex; min-width: 44px; justify-content: center; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 800; }
.priority-urgent { color: #9b1c1c; background: #fee2e2; }
.priority-high { color: #9a3412; background: #ffedd5; }
.priority-normal { color: var(--blue); background: var(--pale); }
.priority-low { color: #476173; background: #edf2f6; }
.lead-overdue { color: #b42318; font-weight: 800; }
.lead-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lead-tags em { padding: 2px 6px; border-radius: 4px; color: #496176; background: #edf3f7; font-size: 10px; font-style: normal; }
.lead-dialog { width: min(820px, calc(100% - 96px)); max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; }
.lead-dialog::backdrop { background: rgba(5,43,92,.55); }
.lead-dialog-scroll { max-height: 86vh; padding: 34px; overflow-y: auto; border-radius: 8px; background: white; box-shadow: 0 28px 80px rgba(5,43,92,.28); }
.lead-management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.lead-management-grid .field.full { grid-column: 1 / -1; }
.follow-up-panel { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.follow-up-heading h3, .follow-up-history h3 { margin: 0; font-size: 19px; }
.follow-up-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.follow-up-history { margin-top: 28px; }
.follow-up-history article { padding: 16px 0; border-bottom: 1px solid var(--line); }
.follow-up-history article > div { display: flex; justify-content: space-between; gap: 18px; }
.follow-up-history time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.follow-up-history p { margin: 8px 0 0; color: #354f67; white-space: pre-wrap; }
.lead-dialog-close-form { position: absolute; inset: 0; pointer-events: none; }
.dialog-close { position: absolute; top: 8px; right: -58px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(5,43,92,.16); border-radius: 50%; color: var(--navy); background: white; box-shadow: 0 10px 26px rgba(5,43,92,.22); font-size: 29px; line-height: 1; cursor: pointer; pointer-events: auto; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.dialog-close:hover, .dialog-close:focus-visible { color: white; background: var(--blue); transform: scale(1.05); outline: 3px solid rgba(9,108,178,.2); }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-list div { padding: 12px; background: var(--background); }
.detail-list dt { color: var(--muted); font-size: 12px; }
.detail-list dd { margin: 3px 0 0; white-space: pre-wrap; }

.article-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.article-filter-bar { margin-bottom: 24px; }
.article-taxonomy, .article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.article-taxonomy > span:not(.content-tag), .article-tags span { padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-tags { margin: 12px 0 4px; }
.related-articles { margin-top: 58px; padding-top: 36px; border-top: 1px solid var(--line); }
.related-articles h2 { margin-top: 8px; }
.related-articles .article-grid { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.article-shell h1 { margin: 0 0 16px; font-size: 42px; line-height: 1.25; }
.article-lead { color: var(--muted); font-size: 18px; }
.article-cover { width: 100%; aspect-ratio: 1.9; object-fit: cover; border-radius: 8px; margin: 30px 0; }
.article-body { padding: 38px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.article-body h2 { margin: 32px 0 12px; font-size: 26px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { color: #465b70; }
.article-body ul { padding-left: 20px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.site-footer { padding: 52px 0 22px; color: white; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 0.65fr; gap: 38px; }
.footer-brand .brand { color: white; }
.footer-brand p, .footer-column a, .footer-column p { color: #dcebfa; font-size: 13px; }
.footer-column { display: grid; align-content: start; gap: 8px; }
.footer-column strong { margin-bottom: 7px; }
.qr-box { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: white; font-weight: 800; font-size: 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; margin-top: 32px; border-top: 1px solid #2b6796; color: #dcebfa; font-size: 11px; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); color: white; opacity: 0; pointer-events: none; transform: translateY(10px); transition: 180ms ease; box-shadow: var(--shadow); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .container { width: min(var(--content), calc(100% - 40px)); }
  .main-nav a { padding-inline: 7px; font-size: 13px; }
  .header-cta { display: none; }
  .hero h1, .page-hero h1 { font-size: 45px; }
}

@media (max-width: 860px) {
  .site-header { height: 68px; }
  .header-inner { justify-content: space-between; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 18px; }
  .menu-toggle { display: grid; place-items: center; }
  .main-nav { position: fixed; inset: 68px 0 auto; display: grid; align-content: start; justify-content: stretch; gap: 0; padding: 12px 20px 22px; background: white; border-bottom: 1px solid var(--line); transform: translateY(-120%); opacity: 0; pointer-events: none; transition: 220ms ease; }
  .main-nav { max-height: calc(100vh - 68px); overflow-y: auto; box-shadow: 0 22px 44px rgba(5, 43, 92, .16); }
  body.menu-open .site-header .main-nav { transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid #edf2f7; }
  .main-nav a::after { display: none; }
  .nav-group { width: 100%; }
  .nav-group-link { justify-content: space-between; }
  .nav-submenu { position: static; width: 100%; min-width: 0; padding: 0 0 0 18px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .main-nav .nav-submenu a { padding: 10px 4px; border-bottom: 1px solid #edf2f7; border-radius: 0; color: var(--muted); font-size: 13px; }
  .main-nav .mobile-nav-cta { display: flex; justify-content: center; margin-top: 14px; padding: 11px 16px; border: 1px solid var(--blue); border-radius: 7px; color: white; background: var(--blue); }
  .hero, .page-hero { min-height: 624px; }
  .hero-content { width: 82%; padding-block: 60px 90px; }
  .hero h1, .page-hero h1 { font-size: 40px; }
  .hero-carousel-controls { right: 20px; bottom: 82px; }
  .hero-credit { right: 20px; }
  .service-grid, .process-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: 1fr; }
  .split-panel, .contact-layout { grid-template-columns: 1fr; }
  .split-panel > img { max-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-university-row, .university-grid, .deliverable-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-university-row a:nth-child(2) { border-right: 0; }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .admin-login { grid-template-columns: 1fr; }
  .dashboard-stats, .media-grid, .media-tools, .decision-grid, .document-grid, .risk-grid { grid-template-columns: repeat(2, 1fr); }
  .professional-band { grid-template-columns: 1fr; }
  .dashboard-columns, .system-grid, .license-panel { grid-template-columns: 1fr; }
  .content-manager { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero, .page-hero { min-height: 600px; align-items: flex-end; }
  .hero::after, .page-hero::after { background: linear-gradient(90deg, rgba(5, 43, 92, 0.84), rgba(5, 43, 92, 0.48)); }
  .hero-content { width: 100%; padding-block: 55px 84px; }
  .hero h1, .page-hero h1 { font-size: 34px; }
  .hero p, .page-hero p { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-credit { display: none; }
  .hero-carousel-controls { right: 14px; bottom: 20px; gap: 8px; }
  .button { padding-inline: 13px; }
  .hero-services { margin-top: -42px; }
  .service-grid, .process-grid, .article-grid { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .section-heading { display: block; }
  .section-heading h2, .split-content h2 { font-size: 28px; }
  .split-content, .contact-form, .contact-aside { padding: 25px; }
  .cta-band { display: block; padding: 27px; }
  .cta-band .button { margin-top: 20px; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
  .article-shell h1 { font-size: 32px; }
  .article-body { padding: 24px; }
  .featured-university-row, .university-grid, .deliverable-grid { grid-template-columns: 1fr; }
  .featured-university-row a { border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-toolbar, .admin-toolbar, .admin-actions { display: grid; }
  .detail-hero { min-height: 470px; }
  .detail-hero h1 { font-size: 36px; }
  .detail-layout article h2 { font-size: 27px; line-height: 1.42; }
  .detail-layout article h3 { margin-top: 28px; }
  .detail-aside { padding: 22px; }
  .university-card-body { padding: 18px; }
  .university-card h3 { font-size: 20px; }
  .result-panel { padding: 34px 24px; }
  .floating-consult { display: none; }
  .back-to-top { right: 14px; bottom: 14px; }
  .admin-shell { width: calc(100% - 20px); }
  .admin-panel { padding: 20px 14px; }
  .system-summary { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs { overflow-x: auto; }
  .admin-tab { white-space: nowrap; }
  .detail-list { grid-template-columns: 1fr; }
  .lead-dialog { width: min(820px, calc(100% - 30px)); }
  .lead-dialog-scroll { padding: 58px 22px 28px; }
  .lead-management-grid { grid-template-columns: 1fr; }
  .lead-management-grid .field.full { grid-column: auto; }
  .follow-up-history article > div { display: grid; gap: 3px; }
  .dialog-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .dashboard-stats, .media-grid, .media-tools, .school-media-grid, .decision-grid, .document-grid, .risk-grid { grid-template-columns: 1fr; }
  .site-operation-heading, .site-config-card-heading { align-items: flex-start; }
  .site-config-fields, .carousel-setting-grid { grid-template-columns: 1fr; }
  .sub-navigation-row, .footer-link-row { grid-template-columns: 1fr; }
  .redirect-row { grid-template-columns: 1fr; }
  .redirect-row > span[aria-hidden] { display: none; }
  .seo-operation-status { align-items: flex-start; flex-direction: column; }
  .backup-section .admin-table-wrap { overflow: visible; }
  .backup-section .admin-table { min-width: 0; }
  .backup-section .admin-table thead { display: none; }
  .backup-section .admin-table tbody, .backup-section .admin-table tr, .backup-section .admin-table td { display: block; width: 100%; }
  .backup-section .admin-table tr { margin-bottom: 14px; padding: 11px 13px; border: 1px solid var(--line); background: var(--background); }
  .backup-section .admin-table td { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; }
  .backup-section .admin-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; }
  .backup-section .admin-table td[colspan]::before { display: none; }
  .backup-section .table-actions { flex-wrap: wrap; white-space: normal; }
  .school-media-manager { padding: 14px; }
  .school-media-heading { display: grid; gap: 12px; }
  .school-media-upload { width: 100%; text-align: center; }
  .pathway-row { grid-template-columns: 48px 1fr; gap: 8px 14px; }
  .pathway-row p { grid-column: 2; }
  .content-manager { grid-template-columns: 1fr; }
  .content-list { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .content-editor { padding: 20px 14px; }
  .content-result-summary { display: grid; }
  .content-admin-actions input, .content-admin-actions select { width: 100%; max-width: none; min-width: 0; }
  .editor-dirty-indicator { width: 100%; margin-left: 0; }
  .editor-actions { margin-inline: -14px; padding-inline: 14px; }
  .activity-list > div { grid-template-columns: 1fr; }
  .site-footer { padding-top: 42px; }
  .footer-grid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.website-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* School library v2 */
.school-library-hero .hero-content { max-width: 760px; }
.school-library-intro { border-bottom: 1px solid var(--line); background: #fff; }
.school-library-metrics { min-height: 138px; display: grid; grid-template-columns: 150px 150px 180px minmax(0, 1fr); align-items: center; gap: 28px; }
.school-library-metrics > div { padding-right: 24px; border-right: 1px solid var(--line); }
.school-library-metrics strong, .school-library-metrics span { display: block; }
.school-library-metrics strong { color: var(--navy); font-size: 38px; line-height: 1; }
.school-library-metrics span { margin-top: 7px; color: var(--muted); font-size: 13px; }
.school-library-metrics p { margin: 0; color: #496176; line-height: 1.8; }
.school-list-heading { align-items: end; }
.school-result-count { color: var(--blue); font-weight: 800; }
.school-catalog-toolbar { align-items: end; padding: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.school-catalog-toolbar label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.school-catalog-toolbar .catalog-search { flex: 1; }
.school-catalog-toolbar input { width: 100%; }
.school-catalog-toolbar select { min-width: 220px; }
.university-card { min-width: 0; content-visibility: auto; contain-intrinsic-size: 450px; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.university-card:hover { transform: translateY(-5px); border-color: #8ecce9; box-shadow: 0 18px 38px rgba(5,43,92,.12); }
.university-card-link { height: 100%; display: flex; flex-direction: column; color: inherit; }
.university-image-stack { overflow: hidden; aspect-ratio: 1.55; background: #dfe9f0; }
.university-image-stack img { position: absolute; inset: 0; height: 100%; }
.university-skeleton { min-height: 430px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(100deg, #eef3f6 20%, #f8fafb 40%, #eef3f6 60%); background-size: 220% 100%; animation: university-skeleton 1.25s ease-in-out infinite; }
.school-load-more { display: flex; justify-content: center; padding-top: 30px; }
.school-load-more button[hidden] { display: none; }
@keyframes university-skeleton { to { background-position-x: -220%; } }
.university-card-body { flex: 1; display: flex; flex-direction: column; }
.university-card-body p { display: -webkit-box; min-height: 68px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-height: 1.65; }
.university-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--blue); font-size: 13px; }
.university-card-action span { font-size: 18px; transition: transform 180ms ease; }
.university-card:hover .university-card-action span { transform: translateX(4px); }
.school-detail-hero { position: relative; min-height: 640px; overflow: hidden; color: #fff; background: var(--navy); }
.school-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms ease, transform 900ms ease; }
.school-detail-hero > img.is-changing { opacity: .25; transform: scale(1.015); }
.school-detail-shade { position: absolute; inset: 0; background: rgba(3,32,70,.62); }
.school-detail-hero-content { position: relative; z-index: 1; min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; padding-top: 118px; padding-bottom: 68px; }
.school-detail-hero-content > div { max-width: 850px; }
.school-detail-hero h1 { max-width: 900px; margin: 16px 0 6px; font-size: clamp(42px, 5vw, 70px); line-height: 1.08; }
.school-detail-hero p { margin: 0; font-size: 19px; }
.school-detail-hero small { display: block; margin-top: 16px; color: rgba(255,255,255,.76); }
.school-back-link { width: max-content; color: #fff; font-size: 13px; font-weight: 700; }
.school-detail-body { padding: 86px 0; background: #fff; }
.school-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; }
.school-profile h2 { max-width: 760px; margin: 10px 0 24px; font-size: 34px; }
.school-introduction { margin: 20px 0 0; color: #354f67; font-size: 17px; line-height: 2; }
.school-profile-carousel { margin-top: 30px; }
.school-profile-carousel-viewport { position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 420px; background: #dce6ed; }
.school-profile-carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity 680ms ease, transform 1100ms ease; }
.school-profile-carousel-slide.active { opacity: 1; transform: scale(1); }
.school-profile-carousel-shade { position: absolute; inset: auto 0 0; height: 25%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(3,32,70,.34)); }
.school-profile-carousel-count { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-size: 12px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.school-profile-carousel-expand { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; background: rgba(3,32,70,.62); font-size: 21px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: background 180ms ease, transform 180ms ease; }
.school-profile-carousel-expand:hover, .school-profile-carousel-expand:focus-visible { background: var(--blue); transform: scale(1.06); outline: 3px solid rgba(51,184,233,.32); outline-offset: 2px; }
.school-profile-carousel-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.school-advantage-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.school-advantage-list span { padding: 8px 12px; border: 1px solid #b8dcec; color: var(--blue); background: #f5fbfe; font-size: 13px; font-weight: 700; }
.positive-review { margin-top: 42px; padding: 28px 0 4px 28px; border-left: 3px solid var(--bright); }
.positive-review span { color: var(--blue); font-size: 13px; font-weight: 800; }
.positive-review p { margin: 10px 0 0; color: #294862; font-size: 18px; line-height: 1.85; }
.school-detail-aside { align-self: start; padding: 28px; border-top: 3px solid var(--bright); background: #f4f8fb; }
.school-detail-aside dl { margin: 22px 0; }
.school-detail-aside dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.school-detail-aside dt { color: var(--muted); font-size: 12px; }
.school-detail-aside dd { margin: 5px 0 0; color: var(--ink); font-weight: 800; line-height: 1.65; overflow-wrap: anywhere; }
.school-info-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.school-info-list li { position: relative; padding-left: 13px; font-size: 13px; font-weight: 700; }
.school-info-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; background: var(--bright); transform: translateY(-50%); }
.school-detail-aside .button { width: 100%; margin-top: 9px; }
.school-deep-section { padding: 82px 0; border-top: 1px solid var(--line); background: #f4f8fb; }
.school-deep-content { max-width: 980px; }
.school-deep-rich-text { margin-top: 24px; }
.school-rich-text { max-width: 900px; }
.school-rich-text h2 { margin: 38px 0 14px; font-size: 28px; }
.school-rich-text h2:first-child { margin-top: 0; }
.school-rich-text p, .school-rich-text li { color: #3f566d; line-height: 1.9; }
.school-rich-text ul { padding-left: 20px; }
.school-rich-text a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.school-faq-section { padding: 78px 0; background: #fff; }
.school-faq-list { max-width: 900px; }
.school-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.school-gallery-item { position: relative; overflow: hidden; aspect-ratio: 1.65; padding: 0; border: 2px solid transparent; background: #dce6ed; cursor: pointer; }
.school-gallery-item.active { border-color: var(--bright); }
.school-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.school-gallery-item:hover img, .school-gallery-item:focus-visible img { transform: scale(1.045); }
.school-ranking-lines { display: grid; gap: 7px; }
.school-ranking-lines span { display: block; }
.school-source-note { max-width: 820px; margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .school-library-metrics { grid-template-columns: repeat(3, 1fr); padding: 28px 0; }
  .school-library-metrics p { grid-column: 1 / -1; }
  .school-detail-layout { grid-template-columns: 1fr; gap: 38px; }
  .school-detail-aside { width: min(520px, 100%); }
  .school-profile-carousel-viewport { min-height: 0; }
  .school-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .school-library-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .school-library-metrics > div { padding-right: 10px; }
  .school-library-metrics strong { font-size: 28px; }
  .school-library-metrics span { font-size: 11px; }
  .school-catalog-toolbar label, .school-catalog-toolbar select { width: 100%; min-width: 0; }
  .school-detail-hero, .school-detail-hero-content { min-height: 540px; }
  .school-detail-hero-content { padding-top: 92px; padding-bottom: 42px; }
  .school-detail-hero h1 { font-size: 40px; }
  .school-detail-body { padding: 58px 0; }
  .school-deep-section, .school-faq-section { padding: 56px 0; }
  .school-rich-text h2 { font-size: 24px; }
  .school-profile h2 { font-size: 28px; }
  .school-introduction { font-size: 16px; line-height: 1.9; }
  .positive-review { padding-left: 20px; }
  .positive-review p { font-size: 16px; }
  .school-profile-carousel-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
/* School image lightbox */
.school-detail-shade { pointer-events: none; }
.school-detail-hero-content { pointer-events: none; }
.school-detail-hero-content a, .school-detail-hero-content > div { pointer-events: auto; }
.school-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: rgba(2,16,34,.96); overflow: hidden; }
.school-lightbox[open] { display: grid; place-items: center; }
.school-lightbox::backdrop { background: rgba(2,16,34,.92); }
.school-lightbox-content { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 14px; padding: 34px 80px 24px; }
.school-lightbox-content img { display: block; max-width: min(94vw, 1800px); max-height: calc(100dvh - 105px); width: auto; height: auto; object-fit: contain; box-shadow: 0 18px 70px rgba(0,0,0,.46); }
.school-lightbox-content p { margin: 0; color: rgba(255,255,255,.8); font-size: 13px; }
.school-lightbox-close { position: fixed; top: 22px; right: 24px; z-index: 5; width: 54px; height: 54px; display: grid; place-items: center; padding: 0; border: 2px solid rgba(255,255,255,.78); border-radius: 50%; color: #082c56; background: #fff; box-shadow: 0 10px 34px rgba(0,0,0,.34); font-size: 34px; font-weight: 400; line-height: 1; cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.school-lightbox-close:hover, .school-lightbox-close:focus-visible { transform: scale(1.08); color: #fff; background: var(--blue); outline: 3px solid rgba(255,255,255,.42); outline-offset: 3px; }

@media (max-width: 560px) {
  .school-lightbox-content { padding: 72px 14px 20px; }
  .school-lightbox-content img { max-width: calc(100vw - 28px); max-height: calc(100dvh - 125px); }
  .school-lightbox-close { top: 12px; right: 12px; width: 50px; height: 50px; font-size: 31px; }
}
