@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 {
  --parch: #f5e6c8;
  --paper: #faf1de;
  --copper: #d4a574;
  --copper-deep: #a4713c;
  --ink: #262117;
  --ink-soft: #4a3f2e;
  --line: rgba(38, 33, 23, .16);
  --shadow: 0 20px 42px -30px rgba(38, 33, 23, .8);
  --serif: "Cormorant Garamond", "Crimson Pro", Georgia, "Songti SC", serif;
  --body: "Crimson Pro", Georgia, "Songti SC", serif;
  --r: 28px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.72;
  background-color: var(--parch);
  background-image:
    radial-gradient(58% 38% at 6% 0%, rgba(212, 165, 116, .5), transparent 72%),
    radial-gradient(48% 34% at 101% 9%, rgba(255, 238, 196, .7), transparent 74%),
    radial-gradient(70% 46% at 50% 104%, rgba(164, 113, 60, .22), transparent 72%);
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23g)' opacity='0.55'/></svg>");
}

img { max-width: 100%; border-style: none; }
a { color: inherit; }
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 80;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--parch);
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

/* ---------- 顶部两行 / 汉堡遮罩 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 230, 200, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(3px);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px clamp(16px, 4vw, 40px) 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  text-decoration: none;
  letter-spacing: .14em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: .2em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--copper-deep);
  border-radius: 50%;
  color: var(--copper-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.logo-mark-sm { width: 32px; height: 32px; font-size: .95rem; }

.logo-img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--copper-deep);
}

.menurow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px) 9px;
}

.menurow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.menu-open {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.menu-btn:hover { color: var(--copper-deep); border-color: var(--copper-deep); }

.menu-btn-line {
  width: 20px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.menu-btn-txt { font-size: 1rem; letter-spacing: .3em; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 76px 22px 44px;
  overflow-y: auto;
  color: var(--parch);
  background:
    radial-gradient(42% 34% at 84% 12%, rgba(212, 165, 116, .38), transparent 70%),
    linear-gradient(160deg, #302719, #191510 62%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) skewY(.5deg);
  transition: opacity .35s ease, transform .5s ease, visibility .35s;
}

.menu-open:checked ~ .veil {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.veil-inner { width: 100%; max-width: 560px; }

.veil-brand {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .42em;
  color: var(--copper);
}

.veil-nav ul { margin: 0; padding: 0; list-style: none; }

.veil-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 230, 200, .16);
  font-family: var(--serif);
  font-size: 1.48rem;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.veil-nav a:hover { color: var(--copper); padding-left: 6px; }

.veil-nav .idx {
  min-width: 2.2ch;
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--copper);
}

.veil-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid rgba(245, 230, 200, .4);
  border-radius: 999px;
  letter-spacing: .24em;
  cursor: pointer;
}
.veil-close:hover { color: var(--copper); border-color: var(--copper); }

/* ---------- 首图 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 70vh;
  overflow: hidden;
  background: linear-gradient(150deg, #3b3020, #221c12);
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}

.hero-frame { position: absolute; inset: 0; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.3) contrast(1.06) saturate(.78);
  animation: vhs 9s infinite;
}

.hero-leak {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(44% 38% at 82% 16%, rgba(255, 222, 158, .6), transparent 70%),
    linear-gradient(200deg, rgba(38, 33, 23, .12), rgba(38, 33, 23, .8) 74%);
  animation: leak 11s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 clamp(20px, 6vw, 76px) clamp(58px, 10vw, 112px) 20px;
  text-align: right;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: .02em;
  color: #fbf3e0;
  text-shadow: 0 3px 26px rgba(0, 0, 0, .5);
}

.hero-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 44px;
  background: var(--copper);
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- 主体四层 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(24px, 4vw, 44px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px) clamp(16px, 4vw, 40px) 48px;
}

.stage { min-width: 0; }

.prose { max-width: 74ch; }

.prose div {
  position: relative;
  margin: 0 0 30px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--copper);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-margin-top: 152px;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.prose div:hover {
  border-bottom-color: var(--copper-deep);
  box-shadow: 0 24px 48px -32px rgba(38, 33, 23, .9);
}

.prose div > :first-child { margin-top: 0; }
.prose div > :last-child { margin-bottom: 0; }

.prose h2 {
  margin: .1em 0 .7em;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.22;
}

.prose h2 span {
  padding-bottom: .1em;
  border-bottom: 2px solid var(--copper);
}

.prose h3 {
  margin: 1.5em 0 .5em;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
}

.prose a { color: var(--copper-deep); text-underline-offset: 3px; }

.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: .35em 0; }

.prose img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1.4em auto;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fdf8ec;
  box-shadow: 0 16px 32px -24px rgba(38, 33, 23, .95);
  transform: rotate(-.6deg);
}

.prose blockquote {
  margin: 1.4em 0;
  padding: .5em 0 .5em 1.1em;
  border-left: 3px solid var(--copper);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
}

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

.prose th, .prose td {
  padding: .6em .45em;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 1.8em 0;
  background: var(--line);
}

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 128px;
  padding: 18px 16px 14px;
  border-top: 2px solid var(--copper);
  border-radius: 0 0 var(--r) var(--r);
  background: rgba(250, 241, 222, .72);
}

.rail-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .2em;
}

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

.rail-list li { border-bottom: 1px dashed var(--line); }

.rail-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 9px 2px;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}
.rail-list a:hover, .rail-list a.on { color: var(--copper-deep); }

.rail-list .idx {
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--copper-deep);
}

/* ---------- 大块行动区 ---------- */
.cta {
  padding: clamp(46px, 8vw, 88px) clamp(18px, 5vw, 48px);
  color: var(--parch);
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(212, 165, 116, .34), transparent 72%),
    linear-gradient(140deg, #302719, #191510 64%);
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
}

