:root {
  --paper: #f7f0df;
  --paper-deep: #ead9b8;
  --paper-light: #fffaf0;
  --ink: #173f55;
  --ink-soft: #4d6871;
  --accent: #c86637;
  --accent-deep: #9c4324;
  --line: rgba(23, 63, 85, 0.18);
  --shadow: 0 18px 48px rgba(76, 56, 31, 0.14);
  --radius: 24px;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.7), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(232,204,157,.36), transparent 34%),
    var(--paper);
  line-height: 1.75;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

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

.site-header,
.site-footer,
.section,
.hero,
.legal,
.download-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font-size: 1.1rem; }

.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; }

.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding: 46px 0 74px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--accent-deep); font-weight: 800; letter-spacing: .14em; font-size: .78rem; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 18px; letter-spacing: -.02em; }
h1 { font-size: clamp(1.75rem, 3.8vw, 3.25rem); }
.hero h1.domestic-hero-title { white-space: nowrap; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.22rem; }
.lead { color: var(--ink-soft); max-width: 45rem; font-size: 1.12rem; }
.hero-actions, .download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--ink); border-radius: 999px; color: var(--paper-light); background: var(--ink); text-decoration: none; font-weight: 800; box-shadow: 0 8px 18px rgba(23,63,85,.15); }
.button:hover { color: #fff; background: #0e3042; }
.button.secondary { color: var(--ink); background: transparent; box-shadow: none; }
.button.secondary:hover { background: rgba(255,255,255,.5); }
.button.disabled { color: var(--ink-soft); border-color: var(--line); background: rgba(255,255,255,.35); box-shadow: none; cursor: not-allowed; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 2% 2%; border: 1px solid rgba(200,102,55,.28); border-radius: 48% 52% 45% 55% / 52% 42% 58% 48%; transform: rotate(-4deg); }
.hero-art img { position: relative; width: min(100%, 520px); border-radius: 20px; box-shadow: var(--shadow); }

.section { padding: 74px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-heading p { color: var(--ink-soft); max-width: 38rem; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .download-card, .notice, .legal-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,250,240,.72); box-shadow: 0 10px 28px rgba(76,56,31,.06); }
.feature-card p, .download-card p, .notice p { margin: 0; color: var(--ink-soft); }
.feature-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 15px; border-radius: 50%; color: var(--paper-light); background: var(--accent); font-weight: 900; }

.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.split.reverse { grid-template-columns: 1.05fr .95fr; }
.split-art { width: 100%; border: 1px solid rgba(23,63,85,.14); border-radius: 20px; box-shadow: var(--shadow); }
.bullet-list { margin: 0; padding-left: 1.35rem; color: var(--ink-soft); }
.bullet-list li + li { margin-top: 8px; }

.cta { text-align: center; padding: 58px 24px; border: 1px solid rgba(200,102,55,.28); border-radius: 32px; background: linear-gradient(135deg, rgba(255,250,240,.9), rgba(234,217,184,.58)); }
.cta p { max-width: 42rem; margin: 0 auto; color: var(--ink-soft); }

.site-footer { padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--ink-soft); }
.public-security-link { display: inline-flex; align-items: center; gap: .35rem; }
.public-security-link img { display: block; width: 18px; height: 20px; object-fit: contain; }

.download-shell { padding: 54px 0 80px; }
.download-intro { max-width: 680px; margin-bottom: 30px; }
.download-intro h1 { max-width: none; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.download-card h2 { font-size: 1.55rem; }
.download-card .meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.meta div { padding: 13px 15px; border-radius: 16px; background: rgba(234,217,184,.38); }
.meta dt { color: var(--ink-soft); font-size: .8rem; }
.meta dd { margin: 2px 0 0; font-weight: 800; }
.note { margin-top: 28px; }

.legal { padding: 54px 0 90px; }
.legal > header { margin-bottom: 30px; }
.legal-card { padding: clamp(24px, 5vw, 52px); }
.legal h2 { margin-top: 34px; font-size: 1.45rem; }
.legal h3 { margin-top: 24px; font-size: 1.08rem; }
.legal p, .legal li { color: #385660; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: rgba(234,217,184,.5); }
.legal .meta-line { margin: 0; color: var(--ink-soft); }

.small { color: var(--ink-soft); font-size: .9rem; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; color: var(--accent-deep); background: rgba(200,102,55,.12); font-size: .83rem; font-weight: 800; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero, .split, .split.reverse { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { min-height: 260px; order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header, .site-footer, .section, .hero, .legal, .download-shell { width: min(100% - 28px, 1160px); }
  .hero { padding-bottom: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-card .meta { grid-template-columns: 1fr; }
  .section, .download-shell, .legal { padding-top: 42px; padding-bottom: 56px; }
  .section-heading { display: block; }
}
