/* ???????????? ? ?????? */
:root {
  --primary: #5b9bd1;
  --primary-dark: #3576b1;
  --primary-light: #91bae0;
  --accent: #3576b1;
  --accent-hover: #18388b;
  --gold: #9dc1d4;
  --text: #222222;
  --text-muted: #6b7785;
  --border: #e2e6ea;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --tint: #f1f5f8;
  --focus: rgba(53, 118, 177, 0.2);
  --container: 1200px;
  /* ?????? */
  --gov-blue: var(--primary);
  --gov-blue-dark: var(--primary-dark);
  --gov-red: var(--accent);
  --gov-gold: var(--gold);
  --white: var(--surface);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; height: auto; }

.container {
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  max-width: 100%;
}

.hide-sm { display: inline; }

[hidden] { display: none !important; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1001;
  padding: 10px 16px;
  background: #fff;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #f1c40f !important;
  outline-offset: 3px;
}

/* ?? Top strip & bar ?? */
.gov-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--primary-dark), var(--gold), var(--primary-dark));
}

.topbar {
  background: var(--tint);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 34px;
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--text-muted); }
.topbar a:hover { color: var(--primary); }
.topbar-links { display: flex; align-items: center; }
.topbar-links .sep { color: #ccc; margin: 0 10px; }
.topbar-welcome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.a11y-entry {
  border: 0;
  padding: 0;
  color: var(--primary-dark);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.a11y-entry:hover { color: var(--primary); }

.accessibility-bar {
  position: relative;
  z-index: 100;
  background: #f7f9fc;
  border-bottom: 1px solid #c8d5e3;
  box-shadow: 0 3px 10px rgba(13, 63, 115, .08);
}
.accessibility-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.accessibility-inner > strong {
  color: var(--primary-dark);
  margin-right: 4px;
}
.a11y-group {
  display: flex;
  align-items: center;
  gap: 5px;
}
.a11y-group > span { color: var(--text-muted); }
.accessibility-bar button {
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid #aebfd0;
  background: #fff;
  color: #263746;
  font-family: inherit;
  cursor: pointer;
}
.accessibility-bar button:hover,
.accessibility-bar button[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.accessibility-bar .a11y-close {
  margin-left: auto;
  width: 36px;
  padding: 5px;
}

/* ?? Header ?? */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.brand-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-text h1 {
  font-size: clamp(18px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 2px;
  line-height: 1.25;
}
.brand-sub {
  font-size: 11px;
  color: #9aa5b1;
  margin-top: 3px;
}
.brand-url {
  font-size: 12px;
  color: var(--accent);
  margin-top: 5px;
  font-weight: 600;
}
.header-search { flex-shrink: 0; }
.header-search label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.header-search .search-row {
  display: flex;
  border: 1px solid var(--border);
  background: var(--surface);
}
.header-search input {
  width: 180px;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  background: transparent;
}
.header-search input:focus { box-shadow: inset 0 0 0 1px var(--primary); }
.header-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
}
.header-search button:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
}

/* ?? Nav ?? */
.main-nav {
  background: var(--primary);
  border-bottom: 2px solid var(--gold);
}
.nav-list {
  display: flex;
  list-style: none;
}
.nav-list > li { flex: 1; text-align: center; }
.nav-list > li > a {
  display: block;
  line-height: 46px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.nav-list > li:last-child > a { border-right: none; }
.nav-list > li > a:hover,
.nav-list > li.active > a {
  background: var(--primary-dark);
  color: #fff;
}

/* ?? Hero / Banner carousel ?? */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--gov-blue-dark);
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide-item.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide-item.image-only {
  background-size: cover;
  background-color: var(--gov-blue-dark);
}
.hero-slide-item.image-only.image-poster {
  background-size: contain;
  background-color: #b92312;
}
.hero-slide-item.image-only::after { display: none; }
.hero.showing-image-only .hero-overlay { display: none; }
.hero.showing-image-only .hero-dots {
  background: rgba(92, 8, 5, .42);
  padding: 6px 8px;
  border-radius: 12px;
}
.hero-slide-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,61,107,.72) 0%, rgba(13,61,107,.35) 50%, rgba(13,61,107,.08) 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hero-overlay .container,
.hero-overlay a,
.hero-overlay button {
  pointer-events: auto;
}
.hero-content {
  color: #fff;
  max-width: 680px;
  padding: 20px 0;
}
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  background: transparent;
  transform: translate(-50%, -50%);
  transition: background .2s, transform .2s;
}
.hero-dots button.active::before,
.hero-dots button:hover::before {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.15);
}
.hero-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(11,77,140,.45);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s;
}
.hero-arrows button:hover {
  background: rgba(196,30,58,.75);
}
.hero-arrows .prev { left: 16px; }
.hero-arrows .next { right: 16px; }

