:root {
  --red: #c71920;
  --blue: #1673c9;
  --deep-blue: #0d3b70;
  --navy: #143253;
  --sky: #eef7ff;
  --line: #dce8f2;
  --text: #1d2b3a;
  --muted: #617286;
  --bg: #f5f8fb;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(13, 59, 112, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
  background: var(--bg);
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-line {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.top-line-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 20px rgba(20, 50, 83, 0.08);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.brand-mark i {
  display: block;
  border-radius: 5px;
}

.brand-mark i:nth-child(1) {
  background: #2aa7e8;
}

.brand-mark i:nth-child(2) {
  background: #6ec048;
}

.brand-mark i:nth-child(3) {
  background: #f1a31c;
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0;
}

.brand em {
  display: block;
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 14px;
  color: #24394f;
  font-size: 15px;
  border-radius: 4px;
}

.main-nav a:hover {
  color: var(--red);
  background: #f4f8fc;
}

.main-nav a.active {
  color: var(--red);
  background: #fff4f4;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(31, 139, 219, 0.18), transparent 30%),
    linear-gradient(135deg, #e8f5ff 0%, #ffffff 46%, #eef7ff 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -80px;
  height: 150px;
  background: var(--blue);
  border-radius: 50% 50% 0 0;
  opacity: 0.08;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 48px;
  padding: 58px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero h1,
.hero h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #42566d;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 24px rgba(199, 25, 32, 0.18);
}

.btn.secondary {
  color: var(--deep-blue);
  background: var(--white);
  border-color: #bcd6ea;
}

.hero-visual {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 70%;
  border: 1px solid rgba(22, 115, 201, 0.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,.82), rgba(255,255,255,.28)),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(22,115,201,.13) 59px 61px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(22,115,201,.12) 59px 61px);
  box-shadow: var(--shadow);
  transform: skewY(-3deg);
}

.building-card,
.data-card,
.map-card {
  position: relative;
  z-index: 1;
  width: min(390px, 100%);
  padding: 34px;
  color: var(--white);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--deep-blue), var(--blue));
  box-shadow: var(--shadow);
}

.building-card span,
.data-card span,
.map-card span {
  display: block;
  font-size: 15px;
  opacity: 0.92;
}

.building-card strong,
.data-card strong,
.map-card strong {
  display: block;
  margin: 12px 0;
  font-size: 30px;
  line-height: 1.25;
}

.building-card small,
.data-card small,
.map-card small {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 59, 112, 0.24);
  cursor: pointer;
}

.slider-dots button.active {
  background: var(--red);
}

.quick-section {
  position: relative;
  z-index: 3;
  margin-top: -32px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.quick-item {
  min-height: 128px;
  padding: 22px 18px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(20, 50, 83, 0.08);
}

.quick-item:hover {
  border-color: rgba(199, 25, 32, 0.35);
  transform: translateY(-2px);
}

.quick-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 700;
  border-radius: 4px;
  background: var(--blue);
}

.quick-item.featured span {
  background: var(--red);
}

.quick-item strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.quick-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.notice-bar {
  padding: 26px 0 0;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(20, 50, 83, 0.06);
}

.notice-inner strong {
  color: var(--red);
}

.notice-inner p {
  flex: 1;
  margin: 0;
  color: #43566b;
}

.notice-inner a,
.text-link {
  color: var(--blue);
  font-weight: 700;
}

.section-more {
  flex: 0 0 auto;
}

.section {
  padding: 78px 0;
}

.section h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
}

.section p {
  margin: 0 0 14px;
}

.section-lead {
  color: #344c64;
  font-size: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  align-items: center;
  gap: 52px;
}

.news-section {
  background: var(--bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  padding: 26px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(20, 50, 83, 0.06);
}

.news-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.news-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.news-card-head span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-card li {
  border-bottom: 1px dashed #d8e4ef;
}

.news-card li:last-child {
  border-bottom: 0;
}

.news-card a {
  display: block;
  padding: 14px 0;
}

.news-card a:hover span {
  color: var(--red);
}

.news-card a span {
  display: block;
  color: #263b51;
  line-height: 1.5;
}

.news-card time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.sub-hero {
  padding: 54px 0 50px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 59, 112, 0.92), rgba(22, 115, 201, 0.8)),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.sub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.18;
}

