@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{
  --red:#ff0000;
  --rose:#ff1493;
  --ink:#261717;
  --paper:#f8ede8;
  --mute:#d3bab4;
  --brass:#d9b382;
  --line:rgba(255,255,255,.13);
  --glass:rgba(255,255,255,.062);
  --serif:"Cormorant Garamond","Crimson Pro",Georgia,"Songti SC","Noto Serif CJK SC",serif;
  --body:"Crimson Pro","Cormorant Garamond",Georgia,"Songti SC","Noto Serif CJK SC",serif;
}

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

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--body);
  font-size:1.0625rem;
  line-height:1.72;
  color:var(--paper);
  background:
    radial-gradient(1100px 640px at 8% -6%,rgba(255,20,147,.32),transparent 62%),
    radial-gradient(900px 620px at 94% 3%,rgba(255,0,0,.24),transparent 64%),
    radial-gradient(760px 760px at 46% 108%,rgba(146,52,74,.36),transparent 68%),
    linear-gradient(168deg,#1c1111 0%,#261717 46%,#150c0c 100%);
  background-attachment:fixed;
  overflow-x:clip;
  -webkit-text-size-adjust:100%;
}

body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:-1;
  pointer-events:none;
  background:conic-gradient(from 180deg at 40% 40%,
    rgba(255,20,147,.30),rgba(255,0,0,.18),rgba(126,96,255,.16),
    rgba(255,186,124,.14),rgba(255,20,147,.30));
  filter:blur(90px) saturate(1.28);
  mix-blend-mode:screen;
  opacity:.55;
  animation:aurora-drift 11s ease-in-out infinite alternate;
}

@keyframes aurora-drift{
  0%{transform:translate3d(-3%,-2%,0) rotate(0deg) scale(1.05)}
  100%{transform:translate3d(4%,3%,0) rotate(12deg) scale(1.2)}
}

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

