@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --paper: #ffffff;
  --wash: #f5f5f5;
  --ink: #1f1f1f;
  --ink-70: rgba(31, 31, 31, 0.68);
  --line: rgba(31, 31, 31, 0.14);
  --line-2: rgba(31, 31, 31, 0.08);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-2: rgba(255, 255, 255, 0.44);
  --e1: 0 1px 2px rgba(31, 31, 31, 0.07), 0 2px 6px rgba(31, 31, 31, 0.05);
  --e2: 0 3px 8px rgba(31, 31, 31, 0.08), 0 10px 22px rgba(31, 31, 31, 0.07);
  --e3: 0 8px 22px rgba(31, 31, 31, 0.10), 0 24px 52px rgba(31, 31, 31, 0.10);
  --e4: 0 16px 38px rgba(31, 31, 31, 0.14), 0 44px 92px rgba(31, 31, 31, 0.13);
  --r: 4px;
  --serif: 'Libre Baskerville', 'Songti SC', 'Noto Serif SC', SimSun, serif;
  --display: 'Cormorant Garamond', 'Libre Baskerville', 'Songti SC', SimSun, serif;
  --shell: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.75 var(--serif);
  background:
    radial-gradient(120% 70% at 88% -8%, var(--wash) 0%, rgba(255, 255, 255, 0) 62%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- 顶栏：品牌行 + 抽屉菜单行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--e2);
}

.brandline {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 8px 18px 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-right: 6px;
  font: 600 clamp(20px, 2.6vw, 27px)/1.15 var(--display);
  letter-spacing: 0.08em;
}
.mark:hover { text-decoration: none; }

.sigil {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: var(--wash);
  box-shadow: var(--e1) , inset 0 0 0 3px #fff;
  overflow: hidden;
}
.sigil::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--ink);
  transform: rotate(45deg);
}

.reach {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: var(--e1);
}
.reach:hover { background: #fff; text-decoration: none; box-shadow: var(--e2); }

.drawerbar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2px 18px 10px;
}

.drawer { position: relative; display: block; }

.drawer > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--e2);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px currentColor, 0 -5px currentColor;
  transition: transform 0.2s ease;
}
.drawer[open] > summary { box-shadow: var(--e3); transform: translateY(1px); }

.menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 10px 0 0;
  padding: 12px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  max-height: 68vh;
  overflow: auto;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--e4);
  z-index: 70;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 14px;
  font-size: 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--glass-2);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.menu a::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.32;
}
.menu a:hover,
.menu a:focus-visible {
  text-decoration: none;
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--e2);
  transform: translateY(-1px);
}
.menu a:hover::before { opacity: 1; }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 30px 18px 62px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 26px;
}

.band {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -14%;
  height: 46%;
  z-index: 0;
  background: linear-gradient(102deg, var(--wash) 0%, #ffffff 58%, var(--wash) 100%);
  border-top: 1px solid var(--line);
  transform: skewY(-5deg);
}

.hero-art {
  position: relative;
  z-index: 2;
  margin: 0;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--wash), #ffffff 70%, var(--wash));
  box-shadow: var(--e4);
  will-change: transform;
}

.hero-photo { width: 100%; height: 100%; object-fit: cover; }

.pane {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--e3);
}
.pa { inset: 16% 48% 46% 10%; transform: rotate(-6deg); z-index: 1; }
.pb { inset: 32% 12% 26% 42%; transform: rotate(5deg); z-index: 2; }
.pc { inset: 54% 50% 10% 20%; transform: rotate(-2deg); z-index: 3; }

.hero-art figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  padding: 4px 12px;
  font: 600 13px/1.6 var(--serif);
  letter-spacing: 0.22em;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--e1);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 36ch;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font: 600 clamp(30px, 7vw, 52px)/1.14 var(--display);
  letter-spacing: 0.02em;
}

.hero-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-70);
}

/* ---------- 栏区：aside 在左，正文在右 ---------- */
.stage {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 18px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.rail {
  position: relative;
  z-index: 1;
  order: -1;
  padding: 16px 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--e3);
}

.rail small {
  display: block;
  font: 600 12px/1.5 var(--serif);
  letter-spacing: 0.34em;
  color: var(--ink-70);
}

.rail h2 {
  margin: 2px 0 12px;
  font: 600 24px/1.2 var(--display);
  letter-spacing: 0.04em;
}

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

.raillist li {
  counter-increment: rail;
  border-top: 1px solid var(--line-2);
}

.raillist a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 6px 4px;
  font-size: 16px;
  transition: transform 0.18s ease, color 0.18s ease;
}
.raillist a::before {
  content: counter(rail, decimal-leading-zero);
  font: 600 12px/1 var(--display);
  letter-spacing: 0.1em;
  color: var(--ink-70);
}
.raillist a:hover { text-decoration: none; transform: translateX(3px); }

/* ---------- 正文 ---------- */
.flow { position: relative; z-index: 1; min-width: 0; }

.flow > div {
  position: relative;
  scroll-margin-top: 152px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.flow > div:first-child { border-top: 0; padding-top: 6px; }

.flow small {
  display: block;
  margin-bottom: 8px;
  font: 600 12px/1.5 var(--serif);
  letter-spacing: 0.3em;
  color: var(--ink-70);
}

.flow h1,
.flow h2 {
  margin: 0 0 14px;
  font: 600 clamp(25px, 4.4vw, 36px)/1.24 var(--display);
  letter-spacing: 0.01em;
}

.flow h3 {
  margin: 24px 0 10px;
  font: 600 21px/1.35 var(--display);
}

.flow p {
  margin: 0 0 15px;
  font-size: 17px;
  line-height: 1.9;
}

.flow ul,
.flow ol { margin: 0 0 16px; padding-left: 22px; }
.flow li { margin: 0 0 9px; font-size: 17px; line-height: 1.85; }

.flow a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.flow a:hover { background: var(--wash); }

.flow strong { font-weight: 700; }

.flow figure {
  margin: 20px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--wash);
  box-shadow: var(--e2);
}
.flow figure img { border-radius: var(--r); }
.flow figcaption { margin-top: 8px; font-size: 15px; color: var(--ink-70); }

.flow blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--wash);
}
.flow blockquote p:last-child { margin-bottom: 0; }

.flow table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--e1);
  display: block;
  overflow-x: auto;
}
.flow th,
.flow td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.flow th { background: var(--wash); font-weight: 700; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 44px 20px 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background: var(--ink);
  color: var(--paper);
}

.foot p { margin: 0; font-size: 16px; line-height: 1.7; }

.foot-brand {
  font: 600 clamp(36px, 11vw, 62px)/1 var(--display);
  letter-spacing: 0.08em;
}

.foot-desc { color: rgba(255, 255, 255, 0.76); }

.foot-copy {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.06em;
}

.foot small {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 断点 ---------- */
@media (min-width: 860px) {
  .menu { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    min-height: 70vh;
    padding: 46px 18px 78px;
  }
  .hero-art { aspect-ratio: 5 / 4; }
  .hero-copy { max-width: 32ch; }

  .foot { grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 56px 30px 26px; }
  .foot-brand { grid-column: 1 / 3; }
  .foot small { grid-column: 1 / -1; margin-top: 16px; }
}

@media (min-width: 960px) {
  .stage {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 44px;
    padding-bottom: 80px;
  }
  .rail { position: sticky; top: 140px; }
  .flow > div { padding: 32px 0 36px; }
}

@media (max-width: 420px) {
  .flow p, .flow li { font-size: 16px; }
  .hero-copy p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-art { transform: none !important; }
}

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