.sub-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.sub-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.news-page-section {
  background: var(--bg);
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.news-toolbar button {
  height: 38px;
  padding: 0 20px;
  color: var(--deep-blue);
  font: inherit;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.news-toolbar button.active,
.news-toolbar button:hover {
  color: var(--white);
  background: var(--deep-blue);
  border-color: var(--deep-blue);
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(20, 50, 83, 0.05);
}

.news-list-item:hover {
  border-color: rgba(22, 115, 201, 0.28);
}

.news-list-item h2 {
  margin: 8px 0 8px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.35;
}

.news-list-item p {
  margin: 0;
  color: var(--muted);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  background: #edf7ff;
  border-radius: 3px;
}

.news-date {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.article-section {
  background: var(--bg);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.article-card,
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(20, 50, 83, 0.05);
}

.article-card {
  padding: 34px 42px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 700;
}

.article-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  background: #fff2f2;
  border-radius: 3px;
}

.article-card h1 {
  margin: 14px 0 12px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.28;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  color: #263b51;
  font-size: 16px;
}

.article-body p {
  margin: 0 0 14px;
}

.article-body h2 {
  margin: 24px 0 10px;
  color: var(--navy);
  font-size: 22px;
}

.article-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.article-body li {
  margin: 6px 0;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  color: var(--blue);
  font-weight: 700;
}

.article-aside {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.aside-card {
  padding: 22px;
}

.aside-card.light {
  background: #f8fbff;
}

.aside-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 20px;
}

.aside-card a {
  display: block;
  padding: 9px 0;
  color: #344c64;
  border-bottom: 1px dashed #d8e4ef;
}

.aside-card a:last-child {
  border-bottom: 0;
}

.aside-card a:hover {
  color: var(--red);
}

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

.cms-news-tabs,
.cms-news-main {
  background: var(--white);
  border: 1px solid #e3edf5;
  border-radius: 6px;
}

.cms-news-tabs {
  overflow: hidden;
}

.cms-news-tabs h2 {
  margin: 0;
  padding: 18px 20px;
  color: var(--white);
  font-size: 20px;
  background: var(--deep-blue);
}

.cms-tab-item {
  display: block;
  padding: 14px 20px;
  color: #334960;
  font-weight: 600;
  border-bottom: 1px solid #edf2f7;
}

button.cms-tab-item {
  width: 100%;
  font: inherit;
  text-align: left;
  background: #fff;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  cursor: pointer;
}

.cms-tab-item:last-child {
  border-bottom: 0;
}

.cms-tab-item.active,
.cms-tab-item:hover {
  color: var(--red);
  background: #f8fbff;
}

.cms-news-main {
  overflow: hidden;
}

.cms-news-head {
  padding: 18px 22px;
  border-bottom: 1px solid #edf2f7;
}

.cms-news-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}

.reverse {
  grid-template-columns: 0.9fr 1fr;
}

.credential-panel,
.system-panel {
  padding: 22px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.credential-card {
  padding: 30px;
  color: var(--deep-blue);
  border: 1px solid #cfe0ee;
  border-radius: 4px;
  background: linear-gradient(135deg, #ffffff, #eff8ff);
}

.credential-card span {
  color: var(--red);
  font-weight: 700;
}

.credential-card strong {
  display: block;
  margin: 12px 0;
  font-size: 25px;
  line-height: 1.35;
}

.credential-card p {
  margin: 0;
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stat-row div {
  padding: 16px 10px;
  text-align: center;
  background: #f5f9fc;
  border-radius: 4px;
}

.stat-row strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
}

.stat-row span {
  color: var(--muted);
  font-size: 13px;
}

.services-section,
.history-section {
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 470px;
  color: var(--muted);
}

.section-head.compact {
  align-items: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 30px;
  border-radius: 6px;
  background: #f7fbff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.service-card.main-card {
  min-height: 390px;
}

.service-card.blue {
  background: #f0f8ff;
}

.service-card.navy {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-blue), var(--navy));
}

.service-card .num {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 800;
}

.service-card.navy .num {
  color: #ffb9bd;
}

.service-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 24px;
}

.service-card.navy h3 {
  color: var(--white);
}

.service-card p {
  color: #4e6072;
}

