:root {
  --bg: #f3efe7;
  --bg-alt: #e6e0d6;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(247, 243, 236, 0.9);
  --line: rgba(29, 39, 44, 0.14);
  --line-strong: rgba(29, 39, 44, 0.26);
  --text: #172126;
  --text-soft: #566268;
  --heading: #0f171b;
  --accent: #58737c;
  --accent-deep: #29444c;
  --accent-soft: #c7d1cc;
  --sand: #d9ceb9;
  --shadow: 0 24px 70px rgba(15, 23, 27, 0.08);
  --radius-xs: 12px;
  --radius-sm: 20px;
  --radius-md: 32px;
  --radius-lg: 44px;
  --container: min(1180px, calc(100vw - 48px));
  --container-wide: min(1360px, calc(100vw - 48px));
  --header-height: 88px;
  --transition: 260ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 30%),
    linear-gradient(180deg, #f5f2eb 0%, #f1ece2 48%, #ece6da 100%);
  line-height: 1.75;
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 72%);
  opacity: 0.38;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

main {
  overflow: clip;
}

section {
  position: relative;
}

.container,
.container-wide {
  width: 100%;
  margin: 0 auto;
}

.container {
  max-width: var(--container);
}

.container-wide {
  max-width: var(--container-wide);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  backdrop-filter: blur(16px);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--sand));
}

.page {
  padding-top: 0;
}

.section-shell {
  padding: 120px 0;
}

.section-shell.compact {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  gap: 20px;
  margin-bottom: 52px;
}

.section-heading h2,
.section-heading h1,
.hero-copy h1,
.page-hero-copy h1,
.cta-panel h2 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.section-heading p,
.hero-copy p,
.page-hero-copy p,
.lead,
.card p,
.timeline-card p,
.text-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.lead {
  font-size: 1.08rem;
}

.split-lead {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: end;
}

.split-lead .lead-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 22px 0;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    padding var(--transition);
}

.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(243, 239, 231, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 28px rgba(15, 23, 27, 0.08);
  border-bottom: 1px solid rgba(29, 39, 44, 0.1);
}

.header-bar {
  width: min(1280px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 14px 18px 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(20, 30, 35, 0.56);
  color: rgba(248, 243, 234, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(8, 14, 17, 0.12);
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled .header-bar {
  background: rgba(255, 250, 243, 0.94);
  color: var(--heading);
  border-color: rgba(29, 39, 44, 0.12);
}

.site-header.is-scrolled .brand-text strong {
  color: var(--heading);
}

.site-header.is-scrolled .brand-text span,
.site-header.is-scrolled .nav-links a {
  color: rgba(23, 33, 38, 0.72);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a[aria-current="page"] {
  color: var(--heading);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: fit-content;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8f4eb;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(135deg, var(--accent-deep), #5d7a83);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .brand-mark {
  color: #f8f4eb;
}

.brand-text strong,
.brand-text span {
  display: block;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  color: rgba(248, 243, 234, 0.96);
}

.brand-text span {
  font-size: 0.72rem;
  opacity: 1;
  color: rgba(248, 243, 234, 0.72);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  color: rgba(248, 243, 234, 0.82);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #f8f3ea;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8f3ea;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header.is-scrolled .nav-cta {
  background: rgba(88, 115, 124, 0.12);
  border-color: rgba(88, 115, 124, 0.16);
  color: var(--heading);
}

.btn-row,
.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #f6f1e9;
  box-shadow: 0 16px 36px rgba(41, 68, 76, 0.22);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.36);
}

.btn-tertiary {
  padding: 0;
  min-height: auto;
  font-weight: 500;
}

.pill-list,
.inline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.glass-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.text-block {
  display: grid;
  gap: 18px;
}

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

.meta-item {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.meta-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.meta-item span {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.site-footer {
  padding: 40px 0 28px;
  color: rgba(244, 239, 229, 0.86);
  background:
    radial-gradient(circle at top left, rgba(136, 164, 171, 0.18), transparent 28%),
    linear-gradient(180deg, #182228 0%, #0f171b 100%);
}

.footer-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 1fr);
  gap: 28px;
}

.footer-brand p,
.footer-column a,
.footer-note,
.legal-copy {
  color: rgba(244, 239, 229, 0.68);
}

.footer-brand p {
  margin: 16px 0 0;
  max-width: 320px;
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column strong {
  color: #f6f1e8;
}

.footer-note {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.legal-copy {
  max-width: 720px;
  font-size: 0.92rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 24px;
  top: 24px;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  border-radius: 999px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .split-lead,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand p,
  .legal-copy {
    max-width: none;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(1180px, calc(100vw - 28px));
    --container-wide: min(1360px, calc(100vw - 28px));
  }

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

  .header-bar {
    border-radius: 28px;
    padding: 18px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav-cta {
    margin-left: auto;
  }

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

  .footer-shell {
    padding: 28px;
  }

  .footer-note {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .page {
    padding-top: 0;
  }

  .section-shell {
    padding: 88px 0;
  }

  .section-shell.compact {
    padding: 72px 0;
  }

  .brand {
    width: 100%;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .nav-cta {
    margin-left: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
