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

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

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #f8eeee;
  --dim: #cdb2b6;
  --glass: rgba(255, 255, 255, .055);
  --line: rgba(255, 20, 147, .26);
  --hair: rgba(255, 255, 255, .1);
  --r: 4px;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  letter-spacing: .01em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -32%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 25deg at 42% 48%,
      rgba(255, 0, 0, .40),
      rgba(255, 20, 147, .34),
      rgba(72, 16, 44, .52),
      rgba(255, 86, 0, .26),
      rgba(255, 0, 0, .40));
  filter: blur(84px) saturate(1.25);
  opacity: .88;
  animation: drift 11s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .28;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 12%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 22%, #000 12%, transparent 72%);
}

@keyframes drift {
  0%, 100% { transform: translate3d(-3%, -2%, 0) scale(1.06); }
  50% { transform: translate3d(4%, 3%, 0) scale(1.18); }
}

img { max-width: 100%; }

a { color: #ff9dc0; }

/* ---------- 顶栏 ---------- */
.bar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: .55rem clamp(.8rem, 3vw, 1.6rem);
  background: linear-gradient(180deg, rgba(38, 23, 23, .8), rgba(38, 23, 23, .28));
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

.bar__nav { width: -moz-fit-content; width: fit-content; }

summary {
  display: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 .95rem;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--paper);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "";
  width: 15px;
  height: 2px;
  margin-right: .1rem;
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 5px 0 var(--pink), 0 -5px 0 var(--red);
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: .5rem .5rem;
  min-height: 42px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  font-size: clamp(1.02rem, 3.6vw, 1.28rem);
  font-weight: 600;
  letter-spacing: .22em;
  text-indent: .22em;
  background: linear-gradient(96deg, #ffffff, #ffc6da 38%, var(--pink) 72%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.set {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: clamp(.2rem, 1.3vw, 1rem);
}

.set--l { left: clamp(.8rem, 3vw, 1.6rem); }
.set--r { right: clamp(.8rem, 3vw, 1.6rem); }

.set a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .55rem;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-radius: var(--r);
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}

.set a:hover,
.set a:focus-visible {
  color: #fff;
  background: rgba(255, 20, 147, .18);
  box-shadow: inset 0 -2px 0 var(--pink);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: clamp(3.2rem, 11vh, 6.5rem) clamp(1rem, 5vw, 3rem) clamp(5rem, 15vh, 8.5rem);
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 44% 44% / 0 0 9% 9%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(64% 72% at 50% 4%, rgba(255, 20, 147, .26), transparent 68%),
    radial-gradient(52% 60% at 18% 76%, rgba(255, 0, 0, .22), transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 10%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 44%, #000 10%, transparent 76%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(1.25) contrast(1.05);
}

.hero__box {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: .01em;
  background: linear-gradient(100deg, #ffffff, #ffd5e2 34%, var(--pink) 68%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(255, 20, 147, .22);
  animation: glow 12s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.3) brightness(1.08); }
}

.hero .lead {
  margin: 0 auto;
  max-width: 34em;
  font-size: clamp(1rem, 2.6vw, 1.08rem);
  line-height: 1.8;
  color: #ecd6da;
}