.service-card.navy p {
  color: rgba(255, 255, 255, 0.84);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.service-card li {
  position: relative;
  padding-left: 20px;
  margin: 8px 0;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

.service-card.navy li::before {
  background: #9ad4ff;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(22, 115, 201, 0.42);
  box-shadow: 0 12px 26px rgba(20, 50, 83, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.service-card.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--deep-blue), var(--navy));
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(13, 59, 112, 0.18);
}

.service-card.is-active .num {
  color: #ffb9bd;
}

.service-card.is-active h3 {
  color: var(--white);
}

.service-card.is-active p {
  color: rgba(255, 255, 255, 0.86);
}

.service-card.is-active li::before {
  background: #9ad4ff;
}

.aitiao-section {
  background: linear-gradient(180deg, #f5f8fb, #eef7ff);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-grid article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--white);
  font-weight: 700;
  border-radius: 4px;
  background: var(--red);
}

.process-grid h3 {
  margin: 16px 0 8px;
  color: var(--navy);
}

.process-grid p {
  color: var(--muted);
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.highlight-list div {
  padding: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.highlight-list strong {
  display: block;
  color: var(--deep-blue);
  margin-bottom: 4px;
}

.highlight-list span {
  color: var(--muted);
  font-size: 14px;
}

.system-screen {
  min-height: 310px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(13, 59, 112, 0.94), rgba(22, 115, 201, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255,255,255,.12) 37px 38px);
}

.system-screen span {
  color: #bde4ff;
  font-weight: 700;
}

.system-screen strong {
  display: block;
  margin: 14px 0;
  font-size: 30px;
  line-height: 1.3;
}

.system-screen p {
  color: rgba(255, 255, 255, 0.85);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.feature-grid div {
  padding: 14px 16px;
  color: var(--deep-blue);
  font-weight: 700;
  background: var(--white);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(20, 50, 83, 0.06);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.timeline article {
  position: relative;
  min-height: 230px;
  padding: 26px;
  border-radius: 6px;
  background: #f7fbff;
  border: 1px solid var(--line);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 70px;
  width: 34px;
  height: 3px;
  background: var(--red);
}

.timeline time {
  display: block;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.timeline p {
  margin-top: 34px;
  color: var(--muted);
}

.vision-section {
  padding-top: 0;
}

.vision-box {
  padding: 42px;
  color: var(--white);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--deep-blue), #155f9f);
}

.vision-box .section-kicker,
.vision-box h2,
.vision-box p {
  color: var(--white);
}

.vision-box p {
  max-width: 980px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 36px;
  padding: 46px 0 26px;
}

.footer-brand strong,
.footer-brand em {
  color: var(--white);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.copyright {
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 120;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  width: min(440px, calc(100% - 36px));
  min-height: 96px;
  padding: 20px 24px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(16, 51, 86, 0.98), rgba(11, 82, 142, 0.96)),
    var(--deep-blue);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow:
    0 26px 70px rgba(8, 30, 54, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -42%) scale(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast::before {
  content: "AI";
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #d72632, #2387d8);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(5, 22, 41, 0.22);
}

.toast::after {
  content: attr(data-toast-detail);
  grid-column: 2;
  display: block;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 400;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body.modal-open {
  overflow: hidden;
}

.mediation-modal[hidden] {
  display: none;
}

.mediation-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.mediation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 52, 0.46);
}

.mediation-dialog {
  position: relative;
  width: min(940px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 42px));
  margin: 18px auto;
  padding: 26px 28px 20px;
  overflow: auto;
  background: #fff;
  border-top: 4px solid var(--red);
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(13, 31, 52, 0.24);
}

.mediation-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  color: #60738a;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mediation-head {
  padding-right: 42px;
}

.mediation-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: var(--red);
  border-radius: 999px;
}

.mediation-head b {
  display: inline-flex;
  margin-left: 10px;
  color: #24756b;
  font-size: 14px;
  font-weight: 700;
}

.mediation-head h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.22;
}

.mediation-head p {
  max-width: 760px;
  margin: 0;
  color: #4f6073;
  font-size: 14px;
  line-height: 1.8;
}

.mediation-search {
  width: 100%;
  height: 42px;
  margin: 16px 0 18px;
  padding: 0 14px;
  color: #24394f;
  font: inherit;
  background: #fff;
  border: 1px solid #b9d6ee;
  border-radius: 4px;
  outline: none;
}

.mediation-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 115, 201, 0.12);
}

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

.mediation-org {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  min-height: 164px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dbe8f3;
  border-radius: 6px;
}

.mediation-org:hover {
  border-color: rgba(22, 115, 201, 0.36);
  background: #fbfdff;
}

.mediation-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  background: var(--blue);
  border-radius: 6px;
}

.mediation-logo.tone-0 {
  background: #c71920;
}

.mediation-logo.tone-1 {
  background: #2d73cf;
}

.mediation-logo.tone-2 {
  background: #143f78;
}

