:root {
  --ink: #17242e;
  --muted: #5c6870;
  --paper: #fbfcfb;
  --mist: #eff5f3;
  --line: #d9e3df;
  --river: #145b72;
  --river-deep: #123c50;
  --leaf: #2f6b55;
  --civic-red: #b53228;
  --gold: #d99b2b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 60, 80, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(20, 91, 114, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(47, 107, 85, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 252, 251, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(18, 60, 80, 0.12);
  backdrop-filter: blur(18px);
}

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

.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.site-header.is-scrolled .brand__mark,
.site-header.is-open .brand__mark {
  box-shadow: 0 8px 24px rgba(18, 60, 80, 0.12);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__name {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand__domain {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
}

.site-header.is-scrolled .brand__domain,
.site-header.is-open .brand__domain {
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .site-nav a,
.site-header.is-open .site-nav a {
  color: var(--ink);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  border-color: var(--line);
  background: var(--white);
}

.nav-toggle__line {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.nav-toggle__line:nth-child(1) {
  transform: translate(-50%, -8px);
}

.nav-toggle__line:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle__line:nth-child(3) {
  transform: translate(-50%, 6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("assets/jiading_cityscape.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(13, 32, 42, 0.88), rgba(13, 32, 42, 0.62) 47%, rgba(13, 32, 42, 0.16)),
    linear-gradient(180deg, rgba(13, 32, 42, 0.24), rgba(13, 32, 42, 0.7));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 44px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 9em;
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 5.2rem;
  line-height: 1.02;
  font-weight: 800;
  text-wrap: balance;
}

.hero__lead {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--civic-red);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(181, 50, 40, 0.28);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 16px;
  max-width: 620px;
  margin: 42px 0 0;
  padding: 0;
}

.hero__facts div {
  padding: 0 0 0 16px;
  border-left: 3px solid var(--gold);
}

.hero__facts dt {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero__facts dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.section {
  padding: 84px 0;
}

.section--intro {
  padding-top: 48px;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 2.45rem;
  line-height: 1.18;
  font-weight: 800;
  text-wrap: balance;
}

.intro-copy p,
.section-head p,
.partner-layout p,
.contact-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.intro-copy {
  display: grid;
  gap: 16px;
  border-left: 4px solid var(--river);
  padding-left: 24px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 14px;
}

.section-head--center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

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

.service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(18, 60, 80, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 91, 114, 0.36);
  box-shadow: var(--shadow);
}

.service-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--river);
  color: var(--white);
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-weight: 800;
}

.service-card:nth-child(2) .service-card__index {
  background: var(--leaf);
}

.service-card:nth-child(3) .service-card__index {
  background: var(--civic-red);
}

.service-card:nth-child(4) .service-card__index {
  background: var(--gold);
  color: var(--ink);
}

.service-card h3 {
  margin: 22px 0 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.service-card p,
.qr-card p,
.partner-panel span {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section--matrix {
  background:
    linear-gradient(135deg, rgba(18, 60, 80, 0.94), rgba(20, 91, 114, 0.9)),
    url("assets/jiading_cityscape.jpg") center / cover;
  color: var(--white);
}

.section--matrix .section-kicker,
.section--matrix .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.qr-card {
  display: grid;
  justify-items: center;
  min-height: 320px;
  padding: 22px 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.qr-card img {
  width: 180px;
  height: 180px;
  border: 8px solid var(--white);
  border-radius: 8px;
  object-fit: cover;
}

.qr-card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
}

.section--partners {
  background: var(--white);
}

.partner-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.partner-layout h2,
.contact-layout h2 {
  margin-bottom: 16px;
}

.partner-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.partner-panel div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.partner-panel div:last-child {
  border-bottom: 0;
}

.partner-panel strong {
  color: var(--river-deep);
  font-size: 1.02rem;
}

.section--contact {
  background:
    linear-gradient(90deg, rgba(47, 107, 85, 0.08), rgba(217, 155, 43, 0.08)),
    var(--mist);
}

.contact-list {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(18, 60, 80, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.contact-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 91, 114, 0.36);
}

.contact-list span {
  color: var(--river);
  font-weight: 800;
}

.site-footer {
  padding: 26px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--white);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  font-size: 0.9rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@media (max-width: 980px) {
  .site-header {
    min-height: 70px;
    padding: 10px 20px;
  }

  .brand__mark {
    width: 46px;
    height: 46px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 16px;
    left: 16px;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 252, 251, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-header.is-scrolled .site-nav a,
  .site-header.is-open .site-nav a {
    color: var(--ink);
    padding: 12px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .intro-grid,
  .partner-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .brand__name {
    font-size: 1.08rem;
  }

  .brand__domain {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(13, 32, 42, 0.68), rgba(13, 32, 42, 0.9)),
      linear-gradient(90deg, rgba(13, 32, 42, 0.72), rgba(13, 32, 42, 0.34));
  }

  .hero__content {
    padding-top: 94px;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__lead {
    font-size: 1.24rem;
  }

  .hero__copy {
    font-size: 1rem;
  }

  .hero__actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }

  .hero__facts div {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: end;
    gap: 10px;
  }

  .hero__facts dd {
    margin: 0 0 2px;
  }

  .section {
    padding: 60px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .intro-copy {
    padding-left: 18px;
  }

  .service-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }

  .partner-panel div,
  .contact-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}
