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

:root {
  --plum: #2B1E2F;
  --plum-deep: #221726;
  --coral: #E0603C;
  --cream: #F6EDE4;
  --gold: rgba(190, 143, 78, .55);
  --line: rgba(43, 30, 47, .16);
  --serif: 'Cormorant Infant', 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', Georgia, serif;
  --script: 'Great Vibes', 'Cormorant Infant', cursive;
  --rail: 268px;
  --tick: 36px;
  --r: 18px;
}

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

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

body {
  margin: 0;
  padding-top: var(--tick);
  overflow-x: hidden;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.78;
  color: var(--plum);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 14% 6%, rgba(224, 96, 60, .12), transparent 52%),
    radial-gradient(circle at 86% 94%, rgba(43, 30, 47, .12), transparent 58%),
    repeating-linear-gradient(0deg, rgba(43, 30, 47, .028) 0 1px, transparent 1px 5px);
}

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

a { color: var(--coral); }

/* ---------- 顶部细条 ---------- */
.ticker {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--tick);
  z-index: 70;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--plum);
  color: var(--cream);
  border-bottom: 1px solid var(--gold);
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-size: 16px;
  letter-spacing: .18em;
  padding-left: 100%;
  animation: ticker 34s linear infinite;
}

.ticker__dot { color: var(--coral); font-family: var(--script); font-size: 20px; }

@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  top: var(--tick);
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px 28px;
  overflow-y: auto;
  background-image: linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
  border-right: 1px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--cream);
  text-decoration: none;
}

.brand__logo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); }

.brand__name {
  font-size: 19px;
  letter-spacing: .16em;
  line-height: 1.35;
}

.rail__nav { display: flex; flex-direction: column; gap: 4px; }

.navlink {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border-left: 1px solid var(--gold);
  color: rgba(246, 237, 228, .84);
  text-decoration: none;
  font-size: 16.5px;
  line-height: 1.4;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

.navlink:hover,
.navlink:focus-visible {
  color: var(--cream);
  background: rgba(224, 96, 60, .22);
  border-left-color: var(--coral);
  transform: translateX(3px);
}

.fold { position: relative; }

.fold__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  border-radius: 10px;
  border-left: 1px solid var(--gold);
  color: rgba(246, 237, 228, .84);
  font-size: 16.5px;
  letter-spacing: .1em;
  transition: background .25s ease, color .25s ease;
}

.fold__sum::-webkit-details-marker { display: none; }
.fold__sum:hover { background: rgba(246, 237, 228, .08); color: var(--cream); }

.fold__mark {
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--coral);
  border-bottom: 1px solid var(--coral);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}

.fold[open] > .fold__sum { color: var(--cream); background: rgba(246, 237, 228, .07); }
.fold[open] > .fold__sum .fold__mark { transform: rotate(225deg) translateY(-2px); }

.fold__menu {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fold__menu .navlink { font-size: 16px; border-left-color: rgba(190, 143, 78, .3); }

/* ---------- 主体 ---------- */
.stage {
  margin-left: var(--rail);
  max-width: 1180px;
  padding: 40px 36px 0;
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* ---------- 左侧跳转栏 ---------- */
.jump {
  position: sticky;
  top: calc(var(--tick) + 26px);
  align-self: start;
  min-width: 0;
  font-size: 16px;
}

.jump__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .28em;
}

.jump hr {
  width: 40px;
  margin: 8px 0 14px;
}

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

.jump__list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px 9px 12px;
  border-left: 1px solid var(--line);
  color: rgba(43, 30, 47, .74);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.jump__list a:hover,
.jump__list a:focus-visible {
  color: var(--coral);
  border-left-color: var(--coral);
  background: rgba(224, 96, 60, .08);
}

/* ---------- 正文 ---------- */
.prose {
  min-width: 0;
  max-width: 74ch;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding: 26px 0 54px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.hero__art { flex: 0 0 auto; }
.hero__art:empty { display: none; }

.hero__img {
  width: 152px;
  border-radius: var(--r);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 40px -22px rgba(43, 30, 47, .55);
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  min-width: 0;
}

.hero__badge {
  margin: 0;
  max-width: 100%;
  padding: 6px 15px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(224, 96, 60, .1);
  font-size: 16px;
  letter-spacing: .08em;
  transform: rotate(-2deg);
  animation: badge 8s ease-in-out infinite;
}

@keyframes badge {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-7px); }
}

.hero__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2.1rem, 5.8vw, 4.4rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--plum);
  text-wrap: balance;
}

@supports (-webkit-background-clip: text) {
  .hero__title {
    background-image: linear-gradient(100deg, var(--plum) 0%, var(--coral) 48%, var(--plum) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fill 14s ease-in-out infinite alternate;
  }
}

@keyframes fill {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.42em) rotate(-6deg);
  animation: rise .72s cubic-bezier(.2, .75, .2, 1) forwards;
}