.mediation-logo.tone-3 {
  background: #277d68;
}

.mediation-logo.tone-4 {
  background: #7b4bd6;
}

.mediation-logo.tone-5 {
  background: #d47a00;
}

.mediation-info {
  min-width: 0;
}

.mediation-info h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.42;
}

.mediation-info p {
  margin: 0 0 3px;
  color: #62758a;
  font-size: 13px;
  line-height: 1.5;
}

.mediation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 0 10px;
}

.mediation-tags span {
  display: inline-flex;
  align-items: center;
  max-width: 86px;
  min-height: 20px;
  padding: 0 6px;
  overflow: hidden;
  color: #1d63d6;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #f2f7ff;
  border: 1px solid #cfe0ff;
  border-radius: 3px;
}

.mediation-info button {
  padding: 0;
  color: var(--red);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mediation-info button::after {
  content: " >";
}

.mediation-info button:disabled {
  color: #98a7b5;
  cursor: not-allowed;
}

.mediation-empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  background: #f8fbff;
  border: 1px dashed #cfe0ee;
  border-radius: 6px;
}

.mediation-foot {
  margin: 14px 0 0;
  color: #5e7084;
  font-size: 13px;
}

/* Visual polish pass: tighter rhythm, calmer cards, more formal public-service look. */
body {
  line-height: 1.62;
  background:
    linear-gradient(180deg, #f7fbff 0, #f4f7fb 360px, #f5f8fb 100%);
}

.top-line-inner {
  padding: 6px 0;
}

.nav-wrap {
  min-height: 68px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  gap: 4px;
}

.brand strong {
  font-size: 20px;
}

.main-nav a {
  padding: 8px 12px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(13, 59, 112, 0.88), rgba(22, 115, 201, 0.76)),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(135deg, #e8f5ff 0%, #ffffff 46%, #eef7ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.05) 79px 80px),
    linear-gradient(0deg, transparent 0 78px, rgba(255, 255, 255, 0.05) 79px 80px);
  opacity: 0.42;
}

.hero::after {
  opacity: 0.16;
  background: var(--white);
}

.hero-slider,
.hero-grid {
  min-height: 460px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  padding: 44px 0 62px;
}

.hero h1,
.hero h2,
.hero-lead,
.hero .eyebrow {
  color: var(--white);
}

.hero .eyebrow {
  opacity: 0.9;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  text-shadow: 0 8px 20px rgba(10, 35, 63, 0.18);
}

.hero-lead {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
}

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

.btn {
  min-height: 42px;
  padding: 0 22px;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero-visual {
  min-height: 300px;
}

.hero-visual::before {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.34)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(22,115,201,.13) 53px 55px),
    repeating-linear-gradient(0deg, transparent 0 52px, rgba(22,115,201,.12) 53px 55px);
}

.building-card,
.data-card,
.map-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--deep-blue);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.building-card strong,
.data-card strong,
.map-card strong {
  margin: 8px 0;
  font-size: 26px;
}

.building-card small,
.data-card small,
.map-card small {
  color: var(--muted);
}

.quick-section {
  margin-top: -26px;
}

.quick-grid {
  gap: 12px;
}

.quick-item {
  min-height: 112px;
  padding: 18px 16px;
}

