@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --lift: #ececec;
  --mute: #6d6d6d;
  --hair: #e3e3e3;
  --r: 4px;
  --e1: 0 1px 2px rgba(31, 31, 31, .07), 0 2px 6px rgba(31, 31, 31, .05);
  --e2: 0 2px 6px rgba(31, 31, 31, .06), 0 10px 22px rgba(31, 31, 31, .07);
  --e3: 0 8px 18px rgba(31, 31, 31, .08), 0 22px 44px rgba(31, 31, 31, .09);
  --e4: 0 14px 30px rgba(31, 31, 31, .13), 0 36px 70px rgba(31, 31, 31, .13);
  --display: 'Amatic SC', 'Cabin', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --text: 'Cabin', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --hdr: 104px;
}

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

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

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* ---------- 顶部两行：品牌行 / 菜单行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .87);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: var(--e1);
  padding: 10px var(--pad) 6px;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--e2), inset 0 -2px 0 rgba(255, 255, 255, .12);
}

.mark-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.mark-dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(255, 255, 255, .45);
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: .07em;
  line-height: 1;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.grp { position: relative; }

.grp summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 1rem;
  transition: background .18s ease, box-shadow .18s ease;
}

.grp summary::-webkit-details-marker { display: none; }

.grp summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}

.grp summary:hover { background: var(--wash); }

.grp[open] summary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--e3);
}

.grp-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 95;
  margin: 0;
  padding: 6px;
  min-width: 196px;
  list-style: none;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--e4);
}

.grp-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  font-size: .97rem;
}

.grp-list a:hover,
.grp-list a:focus-visible { background: var(--wash); }

/* ---------- Hero：满屏、斜切底边、右对齐文字、浮起白牌 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--hdr));
  min-height: calc(100svh - var(--hdr));
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(20px, 5vw, 64px);
  padding-bottom: clamp(64px, 13vh, 150px);
  overflow: hidden;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

.hero-media {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: 0;
  will-change: transform;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .94;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(198deg, rgba(31, 31, 31, .1) 0%, rgba(31, 31, 31, .68) 100%);
}

.hero-plate {
  position: relative;
  z-index: 2;
  max-width: min(660px, 92%);
  padding: clamp(16px, 3vw, 34px) clamp(20px, 3.6vw, 44px);
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--e4);
  text-align: right;
}

.hero-plate::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: rgba(255, 255, 255, .55);
  border-radius: var(--r);
  z-index: -1;
  box-shadow: var(--e2);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 7.6vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: .02em;
}

/* ---------- 舞台：左侧 aside + 右侧正文 ---------- */
.stage {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 68px) var(--pad);
}

.rail {
  position: sticky;
  top: calc(var(--hdr) + 16px);
  align-self: start;
  z-index: 2;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--e3);
  padding: 18px 16px 16px;
}

.rail small {
  display: block;
  font-size: .74rem;
  letter-spacing: .24em;
  color: var(--mute);
}

.rail h2 {
  margin: 2px 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.35;
}

.rail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  transition: background .16s ease, box-shadow .16s ease;
}

.rail a:hover,
.rail a:focus-visible {
  background: var(--wash);
  box-shadow: var(--e1);
}

.main { min-width: 0; }
.prose { min-width: 0; }

/* ---------- 正文区块：错位叠层卡片 ---------- */
.prose > section {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--e2);
  padding: clamp(20px, 3.2vw, 44px);
  margin: 0 0 clamp(28px, 4.4vw, 56px);
  scroll-margin-top: calc(var(--hdr) + 24px);
}

.prose > section::before {
  content: "";
  position: absolute;
  inset: 16px -14px -14px 16px;
  z-index: -1;
  border-radius: var(--r);
  background: var(--lift);
  box-shadow: var(--e1);
}

.prose > section:nth-child(even) {
  z-index: 2;
  box-shadow: var(--e3);
}

.prose > section:nth-child(even)::before {
  inset: 16px 16px -14px -14px;
}

.prose > section:nth-child(3n) {
  box-shadow: var(--e1);
}

.prose > section > *:first-child { margin-top: 0; }
.prose > section > *:last-child { margin-bottom: 0; }

.prose small {
  display: block;
  font-family: var(--text);
  font-size: .76rem;
  letter-spacing: .26em;
  color: var(--mute);
  margin-bottom: 8px;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: clamp(1.32rem, 3vw, 1.92rem);
  line-height: 1.32;
  letter-spacing: .01em;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.14rem;
  line-height: 1.45;
}

.prose p { margin: 0 0 16px; }

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

.prose li { margin: 7px 0; }

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose strong { font-weight: 700; }

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: var(--r);
  box-shadow: var(--e2);
}

.prose blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--wash);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--hair), var(--e1);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .96rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
}

/* ---------- 页脚：超大字 + 三列 dl + 底栏两列 ---------- */
.foot {
  position: relative;
  z-index: 3;
  margin-top: clamp(36px, 7vw, 90px);
  padding: clamp(32px, 5vw, 64px) var(--pad) 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 40px 40px 0 0;
  box-shadow: var(--e4);
}

.foot-brand {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 13vw, 7.6rem);
  line-height: .96;
  letter-spacing: .04em;
  overflow-wrap: break-word;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 34px);
  max-width: 840px;
}

.foot-cols dt {
  font-size: .78rem;
  letter-spacing: .22em;
  opacity: .72;
  margin-bottom: 4px;
}

.foot-cols dd { margin: 0; }

.foot-cols a {
  display: flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  opacity: .88;
}

.foot-cols a:hover,
.foot-cols a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.foot-copy {
  margin: 0;
  font-size: .9rem;
  opacity: .74;
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-end a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .11);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
}

.foot-end a:hover,
.foot-end a:focus-visible { background: rgba(255, 255, 255, .22); }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim .prose > section {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity .52s ease, transform .52s cubic-bezier(.22, .7, .3, 1);
  }

  .anim .prose > section.in {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.foot :focus-visible { outline-color: #fff; }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(22px, 5vw, 34px);
  }

  .rail {
    position: static;
    top: auto;
  }

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

  .hero-plate { max-width: 100%; }

  .hero-plate::before { inset: 12px -12px -12px 12px; }

  .prose > section::before { inset: 14px -12px -12px 14px; }

  .prose > section:nth-child(even)::before { inset: 14px 12px -12px -12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .wordmark { font-size: 1.5rem; }

  .rail ul { grid-template-columns: minmax(0, 1fr); }

  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 6px; }

  .foot { border-radius: 26px 26px 0 0; }

  .hero { padding-bottom: clamp(56px, 12vh, 110px); }
}

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