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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: #000000;
  --max: 1200px;
  --gap: 2rem;
  --serif: 'Cormorant Infant', Georgia, 'Songti SC', serif;
  --script: 'Great Vibes', 'Cormorant Infant', cursive;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', '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;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}

a { color: inherit; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 顶栏与全屏菜单 ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  pointer-events: none;
}

.top > * { pointer-events: auto; }

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 0.4rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
}

.mark img { border-radius: 50%; }

.mark-glyph {
  font-family: var(--script);
  font-size: 1.5rem;
  line-height: 1;
}

.drawer summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

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

.drawer summary:hover {
  background: var(--ink);
  color: var(--paper);
}

.drawer .c { display: none; }
.drawer[open] .o { display: none; }
.drawer[open] .c { display: inline; }

.drawer[open] summary {
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  z-index: 60;
}

.drawer menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  margin: 0;
  padding: 6rem max(1.5rem, calc((100vw - 700px) / 2)) 2rem;
  background: var(--paper);
  list-style: none;
  display: grid;
  align-content: start;
}

.drawer menu li { border-bottom: 1px solid var(--ink); }

.drawer menu a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.4rem 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.drawer menu a:hover { transform: translateX(8px); }

/* ---------- 首屏 ---------- */
.hero { padding: 0; }

.hero-frame {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 50% 50% / 0 0 5rem 5rem;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hero-big {
  position: absolute;
  left: 0;
  right: 0;
  top: 26%;
  text-align: center;
  font-family: var(--script);
  font-size: clamp(5rem, 24vw, 15rem);
  line-height: 0.9;
  opacity: 0.3;
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vw, 5.5rem);
  text-align: right;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- 主体网格 ---------- */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .shell {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
    padding: 4.5rem 2rem 0;
  }
}

.rail { align-self: start; }

@media (min-width: 900px) {
  .rail { position: sticky; top: 5.75rem; }
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.24em;
  margin-bottom: 0.35rem;
  opacity: 0.62;
}

.rail-title {
  margin: 0 0 1.1rem;
  font-size: 1.55rem;
}

.rail-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
}

@media (min-width: 900px) {
  .rail-list { grid-template-columns: 1fr; }
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: padding-left 0.22s ease;
}

.rail-list a:hover { padding-left: 0.45rem; }

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease;
}

.to-top:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 正文 ---------- */
.doc > article {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  scroll-margin-top: 5.5rem;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.doc > article + article { margin-top: 1.25rem; }

.doc > article[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.doc > article.in {
  opacity: 1;
  transform: none;
}

.doc h2 {
  margin: 0.2rem 0 1.1rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
}

.doc h2 + p,
.doc h3 + p { margin-top: 0; }

.doc h3 {
  margin: 1.9rem 0 0.6rem;
  font-size: 1.3rem;
}

.doc p { margin: 0 0 1.05rem; }

.doc p:last-child { margin-bottom: 0; }

.doc small {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.22em;
  opacity: 0.6;
}

.doc ul,
.doc ol {
  margin: 0 0 1.1rem;
  padding-left: 1.15rem;
}

.doc li { margin: 0.35rem 0; }

.doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.doc a:hover { opacity: 0.6; }

.doc img {
  width: 100%;
  margin: 1.1rem 0;
  border-radius: 28px;
}

.doc blockquote {
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.15rem;
  border-left: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  border-bottom: 1px solid var(--ink);
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: var(--max);
  margin: 3.5rem auto 0;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .foot {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 4rem 2rem 3.5rem;
  }
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 1rem;
  font-family: var(--script);
  font-size: clamp(3rem, 13vw, 7.5rem);
  line-height: 0.95;
}

.foot-cta a {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.22s ease;
}

.foot-cta a:hover { opacity: 0.5; }

.foot-col {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: padding-left 0.22s ease;
}

.foot-col a:hover { padding-left: 0.4rem; }

.foot-copy {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ink);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

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

  .doc > article[data-reveal] {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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