.quick-item span {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.quick-item strong {
  font-size: 17px;
}

.notice-bar {
  padding-top: 18px;
}

.notice-inner {
  padding: 12px 16px;
}

.section {
  padding: 44px 0;
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.section p {
  margin-bottom: 10px;
}

.section-head {
  margin-bottom: 18px;
}

.section-lead {
  font-size: 17px;
}

.two-col {
  gap: 38px;
}

.news-grid,
.service-grid {
  gap: 14px;
}

.news-card,
.service-card,
.process-grid article,
.timeline article,
.credential-panel,
.system-panel {
  box-shadow: 0 8px 20px rgba(20, 50, 83, 0.06);
}

.news-card {
  padding: 22px 22px 18px;
}

.news-card-head {
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.news-card a {
  padding: 10px 0;
}

.news-card a span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.credential-card {
  padding: 24px;
}

.credential-card strong {
  font-size: 22px;
}

.service-card {
  padding: 24px;
}

.service-card.main-card {
  min-height: 334px;
}

.service-card .num {
  margin-bottom: 10px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.service-card ul {
  margin-top: 16px;
}

.service-card li {
  margin: 6px 0;
}

.process-grid {
  gap: 12px;
}

.process-grid article {
  padding: 22px;
}

.process-grid h3 {
  margin: 12px 0 6px;
}

.highlight-list {
  gap: 12px;
  margin-top: 14px;
}

.highlight-list div {
  padding: 16px;
}

.system-screen {
  min-height: 270px;
  padding: 30px;
}

.feature-grid {
  gap: 10px;
  margin-top: 20px;
}

.timeline {
  gap: 12px;
}

.timeline article {
  min-height: 196px;
  padding: 22px;
}

.timeline article::before {
  left: 22px;
  top: 62px;
}

.timeline p {
  margin-top: 28px;
}

.vision-section {
  padding-top: 0;
  padding-bottom: 42px;
}

.vision-box {
  padding: 34px;
}

.footer-grid {
  padding: 36px 0 22px;
}

/* Compact homepage rhythm: reduce large gaps between major website blocks. */
.hero-slider,
.hero-grid {
  min-height: 410px;
}

.hero-grid {
  padding: 30px 0 48px;
}

.hero-visual {
  min-height: 270px;
}

.quick-section {
  margin-top: -20px;
}

.quick-item {
  min-height: 104px;
  padding: 16px 16px;
}

.notice-bar {
  padding-top: 12px;
}

.section {
  padding: 38px 0;
}

.news-section {
  padding-top: 34px;
  padding-bottom: 36px;
}

.about-section {
  padding-top: 34px;
  padding-bottom: 40px;
}

.services-section {
  padding-top: 40px;
  padding-bottom: 42px;
}

.aitiao-section {
  padding-top: 40px;
  padding-bottom: 42px;
}

.fengqiao-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.history-section {
  padding-top: 40px;
  padding-bottom: 36px;
}

.vision-section {
  padding-bottom: 36px;
}

.section-head {
  margin-bottom: 16px;
}

.news-card,
.service-card,
.process-grid article,
.timeline article {
  padding-top: 20px;
  padding-bottom: 20px;
}

.service-card.main-card {
  min-height: 310px;
}

.process-grid h3 {
  margin-top: 10px;
}

.system-screen {
  min-height: 250px;
}

.timeline article {
  min-height: 180px;
}

.vision-box {
  padding: 30px 34px;
}

.footer-grid {
  padding: 28px 0 16px;
}

.media-credential {
  padding: 18px;
}

.credential-images {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.credential-images figure,
.coverage-panel figure,
.timeline-media {
  margin: 0;
}

.credential-images figure {
  overflow: hidden;
  border: 1px solid #d6e5f0;
  border-radius: 6px;
  background: #f7fbff;
}

.credential-images img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.credential-images figcaption,
.coverage-panel figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid #e1edf6;
}

.coverage-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #d8e6f2;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
}

.coverage-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
}

.coverage-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.coverage-panel img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
}

.timeline article {
  display: flex;
  flex-direction: column;
}

.timeline-media {
  overflow: hidden;
  height: 118px;
  margin-bottom: 14px;
  border: 1px solid #d8e6f2;
  border-radius: 5px;
  background: #fff;
}

.timeline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-media.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.timeline-media.split img {
  border-right: 1px solid #d8e6f2;
}

.timeline-media.split img:last-child {
  border-right: 0;
}

.timeline-media.portrait img {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.timeline article::before {
  display: none;
}

.timeline time {
  margin-top: 2px;
}

.timeline p {
  margin-top: 12px;
}

/* Clean news presentation: simple, readable, less card-heavy. */
.news-section .section-head {
  align-items: center;
}

.news-card {
  padding: 20px 22px 16px;
  border-color: #e3edf5;
  box-shadow: none;
}

.news-card-head {
  padding-bottom: 9px;
  margin-bottom: 2px;
}

.news-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.news-card-head span {
  color: #7c8ea2;
  font-size: 12px;
}

.news-card a {
  padding: 9px 0;
}

.news-card a span {
  color: #25384b;
  font-size: 14px;
  line-height: 1.48;
}

.news-card time {
  margin-top: 2px;
  font-size: 12px;
}

.sub-hero {
  padding: 42px 0 38px;
}

.sub-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
}

.sub-hero p {
  font-size: 15px;
}

.news-page-section {
  padding-top: 28px;
  padding-bottom: 40px;
}

.news-toolbar {
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  background: var(--white);
  border: 1px solid #e3edf5;
  border-radius: 6px;
}

.news-toolbar button {
  height: 34px;
  padding: 0 16px;
  color: #38506a;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border-color: transparent;
}

.news-toolbar button.active,
.news-toolbar button:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.news-list {
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e3edf5;
  border-radius: 6px;
  box-shadow: none;
}

.news-list-item {
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 18px;
  align-items: start;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  box-shadow: none;
}

.news-list-item:last-child {
  border-bottom: 0;
}

.news-list-item:hover {
  background: #f8fbff;
  border-color: #edf2f7;
}

.news-list-item h2 {
  margin: 5px 0 6px;
  color: #1d334a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.42;
}

.news-list-item:hover h2 {
  color: var(--blue);
}

.news-list-item p {
  color: #68798b;
  font-size: 14px;
  line-height: 1.55;
}

.news-tag {
  min-height: 22px;
  padding: 0 8px;
  color: #c71920;
  font-size: 12px;
  font-weight: 600;
  background: #fff4f4;
}

.news-date {
  padding-top: 4px;
  color: #7a8999;
  font-size: 13px;
  text-align: right;
}

.article-section {
  padding-top: 32px;
  padding-bottom: 42px;
}

.article-card {
  padding: 30px 38px;
  box-shadow: none;
}

.back-link {
  margin-bottom: 14px;
  font-size: 14px;
}

.article-card h1 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
}

