@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #fbf4f2;
  --dim: rgba(251, 244, 242, 0.6);
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.16);
  --rail: 266px;
  --railh: 0px;
  --r: 4px;
  --ff: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --fd: 'Playfair Display', 'Songti SC', Georgia, serif;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #261717;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25% -25% -25% -25%;
  z-index: -2;
  background:
    radial-gradient(46% 40% at 16% 10%, #ff0000 0%, rgba(255, 0, 0, 0) 62%),
    radial-gradient(40% 34% at 82% 18%, #ff1493 0%, rgba(255, 20, 147, 0) 64%),
    radial-gradient(54% 46% at 54% 92%, #7a0b2e 0%, rgba(122, 11, 46, 0) 66%),
    radial-gradient(30% 30% at 90% 76%, #ff3b6b 0%, rgba(255, 59, 107, 0) 60%),
    conic-gradient(from 200deg at 62% 42%, #ff0000, #ff1493, #261717, #ff0000);
  background-size: 200% 200%, 180% 180%, 220% 220%, 160% 160%, 200% 200%;
  filter: blur(34px) saturate(1.25);
  opacity: 0.55;
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(38, 23, 23, 0.28) 0%,
    rgba(38, 23, 23, 0.74) 52%,
    rgba(38, 23, 23, 0.94) 100%
  );
}

@keyframes aurora {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 100% 100%, 0% 50%;
  }
  100% {
    background-position: 100% 30%, 0% 40%, 20% 60%, 40% 20%, 100% 100%;
  }
}

a {
  color: #ffc2da;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 194, 218, 0.42);
}

a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* ---------- 左侧竖轴 ---------- */

.rail {
  position: fixed;
  z-index: 120;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 20px 24px;
  background: linear-gradient(180deg, rgba(38, 23, 23, 0.9), rgba(38, 23, 23, 0.66));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.grow {
  flex: 1 1 auto;
}

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

.brand .mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: conic-gradient(from 40deg, var(--red), var(--pink), #ff8a3d, var(--red));
  box-shadow: 0 0 22px -4px rgba(255, 20, 147, 0.85);
}

.brand .name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.dock > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.dock > summary::-webkit-details-marker {
  display: none;
}

.dock > summary::marker {
  content: '';
}

.dock > summary:hover {
  background: rgba(255, 20, 147, 0.18);
  border-color: rgba(255, 20, 147, 0.55);
}

.burger {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.burger i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.dock[open] .burger i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.dock[open] .burger i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.dock menu {
  position: fixed;
  top: var(--railh);
  left: var(--rail);
  right: 0;
  bottom: 0;
  z-index: 100;
  margin: 0;
  padding: 6vh 6vw calc(6vh + 40px) calc(4vw + 24px);
  list-style: none;
  display: grid;
  align-content: center;
  gap: 2px;
  overflow-y: auto;
  background: rgba(20, 11, 11, 0.9);
  backdrop-filter: blur(22px) saturate(1.4);
}

.dock:not([open]) menu {
  display: none;
}

.dock menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--fd);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: padding-left 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.dock menu a em {
  flex: 0 0 auto;
  min-width: 2.2em;
  font-family: var(--ff);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--pink);
}

.dock menu a:hover {
  padding-left: 14px;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 20, 147, 0.26), rgba(255, 20, 147, 0));
}

.find input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  -webkit-appearance: none;
  appearance: none;
}

.find input::placeholder {
  color: var(--dim);
}

/* ---------- 版面 ---------- */