/* legacy hero helpers kept for fallback */
.hero-pattern { display: none; }
.hero-content .tag {
  display: inline-block;
  background: var(--gov-red);
  padding: 3px 10px;
  font-size: 12px;
  margin-bottom: 12px;
  border-radius: 0;
}
.hero-content h2 {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.hero-content p {
  font-size: clamp(13px, 2.5vw, 15px);
  opacity: .95;
  line-height: 1.75;
  margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }
.btn-outline {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.8);
}
.btn-outline:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-blue {
  background: var(--gov-blue);
  color: #fff;
}
.btn-blue:hover { background: var(--gov-blue-dark); color: #fff; }

/* ?? Section titles (gov left-bar style) ?? */
.section { padding: 24px 0; }
.section-title {
  text-align: left;
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 2px solid var(--primary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.section-title h3 {
  font-size: 18px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-block;
  background: var(--primary);
  padding: 7px 18px;
}
.section-title p {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* ?? ?????????????? ?? */
.portal-strip {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #e1e8ed;
}
.portal-split {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, .95fr);
  gap: 24px;
  align-items: stretch;
}
.study-banner {
  display: block;
  overflow: hidden;
  background: #b31518;
  border: 1px solid #d4b16a;
  box-shadow: 0 3px 12px rgba(100, 20, 20, .12);
}
.study-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}
.study-banner:hover img { transform: scale(1.005); opacity: .96; }
.portal-feature-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.portal-feature-pair a {
  display: block;
  overflow: hidden;
  background: #eef7fe;
  border: 1px solid #cbddeb;
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-feature-pair img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.portal-feature-pair a:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(53, 118, 177, .15);
}

/* ?? Gov home layout ?? */
.gov-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.gov-news-column { min-width: 0; }
.gov-side-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.gov-side-stack .gov-side-box { margin-bottom: 0; }
.gov-side-stack .gov-side-box:last-child { grid-column: 1 / -1; }
.gov-side-box {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.gov-side-box .box-head {
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
}
.gov-side-box .box-body { padding: 12px 16px; }
.gov-side-box ul { list-style: none; }
.gov-side-box li {
  padding: 8px 0;
  border-bottom: 1px dashed #e8e8e8;
  font-size: 13px;
}
.gov-side-box li:last-child { border-bottom: none; }
.gov-side-box li a { color: var(--text); }
.gov-side-box li a:hover { color: var(--gov-red); }
.gov-side-box li i {
  color: var(--gov-red);
  width: 18px;
  margin-right: 4px;
}

/* ?? Tab news (gov style) ?? */
.gov-tabs { background: #fff; border: 1px solid var(--border); }
.gov-tab-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.gov-tab-head .gov-tab-nav { border-bottom: 0; }
.gov-tab-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  list-style: none;
  background: var(--tint);
  border-bottom: 2px solid var(--primary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gov-tab-nav::-webkit-scrollbar { display: none; }
.gov-tab-nav li {
  padding: 0 20px;
  line-height: 42px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.gov-tab-nav li:hover { color: var(--primary); }
.gov-tab-nav li.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.gov-tab-more {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 13px;
}
.gov-tab-more:hover { color: var(--accent-hover); }
.gov-tab-pane { display: none; padding: 14px 18px 18px; }
.gov-tab-pane.active { display: block; }
.gov-tab-pane .news-list li { padding: 9px 0; }

/* ?? Float sidebar ?? */
.gov-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  background: var(--gov-blue);
  border: 1px solid var(--gov-blue-dark);
  border-right: none;
}
.gov-float a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  color: #fff;
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  text-align: center;
  line-height: 1.3;
  min-width: 56px;
}
.gov-float a:hover { background: var(--gov-red); color: #fff; }
.gov-float a i { font-size: 18px; margin-bottom: 4px; }
.gov-float-top { background: #666; }
.gov-float-top:hover { background: #444; }

/* ?? Footer (gov) ?? */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.78);
  margin-top: 20px;
}
.footer-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-links-bar a {
  color: rgba(255,255,255,.8);
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,.15);
  font-size: 13px;
}
.footer-links-bar a:first-child { padding-left: 0; }
.footer-links-bar a:hover { color: #fff; }
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 24px;
}
.footer-left p {
  font-size: 13px;
  line-height: 2;
  color: rgba(255,255,255,.75);
}
.footer-left strong { color: rgba(255,255,255,.9); }
.gov-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--gov-blue);
  padding: 8px 14px;
  border: 1px solid #ccc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.badge-icon { font-size: 28px; color: var(--gov-red); }
.footer-bottom {
  background: rgba(0,0,0,.2);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  line-height: 2;
  color: rgba(255,255,255,.6);
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gov-blue);
  padding: 24px 18px;
  text-align: center;
  transition: border-color .2s;
  border-radius: 0;
}
.service-card:hover {
  transform: none;
  box-shadow: none;
  border-top-color: var(--gov-red);
}
.service-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #e8f0f8, #d4e4f4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--gov-blue);
}
.service-card h4 {
  font-size: 16px;
  color: var(--gov-blue);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ?? Two-column panels ?? */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  line-height: 42px;
  background: var(--gov-blue);
  color: #fff;
  border-bottom: 2px solid var(--gov-red);
}
.panel-head h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.panel-head a {
  color: rgba(255,255,255,.85);
  font-size: 12px;
}
.panel-head a:hover { color: #fff; }
.panel-body { padding: 12px 18px 16px; }

.news-list { list-style: none; }
.news-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.news-list li:last-child { border-bottom: none; }
.news-list .date {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  font-family: Arial, sans-serif;
}
.news-list a {
  flex: 1;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-list a:hover { color: var(--gov-red); }
.news-list .tag-new {
  flex-shrink: 0;
  background: var(--gov-red);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
}

/* ?? Stats bar ?? */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 24px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .num {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: #f0d78c;
  line-height: 1.2;
}
.stat-item .label {
  font-size: 13px;
  opacity: .9;
  margin-top: 4px;
}

/* ?? Inner page ?? */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 28px 0;
  border-bottom: 3px solid var(--accent);
}
.page-banner h2 {
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.page-banner p { opacity: .85; font-size: 14px; }

.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--gov-blue); }
.breadcrumb span { margin: 0 6px; color: #ccc; }

.page-content {
  padding: 32px 0 48px;
}
.content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.side-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.side-nav h4 {
  background: var(--gov-blue);
  color: #fff;
  padding: 12px 16px;
  font-size: 15px;
  letter-spacing: 1px;
}
.side-nav ul { list-style: none; }
.side-nav li a {
  display: block;
  padding: 12px 16px 12px 20px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}
.side-nav li a:hover,
.side-nav li.active a {
  background: #f0f5fa;
  color: var(--gov-blue);
  border-left-color: var(--gov-red);
}
.side-nav li:last-child a { border-bottom: none; }

.main-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 32px;
  min-height: 400px;
}
.main-article h3 {
  font-size: 18px;
  color: var(--gov-blue);
  margin-bottom: 16px;
  padding: 8px 0 8px 14px;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--gov-red);
}
.main-article p { margin-bottom: 14px; text-align: justify; }
.main-article ul { margin: 0 0 14px 24px; }
.main-article li { margin-bottom: 6px; }