a{color:#ffb6d3;text-decoration:none;text-underline-offset:3px}
a:hover,a:focus-visible{color:#fff;text-decoration:underline}

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

/* ---------- 页头：品牌居中，菜单分列 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:40;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  column-gap:10px;
  padding:10px clamp(12px,4vw,44px) 0;
  background:linear-gradient(180deg,rgba(24,14,14,.94),rgba(24,14,14,.62));
  backdrop-filter:blur(16px) saturate(1.15);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.wing{min-width:0}
.wing p{display:flex;flex-wrap:wrap;gap:0 2px;margin:0}
.wing-l p{justify-content:flex-start}
.wing-r p{justify-content:flex-end}

.wing a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 9px;
  font-size:1rem;
  letter-spacing:.04em;
  color:#e9d7d2;
  white-space:nowrap;
}
.wing a:hover,.wing a:focus-visible{color:#fff;text-decoration:none}

.crest{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:6px 12px;
  font-family:var(--serif);
  font-size:clamp(1.25rem,2.6vw,1.65rem);
  font-weight:700;
  letter-spacing:.16em;
  line-height:1.1;
  text-align:center;
  background:linear-gradient(96deg,#fff 8%,#ffc7dd 42%,var(--brass) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  filter:drop-shadow(0 2px 12px rgba(255,20,147,.28));
  white-space:nowrap;
}
.crest:hover,.crest:focus-visible{text-decoration:none}
.crest-img{width:auto;height:32px;filter:none}

.strip{
  grid-column:1 / -1;
  margin-top:2px;
  border-top:1px solid rgba(255,255,255,.08);
  overflow-x:auto;
  scrollbar-width:none;
}
.strip::-webkit-scrollbar{display:none}
.strip nav p{display:flex;gap:0 4px;margin:0;white-space:nowrap}
.strip a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  font-size:.95rem;
  letter-spacing:.06em;
  color:#cbb2ac;
  border-bottom:2px solid transparent;
}
.strip a:hover,.strip a:focus-visible{color:#fff;text-decoration:none;border-bottom-color:var(--rose)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:70vh;
  padding:clamp(26px,7vh,58px) clamp(16px,5vw,64px) clamp(34px,7vh,66px);
  overflow:hidden;
  isolation:isolate;
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);
}

.ghost{
  position:absolute;
  left:-2%;
  bottom:4%;
  z-index:-1;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(78px,22vw,300px);
  line-height:.82;
  letter-spacing:-.045em;
  white-space:nowrap;
  background:linear-gradient(102deg,rgba(255,20,147,.62),rgba(255,0,0,.30) 58%,rgba(255,186,124,.12));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  opacity:.62;
  pointer-events:none;
  user-select:none;
}

.hero-inner{position:relative;max-width:1120px;margin:0 auto;width:100%}

.hero h1{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2rem,6.4vw,4.5rem);
  line-height:1.06;
  letter-spacing:.005em;
  background:linear-gradient(94deg,#fff 6%,#ffd2e2 52%,#f2d3b2 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-wrap:balance;
}

.lead{
  max-width:56ch;
  margin:clamp(14px,2.4vw,22px) 0 0;
  font-size:1.0625rem;
  color:#dec9c3;
}

/* ---------- 主体：左栏 + 正文 ---------- */
.shell{
  display:grid;
  grid-template-columns:minmax(200px,252px) minmax(0,1fr);
  gap:clamp(18px,3vw,38px);
  max-width:1240px;
  margin:0 auto;
  padding:clamp(14px,3vw,26px) clamp(14px,4vw,48px) clamp(52px,8vw,88px);
}

.rail{
  align-self:start;
  position:sticky;
  top:132px;
  padding:18px 16px 14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(158deg,rgba(255,255,255,.09),rgba(255,255,255,.03));
  backdrop-filter:blur(14px) saturate(1.1);
  -webkit-backdrop-filter:blur(14px) saturate(1.1);
  box-shadow:0 22px 46px -34px #000;
}

.rail-t{
  margin:0 0 10px;
  font-family:var(--serif);
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:.18em;
  color:var(--brass);
}

.rail-t span{border-bottom:1px solid rgba(217,179,130,.45);padding-bottom:3px}

.rail-list{display:flex;flex-direction:column;margin:0;font-size:1rem}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  border-radius:10px;
  color:#dcc7c1;
  border-left:2px solid transparent;
}
.rail-list a:hover,.rail-list a:focus-visible{
  color:#fff;
  text-decoration:none;
  background:rgba(255,20,147,.14);
  border-left-color:var(--rose);
}

.rail-top{margin:12px 0 0;padding-top:10px;border-top:1px solid rgba(255,255,255,.1)}
.rail-top a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px;
  font-size:.95rem;
  color:#bfa9a3;
  letter-spacing:.1em;
}

/* ---------- 正文流 ---------- */
.stream{min-width:0}

article[id]{scroll-margin-top:126px}

.stream article{
  margin:0 0 clamp(16px,2.4vw,26px);
  padding:clamp(18px,3vw,34px);
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(156deg,rgba(255,255,255,.075),rgba(255,255,255,.026));
  backdrop-filter:blur(16px) saturate(1.12);
  -webkit-backdrop-filter:blur(16px) saturate(1.12);
  box-shadow:0 26px 54px -40px #000, inset 0 1px 0 rgba(255,255,255,.12);
}

.stream article:target{
  border-color:rgba(255,20,147,.55);
  box-shadow:0 0 0 1px rgba(255,20,147,.35),0 26px 54px -40px #000;
}

.stream h2,.stream h3{
  font-family:var(--serif);
  font-weight:700;
  line-height:1.2;
  color:#fff3ee;
}

.stream h2{
  margin:0 0 clamp(12px,2vw,18px);
  padding-left:14px;
  border-left:3px solid var(--rose);
  font-size:clamp(1.5rem,3.4vw,2.15rem);
}

