:root {
  --ink: #17202a;
  --muted: #5d6978;
  --line: #dfe6ee;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --blue: #2364d2;
  --teal: #0f8f83;
  --gold: #d88a18;
  --red: #cf3b2e;
  --shadow: 0 18px 44px rgba(22, 37, 54, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.modal-lock {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 230, 238, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 700;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #344255;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 23px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #10243a;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 28, 45, 0.9), rgba(13, 28, 45, 0.62) 46%, rgba(13, 28, 45, 0.28)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(180deg, rgba(16, 36, 58, 0), rgba(16, 36, 58, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 76px 0 58px;
}

.hero h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(22px, 6.8vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  white-space: nowrap;
}

.hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.primary-action,
.secondary-action,
.pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(15, 143, 131, 0.26);
}

.secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action,
.secondary-action {
  padding: 0 22px;
}

.primary-action:hover,
.secondary-action:hover,
.pay-button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 54px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.intro-band,
.services,
.news-section,
.contact-band {
  padding: 74px 0;
}

.intro-band {
  background: var(--paper);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 58px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.with-action {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  gap: 24px;
}

.section-heading h2,
.intro-layout h2,
.contact-layout h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.intro-copy {
  color: #344255;
  font-size: 17px;
}

.intro-copy p {
  margin: 0 0 16px;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

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

.service-card,
.news-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(22, 37, 54, 0.06);
}

.service-card {
  padding: 24px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 32px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.service-card:nth-child(2) .service-icon {
  background: var(--teal);
}

.service-card:nth-child(3) .service-icon {
  background: var(--gold);
}

.service-card:nth-child(4) .service-icon {
  background: #5d54b8;
}

.service-card h3 {
  margin: 18px 0 8px;
  font-size: 20px;
}

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

.news-section {
  background: #eef4f8;
}

.section-note {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

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

.news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d8e1ea;
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.news-card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.news-summary {
  margin: 0;
  color: var(--muted);
}

.paid-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 14px;
  color: var(--red);
  font-weight: 700;
}

.paid-line::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--red);
  border-radius: 999px;
}

.pay-button {
  width: 100%;
  margin-top: auto;
  color: #fff;
  background: var(--blue);
}

.contact-band {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.contact-layout p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  color: #344255;
  font-style: normal;
}

.site-footer {
  padding: 30px;
  color: rgba(255, 255, 255, 0.78);
  background: #17202a;
  border-top: 1px #ccc solid;
  font-family: "PingFang SC", "Microsoft YaHei", HelveticaNeue-Thin, "Helvetica Neue", Helvetica, Arial;
  font-size: 14px;
  line-height: 24px;
}

.site-footer .container {
  width: 1280px;
  margin: 0 auto;
}

.footer-layout {
  display: block;
}

.footer-layout::after {
  clear: both;
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  content: ".";
}

.footer-layout > h3 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: revert;
  font-weight: normal;
  line-height: 24px;
}

.footer-about-list {
  display: block;
  float: left;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  list-style: none;
}

.footer-about-list li {
  display: block;
  float: left;
  width: 70%;
  line-height: 24px;
}

.footer-about-list .footer-main-row {
  width: 100%;
}

.footer-record {
  display: block;
  float: right;
  color: rgba(255, 255, 255, 0.68);
  line-height: 24px;
  text-align: left;
}

.footer-record p {
  margin: 0;
}

.footer-record .tr {
  text-align: right;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 28, 0.64);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: #eef3f7;
  border-radius: 8px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-panel h2 {
  margin: 0 34px 10px 0;
  font-size: 26px;
  line-height: 1.25;
}

.modal-copy {
  color: var(--muted);
}

.modal-copy {
  margin: 0 0 18px;
}

.payment-qr {
  display: block;
  width: auto;
  height: auto;
  max-width: min(300px, 100%);
  max-height: 52vh;
  margin: 18px auto;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 8px 0;
  }

  .site-nav a::after {
    bottom: 2px;
  }

  .hero {
    min-height: 570px;
  }

  .intro-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 414px) {
  .site-footer .container {
    width: 100%;
  }

  .footer-about-list li {
    width: 100%;
  }

  .footer-record .tr {
    text-align: left;
  }
}

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

  .brand-text {
    max-width: 100%;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 64px 0 42px;
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-stats,
  .service-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .intro-band,
  .services,
  .news-section,
  .contact-band {
    padding: 52px 0;
  }

  .section-heading.with-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }

  .modal-panel {
    padding: 24px;
  }
}