/* ?? Forms ?? */
.form-box {
  max-width: 720px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}
.form-group label .req { color: var(--gov-red); margin-right: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
}
.consent-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.7;
  cursor: pointer;
}
.consent-check input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.alert {
  padding: 14px 16px;
  border-radius: 2px;
  margin-bottom: 18px;
  font-size: 13px;
}
.alert-info {
  background: var(--tint);
  border: 1px solid #c5d9ed;
  color: var(--primary-dark);
}
.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
}
.alert-error {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #c62828;
}

/* ?? Query result ?? */
.result-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
  display: none;
}
.result-card.show { display: block; }
.certificate-photo {
  display: flex;
  justify-content: center;
  padding: 18px 18px 0;
}
.certificate-photo img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f5f6f8;
}
.result-head {
  background: var(--gov-blue);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
}
.result-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.result-item label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}
.result-item span {
  font-size: 15px;
  font-weight: 600;
  color: var(--gov-blue);
}

.query-page {
  max-width: 760px;
  margin: 0 auto;
}
.query-form {
  padding-bottom: 4px;
}
.query-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #f5c6c0;
  background: linear-gradient(180deg, #fff8f7 0%, #fdecea 100%);
  color: #9b1c1c;
}
.query-alert > i {
  margin-top: 2px;
  font-size: 18px;
  flex: 0 0 auto;
}
.query-alert strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}
.query-alert p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.query-result {
  margin-top: 28px;
  border: 1px solid #c5d9ed;
  background:
    linear-gradient(180deg, rgba(91, 155, 209, 0.08) 0%, transparent 72px),
    #fff;
  box-shadow: 0 8px 24px rgba(24, 56, 139, 0.06);
}
.query-result-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #d7e5f3;
}
.query-result-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.query-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #a5d6a7;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.query-result-status h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  border: 0;
  padding: 0;
}
.query-result-tip {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
}
.query-result-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 20px;
  align-items: start;
}
.query-result-photo img,
.query-result-photo-empty {
  width: 120px;
  height: 150px;
  border: 1px solid #c5d9ed;
  background: #f5f8fb;
  object-fit: cover;
}
.query-result-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8aa0b5;
  font-size: 12px;
}
.query-result-photo-empty i {
  font-size: 28px;
}
.query-result-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.query-result-item {
  min-width: 0;
  padding: 10px 12px;
  background: rgba(241, 245, 248, 0.85);
  border-left: 3px solid var(--primary);
}
.query-result-item-wide {
  grid-column: 1 / -1;
}
.query-result-item dt {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.query-result-item dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.45;
  word-break: break-word;
}
.query-result-item dd.mono {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.query-result-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 20px;
  border-top: 1px dashed #d7e5f3;
  padding-top: 16px;
}
.query-result-foot .btn {
  min-width: 148px;
  justify-content: center;
}