/* ---------- 主体 ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1rem, 3.4vw, 2rem) clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}

.prose {
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.1rem, 3.2vw, 2.3rem);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 24px 70px -40px rgba(255, 20, 147, .55);
}

.prose > section {
  scroll-margin-top: 26px;
  opacity: 0;
  transform: translateY(16px);
  animation: rise .85s cubic-bezier(.22, .7, .3, 1) forwards;
}

.prose > section:nth-child(1) { animation-delay: .04s; }
.prose > section:nth-child(2) { animation-delay: .11s; }
.prose > section:nth-child(3) { animation-delay: .18s; }
.prose > section:nth-child(4) { animation-delay: .25s; }
.prose > section:nth-child(5) { animation-delay: .32s; }
.prose > section:nth-child(6) { animation-delay: .39s; }
.prose > section:nth-child(7) { animation-delay: .46s; }

.prose > section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--hair);
}

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

.prose h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.32rem, 3.6vw, 1.82rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: .02em;
  background: linear-gradient(96deg, #ffffff, #ffd2e0 48%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose h3 {
  margin: 1.7rem 0 .5rem;
  font-size: 1.13rem;
  line-height: 1.5;
  color: #ffd9e5;
}

.prose p { margin: 0 0 1.05rem; color: #f1e0e3; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.prose li { margin: .4rem 0; }
.prose strong { color: #fff; }
.prose a { text-underline-offset: 3px; }
.prose img { height: auto; border-radius: var(--r); }

.prose blockquote {
  margin: 1.4rem 0;
  padding: .9rem 1.1rem;
  border-left: 2px solid var(--pink);
  border-radius: var(--r);
  background: rgba(255, 20, 147, .09);
  color: #f7e1e7;
}

.prose code {
  font-size: .94em;
  padding: .1em .35em;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 1.2rem;
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .028));
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 60px -42px rgba(255, 0, 0, .7);
}

.side h2 {
  margin: 0 0 .2rem;
  font-size: 1.02rem;
  line-height: 1.5;
  letter-spacing: .18em;
  color: #fff;
}

.side .subtitle {
  margin: 0 0 .8rem;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .16em;
  color: var(--pink);
}

.side__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: side;
}

.side__list li { counter-increment: side; }

.side__list a {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .2rem .35rem;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: color .22s ease, padding-left .22s ease;
}

.side__list a::before {
  content: counter(side, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(255, 20, 147, .8);
}

.side__list a:hover,
.side__list a:focus-visible {
  color: #fff;
  padding-left: .7rem;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  padding: clamp(1.7rem, 4.4vw, 2.8rem) clamp(1rem, 3.4vw, 2rem) 1.2rem;
  border-top: 1px solid var(--hair);
  background: linear-gradient(0deg, rgba(38, 23, 23, .92), rgba(38, 23, 23, .1));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.foot__cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.2rem;
}

.foot address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.foot address strong {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .2em;
  color: #fff;
}

.foot address span {
  font-size: 15px;
  line-height: 1.6;
  color: #a98f93;
  word-break: break-all;
}

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

.foot__links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: color .22s ease;
}

.foot__links a:hover,
.foot__links a:focus-visible { color: #fff; }

.foot__copy {
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-align: center;
  color: #a98f93;
}

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

/* ---------- 窄屏 ---------- */
@media (max-width: 880px) {
  .bar {
    display: block;
    min-height: 60px;
    padding: .55rem .8rem;
  }

  summary { display: flex; }

  .set {
    position: static;
    transform: none;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: -moz-max-content;
    width: max-content;
    max-width: calc(100vw - 1.6rem);
    margin: .45rem 0 .2rem;
    padding: .35rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: rgba(38, 23, 23, .78);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  details[open] > .set { display: flex; }

  .set a { min-height: 46px; padding: 0 .8rem; }

  .set--l, .set--r { left: auto; right: auto; }

  .brand { font-size: 1.05rem; letter-spacing: .18em; text-indent: .18em; }

  .hero {
    min-height: 62vh;
    border-radius: 0 0 30% 30% / 0 0 5% 5%;
    padding: 3rem 1.1rem 4.4rem;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.6rem;
  }

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

  .foot__cols { grid-template-columns: 1fr; gap: .8rem; }
  .foot__links { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
  .foot__links li { flex: 0 0 auto; }
  .foot__links a { border-bottom: 0; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .brand { font-size: 1rem; letter-spacing: .12em; text-indent: .12em; }
  .hero h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .hero h1 { animation: none; }
  .prose > section { opacity: 1; transform: none; animation: none; }
  * { transition-duration: .01ms !important; }
}

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