@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;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #180e0f;
  --paper: #f7ece6;
  --dim: #c9a99f;
  --copper: #d7a273;
  --copper-soft: rgba(215, 162, 115, .42);
  --line: rgba(255, 20, 147, .2);
  --r: 10px;
  --shadow: 0 22px 48px -26px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .04);
  --serif: 'Crimson Pro', 'Cormorant Garamond', "Songti SC", "Noto Serif SC", Georgia, serif;
  --display: 'Cormorant Garamond', 'Cinzel', "Songti SC", "Noto Serif SC", Georgia, serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 96px;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.78;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -18% -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 16% 10%, rgba(255, 0, 0, .44), transparent 62%),
    radial-gradient(34% 38% at 84% 24%, rgba(255, 20, 147, .38), transparent 61%),
    radial-gradient(46% 44% at 48% 94%, rgba(215, 162, 115, .18), transparent 66%),
    conic-gradient(from 205deg at 62% 36%, rgba(255, 0, 0, .22), rgba(255, 20, 147, .26), rgba(38, 23, 23, .06), rgba(255, 0, 0, .22));
  background-size: 200% 200%;
  filter: saturate(1.2) blur(16px);
  animation: drift 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(72% 62% at 50% 28%, #000 36%, transparent 86%);
  mask-image: radial-gradient(72% 62% at 50% 28%, #000 36%, transparent 86%);
  animation: gridflow 9s linear infinite;
}

@keyframes drift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

@keyframes gridflow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 64px 64px, 64px 64px; }
}

img { max-width: 100%; }

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

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

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 角落标记 ---- */
.brand {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--copper-soft);
  background: rgba(38, 23, 23, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--copper);
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9);
}

.brand-glyph {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-fallback {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: .04em;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 20px 132px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -6% 0 -6%;
  z-index: 0;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .52;
  filter: saturate(1.15) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 22% 76%, rgba(255, 20, 147, .34), transparent 68%),
    radial-gradient(50% 45% at 82% 18%, rgba(255, 0, 0, .3), transparent 70%),
    linear-gradient(180deg, rgba(24, 14, 15, .5) 0%, rgba(24, 14, 15, .12) 42%, rgba(24, 14, 15, .88) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -1px;
  height: 92px;
  z-index: 2;
  background: linear-gradient(96deg, var(--red), var(--pink) 56%, var(--copper));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: .92;
  box-shadow: 0 -18px 48px -22px rgba(255, 20, 147, .7);
}

.hero-title {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: .006em;
  text-wrap: balance;
  text-shadow: 0 10px 44px rgba(0, 0, 0, .68);
}

.hero-title::before {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--red), var(--pink));
  border-radius: 2px;
}

/* ---- 主体骨架 ---- */
main {
  position: relative;
  padding: 0 20px 48px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 56px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

/* ---- 侧栏 ---- */
.side {
  position: sticky;
  top: 22px;
  padding: 20px 18px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  border-left: 2px solid var(--copper);
  background: linear-gradient(170deg, rgba(38, 23, 23, .74), rgba(24, 14, 15, .5));
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.side-head {
  margin: 0;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .05em;
  color: var(--copper);
}

hr {
  border: 0;
  height: 1px;
  margin: 12px 0 16px;
  background: linear-gradient(90deg, var(--copper), rgba(215, 162, 115, .04));
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.side-list a:hover,
.side-list a:focus-visible {
  color: var(--paper);
  background: rgba(255, 20, 147, .14);
  transform: translateX(3px);
}

/* ---- 正文 ---- */
.body { min-width: 0; }

.prose > article {
  margin: 0 0 26px;
  padding: 26px 24px 30px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(162deg, rgba(38, 23, 23, .7), rgba(24, 14, 15, .54));
  box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}

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

.prose h2,
.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .015em;
  color: var(--paper);
}

.prose h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
}

.prose h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.prose h3 {
  margin: 26px 0 6px;
  font-size: 1.26rem;
  color: var(--copper);
}

.prose h2 + hr {
  margin: 4px 0 18px;
  background: linear-gradient(90deg, var(--copper-soft), transparent);
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}

.prose li { margin-bottom: .42em; }

.prose a {
  color: var(--pink);
  text-decoration-color: rgba(255, 20, 147, .55);
  text-underline-offset: 3px;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.prose blockquote {
  margin: 0 0 1.1em;
  padding: 12px 18px;
  border-left: 2px solid var(--pink);
  background: rgba(255, 20, 147, .08);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--dim);
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  margin: 18px 0;
  box-shadow: var(--shadow);
}

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

.prose th,
.prose td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}

.prose th {
  color: var(--copper);
  font-weight: 600;
}

/* ---- 页脚 ---- */
footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.1fr;
  gap: 28px;
  padding: 52px max(20px, calc((100% - 1180px) / 2)) 112px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 23, .55), rgba(18, 10, 11, .96));
}

footer > article { min-width: 0; }

.f-mark {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: var(--copper);
}

.f-host {
  margin: 0;
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--dim);
  word-break: break-all;
}

.f-nav dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 14px;
}

.f-nav dt { margin: 0; }

.f-nav dd { display: none; }

.f-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-size: .98rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: color .3s ease, border-color .3s ease;
}

.f-nav a:hover,
.f-nav a:focus-visible {
  color: var(--paper);
  border-color: var(--pink);
}

.leaf {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  transform: rotate(45deg);
}

.sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-input {
  flex: 1 1 150px;
  min-height: 46px;
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--paper);
  background: rgba(24, 14, 15, .8);
  border: 1px solid var(--copper-soft);
  border-radius: var(--r);
}

.sub-input::placeholder { color: rgba(201, 169, 159, .8); }

.sub-btn {
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: .12em;
  color: #1a0f10;
  background: linear-gradient(100deg, var(--red), var(--pink));
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  transition: filter .3s ease, transform .3s ease;
}

.sub-btn:hover { filter: saturate(1.2) brightness(1.08); transform: translateY(-1px); }

.f-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.copy {
  margin: 0;
  font-size: .92rem;
  letter-spacing: .05em;
  color: rgba(201, 169, 159, .78);
}

.f-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.f-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .95rem;
  color: var(--dim);
  text-decoration: none;
}

.f-links a:hover { color: var(--paper); }

/* ---- 固定底栏 ---- */
.f-nav nav {
  min-width: 0;
}

footer .f-nav { min-width: 0; }

.dock, .f-nav nav { min-width: 0; }

/* ---- 移动端 ---- */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 40px;
  }

  .side {
    position: static;
    order: 2;
    margin-top: 8px;
  }

  footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 124px;
  }

  .f-nav dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }

  .hero { padding: 100px 18px 116px; }

  .hero::after { height: 70px; }

  .prose > article { padding: 22px 18px 26px; }

  main { padding-inline: 16px; }

  .f-nav dl { grid-template-columns: minmax(0, 1fr); }
}

/* ---- 底栏容器（footer 内） ---- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 15, 16, .82), rgba(18, 10, 11, .98));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom);
}

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

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

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

  body::before,
  body::after { animation: none; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .side-list a:hover { transform: none; }
}

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