:root {
  --paper: #f7f8f4;
  --paper-deep: #eef2e8;
  --ink: #172622;
  --muted: #66736d;
  --mineral: #315d8c;
  --jade: #2f6256;
  --cinnabar: #b84a3a;
  --line: #d8ddd3;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(23, 38, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(184, 74, 58, 0.18);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(49, 93, 140, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, #fbfbf7 62%, var(--paper-deep) 100%);
  background-size: 46px 46px, auto;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 8px;
  content: "";
  background: linear-gradient(180deg, var(--mineral), var(--jade), var(--cinnabar));
}

a {
  color: inherit;
  text-decoration-color: rgba(184, 74, 58, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
}

a:hover {
  color: var(--cinnabar);
}

a:focus-visible {
  outline: 3px solid rgba(184, 74, 58, 0.45);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 18px;
  z-index: 30;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 221, 211, 0.8);
  background: rgba(247, 248, 244, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a[aria-current="page"] {
  color: var(--white);
  background: var(--jade);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(47, 98, 86, 0.1);
}

.nav a[aria-current="page"]:hover {
  color: var(--white);
  background: var(--jade);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("assets/portrait-wide.jpg");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 38, 34, 0.92) 0%, rgba(23, 38, 34, 0.68) 46%, rgba(23, 38, 34, 0.2) 100%),
    linear-gradient(0deg, rgba(23, 38, 34, 0.72) 0%, transparent 45%);
}

.hero-copy {
  position: relative;
  max-width: 720px;
  color: var(--white);
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  line-height: 1.25;
  letter-spacing: 0;
  scroll-margin-top: 112px;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.75rem, 4vw, 3.6rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2.1vw, 1.42rem);
}

.hero-actions,
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--cinnabar);
  border-radius: 6px;
  color: var(--white);
  background: var(--cinnabar);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.action-link.ghost {
  color: var(--ink);
  border-color: rgba(23, 38, 34, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.hero .action-link.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.action-link:hover {
  color: var(--white);
  background: var(--jade);
  border-color: var(--jade);
  transform: translateY(-1px);
}

.action-link.ghost:hover {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(23, 38, 34, 0.46);
}

.section,
.page-head {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.compact {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.statement {
  max-width: 860px;
}

.statement p,
.page-head p,
.method-copy p,
.resource-feature p,
.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.8fr);
  gap: clamp(32px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--mineral);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.timeline p {
  margin: 0;
}

.method-band,
.resource-feature,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.method-band {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  background: linear-gradient(135deg, rgba(47, 98, 86, 0.1), rgba(49, 93, 140, 0.1));
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 221, 211, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
}

.services {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 2fr);
  gap: clamp(26px, 5vw, 58px);
}

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

.service-grid article,
.material-card,
.contact-card,
.contact-list article {
  border: 1px solid rgba(216, 221, 211, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.service-grid article {
  min-height: 180px;
  padding: 22px;
}

.service-grid p,
.material-card p,
.contact-services p {
  color: var(--muted);
}

.page-head {
  padding: clamp(56px, 8vw, 112px) 0 clamp(16px, 4vw, 46px);
}

.page-head h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 7vw, 6rem);
}

.resource-feature {
  padding-top: clamp(28px, 4vw, 54px);
}

.resource-feature .wide {
  order: 2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.material-card {
  overflow: hidden;
}

.material-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.material-card div {
  padding: 20px;
}

.material-card a {
  color: var(--jade);
  font-weight: 700;
}

.quote-band {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background: var(--ink);
}

.quote-band .section-kicker {
  color: #f0b4a7;
}

.quote-band h2 {
  max-width: 980px;
  margin-bottom: 0;
}

.contact-head {
  padding-bottom: 0;
}

.contact-layout {
  align-items: start;
}

.qr-frame {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
}

.qr-frame img {
  width: min(100%, 520px);
  margin: 0 auto;
  border-radius: 8px;
}

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

.contact-list article {
  padding: 24px;
}

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list strong {
  display: block;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-services {
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

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

  .split,
  .method-band,
  .resource-feature,
  .contact-layout,
  .services {
    grid-template-columns: 1fr;
  }

  .resource-feature .wide {
    order: 0;
  }

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

@media (max-width: 620px) {
  body::before {
    width: 5px;
  }

  .site-header {
    padding: 14px 18px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .nav a {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: 7px 6px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 560px;
    padding: 30px 20px;
    background-image: url("assets/portrait-hero.jpg");
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(23, 38, 34, 0.94) 0%, rgba(23, 38, 34, 0.78) 70%, rgba(23, 38, 34, 0.44) 100%),
      linear-gradient(0deg, rgba(23, 38, 34, 0.76) 0%, transparent 44%);
  }

  .hero-actions,
  .download-row {
    flex-direction: column;
  }

  .action-link {
    width: 100%;
  }

  .section,
  .page-head {
    width: min(100% - 28px, 1160px);
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