@media (max-width: 640px) {
  .query-result-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .query-result-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .query-result-item {
    text-align: left;
  }
  .query-result-foot {
    justify-content: stretch;
  }
  .query-result-foot .btn {
    flex: 1 1 100%;
  }
}

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.intro-visual {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 28px 24px;
  min-height: 280px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.intro-visual::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border: 20px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.intro-visual h4 {
  font-size: 20px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.intro-visual ul {
  list-style: none;
  line-height: 2;
  font-size: 14px;
  opacity: .95;
}
.intro-visual li i {
  width: 20px;
  color: var(--gold);
  margin-right: 6px;
}
.intro-text h4 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.intro-text p { color: var(--text-muted); margin-bottom: 12px; }
.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.intro-tags span {
  background: var(--tint);
  color: var(--primary);
  padding: 5px 12px;
  font-size: 12px;
  border: 1px solid #c5d9ed;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.table-wrap .data-table { min-width: 480px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.contact-card {
  padding: 20px;
  background: var(--tint);
  border: 1px solid var(--border);
}
.contact-card p { margin: 0; }
.contact-card .detail { margin: 8px 0 0 28px; color: var(--text-muted); }
.contact-card i { color: var(--primary); width: 20px; }

.mobile-quick {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.mobile-quick a {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.3;
}
.mobile-quick a i {
  display: block;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 2px;
}
.mobile-quick-inner { display: flex; gap: 4px; }

/* ?? Responsive ?? */
@media (max-width: 992px) {
  .gov-home-grid { grid-template-columns: 1fr; }
  .gov-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gov-side-stack .gov-side-box:last-child { grid-column: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: repeat(3, 1fr); }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-grid { grid-template-columns: 1fr; }
  .intro-split { grid-template-columns: 1fr; }
  .gov-float { display: none; }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .hero { height: 360px; }
}

@media (max-width: 768px) {
  .site-header {
    position: relative;
    z-index: 200;
  }
  .hide-sm { display: none !important; }
  .topbar .container {
    justify-content: flex-end;
  }
  .topbar-welcome {
    display: none;
  }
  .topbar-links {
    margin-left: auto;
    justify-content: flex-end;
    width: 100%;
  }
  .topbar-links a,
  .topbar-links .a11y-entry {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .a11y-entry {
    margin-left: auto;
  }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-search { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; position: relative; z-index: 230; }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(15, 35, 55, 0.48);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
  }
  .nav-backdrop.is-open {
    display: block;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 225;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid var(--primary-dark);
    box-shadow: 0 12px 28px rgba(13, 63, 115, .28);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .main-nav.is-open {
    display: block;
  }
  body.nav-drawer-open {
    overflow: hidden;
  }
  .nav-list { flex-direction: column; }
  .nav-list > li { flex: none; text-align: left; }
  .nav-list > li > a {
    line-height: 44px;
    padding: 0 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 15px;
  }
  .hero { height: auto; min-height: 0; max-height: none; aspect-ratio: 804 / 380; }
  .hero-overlay { align-items: flex-end; padding-bottom: 36px; }
  .hero-content { max-width: 100%; padding: 12px 0; }
  .hero-content .tag { font-size: 11px; }
  .hero-arrows button { display: none; }
  .portal-strip { padding: 12px 0; }
  .portal-split { grid-template-columns: 1fr; gap: 12px; }
  .portal-feature-pair a { height: 120px; }
  .section { padding: 18px 0; }
  .section-title { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-title p { margin-left: 2px; }
  .page-content { padding: 20px 0 32px; }
  .main-article { padding: 18px 16px; }
  .page-banner { padding: 20px 0; }
  .page-banner h2 { font-size: 22px; }
  .footer-links-bar a { padding: 6px 12px; font-size: 12px; }
  .footer-links-bar a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .accessibility-bar button { min-height: 44px; }
  .mobile-quick a {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .mobile-quick { display: block; }
  body { padding-bottom: 62px; }
  .news-list li {
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: flex-start;
  }
  .news-list a {
    white-space: normal;
    flex: 1 1 100%;
    order: 2;
    line-height: 1.5;
  }
  .news-list .date { order: 1; }
  .news-list .tag-new { order: 3; }
  .contact-grid { grid-template-columns: 1fr !important; }
  .gov-side-stack { grid-template-columns: 1fr; }
  .cass-notice-panel { width: 100%; }
}

@media (max-width: 480px) {
  .container { width: min(var(--container), calc(100% - 16px)); }
  .brand-logo { width: 56px; height: 56px; }
  .brand-text h1 { letter-spacing: 1px; }
  .brand-sub { display: none; }
  .service-grid,
  .process-flow,
  .job-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .result-body { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; min-width: 120px; }
  .footer-bottom p { font-size: 11px; line-height: 1.7; }
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  counter-reset: step;
}
.process-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px 14px;
  text-align: center;
  border-radius: 2px;
  position: relative;
}
.process-item::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  background: var(--gov-blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}
.process-item h5 {
  font-size: 14px;
  color: var(--gov-blue);
  margin-bottom: 6px;
}
.process-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 0;
  transition: border-color .2s;
}
.job-card:hover { box-shadow: none; border-color: var(--gov-blue); }
.job-card .level {
  display: inline-block;
  background: var(--gov-red);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.job-card h5 {
  font-size: 16px;
  color: var(--gov-blue);
  margin-bottom: 8px;
}
.job-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.job-card a {
  font-size: 13px;
  font-weight: 600;
}

.job-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.job-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: #f7fbff;
}
.job-category-item i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gov-blue);
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.job-category-item strong {
  font-size: 14px;
  color: var(--gov-blue);
  font-weight: 600;
}
@media (max-width: 768px) {
  .job-category-grid { grid-template-columns: 1fr; }
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.policy-card {
  background: var(--white);
  border-left: 4px solid var(--gov-blue);
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gov-blue);
}
.policy-card h5 {
  font-size: 15px;
  color: var(--gov-blue);
  margin-bottom: 8px;
}
.policy-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-list {
  list-style: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover {
  border-color: #c5d6e8;
}
.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(53, 118, 177, 0.08);
}
.faq-q {
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  font-family: inherit;
  line-height: 1.55;
}
.faq-q:hover { background: #f7fafc; }
.faq-item.open .faq-q {
  background: #f3f8fc;
  color: var(--gov-blue-dark);
}
.faq-badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
.faq-badge-q {
  background: var(--gov-blue);
  color: #fff;
}
.faq-badge-a {
  background: #eef4fa;
  color: var(--gov-blue-dark);
  border: 1px solid #d0e0ef;
}
.faq-q-text {
  flex: 1 1 auto;
  min-width: 0;
}
.faq-arrow {
  flex: 0 0 auto;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform .22s ease, color .2s;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--gov-blue);
}
.faq-a {
  display: none;
  padding: 0 18px 16px 18px;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.85;
  border-top: 1px solid #edf1f5;
  padding-top: 14px;
  margin: 0 0 0 0;
  background: #fafbfc;
}
.faq-item.open .faq-a {
  display: flex;
}
.faq-a-body {
  flex: 1 1 auto;
  min-width: 0;
  color: #4a5563;
}
.faq-a-body p { margin: 0 0 0.4em; }
.faq-a-body p:last-child { margin-bottom: 0; }

.pager-wrap {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.pager-info {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.pager-info strong {
  color: var(--gov-blue-dark);
  font-weight: 600;
}
.pager-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.pager-list li span,
.pager-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pager-list li a:hover {
  border-color: var(--gov-blue);
  color: var(--gov-blue);
  background: #f3f8fc;
}
.pager-list li.active span {
  border-color: var(--gov-blue);
  background: var(--gov-blue);
  color: #fff;
  font-weight: 600;
}
.pager-list li.disabled span {
  color: #a0a8b0;
  background: #f5f6f8;
  cursor: default;
}

.news-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #d6e3ed;
  background: #f3f8fc;
  color: var(--text-muted);
  font-size: 14px;
}
.news-search-summary strong {
  color: var(--gov-blue-dark);
}
.news-search-summary a {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .pager {
    flex-direction: column;
    align-items: stretch;
  }
  .pager-info { text-align: center; }
  .pager-list { justify-content: center; }
  .news-search-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .faq-q { padding: 14px 14px; font-size: 14px; gap: 10px; }
  .faq-a { padding: 12px 14px 14px; gap: 10px; font-size: 13px; }
  .faq-badge { width: 24px; height: 24px; font-size: 12px; }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}
.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.data-table th {
  background: var(--gov-blue);
  color: #fff;
  font-weight: 600;
}
.data-table tr:nth-child(even) { background: #f8fafc; }

.highlight-box {
  background: linear-gradient(90deg, #e8f0f8, #f8fafc);
  border: 1px solid #b8d4ec;
  padding: 18px 22px;
  margin: 18px 0;
  border-radius: 2px;
}
.highlight-box strong { color: var(--gov-blue); }

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.article-meta span { margin-right: 0; }

.footer-left p,
.contact-card .detail,
.brand-url,
.result-item span,
.alert,
.form-hint,
.main-article {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ?? ??????? ?? */
html[data-a11y-font="large"] body {
  line-height: 1.9;
}
html[data-a11y-font="large"] :is(p, li, td, th, label, input, select, textarea, button, .news-list a, .side-nav a, .gov-side-box a) {
  font-size: 18px !important;
}
html[data-a11y-font="xlarge"] body {
  line-height: 2;
}
html[data-a11y-font="xlarge"] :is(p, li, td, th, label, input, select, textarea, button, .news-list a, .side-nav a, .gov-side-box a) {
  font-size: 20px !important;
}
html[data-a11y-font="xlarge"] :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.55 !important;
}

html.a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}

html[data-a11y-theme="black-yellow"] {
  --primary: #000;
  --primary-dark: #000;
  --primary-light: #222;
  --accent: #ffeb3b;
  --accent-hover: #fff176;
  --gold: #ffeb3b;
  --text: #ffeb3b;
  --text-muted: #fff3a0;
  --border: #ffeb3b;
  --bg: #000;
  --surface: #000;
  --tint: #111;
  --focus: rgba(255, 235, 59, .3);
}
html[data-a11y-theme="yellow-black"] {
  --primary: #111;
  --primary-dark: #000;
  --primary-light: #333;
  --accent: #003b70;
  --accent-hover: #001f3f;
  --gold: #111;
  --text: #000;
  --text-muted: #222;
  --border: #111;
  --bg: #ffeb3b;
  --surface: #ffeb3b;
  --tint: #fff176;
  --focus: rgba(0, 0, 0, .3);
}
html[data-a11y-theme="black-yellow"] body,
html[data-a11y-theme="black-yellow"] :is(.site-header, .topbar, .main-article, .gov-side-box, .gov-tab-box, .service-card, .job-card, .policy-card, .faq-item, .contact-card, .breadcrumb),
html[data-a11y-theme="yellow-black"] body,
html[data-a11y-theme="yellow-black"] :is(.site-header, .topbar, .main-article, .gov-side-box, .gov-tab-box, .service-card, .job-card, .policy-card, .faq-item, .contact-card, .breadcrumb) {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}
html[data-a11y-theme="black-yellow"] :is(a, h1, h2, h3, h4, h5, h6, strong, .brand-url),
html[data-a11y-theme="black-yellow"] .stat-item .num {
  color: #ffeb3b !important;
}
html[data-a11y-theme="yellow-black"] :is(a, h1, h2, h3, h4, h5, h6, strong, .brand-url),
html[data-a11y-theme="yellow-black"] .stat-item .num {
  color: #000 !important;
}
html[data-a11y-theme="black-yellow"] :is(.site-footer, .footer-left p, .footer-left strong, .footer-bottom, .footer-links-bar a) {
  color: #ffeb3b !important;
}
html[data-a11y-theme="yellow-black"] :is(.site-footer, .footer-left p, .footer-left strong, .footer-bottom, .footer-links-bar a) {
  color: #ffeb3b !important;
}
html[data-a11y-theme="black-yellow"] :is(.main-nav, .page-banner, .site-footer, .stats-bar),
html[data-a11y-theme="yellow-black"] :is(.main-nav, .page-banner, .site-footer, .stats-bar) {
  background: var(--primary) !important;
  border-color: var(--border) !important;
}
html[data-a11y-theme="black-yellow"] .nav-list > li.active > a {
  background: #ffeb3b !important;
  color: #000 !important;
}
html[data-a11y-theme="yellow-black"] .nav-list > li.active > a {
  background: #000 !important;
  color: #ffeb3b !important;
}
html[data-a11y-theme="black-yellow"] .hero-slide-item,
html[data-a11y-theme="yellow-black"] .hero-slide-item {
  filter: grayscale(1) contrast(1.15);
}
html[data-a11y-theme="black-yellow"] .accessibility-bar {
  background: #000;
  border-color: #ffeb3b;
}
html[data-a11y-theme="black-yellow"] .accessibility-bar :is(strong, span) {
  color: #ffeb3b;
}
html[data-a11y-theme="black-yellow"] .accessibility-bar button {
  background: #000;
  color: #ffeb3b;
  border-color: #ffeb3b;
}
html[data-a11y-theme="black-yellow"] .accessibility-bar button:is(:hover, [aria-pressed="true"]) {
  background: #ffeb3b;
  color: #000;
}
html[data-a11y-theme="yellow-black"] .accessibility-bar {
  background: #ffeb3b;
  border-color: #000;
}
html[data-a11y-theme="yellow-black"] .accessibility-bar :is(strong, span) {
  color: #000;
}
html[data-a11y-theme="yellow-black"] .accessibility-bar button {
  background: #ffeb3b;
  color: #000;
  border-color: #000;
}
html[data-a11y-theme="yellow-black"] .accessibility-bar button:is(:hover, [aria-pressed="true"]) {
  background: #000;
  color: #ffeb3b;
}

@media (max-width: 768px) {
  .accessibility-inner {
    align-items: stretch;
    gap: 8px;
  }
  .accessibility-inner > strong { width: calc(100% - 46px); }
  .accessibility-bar .a11y-close {
    position: absolute;
    top: 8px;
    right: 12px;
  }
  .a11y-group {
    width: 100%;
    overflow-x: auto;
  }
  .a11y-group > span { min-width: 34px; }
  .accessibility-bar button { white-space: nowrap; }
}

/* ?? ??????????????????? ?? */
body { background: #fff; }
.gov-strip {
  height: 4px;
  background: #dce7ed;
}
.topbar { background: #f0f0f0; }
.site-header { border-bottom: 0; }
.main-nav {
  background: #5b9bd1;
  border-bottom: 0;
}
.nav-list > li > a {
  line-height: 58px;
  font-size: 17px;
  border-right: 0;
  border-bottom: 4px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  background: #4e8dc3;
  border-bottom-color: #3571a5;
}

.headline-strip {
  padding: 18px 0 16px;
  text-align: center;
  background: #fff;
}
.headline-strip h2 {
  margin-bottom: 10px;
  line-height: 1.45;
}
.headline-strip h2 a {
  color: #3576b1;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
}
.headline-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}
.headline-links a {
  padding: 0 14px;
  color: #3576b1;
  font-size: 16px;
  line-height: 24px;
  border-left: 1px solid #9dc1d4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.headline-links a:first-child { border-left: 0; }

.cass-lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, .95fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}
.cass-lead-grid .hero {
  height: 380px;
  min-width: 0;
}
.cass-lead-grid .hero-content {
  max-width: 650px;
}
.cass-lead-grid .hero-content h2 { font-size: clamp(24px, 3vw, 34px); }
.cass-notice-panel {
  height: 380px;
  padding: 0 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e3ed;
  border-top: 3px solid #3576b1;
}
.cass-panel-head {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dbdbdb;
}
.cass-panel-head h3 {
  align-self: stretch;
  display: flex;
  align-items: center;
  color: #3576b1;
  font-size: 20px;
  font-weight: 600;
  border-bottom: 2px solid #3576b1;
}
.cass-panel-head > a {
  color: #5b9bd1;
  font-size: 14px;
}
.cass-notice-panel ul { list-style: none; }
.cass-notice-panel li {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed #ddd;
}
.cass-notice-panel li:last-child { border-bottom: 0; }
.cass-notice-panel li span {
  flex: 0 0 40px;
  color: #999;
  font-size: 12px;
}
.cass-notice-panel li a {
  flex: 1;
  min-width: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cass-notice-panel li a:hover { color: #18388b; }

.portal-strip {
  margin-top: 0;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dce7ed;
}

.section-title {
  min-height: 52px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dbdbdb;
  gap: 12px;
}
.section-title h3 {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #3576b1;
  background: transparent;
  border-bottom: 2px solid #3576b1;
  font-size: 20px;
}
.gov-tabs {
  border: 1px solid #d6e3ed;
  border-top: 3px solid #3576b1;
}
.gov-tab-nav {
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
}
.gov-tab-nav li {
  line-height: 48px;
  color: #666;
  font-size: 16px;
}
.gov-tab-nav li.active {
  color: #3576b1;
  background: #fff;
  border-bottom: 2px solid #3576b1;
}
.gov-side-box {
  border-color: #d6e3ed;
  border-top: 3px solid #3576b1;
}
.gov-side-box .box-head {
  padding: 9px 14px;
  color: #3576b1;
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
  font-size: 16px;
}
.news-list a { font-size: 16px; }
.service-card p,
.job-card p,
.policy-card p { font-size: 14px; }
.main-article { font-size: 16px; }

.service-card,
.job-card,
.policy-card,
.process-item {
  border-color: #d6e3ed;
}
.service-card:hover,
.job-card:hover {
  border-color: #5b9bd1;
  background: #f7fafc;
}

.site-footer {
  color: #555;
  background: #f1f5f8;
  border-top: 4px solid #dce7ed;
}
.footer-links-bar { border-bottom-color: #cfd8dd; }
.footer-links-bar a,
.footer-left p,
.footer-left strong {
  color: #455b6b;
}
.footer-links-bar a { border-right-color: #cfd8dd; }
.footer-links-bar a:hover { color: #18388b; }
.footer-bottom {
  color: #667784;
  background: #e8eef2;
  border-top-color: #cfd8dd;
}

@media (max-width: 992px) {
  .cass-lead-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 16px;
  }
  .cass-lead-grid .hero,
  .cass-notice-panel { height: 340px; }
  .cass-notice-panel li { min-height: 43px; }
}

@media (max-width: 768px) {
  .nav-list > li > a {
    line-height: 44px;
    border-bottom-color: rgba(255,255,255,.15);
  }
  .headline-strip { padding: 13px 0; }
  .headline-links {
    display: flex;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .headline-links::-webkit-scrollbar { display: none; }
  .headline-links a {
    flex: 0 0 auto;
    max-width: 82vw;
  }
  .cass-lead-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }
  /* 海报轮播按 804:380 比例自适应，避免手机端上下大块留白 */
  .cass-lead-grid .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 804 / 380;
  }
  .cass-lead-grid .hero .hero-carousel { height: 100%; }
  .cass-notice-panel {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .cass-notice-panel li { min-height: 48px; }
  .cass-notice-panel li a {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .section-title { align-items: center; }
  /* 表单防 iOS 自动放大，触控区域加大 */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .form-group textarea { min-height: 110px; }
  .hero-dots button {
    width: 28px;
    height: 28px;
  }
  .brand-text h1 {
    font-size: clamp(15px, 4.2vw, 20px);
    letter-spacing: 0.5px;
  }
  .brand-url { font-size: 11px; }
  .job-category-grid { grid-template-columns: 1fr; }
  .side-nav { margin-bottom: 14px; }
  .side-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .headline-strip h2 a { font-size: 18px; line-height: 1.4; }
  .headline-links a { font-size: 13px; }
  .cass-lead-grid .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 804 / 380;
  }
  .cass-notice-panel { padding: 0 14px; }
  .brand-url { display: none; }
  .topbar-welcome { display: none; }
}

html[data-a11y-theme="black-yellow"] :is(.headline-strip, .cass-notice-panel, .portal-strip),
html[data-a11y-theme="yellow-black"] :is(.headline-strip, .cass-notice-panel, .portal-strip) {
  color: var(--text) !important;
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html[data-a11y-theme="black-yellow"] :is(.cass-notice-panel li, .cass-panel-head, .section-title, .gov-tab-nav, .gov-side-box .box-head),
html[data-a11y-theme="yellow-black"] :is(.cass-notice-panel li, .cass-panel-head, .section-title, .gov-tab-nav, .gov-side-box .box-head) {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

/* ?? ??????????? ?? */
.consult-visual-card {
  position: relative;
  grid-column: 1 / -1;
  min-height: 132px;
  overflow: hidden;
  color: #fff;
  background: #164b76;
  border: 1px solid #d6e3ed;
}
.consult-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 63, 115, .94), rgba(13, 63, 115, .55) 58%, rgba(13, 63, 115, .05));
}
.consult-visual-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.consult-visual-card span {
  position: relative;
  z-index: 1;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
}
.consult-visual-card strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
}
.consult-visual-card small {
  margin-top: 7px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.consult-visual-card:hover { color: #fff; }
.consult-visual-card:hover img { transform: scale(1.025); }

.visual-break {
  padding: 8px 0 24px;
  background: #fff;
}
.visual-break-link {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
  color: #fff;
  background: #a11818;
}
.visual-break-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(91, 5, 9, .84), rgba(123, 13, 11, .42) 60%, rgba(123, 13, 11, .06));
}
.visual-break-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.visual-break-link span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 5%;
}
.visual-break-link small {
  color: #f3d391;
  font-size: 14px;
  letter-spacing: 3px;
}
.visual-break-link strong {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 3px;
}
.visual-break-link em {
  margin-top: 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-style: normal;
}
.visual-break-link:hover { color: #fff; }
.visual-break-link:hover img { transform: scale(1.015); }
.visual-break-link.direct-image {
  height: 160px;
  background: #d71920;
}
.visual-break-link.direct-image::after { display: none; }
.visual-break-link.direct-image img {
  height: 100%;
  object-fit: contain;
}

html[data-a11y-theme="black-yellow"] :is(.consult-visual-card, .visual-break-link),
html[data-a11y-theme="yellow-black"] :is(.consult-visual-card, .visual-break-link) {
  border: 2px solid var(--border) !important;
}
html[data-a11y-theme="black-yellow"] :is(.consult-visual-card img, .visual-break-link img),
html[data-a11y-theme="yellow-black"] :is(.consult-visual-card img, .visual-break-link img) {
  filter: grayscale(1) contrast(1.15);
}

@media (max-width: 768px) {
  .consult-visual-card { min-height: 120px; }
  .consult-visual-card span { min-height: 120px; }
  .visual-break-link { height: 150px; }
  .visual-break-link.direct-image { height: 110px; }
}

@media (max-width: 480px) {
  .visual-break { padding-bottom: 18px; }
  .visual-break-link { height: 138px; }
  .visual-break-link.direct-image { height: 92px; }
  .visual-break-link strong { font-size: 20px; letter-spacing: 1px; }
  .visual-break-link small { font-size: 12px; letter-spacing: 1px; }
}

/* 手机端防横向撑开：右侧大块空白常见于 minmax(300px) 网格未正确折行 */
@media (max-width: 768px) {
  main,
  .section,
  .portal-strip,
  .headline-strip,
  .visual-break,
  .site-footer,
  .cass-lead-grid,
  .gov-home-grid,
  .portal-split {
    max-width: 100%;
    min-width: 0;
  }

  .container {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .cass-lead-grid,
  .portal-split,
  .gov-home-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    gap: 12px;
  }

  .headline-links {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .headline-links a {
    flex: 0 0 auto;
    max-width: min(82vw, 280px);
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-text h1,
  .brand-sub,
  .brand-url {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .brand-sub { display: none; }

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

  .study-banner,
  .portal-feature-pair,
  .portal-feature-pair a,
  .consult-visual-card,
  .visual-break-link {
    max-width: 100%;
    min-width: 0;
  }

  .footer-links-bar {
    gap: 0;
  }

  .footer-links-bar a {
    border-right: 0;
    padding: 6px 10px;
  }
}
