@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --navy: #16233A;
  --yellow: #F2B705;
  --cream: #F6EFE3;
  --pad: clamp(18px, 4.2vw, 62px);
  --head: 'Abril Fatface', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --body: 'Merriweather', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: .01em;
  margin: 0 0 12px;
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 14px;
  background: var(--navy);
  border-bottom: 4px solid var(--yellow);
  z-index: 70;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  color: var(--cream);
}

.brand-img { width: 36px; height: 36px; object-fit: contain; }

.brandmark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--head);
  font-size: 23px;
  line-height: 1;
}

.menu-btn {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
  text-indent: .2em;
  cursor: pointer;
  transition: background-color .16s ease;
}

.menu-btn:hover { background: var(--cream); }

/* ---------- 全屏遮罩菜单 ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 76px var(--pad) 40px;
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-102%);
  transition: transform .28s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.overlay.is-open { transform: translateY(0); }

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 44px;
  padding: 0 17px;
  border: 2px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2em;
  text-indent: .2em;
  cursor: pointer;
}

.close-btn:hover { background: var(--yellow); color: var(--navy); }

.overlay-nav { margin-top: 8px; }

.overlay-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ov;
}

.overlay-nav li {
  counter-increment: ov;
  border-bottom: 2px solid rgba(246, 239, 227, .22);
}

.overlay-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px 0;
  text-decoration: none;
  font-family: var(--head);
  font-size: clamp(1.1rem, 4.2vw, 1.85rem);
  color: var(--cream);
  transition: color .16s ease;
}

.overlay-nav a::before {
  content: counter(ov, decimal-leading-zero);
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--yellow);
  flex: 0 0 auto;
}

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

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 96px var(--pad) 110px;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .44;
}

.hero-copy {
  position: relative;
  text-align: center;
  max-width: 20ch;
}

.hero-brand {
  margin: 0 0 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .52em;
  text-indent: .52em;
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 9vw, 5.4rem);
  line-height: 1.06;
  text-shadow: none;
}

/* ---------- 主体骨架 ---------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
}

.prose { min-width: 0; }

section div {
  padding: clamp(34px, 5vw, 66px) var(--pad);
  background: var(--cream);
  color: var(--navy);
  border-bottom: 6px solid var(--yellow);
  scroll-margin-top: 84px;
}

section div:nth-of-type(even) {
  background: var(--navy);
  color: var(--cream);
}

section div h2 {
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  margin: 0 0 10px;
}

section div h3 {
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  margin: 26px 0 10px;
}

section div p,
section div ul,
section div ol { max-width: 66ch; }

section div .subtitle,
section div p.subtitle,
section div p.subhead,
section div p.lead,
section div p.desc {
  margin: 0 0 24px;
  max-width: 60ch;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-indent: .24em;
  color: var(--navy);
}

section div:nth-of-type(even) .subtitle,
section div:nth-of-type(even) p.subtitle,
section div:nth-of-type(even) p.subhead,
section div:nth-of-type(even) p.lead,
section div:nth-of-type(even) p.desc { color: var(--yellow); }

section div ul,
section div ol { padding-left: 1.25em; margin: 0 0 18px; }

section div li { margin: 0 0 9px; }

section div a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--yellow);
}

section div blockquote {
  margin: 0 0 20px;
  padding: 8px 0 8px 18px;
  border-left: 6px solid var(--yellow);
  font-style: normal;
}

section div img { margin: 6px 0 22px; border-bottom: 6px solid var(--yellow); }

section div strong { font-weight: 700; }

section div hr {
  border: 0;
  border-top: 3px solid currentColor;
  opacity: .25;
  margin: 28px 0;
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 84px;
  margin: 26px 20px 40px 0;
  background: var(--navy);
  color: var(--cream);
  border-top: 10px solid var(--yellow);
  padding: 24px 20px 28px;
}

.rail h2 {
  font-size: 1.28rem;
  margin: 0 0 6px;
  color: var(--yellow);
}

.rail .subtitle {
  margin: 0 0 16px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-indent: .28em;
  color: rgba(246, 239, 227, .72);
}

.rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rl;
}

.rail li {
  counter-increment: rl;
  border-top: 1px solid rgba(246, 239, 227, .2);
}

.rail a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 44px;
  padding: 11px 0;
  font-size: .93rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color .16s ease;
}

.rail a::before {
  content: counter(rl, decimal-leading-zero);
  font-size: .68rem;
  font-weight: 700;
  color: var(--yellow);
  flex: 0 0 auto;
}

.rail a:hover { color: var(--yellow); }

/* ---------- 页脚 ---------- */
.foot {
  background: var(--navy);
  color: var(--cream);
  border-top: 8px solid var(--yellow);
  padding: 46px var(--pad) 34px;
  text-align: center;
}

.foot-cta {
  margin: 0 0 14px;
  font-family: var(--head);
  font-size: clamp(1.9rem, 8vw, 4.4rem);
  line-height: 1;
  color: var(--yellow);
}

.foot-cta a { text-decoration: none; }
.foot-cta a:hover { color: var(--cream); }

.foot-line { margin: 0 0 10px; font-size: .9rem; }

.foot-line a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 4px;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.foot small {
  display: block;
  margin-top: 6px;
  font-size: .74rem;
  letter-spacing: .22em;
  text-indent: .22em;
  color: rgba(246, 239, 227, .68);
}

/* ---------- 滚动显影 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .48s ease, transform .48s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  .stage { grid-template-columns: minmax(0, 1fr); }

  .rail {
    position: static;
    margin: 0;
    border-top-width: 8px;
  }

  .hero { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-copy { max-width: 100%; }
  section div { padding-left: var(--pad); padding-right: var(--pad); }
  .foot small { letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .overlay { transition: none; }
  * { transition-duration: .01ms !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
