@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: #fdfbf7;
  --paper-2: #f5f5f5;
  --ink: #1a1a1a;
  --ink-2: #55504a;
  --ink-3: #8a847c;
  --rule: #e2ded5;
  --shadow: 0 16px 30px -24px rgba(26, 26, 26, 0.55);
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Baskerville', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', serif;
  line-height: 1.8;
  font-size: 1rem;
  transition: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

a {
  color: var(--ink);
  transition: none;
}

img {
  max-width: 100%;
}

[id] {
  scroll-margin-top: 7.5rem;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', 'Songti SC', 'Noto Serif CJK SC', serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0.6rem 0 1rem;
}

/* 顶部 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.ticker {
  margin: 0;
  padding: 0.3rem 1.25rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.masthead-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

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

.anchors p {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.1rem;
  margin: 0;
}

.anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.2rem 0.6rem;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
}

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

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 70vh;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: 40rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.4vw, 3.3rem);
  line-height: 1.16;
}

.hero-lede {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 1rem;
}

.hero-jump {
  margin: 0.4rem 0 0;
}

.hero-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  letter-spacing: 0.06em;
}

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

.hero-figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
  border-left: 1px solid var(--rule);
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

/* 主体 */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: start;
}

.rail {
  position: sticky;
  top: 7.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--rule);
}

.rail-h {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  color: var(--ink-2);
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rail-list a {
  display: block;
  padding: 0.55rem 0;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
}

.rail-list a:hover,
.rail-list a.is-active {
  color: var(--ink);
}

.sheet {
  min-width: 0;
}

.prose {
  font-size: 1rem;
  line-height: 1.85;
}

.prose > section {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  box-shadow: var(--shadow);
}

.prose > section + section {
  margin-top: 1.75rem;
}

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

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

.prose h2 {
  margin: 0;
  font-size: 1.4rem;
}

.prose h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.12rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

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

.prose a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--ink);
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.94rem;
}

.prose th,
.prose td {
  border: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--paper);
}

/* 页脚 */
.colophon {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: 2.5rem 1.25rem 1.5rem;
}

.colophon-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem 2.5rem;
}

.colophon-addr {
  font-style: normal;
}

.colophon-brand {
  margin: 0;
  font-size: clamp(1.9rem, 6.6vw, 4.2rem);
  line-height: 1.06;
  font-family: 'Cormorant Garamond', 'Songti SC', 'Noto Serif CJK SC', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.colophon-note {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.colophon-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.colophon-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.colophon-links a:hover {
  color: var(--ink);
}

.colophon-base {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.colophon-base p {
  margin: 0;
}

.colophon-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

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

/* 入场 */
@keyframes ink-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .prose > article {
    animation: ink-in 0.26s linear both;
  }
  .prose > article:nth-child(2) {
    animation-delay: 0.04s;
  }
  .prose > article:nth-child(3) {
    animation-delay: 0.08s;
  }
  .prose > article:nth-child(4) {
    animation-delay: 0.12s;
  }
  .prose > article:nth-child(5) {
    animation-delay: 0.16s;
  }
  .prose > article:nth-child(6) {
    animation-delay: 0.2s;
  }
  .prose > article:nth-child(7) {
    animation-delay: 0.24s;
  }
}

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

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    padding: 0 0 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .rail-h {
    display: none;
  }
  .rail hr {
    display: none;
  }
  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 1rem;
  }
  .rail-list a {
    border-bottom: 1px dotted var(--rule);
  }
  .colophon-top {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .masthead {
    position: static;
  }
  [id] {
    scroll-margin-top: 1rem;
  }
  .anchors a {
    padding: 0.2rem 0.45rem;
    font-size: 0.9rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-copy {
    padding: 1.9rem 1.25rem 1.5rem;
  }
  .hero-figure {
    height: 230px;
    border-left: 0;
    border-top: 1px solid var(--rule);
    clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
  }
  .wrap {
    padding: 1.5rem 1.1rem 3rem;
  }
  .prose > article {
    border-radius: 20px;
  }
  .colophon {
    padding: 2rem 1.1rem 1.25rem;
  }
  .colophon-links ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

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