:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #eaf3f8;
  --text: #172331;
  --muted: #5d6b78;
  --line: #d8e4ed;
  --primary: #165b86;
  --primary-dark: #0d3552;
  --accent: #1596a6;
  --accent-soft: #dff4f5;
  --warning: #fff8df;
  --warning-line: #e3c96d;
  --shadow: 0 14px 34px rgba(19, 52, 79, 0.09);
  --shadow-strong: 0 18px 42px rgba(19, 52, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #f2f6f9 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--text);
  white-space: pre-wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 40px;
  background: rgba(247, 251, 255, 0.88);
  border-bottom: 1px solid rgba(216, 228, 237, 0.75);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.navbar-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(19, 52, 79, 0.08);
}

.brand {
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
}

.site-nav a.is-active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
}

.hero,
.section,
.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 40px;
  align-items: center;
  min-height: 640px;
  padding-top: 76px;
  padding-bottom: 72px;
}

.page {
  min-height: calc(100vh - 150px);
}

.page-hero {
  padding-top: 74px;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-text,
.lead,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-content,
.hero-panel,
.two-column > *,
.wechat-card > * {
  min-width: 0;
}

.hero-panel h2 {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 22px;
}

.hero-panel ul,
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li,
.clean-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.hero-panel li:last-child,
.clean-list li:last-child {
  border-bottom: 0;
}

.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 22px;
}

.section h2,
.page-hero h1 {
  margin-top: 0;
}

.section h2 {
  color: var(--primary-dark);
  font-size: 30px;
  line-height: 1.25;
}

.lead {
  max-width: 860px;
}

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

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.info-card,
.wechat-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(19, 52, 79, 0.045);
}

.hover-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 150, 166, 0.45);
  background: #fbfdff;
  box-shadow: var(--shadow-strong);
}

.service-card h3,
.info-card h3,
.wechat-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.service-card p,
.info-card p,
.wechat-card p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}

.section-highlight,
.highlight {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.notice {
  border: 1px solid var(--warning-line);
  border-radius: 8px;
  background: var(--warning);
}

.button,
.copy-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.secondary,
.copy-email-btn {
  background: var(--surface);
  color: var(--primary);
}

.button:hover,
.copy-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(19, 52, 79, 0.12);
}

.button:focus,
.copy-email-btn:focus,
.nav-toggle:focus {
  outline: 3px solid rgba(21, 150, 166, 0.28);
  outline-offset: 2px;
}

.button:active,
.copy-email-btn:active {
  transform: translateY(0);
}

.info-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.info-table div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.info-table div:last-child {
  border-bottom: 0;
}

.info-table strong {
  color: var(--primary-dark);
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.email-address {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
}

.wechat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 430px);
  gap: 24px;
  align-items: center;
}

.wechat-banner {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d3552;
  cursor: zoom-in;
}

.wechat-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  min-width: 180px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #ffffff;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 22, 34, 0.72);
}

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

.modal-content {
  position: relative;
  width: min(980px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.modal-content img {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(13, 53, 82, 0.88);
  color: #ffffff;
  cursor: pointer;
  font-size: 22px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 30px 40px;
  border-top: 1px solid #233849;
  background: #162536;
  color: #ffffff;
}

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

.site-footer a {
  color: #dcecf8;
  margin-left: 18px;
}

.footer-meta {
  color: #b9cad8;
  font-size: 14px;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-animate {
  opacity: 0;
  transform: translateY(16px);
  animation: heroEnter 0.72s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.08s; }
.hero-animate:nth-child(2) { animation-delay: 0.16s; }
.hero-animate:nth-child(3) { animation-delay: 0.24s; }
.hero-animate:nth-child(4) { animation-delay: 0.32s; }
.hero-animate:nth-child(5) { animation-delay: 0.4s; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in-section,
  .hero-animate,
  .hover-card,
  .button,
  .copy-email-btn {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
    justify-content: flex-start;
    gap: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 69px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

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

  .site-nav a {
    padding: 10px 0;
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .hero,
  .two-column,
  .wechat-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero,
  .section,
  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

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

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .site-footer a {
    display: inline-block;
    margin: 0 14px 8px 0;
  }

  .floating-contact {
    position: static;
    display: inline-flex;
    margin: 0 20px 20px;
  }
}

@media (max-width: 520px) {
  .hero-content,
  .hero-panel,
  .wechat-card,
  .info-card,
  .service-card {
    max-width: min(100%, 350px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 20px;
  }
}