.cta-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: .05em;
}

.cta-title span {
  padding-bottom: .1em;
  border-bottom: 2px solid var(--copper);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 36px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  color: var(--parch);
  text-decoration: none;
  letter-spacing: .26em;
  transition: background .25s ease, color .25s ease;
}
.cta-link:hover { background: var(--copper); color: #241d13; }

/* ---------- 页脚单行 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 16px clamp(16px, 4vw, 40px) 26px;
  border-top: 1px solid var(--line);
}

.foot-brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
}

.foot-nav dt { margin: 0; }

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 3px;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.foot-nav a:hover { color: var(--copper-deep); border-color: var(--copper-deep); }

.foot-copy {
  flex: 1 1 100%;
  margin: 0;
  font-size: 1rem;
  letter-spacing: .12em;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@keyframes leak {
  from { opacity: .95; }
  to { opacity: .6; }
}

@keyframes vhs {
  0%, 90% { transform: scale(1.02) translateX(0); }
  93% { transform: scale(1.02) translateX(-3px) skewX(.4deg); }
  96% { transform: scale(1.02) translateX(2px) skewX(-.3deg); }
  100% { transform: scale(1.02) translateX(0); }
}

/* ---------- 断点 ---------- */
@media (max-width: 920px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    order: 2;
    border: 1px solid var(--line);
    border-top: 2px solid var(--copper);
    border-radius: var(--r);
  }
  .hero {
    min-height: 62vh;
    clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  }
  .hero-copy {
    padding: 0 20px clamp(46px, 9vw, 74px);
    text-align: left;
  }
  .hero-band { height: 30px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .prose div { padding: 18px 16px; border-radius: 22px; }
  .prose img { transform: none; padding: 7px; }
  .prose table { display: block; overflow-x: auto; }
  .veil-nav a { font-size: 1.26rem; }
  .hero { min-height: 56vh; }
  .foot { justify-content: center; }
  .foot-copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

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