:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --navy: #0b3158;
  --navy-2: #0f4678;
  --primary: #1268b3;
  --primary-strong: #0a5595;
  --accent: #d69b27;
  --text: #1f2d3d;
  --muted: #5d6f82;
  --line: #dce7f2;
  --line-strong: #c6d8ea;
  --shadow: 0 16px 36px rgba(22, 58, 92, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #00101d;
  z-index: 50;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15,70,120,.06);
}
.topbar { background: var(--navy); color: #e7f2fb; font-size: .86rem; }
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .42rem 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 700; }

.navbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: .85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}
.brand strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand span span,
.brand > span > span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
}
.nav-links a {
  padding: .56rem .76rem;
  color: #32485d;
  border-radius: 8px;
  font-size: .94rem;
  font-weight: 600;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary-strong);
  background: #eef6fd;
  outline: none;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  padding: .55rem .8rem;
  font: inherit;
  font-weight: 700;
}

main, .page-main { position: relative; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 570px;
  padding: 4.8rem 1.1rem 4.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
  align-items: center;
  gap: 2rem;
}
.official-hero {
  max-width: none;
  padding-left: calc((100vw - min(var(--max), calc(100vw - 2.2rem))) / 2 + 1.1rem);
  padding-right: calc((100vw - min(var(--max), calc(100vw - 2.2rem))) / 2 + 1.1rem);
  background:
    linear-gradient(90deg, rgba(11,49,88,.96), rgba(15,70,120,.9)),
    radial-gradient(circle at 76% 22%, rgba(255,255,255,.16), transparent 24rem);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.official-hero::after {
  content: "";
  position: absolute;
  inset: auto -10rem -16rem auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem .7rem;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  color: var(--primary-strong);
  background: #edf5fc;
  font-size: .92rem;
  font-weight: 800;
}
.official-hero .eyebrow {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: var(--accent);
}
h1 {
  margin: 1rem 0 .95rem;
  max-width: 780px;
  color: inherit;
  font-size: clamp(2.2rem, 5vw, 4.35rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
h2 {
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.38rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
h3 { color: var(--navy); }
.lead {
  max-width: 760px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.45rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .78rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--primary-strong);
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.official-hero .btn { border-color: rgba(255,255,255,.34); }
.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 42, 84, .2);
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(18,104,179,.14);
  outline: none;
}
.btn.primary:hover,
.btn.primary:focus-visible { background: var(--primary-strong); }

.hero-panel,
.card,
.info-panel,
.qrcode-panel,
.overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.official-panel {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  color: var(--text);
  background: rgba(255,255,255,.97);
}
.official-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.facts-list,
.contact-list {
  display: grid;
  gap: .75rem;
  margin: 0;
}
.facts-list div,
.contact-list div {
  padding: .85rem .9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.facts-list dt,
.contact-list dt {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}
.facts-list dd,
.contact-list dd {
  margin: .16rem 0 0;
  color: var(--navy);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.facts-list a,
.contact-list a { color: var(--primary-strong); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.2rem 1.1rem;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}
.section-head h2 { margin: .8rem 0 0; }
.section-head p,
.section-copy {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 0;
}
.overview-card {
  padding: 1.5rem 1.6rem;
  border-left: 5px solid var(--primary);
}
.overview-card p { margin-bottom: .7rem; color: #34495e; }
.overview-card p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  min-height: 168px;
  padding: 1.25rem;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 34px rgba(18,104,179,.13);
}
.card .icon {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: .85rem;
  border-radius: 10px;
  background: #eaf4fc;
  color: var(--primary-strong);
  font-weight: 900;
}
.card h3 {
  margin: 0 0 .45rem;
  font-size: 1.08rem;
}
.card p {
  margin-bottom: .9rem;
  color: var(--muted);
  font-size: .95rem;
}
.card a,
.text-link,
.card-action {
  color: var(--primary-strong);
  font-weight: 900;
}
.card a:hover,
.text-link:hover { color: var(--accent); }
.service-card { border-top: 4px solid var(--primary); }
.portal-card { background: linear-gradient(180deg, #fff, #f8fbff); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.badge {
  padding: .25rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--primary-strong);
  font-size: .82rem;
  background: #fff;
}
.info-panel { padding: 1.4rem; }
.contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-list.single { grid-template-columns: 1fr; }
.page-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.1rem 1.2rem;
  text-align: center;
}
.page-hero h1 {
  margin-bottom: .8rem;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.page-hero p { color: var(--muted); }
.gradient-text { color: inherit; }
.qrcode-panel {
  max-width: 380px;
  margin: 1rem auto 0;
  padding: 1rem;
}
.qrcode-panel img { border-radius: 12px; background: #fff; }
.notice-box {
  padding: 1rem;
  border: 1px solid rgba(214,155,39,.3);
  border-radius: var(--radius-sm);
  background: #fff8ea;
  color: #74520c;
}
.form-row { display: grid; gap: .7rem; }
.select-line {
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
select {
  min-height: 46px;
  min-width: 240px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 .9rem;
  font: inherit;
}
.footer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--navy);
  color: #d9e8f3;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.15rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}
.footer a { color: #fff; font-weight: 700; }
.footer a:hover { color: #ffd782; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar-inner { display: none; }
  .navbar { align-items: center; }
  .brand strong { white-space: normal; }
  .brand > span > span { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8rem .9rem; }
  .hero { padding: 3.2rem 1rem 3rem; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .section { padding: 3.2rem 1rem; }
  .section-head { display: block; }
  .grid, .grid.two, .grid.three, .grid.four, .contact-list { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