.stream h2 span{
  background:linear-gradient(94deg,#fff 10%,#ffc4dc 76%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.stream h3{
  margin:clamp(18px,2.6vw,26px) 0 8px;
  font-size:clamp(1.2rem,2.5vw,1.5rem);
  color:#ffd9c8;
}

.stream p{margin:0 0 1em;max-width:66ch;color:#eddbd6}
.stream p:last-child{margin-bottom:0}

.stream ul,.stream ol{margin:0 0 1em;padding-left:1.3em;max-width:66ch}
.stream li{margin:.4em 0;color:#eddbd6}
.stream li::marker{color:var(--rose)}
.stream strong{color:#fff}

.stream figure{
  margin:clamp(14px,2vw,22px) 0;
  padding:14px 16px;
  border-left:3px solid var(--brass);
  border-radius:0 14px 14px 0;
  background:rgba(217,179,130,.09);
}
.stream figure figcaption{font-size:.95rem;color:#c3aca6;margin-top:6px}

.stream blockquote{
  margin:clamp(14px,2vw,20px) 0;
  padding:12px 18px;
  border-left:3px solid var(--rose);
  border-radius:0 14px 14px 0;
  background:rgba(255,20,147,.1);
  color:#f2e0db;
}
.stream blockquote p{margin:0}

.stream table{width:100%;border-collapse:collapse;font-size:1rem;margin:0 0 1em}
.stream th,.stream td{padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}
.stream th{color:var(--brass);font-weight:600}

.stream hr{border:0;height:1px;margin:clamp(16px,2.4vw,24px) 0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent)}

.stream code{
  font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  font-size:.94em;
  padding:1px 6px;
  border-radius:6px;
  background:rgba(255,255,255,.09);
}

/* ---------- 页脚：三栏 ---------- */
.colophon{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:14px clamp(16px,3vw,32px);
  padding:clamp(34px,6vw,58px) clamp(16px,5vw,56px) clamp(38px,7vw,62px);
  border-top:1px solid rgba(255,255,255,.11);
  background:radial-gradient(700px 220px at 50% 0%,rgba(255,20,147,.18),transparent 72%);
  text-align:center;
}

.f-mark{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.7rem,5vw,3rem);
  line-height:1;
  letter-spacing:.1em;
  background:linear-gradient(96deg,#fff,#ffbfd8 60%,var(--brass));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.f-copy{margin:0;font-size:1rem;letter-spacing:.1em;color:#c6aeaa}
.f-meta{margin:0}
.f-meta small{font-size:.95rem;line-height:1.6;color:#a8918d;display:block}

/* ---------- 滚动显现 ---------- */
.will-reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .62s ease var(--d,0ms),transform .62s cubic-bezier(.22,.7,.3,1) var(--d,0ms);
}
.will-reveal.is-in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:1000px){
  .wing{display:none}
  .masthead{grid-template-columns:1fr;padding-top:8px}
  .crest{grid-column:1;justify-self:center;letter-spacing:.2em}
  .strip{margin-top:0}
  .strip nav p{justify-content:center}
}

@media (max-width:860px){
  .shell{grid-template-columns:1fr;padding-bottom:clamp(44px,10vw,70px)}
  .rail{position:static;top:auto}
  .rail-list{flex-direction:row;flex-wrap:wrap;gap:2px 4px}
  .rail-list a{border-left:0;border-bottom:2px solid transparent;padding:8px 10px}
  .rail-list a:hover,.rail-list a:focus-visible{border-left:0;border-bottom-color:var(--rose)}
  .rail-top{display:none}
  article[id]{scroll-margin-top:104px}
  .colophon{grid-template-columns:1fr;gap:10px}
  .f-meta small{max-width:40ch;margin:0 auto}
}

@media (max-width:520px){
  .hero{min-height:62vh;padding-top:20px}
  .ghost{font-size:clamp(64px,26vw,140px);opacity:.45;bottom:8%}
  .stream article{padding:16px}
  .stream h2{padding-left:10px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .will-reveal{opacity:1;transform:none;transition:none}
}

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