.article-meta {
  padding-bottom: 14px;
  margin-bottom: 18px;
  font-size: 13px;
}

.article-body {
  font-size: 15px;
  line-height: 1.78;
}

.article-body p {
  margin-bottom: 12px;
}

.article-body h2 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.aside-card {
  box-shadow: none;
}

/* Homepage light motion pass: restrained public-service style. */
main#home .hero {
  isolation: isolate;
}

main#home .hero::before {
  animation: heroGridDrift 18s linear infinite;
}

main#home .hero-copy {
  animation: heroCopyIn 0.72s ease both;
}

main#home .hero-visual {
  animation: heroFloat 6.5s ease-in-out infinite;
}

main#home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 12% 4% auto auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), transparent 68%);
  transform: translate3d(0, 0, 0);
  animation: softPulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

main#home .building-card,
main#home .data-card,
main#home .map-card {
  position: relative;
  overflow: hidden;
}

main#home .building-card::after,
main#home .data-card::after,
main#home .map-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(22, 115, 201, 0.1) 48%, transparent 78%);
  transform: translateX(-110%);
  animation: cardSheen 5.8s ease-in-out infinite;
}

main#home .quick-item,
main#home .service-card,
main#home .news-card,
main#home .process-grid article,
main#home .highlight-list div,
main#home .timeline article,
main#home .credential-images figure,
main#home .coverage-panel,
main#home .feature-grid div {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

main#home .quick-item:hover,
main#home .quick-item:focus-visible {
  border-color: rgba(22, 115, 201, 0.42);
  box-shadow: 0 16px 32px rgba(20, 50, 83, 0.12);
  transform: translateY(-4px);
}

main#home .quick-item:hover span,
main#home .quick-item:focus-visible span {
  box-shadow: 0 0 0 6px rgba(22, 115, 201, 0.1);
}

main#home .quick-item.featured:hover span,
main#home .quick-item.featured:focus-visible span {
  box-shadow: 0 0 0 6px rgba(199, 25, 32, 0.1);
}

main#home .service-card {
  position: relative;
  overflow: hidden;
}

main#home .service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

main#home .service-card:hover::after,
main#home .service-card:focus-visible::after,
main#home .service-card.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main#home .service-card:hover,
main#home .credential-images figure:hover,
main#home .timeline article:hover {
  box-shadow: 0 18px 36px rgba(20, 50, 83, 0.12);
  transform: translateY(-4px);
}

main#home .credential-images img,
main#home .timeline-media img,
main#home .coverage-panel img {
  transition: transform 0.35s ease;
}

main#home .credential-images figure:hover img,
main#home .timeline article:hover img,
main#home .coverage-panel:hover img {
  transform: scale(1.035);
}

main#home .timeline article {
  overflow: hidden;
}

main#home .timeline article::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(199, 25, 32, 0.09);
}

main#home .timeline time {
  padding-left: 18px;
}

main#home .feature-grid div:hover {
  color: var(--white);
  background: var(--deep-blue);
  transform: translateY(-2px);
}

main#home.reveal-ready .section,
main#home.reveal-ready .quick-item,
main#home.reveal-ready .news-card,
main#home.reveal-ready .service-card,
main#home.reveal-ready .process-grid article,
main#home.reveal-ready .highlight-list div,
main#home.reveal-ready .timeline article,
main#home.reveal-ready .vision-box {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.46s ease,
    transform 0.46s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

