@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #1E1712;
  --brass: #C8A165;
  --parch: #F2E8D5;
  --paper: #2A2118;
  --paper-2: #33281A;
  --hair: rgba(200, 161, 101, .26);
  --txt: rgba(242, 232, 213, .87);
  --dim: rgba(242, 232, 213, .62);
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(120% 66% at 100% -6%, rgba(200, 161, 101, .13), transparent 62%),
    radial-gradient(90% 58% at -8% 102%, rgba(200, 161, 101, .09), transparent 66%),
    var(--ink);
  color: var(--txt);
  font-family: 'Crimson Pro', 'Cormorant Garamond', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  font-size: 17px;
  line-height: 1.68;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; border-radius: 10px; vertical-align: middle; }

a { color: var(--brass); text-decoration: none; }
a:hover, a:focus-visible { color: var(--parch); }

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

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  background: rgba(19, 14, 10, .95);
  border-top: 1px solid var(--hair);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, .45);
}

.mark,
.dock-call {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--parch);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  letter-spacing: .05em;
  white-space: nowrap;
}

.mark-ico { display: inline-flex; color: var(--brass); }
.mark-txt { font-weight: 500; }

.dock-call {
  color: var(--brass);
  font-size: 16px;
  letter-spacing: .08em;
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.dock-nav::-webkit-scrollbar { display: none; }

.dock-nav ol {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-nav li { flex: 0 0 auto; }

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--txt);
  font-size: 16px;
  white-space: nowrap;
  transition: color .22s ease, background-color .22s ease;
}

.dock-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--brass);
  transform: rotate(45deg);
  opacity: .7;
  transition: transform .25s ease, opacity .25s ease;
}

.dock-nav a:hover::before,
.dock-nav a.on::before {
  opacity: 1;
  transform: rotate(45deg) scale(1.5);
}

.dock-nav a.on {
  color: var(--parch);
  background: rgba(200, 161, 101, .14);
}

/* ---------- 页面容器 ---------- */

.page {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 26px);
}

/* ---------- 首屏 ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  min-height: 45vh;
  padding: clamp(28px, 6vw, 54px) 0 clamp(20px, 4vw, 34px);
}

.hero-txt { min-width: 0; flex: 1 1 auto; }

h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Songti SC', serif;
  font-weight: 500;
  font-size: clamp(2.15rem, 7vw, 4.2rem);
  line-height: 1.09;
  letter-spacing: .012em;
  color: transparent;
  background-image: linear-gradient(96deg, var(--parch) 0%, var(--brass) 44%, var(--parch) 74%, var(--brass) 100%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sheen 11s linear infinite;
}

h1::after {
  content: "";
  display: inline-block;
  width: .085em;
  height: .84em;
  margin-left: .1em;
  vertical-align: -.06em;
  background: var(--brass);
  animation: caret 1.15s steps(1) infinite;
}

h1 .ch {
  display: inline-block;
  animation: chIn .52s cubic-bezier(.2, .82, .24, 1) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}

@keyframes sheen { to { background-position: 230% 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes chIn {
  from { opacity: 0; transform: translateY(.55em) rotate(4deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.lead {
  margin: 16px 0 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.7;
}

.hero-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0;
  border-radius: 10px;
  background: var(--paper);
  color: var(--brass);
  box-shadow: inset 0 0 0 1px rgba(200, 161, 101, .18);
}

/* ---------- 双栏 ---------- */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
  padding-bottom: clamp(26px, 5vw, 46px);
}

/* ---------- 正文 ---------- */

.prose { min-width: 0; }

.prose > div {
  background: var(--paper);
  border-radius: 10px;
  padding: clamp(17px, 2.6vw, 28px);
  margin: 0 0 14px;
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(100px + env(safe-area-inset-bottom));
}

.prose > div:nth-child(odd) { background: var(--paper-2); }

.prose h2 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, 'Songti SC', serif;
  font-weight: 500;
  font-size: clamp(1.32rem, 3.2vw, 1.85rem);
  line-height: 1.24;
  color: var(--parch);
  letter-spacing: .01em;
}

.prose h3 {
  margin: 22px 0 8px;
  font-family: 'Cormorant Garamond', Georgia, 'Songti SC', serif;
  font-weight: 500;
  font-size: clamp(1.14rem, 2.4vw, 1.35rem);
  line-height: 1.32;
  color: var(--parch);
}

.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 0 0 7px; }
.prose li::marker { color: var(--brass); }

.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.prose a:hover { text-decoration-color: var(--brass); }

.prose strong { color: var(--parch); font-weight: 600; }

.prose blockquote {
  margin: 16px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--brass);
  color: var(--dim);
  font-style: italic;
}

.prose figure { margin: 16px 0; }
.prose figcaption { margin-top: 8px; color: var(--dim); font-size: 16px; }

hr {
  height: 1px;
  max-width: 200px;
  margin: 12px 0 16px;
  border: 0;
  background: linear-gradient(90deg, var(--brass), rgba(200, 161, 101, 0));
}

.prose hr { max-width: 260px; }

/* ---------- 侧栏 ---------- */

.rail { position: sticky; top: 20px; }

.rail-t {
  margin: 0;
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .34em;
  color: var(--brass);
}

.rail-list {
  counter-reset: rc;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rail-list li { counter-increment: rc; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.35;
  transition: background-color .24s ease, color .24s ease, transform .24s ease;
}

.rail-list a::before {
  content: counter(rc, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: var(--brass);
  opacity: .72;
}

.rail-list a:hover {
  background: var(--paper-2);
  color: var(--parch);
  transform: translateX(3px);
}

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 10px;
  padding: clamp(24px, 4vw, 40px) clamp(14px, 3vw, 26px) calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hair);
  background: rgba(19, 14, 10, .55);
}

.foot-cols,
.foot-base {
  width: 100%;
  max-width: 1076px;
  margin: 0 auto;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 14px 18px;
}

.foot dl { margin: 0; }

.foot dt {
  margin: 0 0 6px;
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: .22em;
  color: var(--brass);
}

.foot dd {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.5;
}

.foot dd a {
  display: inline-block;
  padding: 8px 0;
  min-height: 40px;
  color: var(--txt);
}

.foot dd a:hover { color: var(--brass); }

.foot-base {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(200, 161, 101, .14);
  text-align: center;
}

.foot-base p {
  margin: 0 0 6px;
  color: var(--dim);
  font-size: 16px;
  letter-spacing: .06em;
}

.foot-base .top {
  display: inline-block;
  padding: 8px 12px;
  min-height: 40px;
  font-size: 16px;
}

/* ---------- 滚动出现 ---------- */

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.rv.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 2; }
  .rail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero { min-height: 45vh; gap: 14px; }
  .hero-mark { width: 68px; height: 68px; }
  .hero-mark svg { width: 38px; height: 38px; }
  .mark-txt { font-size: 16px; }
  .foot-cols { grid-template-columns: 1fr 1.1fr 1fr; gap: 12px 10px; }
  .foot dd a { padding: 8px 0; }
  .rail-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .dock { gap: 2px; padding-left: 6px; padding-right: 6px; }
  .mark { padding: 0 5px; }
  .dock-nav a { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1,
  h1 .ch,
  h1::after {
    animation: none !important;
    background-position: 0 0;
  }
  .rv { opacity: 1; transform: none; transition: none; }
  .dock-nav a,
  .rail-list a { transition: none; }
}

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