:root {
  color-scheme: light;
  --ink: #241f1a;
  --muted: #6d6257;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #ead9c6;
  --red: #b93625;
  --gold: #d69b2d;
  --green: #286b5b;
  --blue: #244f7a;
  --shadow: 0 18px 50px rgba(68, 43, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(234, 217, 198, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 36px;
  background: var(--red);
  color: #fffaf2;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(660px, calc(84vh - 68px));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fffaf2;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(32, 19, 13, 0.88) 0%, rgba(32, 19, 13, 0.58) 42%, rgba(32, 19, 13, 0.16) 100%),
    linear-gradient(0deg, rgba(32, 19, 13, 0.24), rgba(32, 19, 13, 0.08));
}

.hero-content {
  position: relative;
  width: min(780px, 92vw);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 9em;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 250, 242, 0.92);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 250, 242, 0.55);
  text-decoration: none;
  font-weight: 800;
}

.primary-action {
  background: var(--gold);
  border-color: var(--gold);
  color: #241f1a;
}

.secondary-action {
  color: #fffaf2;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 82px) 0;
}

.intro-grid,
.content-grid,
.gear-grid {
  display: grid;
  gap: 18px;
}

.intro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid article,
.content-card,
.score-panel,
.calculator,
.process-list,
.map-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-grid article {
  padding: 24px;
}

.intro-grid span {
  color: var(--red);
  font-weight: 900;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.16;
}

h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.section-heading.compact {
  max-width: 680px;
}

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

.content-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.content-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.tag {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}

.reverse {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.reverse > :first-child {
  order: 2;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  background: rgba(40, 107, 91, 0.08);
  border-left: 4px solid var(--green);
}

.score-panel,
.process-list {
  padding: 24px;
}

.score-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  font-weight: 800;
}

meter {
  width: 100%;
  height: 14px;
}

.calculator-section {
  width: min(920px, calc(100% - 36px));
}

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

.calculator label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.calculator input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.result {
  grid-column: 1 / -1;
  display: block;
  padding: 18px;
  background: #241f1a;
  color: #fffaf2;
  font-size: 1.25rem;
  font-weight: 900;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.process-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.process-list span {
  color: var(--muted);
}

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

.gear-grid span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.map-section {
  padding: clamp(28px, 5vw, 48px);
}

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

.legal-page h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}

.legal-page section {
  max-width: 860px;
  margin-top: 28px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #241f1a;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .intro-grid,
  .content-grid,
  .split,
  .reverse,
  .calculator,
  .gear-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reverse > :first-child {
    order: initial;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(32, 19, 13, 0.88), rgba(32, 19, 13, 0.38));
  }

  .intro-grid,
  .content-grid,
  .split,
  .reverse,
  .calculator,
  .gear-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .score-row {
    grid-template-columns: 86px 1fr;
  }
}