main#home.reveal-ready .is-visible,
main#home.reveal-ready .is-visible .quick-item,
main#home.reveal-ready .is-visible .news-card,
main#home.reveal-ready .is-visible .service-card,
main#home.reveal-ready .is-visible .process-grid article,
main#home.reveal-ready .is-visible .highlight-list div,
main#home.reveal-ready .is-visible .timeline article,
main#home.reveal-ready .vision-box.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main#home.reveal-ready .is-visible .quick-item,
main#home.reveal-ready .is-visible .news-card,
main#home.reveal-ready .is-visible .service-card,
main#home.reveal-ready .is-visible .process-grid article,
main#home.reveal-ready .is-visible .highlight-list div,
main#home.reveal-ready .is-visible .timeline article {
  transition-delay: calc(var(--reveal-index, 0) * 55ms);
}

main#home.reveal-ready .is-visible .quick-item:hover,
main#home.reveal-ready .is-visible .quick-item:focus-visible,
main#home.reveal-ready .is-visible .service-card:hover,
main#home.reveal-ready .is-visible .service-card:focus-visible,
main#home.reveal-ready .is-visible .credential-images figure:hover,
main#home.reveal-ready .is-visible .timeline article:hover {
  transform: translateY(-4px);
}

main#home.reveal-ready .is-visible .feature-grid div:hover {
  transform: translateY(-2px);
}

@keyframes heroGridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 80px 80px, 80px 80px;
  }
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes cardSheen {
  0%,
  42% {
    transform: translateX(-110%);
  }
  68%,
  100% {
    transform: translateX(110%);
  }
}

@media (prefers-reduced-motion: reduce) {
  main#home *,
  main#home *::before,
  main#home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 122px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-grid,
  .two-col,
  .reverse {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
    padding-top: 44px;
  }

  .quick-grid,
  .news-grid,
  .service-grid,
  .process-grid,
  .highlight-list,
  .timeline,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }

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

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

  .article-aside {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .top-line-inner {
    display: block;
  }

  .top-line-inner span {
    display: block;
  }

  .brand strong {
    font-size: 19px;
  }

  .main-nav {
    top: 114px;
  }

  .hero-slider,
  .hero-grid {
    min-height: 670px;
  }

  .hero h1,
  .hero h2 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 230px;
  }

  .building-card,
  .data-card,
  .map-card {
    padding: 24px;
  }

  .quick-grid,
  .news-grid,
  .service-grid,
  .process-grid,
  .highlight-list,
  .timeline,
  .footer-grid,
  .feature-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .quick-section {
    margin-top: 0;
    padding-top: 16px;
  }

  .notice-inner {
    display: block;
  }

  .section {
    padding: 54px 0;
  }

  main#home .section {
    padding: 40px 0;
  }

  .sub-hero {
    padding: 42px 0 38px;
  }

  .news-list-item {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .news-list-item h2 {
    font-size: 19px;
  }

  .article-card {
    padding: 24px;
  }

  .article-nav {
    display: grid;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .mediation-dialog {
    width: min(100% - 16px, 940px);
    max-height: calc(100vh - 18px);
    margin: 8px auto;
    padding: 22px 16px 18px;
  }

  .mediation-head h2 {
    font-size: 24px;
  }

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

  .mediation-org {
    min-height: auto;
  }

  .credential-card,
  .service-card,
  .process-grid article,
  .timeline article,
  .vision-box {
    padding: 24px;
  }
}

main#home.home-focused .vision-with-honors {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

main#home .vision-with-honors h2 {
  color: var(--navy);
}

main#home .vision-with-honors .section-kicker {
  color: var(--blue);
}

main#home .vision-with-honors .vision-copy > p:last-child {
  color: #344c64;
  line-height: 1.85;
}

.vision-honors {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
}

.vision-honors figure {
  min-width: 0;
  margin: 0;
}

.vision-honors img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.vision-honors figcaption {
  margin-top: 10px;
  color: #52677b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  main#home.home-focused .vision-with-honors {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vision-honors {
    width: min(100%, 520px);
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .vision-honors img {
    height: 150px;
  }
}

.product-workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.product-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px 0;
  counter-reset: product;
}

.product-tabs button {
  min-height: 66px;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid transparent;
  background: #f5f7fa;
  text-align: left;
  color: #52677b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.product-tabs button::before {
  counter-increment: product;
  content: "0" counter(product);
  display: inline-block;
  margin-right: 10px;
  font-size: 12px;
  opacity: 0.65;
}

