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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --mid: #565656;
  --faint: #e6e5e2;
  --serif: "Cinzel", "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Josefin Sans", "Songti SC", "Noto Serif SC", Georgia, serif;
  --pad: clamp(16px, 4vw, 56px);
}

* { 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: 18px;
  line-height: 1.85;
  font-weight: 400;
}

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

a { color: inherit; }

div[id] { scroll-margin-top: 104px; }

/* ---------- 报头 ---------- */
.mast { border-bottom: 1px solid var(--ink); }

.mast__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px var(--pad);
}

.mast__brand {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: .34em;
  text-indent: .34em;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 6px;
}

.mast__nav { display: flex; align-items: center; gap: 2px; }
.mast__nav--l { justify-content: flex-start; }
.mast__nav--r { justify-content: flex-end; }

.mast__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  letter-spacing: .06em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mast__nav a:hover { border-bottom-color: var(--ink); }

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
}

.rail__in {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px var(--pad);
}

.rail__pills {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.rail__pills::-webkit-scrollbar { display: none; }

.rail__pills a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 16px;
  font-size: 16px;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}

.rail__pills a:hover { background: var(--paper); color: var(--ink); }

.rail__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 20px;
  font-size: 16px;
  letter-spacing: .1em;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
}

.rail__cta:hover { background: #cfcfcf; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 4vw;
  align-items: center;
  min-height: 70vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 9vh var(--pad) 8vh;
}

.hero__bg {
  position: absolute;
  top: -.12em;
  right: 40%;
  margin: 0;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(150px, 25vw, 330px);
  line-height: .8;
  letter-spacing: -.05em;
  color: #eeeeec;
  pointer-events: none;
}

.hero__txt { position: relative; z-index: 1; }

.hero__h1 {
  margin: 0 0 .3em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.04;
  letter-spacing: .01em;
  overflow-wrap: break-word;
}

.hero__desc {
  margin: 0 0 2em;
  max-width: 32em;
  font-size: 18px;
  color: var(--mid);
}

.hero__down {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  font-size: 16px;
  letter-spacing: .16em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.hero__fig {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}

.hero__fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero__fig figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  letter-spacing: .24em;
}

/* ---------- 正文骨架 ---------- */
.body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 0 5vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: 6vh var(--pad) 10vh;
}

.toc {
  grid-column: 1;
  position: sticky;
  top: 84px;
  align-self: start;
}

.toc__t {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .3em;
  font-weight: 600;
}

.toc hr { margin: 10px 0 14px; }

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tocnum;
}

.toc__list li { counter-increment: tocnum; }

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 40px;
  padding: 9px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
}

.toc__list a::before {
  content: counter(tocnum, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .1em;
  color: #9a9a9a;
}

.toc__list a:hover { border-bottom-color: var(--ink); }

.body > div {
  grid-column: 2;
  max-width: 44em;
  margin-bottom: 9vh;
  padding-top: 4vh;
  border-top: 1px solid var(--ink);
}

.body > div:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.body > div.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.body > div.is-in {
  opacity: 1;
  transform: none;
}

.body > div > p:first-of-type::first-letter {
  float: left;
  padding: .06em .12em 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.4em;
  line-height: .78;
}

/* ---------- 正文排版 ---------- */
.body h2 {
  margin: 0 0 .2em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: .01em;
}

.body h3 {
  margin: 2em 0 .5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
}

.body p { margin: 0 0 1.4em; }

.body ul,
.body ol { padding-left: 1.4em; margin: 0 0 1.6em; }

.body li { margin-bottom: .5em; }

.body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.body blockquote {
  margin: 2.4em 0;
  padding: .2em 0 .2em 1.4em;
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.25em;
  line-height: 1.6;
}

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

.body figure { margin: 2.2em 0; }

.body figcaption {
  margin-top: .6em;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--mid);
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6em;
  font-size: 16px;
}

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

.body th {
  font-family: var(--serif);
  letter-spacing: .08em;
  border-bottom-color: var(--ink);
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  margin: .8em 0 2.2em;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 4vh;
  padding: 8vh var(--pad) 3vh;
  background: var(--ink);
  color: var(--paper);
}

.foot hr { border-top-color: rgba(255, 255, 255, .28); }

.foot__top {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8vw;
  max-width: 1400px;
  margin: 0 auto 10vh;
}

.foot__mark {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: .16em;
  overflow-wrap: break-word;
}

.foot__mark + hr { margin-top: 0; }

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
}

.foot__cols dt {
  padding-bottom: .8em;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .3em;
  color: #9c9c9c;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.foot__cols dd { margin: 0; }

.foot__cols a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 16px;
  letter-spacing: .05em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot__cols a:hover { border-bottom-color: var(--paper); }

.foot__cta {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.foot__big {
  display: block;
  padding: 4vh 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 8vw, 108px);
  line-height: 1.05;
  letter-spacing: .04em;
  text-decoration: none;
  transition: letter-spacing .4s ease, opacity .3s ease;
}

.foot__big:hover { letter-spacing: .13em; opacity: .78; }

.foot__base {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 3vh;
  text-align: center;
  font-size: 16px;
  letter-spacing: .14em;
  color: #9c9c9c;
}

.foot__base p { margin: 0; }

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .body { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-column: 1; margin-bottom: 3rem; }
  .toc__list ul { display: flex; }
  .toc__list { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
  .toc__list a { border-bottom: 0; }
  .body > div { grid-column: 1; }
  .foot__top { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .mast__in {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
  }
  .mast__brand { order: -1; width: 100%; text-align: center; }
  .mast__nav { flex-wrap: wrap; justify-content: center; }
  .mast__nav a { padding: 10px 8px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 7vw;
    padding: 7vh 16px 7vh;
  }
  .hero__bg {
    top: 0;
    right: auto;
    left: 50%;
    transform: translateX(-42%);
    font-size: 46vw;
  }
  .hero__fig { aspect-ratio: 3 / 2; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .foot { padding: 7vh 16px 3vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .body > div.reveal { opacity: 1; transform: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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