@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Righteous&display=swap');

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #fff3ef;
  --dim: rgba(255, 243, 239, .74);
  --rail: 64px;
  --line: rgba(255, 255, 255, .15);
  --glass: rgba(255, 255, 255, .07);
  --font: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Righteous", "Poppins", system-ui, sans-serif;
}

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

html {
  background: #150c0c;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  opacity: .72;
  filter: blur(72px) saturate(1.25);
  background:
    radial-gradient(35% 40% at 22% 24%, var(--pink) 0%, rgba(255, 20, 147, 0) 66%),
    radial-gradient(30% 36% at 76% 18%, var(--red) 0%, rgba(255, 0, 0, 0) 62%),
    radial-gradient(46% 44% at 62% 78%, var(--pink) 0%, rgba(255, 20, 147, 0) 70%),
    radial-gradient(32% 40% at 12% 86%, var(--red) 0%, rgba(255, 0, 0, 0) 66%);
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.12) rotate(6deg); }
  100% { transform: translate3d(4%, -3%, 0) scale(1.06) rotate(-5deg); }
}

a { color: inherit; text-decoration: none; }

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

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

/* ---------- 左侧竖栏 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 23, .82), rgba(21, 12, 12, .86));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  color: var(--paper);
}

.brand span {
  writing-mode: vertical-rl;
  letter-spacing: .22em;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.2;
}

.brand:hover span {
  background: linear-gradient(180deg, var(--pink), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dock { width: 100%; }

.dock > summary {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 50px;
  cursor: pointer;
  list-style: none;
}

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

.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bars i {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform .3s ease, opacity .3s ease;
}

.dock[open] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dock[open] .bars i:nth-child(2) { opacity: 0; }
.dock[open] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dock[open] > menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 92px 24px 48px calc(var(--rail) + 26px);
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(18, 10, 10, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: veil .3s ease both;
}

@keyframes veil {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dock[open] > menu li { list-style: none; }

.dock[open] > menu li a {
  display: block;
  padding: 12px 0;
  font-family: var(--display);
  font-size: clamp(19px, 5vw, 26px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: color .25s ease, padding-left .25s ease;
}

.dock[open] > menu li a:hover {
  color: var(--pink);
  padding-left: 10px;
}

.totop {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--dim);
  padding: 12px 0;
  min-height: 44px;
}

.totop:hover { color: var(--pink); }

/* ---------- 主体 ---------- */
main { padding-left: var(--rail); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 60px 0;
}

.ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.ghost span {
  font-family: var(--display);
  font-size: clamp(52px, 15vw, 170px);
  line-height: 1;
  letter-spacing: .04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .18);
  opacity: .95;
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, 1%, 0); }
  to { transform: translate3d(1.5%, -1.5%, 0); }
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.22;
  letter-spacing: .01em;
  max-width: 15em;
  text-shadow: 0 2px 34px rgba(0, 0, 0, .55);
  background: linear-gradient(105deg, #ffffff 20%, #ffd9e9 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 正文区 ---------- */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  grid-template-areas:
    "hd hd"
    "sub sub"
    "art aside";
  gap: 12px 34px;
  align-content: start;
  padding: 76px 0 96px;
  border-top: 1px solid var(--line);
}

.doc > h2 {
  grid-area: hd;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.3;
}

.subtitle {
  grid-area: sub;
  margin: 0 0 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
}

div {
  grid-area: art;
  min-width: 0;
  overflow-wrap: break-word;
}

div > section {
  scroll-margin-top: 24px;
}

div > section + section {
  margin-top: 56px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

div h2,
div h3 {
  font-family: var(--display);
  line-height: 1.35;
  margin: 0 0 14px;
}

div h2 { font-size: 1.45rem; }
div h3 { font-size: 1.18rem; margin-top: 30px; }

div h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

div p { margin: 0 0 18px; }

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

div li { margin-bottom: 8px; }

div strong { color: #ffd9e9; }

div a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

div blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 10px 10px 0;
  background: var(--glass);
  color: var(--dim);
}

div table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
}

div th,
div td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- 侧栏 ---------- */
aside {
  grid-area: aside;
  align-self: start;
  position: sticky;
  top: 26px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9);
}

.aside-h {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .06em;
}

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

.aside-list a {
  display: block;
  padding: 9px 0;
  min-height: 40px;
  font-size: 16px;
  color: var(--dim);
  border-bottom: 1px dashed rgba(255, 255, 255, .09);
  transition: color .22s ease, padding-left .22s ease;
}

.aside-list li:last-child a { border-bottom: 0; }

.aside-list a:hover {
  color: var(--pink);
  padding-left: 6px;
}

/* ---------- 页脚 ---------- */
.foot {
  padding-left: var(--rail);
  border-top: 1px solid var(--line);
  background: rgba(17, 10, 10, .55);
}

.cta {
  max-width: 1080px;
  margin: 34px auto 0;
  padding: 54px 28px;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(255, 20, 147, .3), rgba(255, 20, 147, 0) 62%),
    radial-gradient(120% 140% at 92% 100%, rgba(255, 0, 0, .28), rgba(255, 0, 0, 0) 60%),
    rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cta-big {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 5vw, 46px);
  line-height: 1.2;
  letter-spacing: .02em;
}

.cta-btn {
  display: inline-block;
  padding: 14px 30px;
  min-height: 48px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 17px;
  color: #1a0c0c;
  background: linear-gradient(100deg, var(--red), var(--pink));
  transition: transform .25s ease, box-shadow .25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -14px rgba(255, 20, 147, .9);
}

.cols {
  max-width: 1080px;
  margin: 46px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
}

.cols address {
  font-style: normal;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.7;
}

.addr-host {
  display: block;
  margin-top: 6px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--dim);
  overflow-wrap: break-word;
}

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

.cols li a {
  display: inline-block;
  padding: 8px 0;
  min-height: 40px;
  font-size: 16px;
  color: var(--dim);
  transition: color .22s ease;
}

.cols li a:hover { color: var(--pink); }

.bar {
  max-width: 1080px;
  margin: 34px auto 0;
  padding: 18px 24px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--dim);
}

.bar p { margin: 0; }

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

.bar li a {
  display: inline-block;
  padding: 10px 0;
  min-height: 40px;
  font-size: 15px;
}

.bar li a:hover { color: var(--pink); }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hd"
      "sub"
      "art"
      "aside";
    gap: 12px;
  }

  aside {
    position: static;
    margin-top: 34px;
  }

  .cols {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .cols address { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --rail: 52px; }

  body { font-size: 16px; }

  .wrap { padding: 0 16px; }

  .doc { padding: 54px 0 70px; }

  .ghost span { font-size: clamp(46px, 14vw, 96px); }

  .cta { margin: 26px 16px 0; padding: 40px 18px; }

  .cols { padding: 0 16px; }

  .bar { padding: 16px 16px 24px; }
}

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

  body::before,
  .ghost span { animation: none; }

  .dock[open] > menu { animation: none; }

  .cta-btn:hover { transform: none; }
}

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