.product-tabs button:hover {
  background: #f3f7fb;
  color: var(--blue);
}

.product-tabs button[aria-selected="true"] {
  border-left-color: #cf3441;
  color: #fff;
  background: #1466a9;
}

.product-tabs button:focus-visible,
.product-detail:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.product-details {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.product-detail {
  padding: 4px 0;
  min-width: 0;
}

.product-details .product-detail[hidden] {
  display: none;
}

.product-detail header h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
}

.product-detail header p {
  color: var(--blue);
}

.product-detail-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.product-content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #52677b;
  font-size: 14px;
}

.product-content-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e8edf2;
}

.product-detail h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.product-detail-columns p {
  color: #52677b;
  line-height: 1.85;
}

.product-highlights {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #344c64;
  font-size: 14px;
}

.product-highlights li::before {
  content: "\2713";
  margin-right: 8px;
  color: #208575;
  font-weight: 700;
}

@media (max-width: 760px) {
  .product-workspace { grid-template-columns: 1fr; gap: 18px; }
  .product-details { border-left: 0; padding-left: 0; }
  .product-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .product-tabs button { min-height: 52px; font-size: 14px; padding: 10px 8px; }
  .product-tabs button::before { display: none; }
  .product-tabs button:last-child { grid-column: 1 / -1; }
  .product-content-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail-columns { grid-template-columns: 1fr; gap: 14px; }
  .product-detail header h3 { font-size: 22px; }
}

.image-zoom-trigger {
  cursor: zoom-in;
}

.image-zoom-trigger:focus-visible {
  outline: 3px solid #1673c9;
  outline-offset: -3px;
}

.home-image-preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 24px 24px;
  border: 0;
  background: transparent;
  color: #18334d;
}

.home-image-preview::backdrop {
  background: rgba(255, 255, 255, 0.28);
  animation: image-backdrop-in 500ms ease both;
}

.home-image-preview.is-closing::backdrop {
  animation: image-backdrop-out 500ms ease both;
}

@keyframes image-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes image-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-image-preview::backdrop {
    animation: none;
  }
}

.home-image-preview[open] {
  display: grid;
  place-items: center;
}

.home-image-preview figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 56px rgba(20, 40, 60, 0.24);
  text-align: center;
}

.home-image-preview img {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: none;
}

.home-image-preview figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.image-preview-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce5ed;
  border-radius: 50%;
  background: #fff;
  color: #18334d;
  box-shadow: 0 4px 16px rgba(20, 40, 60, 0.12);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.image-preview-close:hover,
.image-preview-close:focus-visible {
  background: #edf4fa;
  outline: 2px solid #1673c9;
  outline-offset: 3px;
}

/* Content hierarchy is opt-in so CMS copies retain their current layout. */
main#home.home-focused .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

main#home.home-focused .service-card.main-card {
  min-height: 286px;
}

main#home.home-focused .support-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

main#home.home-focused .support-services h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 18px;
}

main#home.home-focused .support-services p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

main#home.home-focused .coverage-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 20px 0 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 980px) {
  main#home.home-focused .service-card {
    padding: 20px 16px;
  }

  main#home.home-focused .service-card h3 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  main#home.home-focused .service-grid,
  main#home.home-focused .support-services {
    grid-template-columns: 1fr;
  }

  main#home.home-focused .service-card.main-card {
    min-height: 0;
    padding: 22px;
  }
}

/* Product cards: lightweight 3D tilt, scoped to the homepage service module. */
main#home .service-grid {
  perspective: 1100px;
}

main#home .service-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

main#home .service-card:hover,
main#home .service-card:focus-visible,
main#home.reveal-ready .is-visible .service-card:hover,
main#home.reveal-ready .is-visible .service-card:focus-visible {
  --lift: -7px;
  box-shadow:
    0 20px 42px rgba(20, 50, 83, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
}

main#home .service-card.is-active {
  --lift: -2px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
}

main#home .service-card h3,
main#home .service-card p,
main#home .service-card ul,
main#home .service-card .num {
  position: relative;
  z-index: 1;
}

main#home .service-card h3 {
  transform: translateZ(18px);
}

main#home .service-card .num {
  transform: translateZ(24px);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  main#home .service-card,
  main#home .service-card:hover,
  main#home .service-card:focus-visible {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: translateY(var(--lift));
  }
}