main {
  padding-left: var(--rail);
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px clamp(18px, 3vw, 44px) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.stack {
  min-width: 0;
}

.paper {
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
  overflow-wrap: break-word;
}

/* 首屏 */

.hero {
  display: grid;
  gap: 26px;
  align-content: center;
  justify-items: center;
  text-align: center;
  min-height: clamp(320px, 62vh, 720px);
  padding: 20px 0 34px;
}

.hero h1 {
  margin: 0;
  max-width: 20em;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(104deg, #ffffff 0%, #ffd9e6 38%, var(--pink) 72%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-art {
  width: 100%;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r);
  border: 1px solid var(--line);
  filter: saturate(1.12) contrast(1.03);
}

/* 正文 */

.paper > h2 {
  margin: 0 0 10px;
  font-family: var(--fd);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}

.subtitle {
  margin: 0 0 30px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.paper section {
  margin: 0 0 48px;
  scroll-margin-top: 96px;
}

.paper section:last-child {
  margin-bottom: 0;
}

.paper section[id] {
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paper h2 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: #fff;
}

.paper section h2::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.paper h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

.paper p {
  margin: 0 0 16px;
  color: rgba(251, 244, 242, 0.86);
}

.paper ul,
.paper ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(251, 244, 242, 0.86);
}

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

.paper img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

.paper blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--pink);
  background: rgba(255, 20, 147, 0.1);
  border-radius: 0 var(--r) var(--r) 0;
}

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

/* 右侧栏 */

.side {
  position: sticky;
  top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.side-h {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--pink);
}

.idx {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: sec;
}

.idx li {
  counter-increment: sec;
}

.idx a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: rgba(251, 244, 242, 0.82);
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.idx a::before {
  content: counter(sec, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 20, 147, 0.85);
}

.idx a:hover {
  color: #fff;
  padding-left: 6px;
}

.idx li.off {
  display: none;
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
}

.totop:hover {
  color: #fff;
}

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

footer {
  margin-left: var(--rail);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 23, 0), rgba(0, 0, 0, 0.42));
}

.fwrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px clamp(18px, 3vw, 44px) 34px;
}

.cta {
  margin-bottom: 46px;
  padding: clamp(28px, 5vw, 62px) 20px;
  border: 1px solid rgba(255, 20, 147, 0.34);
  border-radius: var(--r);
  text-align: center;
  background: conic-gradient(
    from 140deg at 30% 30%,
    rgba(255, 0, 0, 0.4),
    rgba(255, 20, 147, 0.4),
    rgba(38, 23, 23, 0.55),
    rgba(255, 0, 0, 0.4)
  );
  backdrop-filter: blur(6px);
}

.cta a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-family: var(--fd);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.6);
  transition: letter-spacing 0.3s ease;
}

.cta a:hover {
  letter-spacing: 0.02em;
}

.fcols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.fh {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--pink);
}

.fcols address {
  font-style: normal;
  color: rgba(251, 244, 242, 0.74);
  font-size: 15px;
}

.fcols ul,
.fbase ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fcols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(251, 244, 242, 0.78);
  font-size: 15px;
  text-decoration: none;
}

.fcols a:hover {
  color: #fff;
}

.fbase {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 22px;
}

.fbase p {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
}

.fbase ul {
  display: flex;
  gap: 20px;
}

.fbase a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
}

.fbase a:hover {
  color: #fff;
}

/* ---------- 入场 ---------- */

.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- 窄屏 ---------- */

@media (max-width: 1080px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    order: 2;
  }

  .idx {
    columns: 2;
    column-gap: 22px;
  }

  .idx li {
    break-inside: avoid;
  }
}

@media (max-width: 820px) {
  :root {
    --rail: 0px;
    --railh: 62px;
  }

  .rail {
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .grow {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .dock {
    order: 2;
  }

  .dock > summary {
    padding: 10px;
  }

  .dock > summary .word {
    display: none;
  }

  .find {
    order: 3;
    width: 132px;
  }

  .dock menu {
    padding: 5vh 20px 90px;
  }

  .charge,
  .wrap {
    padding-top: 88px;
  }

  .wrap {
    padding-left: 16px;
    padding-right: 16px;
    gap: 22px;
  }

  main,
  footer {
    padding-left: 0;
    margin-left: 0;
  }

  .paper {
    padding: 18px 16px 26px;
  }

  .paper section[id] {
    scroll-margin-top: 84px;
  }

  .fcols {
    grid-template-columns: 1fr 1fr;
  }

  .fcol:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .find {
    width: 104px;
  }

  .hero {
    min-height: 54vh;
  }
}

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

  body::before {
    animation: none;
  }

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

  .dock menu a,
  .idx a,
  .cta a {
    transition: none;
  }
}

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