@keyframes rise { to { opacity: 1; transform: none; } }

.hero__desc {
  margin: 0;
  max-width: 44ch;
  color: rgba(43, 30, 47, .82);
  font-size: 18px;
}

.prose > section {
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.prose > section:last-child { border-bottom: 0; padding-bottom: 56px; }

.prose h2 {
  margin: 0 0 4px;
  font-size: clamp(1.5rem, 3.1vw, 2.1rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: .012em;
}

.prose h2 + hr { margin: 10px 0 20px; }

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.22rem;
  line-height: 1.4;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--coral);
  display: inline-block;
  max-width: 100%;
}

.prose h3 + hr { margin: 6px 0 16px; }

hr {
  border: 0;
  border-top: 1px solid var(--gold);
  width: 64px;
  margin: 14px 0 20px;
}

.prose p { margin: 0 0 16px; }

.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 22px; }

.prose li { margin-bottom: 8px; }

.prose a {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 96, 60, .4);
}

.prose a:hover { border-bottom-color: var(--coral); }

.prose blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(43, 30, 47, .05);
  color: rgba(43, 30, 47, .86);
}

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

.prose strong { color: var(--plum-deep); }

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16.5px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}

.prose th { background: rgba(43, 30, 47, .06); }

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgba(43, 30, 47, .07);
  font-size: 16px;
}

.prose img,
.prose iframe,
.prose video { max-width: 100%; height: auto; }

/* ---------- 页脚 ---------- */
.foot {
  margin-left: var(--rail);
  margin-top: 40px;
  padding: 52px 36px 26px;
  background: var(--plum);
  color: var(--cream);
  border-top: 2px solid var(--coral);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1040px;
  align-items: start;
}

.foot__brand { min-width: 0; }

.foot__logo {
  display: inline-block;
  padding: 8px 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: .16em;
  border-bottom: 1px solid var(--gold);
}

.foot__kicker {
  margin: 12px 0 0;
  font-size: 16px;
  color: rgba(246, 237, 228, .68);
  letter-spacing: .06em;
}

.foot__dl { margin: 0; min-width: 0; }

.foot__dl dt {
  margin-bottom: 8px;
  padding-bottom: 6px;
  font-size: 16px;
  letter-spacing: .2em;
  color: rgba(246, 237, 228, .6);
  border-bottom: 1px solid rgba(246, 237, 228, .14);
}

.foot__dl dd { margin: 0; }

.foot__dl a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color .25s ease, padding-left .25s ease;
}

.foot__dl a:hover { color: var(--coral); padding-left: 4px; }

.foot__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--gold);
  font-size: 16px;
  color: rgba(246, 237, 228, .72);
}

.foot__base p { margin: 0; }

.foot__up a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
}

.foot__up a:hover { border-color: var(--coral); color: var(--coral); }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1);
}

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

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  .stage { grid-template-columns: 1fr; gap: 26px; padding: 26px 22px 0; }
  .jump { position: static; }
  .jump__list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .jump__list a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    min-height: 44px;
    white-space: nowrap;
  }
  .jump hr { margin-bottom: 12px; }
  .prose { max-width: none; }
  .prose > section { scroll-margin-top: 96px; }
  .hero { min-height: 62vh; }
  .foot { margin-left: 0; padding: 44px 22px 22px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .rail {
    position: static;
    width: auto;
    height: auto;
    padding: 12px 16px 10px;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--gold);
    overflow: visible;
  }
  .rail__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .stage { margin-left: 0; }
  .navlink,
  .fold__sum {
    border: 1px solid rgba(190, 143, 78, .45);
    border-radius: 999px;
    padding: 10px 14px;
    min-height: 44px;
  }
  .navlink { font-size: 16px; }
  .navlink:hover,
  .navlink:focus-visible { transform: none; }
  .fold__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    z-index: 80;
    width: 214px;
    max-width: calc(100vw - 40px);
    padding: 6px;
    border: 1px solid var(--gold);
    border-radius: 14px;
    background: var(--plum-deep);
    box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .7);
  }
  .fold__menu .navlink { border: 0; border-radius: 8px; }
  .prose table { display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .stage { padding: 18px 16px 0; }
  .hero {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding: 18px 0 40px;
    min-height: 56vh;
  }
  .hero__img { width: 92px; }
  .hero__title { font-size: 2rem; line-height: 1.22; }
  .hero__desc { font-size: 17px; }
  .foot { padding: 36px 16px 20px; }
  .foot__grid { grid-template-columns: 1fr; gap: 20px; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@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; }
  .hero__title .ch { opacity: 1; transform: none; }
}

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