:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-alt: #eaf4f5;
  --text: #18242f;
  --muted: #5b6875;
  --line: #d9e5e9;
  --primary: #176b87;
  --primary-dark: #0f4f66;
  --accent: #b45f3a;
  --shadow: 0 18px 45px rgba(17, 55, 75, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfdff 0%, #eef6f7 42%, var(--bg) 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 229, 233, 0.9);
  box-shadow: 0 8px 28px rgba(24, 36, 47, 0.04);
}

.nav-wrap,
.footer-wrap,
.hero-grid,
.price-row {
  display: flex;
  align-items: center;
}

.nav-wrap,
.footer-wrap {
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.brand,
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.hero,
.section {
  padding: 72px 0;
}

.hero {
  background:
    linear-gradient(135deg, rgba(23, 107, 135, 0.12), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32));
  border-bottom: 1px solid rgba(217, 229, 233, 0.75);
}

.hero-grid {
  justify-content: space-between;
  gap: 28px;
}

.hero-grid > * {
  flex: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.08;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.hero-text,
.section-head p,
.article-card p,
.about-card p,
.info-card p,
.pay-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 25px rgba(23, 107, 135, 0.22);
}

.button.secondary:hover,
.button.small:hover {
  background: rgba(23, 107, 135, 0.08);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.small {
  min-height: 40px;
  padding: 0 18px;
}

.hero-card,
.article-card,
.info-card,
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  align-self: stretch;
  border-top: 4px solid var(--primary);
}

.feature-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 2;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.article-card,
.info-card,
.about-card {
  padding: 26px;
}

.article-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  border-color: rgba(23, 107, 135, 0.35);
  box-shadow: 0 20px 45px rgba(17, 55, 75, 0.14);
  transform: translateY(-3px);
}

.article-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.price-row {
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.price-row strong {
  color: var(--primary-dark);
}

.modal-price {
  color: var(--primary-dark);
  font-weight: 700;
}

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

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 51, 0.52);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 107, 135, 0.08);
  color: var(--primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.qr-box {
  width: 220px;
  min-width: 220px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.modal .qr-box {
  width: 100%;
  margin-top: 18px;
}

.qr-image {
  width: 100%;
  display: block;
  border-radius: 6px;
  height: auto;
}

.light {
  background: rgba(255, 255, 255, 0.62);
}

.site-footer {
  border-top: 1px solid rgba(217, 229, 233, 0.95);
  background: #102b3a;
  color: #edf7f9;
}

.footer-copy {
  display: grid;
  gap: 4px;
}

.footer-copy strong {
  font-size: 1rem;
}

.footer-copy span {
  color: rgba(237, 247, 249, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
}

.icp-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(237, 247, 249, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icp-link:hover {
  border-color: rgba(237, 247, 249, 0.46);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
  }

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

  .qr-box {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .footer-wrap,
  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section {
    padding: 56px 0;
  }
}
