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

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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #180d0d;
  --tx: #f6e9ea;
  --mut: #c9a7ac;
  --line: rgba(255, 255, 255, 0.13);
  --dock: 74px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Poppins', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  padding-bottom: calc(var(--dock) + 12px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 40% at 84% 6%, rgba(255, 0, 0, 0.30), transparent 66%),
    radial-gradient(50% 45% at 10% 28%, rgba(255, 20, 147, 0.22), transparent 68%),
    radial-gradient(60% 50% at 62% 94%, rgba(255, 70, 20, 0.16), transparent 70%);
  background-size: 180% 180%;
  filter: blur(22px) saturate(1.2);
  animation: flow 12s ease-in-out infinite alternate;
  opacity: 0.85;
}

@keyframes flow {
  0% { background-position: 0% 0%, 100% 10%, 50% 100%; }
  100% { background-position: 42% 22%, 40% 62%, 18% 58%; }
}

/* ---- 底部固定条 ---- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--dock);
  padding: 0.55rem 0.85rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 11, 11, 0.88);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.dock-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tx);
  font: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  letter-spacing: 0.05em;
  transition: background 0.25s, border-color 0.25s;
}

.dock-btn:hover {
  background: rgba(255, 20, 147, 0.22);
  border-color: rgba(255, 20, 147, 0.6);
}

.brand {
  justify-self: center;
  font-family: 'Poppins', 'PingFang SC', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 0.35rem;
  white-space: nowrap;
  background: linear-gradient(100deg, #ffffff, var(--pink) 48%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dock-nav { display: none; }

@media (min-width: 1180px) {
  .dock { grid-template-columns: auto 1fr auto 1fr auto; }
  .dock-nav { display: block; }
  .dock-nav p { display: flex; margin: 0; gap: 0.1rem; }
  .dock-nav--l { justify-self: end; }
  .dock-nav--r { justify-self: start; }
  .dock-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.55rem;
    font-size: 1rem;
    color: var(--mut);
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s;
  }
  .dock-nav a:hover { color: #fff; border-bottom-color: var(--pink); }
}

/* ---- 首屏 ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #2a1414;
  border-radius: 0 0 62% 62% / 0 0 7vh 7vh;
}

@media (min-width: 860px) {
  .hero { border-radius: 0 0 55% 55% / 0 0 15vh 15vh; }
}

.hero-mesh {
  position: absolute;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 25% 20%, rgba(255, 0, 0, 0.85), transparent 62%),
    radial-gradient(46% 46% at 80% 14%, rgba(255, 20, 147, 0.82), transparent 60%),
    radial-gradient(56% 50% at 64% 82%, rgba(255, 96, 60, 0.55), transparent 66%),
    radial-gradient(44% 44% at 10% 86%, rgba(255, 20, 147, 0.5), transparent 62%);
  background-size: 200% 200%;
  filter: blur(10px) saturate(1.3);
  mix-blend-mode: screen;
  animation: flow 11s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.65;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(72% 68% at 52% 44%, #000, transparent 78%);
  mask-image: radial-gradient(72% 68% at 52% 44%, #000, transparent 78%);
}

.hero-art { position: absolute; inset: 0; z-index: -3; }

.hero-img {
  width: 100%;
  height: 122%;
  object-fit: cover;
  opacity: 0.52;
  transform: translateY(var(--py, 0px));
  will-change: transform;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 7rem 1.15rem 4.2rem;
  text-align: right;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 7.4vw, 4.25rem);
  color: #fff;
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  margin: 1rem 0 1.7rem auto;
  max-width: 34ch;
  font-size: 1rem;
  color: #ffe6ec;
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.65);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.09em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s;
}

.hero-cta:hover {
  background: linear-gradient(100deg, var(--red), var(--pink));
  border-color: transparent;
}

/* ---- 正文 ---- */
.main { position: relative; z-index: 1; padding: 3.5rem 1.1rem 3rem; }
.wrap { max-width: 1180px; margin: 0 auto; }
.col { display: grid; gap: 2.4rem; }

@media (min-width: 980px) {
  .col { grid-template-columns: minmax(0, 1fr) 262px; gap: 3.2rem; align-items: start; }
}

.prose {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.92;
  color: #eddfe1;
}

.prose h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  color: #fff;
}

.prose h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  color: #ffe1e8;
}

.prose p { margin: 0 0 1.15rem; }

.prose a {
  color: #ff8fc0;
  border-bottom: 1px solid rgba(255, 143, 192, 0.45);
}

.prose a:hover { color: #fff; border-bottom-color: #fff; }

.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }

.prose blockquote {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 20, 147, 0.08);
  border-left: 2px solid var(--pink);
  font-size: 1.02rem;
}

.prose figure { margin: 0 0 1.4rem; }
.prose img { width: 100%; height: auto; box-shadow: 0 24px 50px -34px rgba(255, 20, 147, 0.95); }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.7rem; text-align: left; }
.prose th { background: rgba(255, 20, 147, 0.12); color: #fff; font-weight: 600; }

.prose hr {
  height: 1px;
  border: 0;
  margin: 0 0 1.5rem;
  background: linear-gradient(90deg, var(--red), var(--pink), transparent);
}

.prose article {
  padding-top: 0.9rem;
  scroll-margin-top: 1.6rem;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.prose article + article {
  margin-top: 2.8rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.prose article:nth-child(2) { animation-delay: 0.06s; }
.prose article:nth-child(3) { animation-delay: 0.12s; }
.prose article:nth-child(4) { animation-delay: 0.18s; }
.prose article:nth-child(5) { animation-delay: 0.24s; }
.prose article:nth-child(6) { animation-delay: 0.3s; }
.prose article:nth-child(7) { animation-delay: 0.36s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---- 右侧栏 ---- */
.side {
  padding: 1.1rem 1rem;
  background: linear-gradient(180deg, rgba(255, 20, 147, 0.13), rgba(255, 0, 0, 0.05));
  border: 1px solid var(--line);
  box-shadow: 0 26px 52px -36px rgba(255, 20, 147, 0.95);
}

@media (min-width: 980px) {
  .side { position: sticky; top: 1.6rem; }
}

.side-h {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: #ffd6e4;
}

.side hr {
  height: 1px;
  border: 0;
  margin: 0 0 0.9rem;
  background: linear-gradient(90deg, var(--pink), rgba(255, 20, 147, 0.1));
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: #e8d6da;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  transition: color 0.25s, padding-left 0.25s;
}

.side-list a:hover { color: #fff; padding-left: 0.3rem; }

/* ---- 页脚 ---- */
footer {
  position: relative;
  z-index: 1;
  padding: 2.2rem 1.1rem 1.4rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.foot {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem 2.4rem;
}

footer dl { margin: 0; min-width: 104px; }

footer dt {
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 0.25rem;
}

footer dd { margin: 0; }

footer dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 1rem;
  color: #e3d2d5;
  transition: color 0.25s;
}

footer dd a:hover { color: #fff; }

.copy {
  max-width: 1180px;
  margin: 1.3rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--mut);
}

/* ---- 全屏菜单 ---- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 2rem 1.15rem calc(var(--dock) + 1.5rem);
  background:
    radial-gradient(60% 50% at 72% 14%, rgba(255, 20, 147, 0.45), transparent 62%),
    radial-gradient(62% 55% at 18% 82%, rgba(255, 0, 0, 0.42), transparent 66%),
    #160b0b;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}

.menu.open { opacity: 1; visibility: visible; transform: none; }

.menu-box { width: 100%; max-width: 460px; }

.menu-close {
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--tx);
  font: inherit;
  font-size: 1rem;
}

.menu-search input {
  width: 100%;
  min-height: 50px;
  padding: 0.6rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 0;
}

.menu-search input::placeholder { color: #c8aeb2; }

.menu-nav p { display: grid; margin: 1rem 0 0; }

.menu-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.25rem 0.1rem;
  font-size: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s, padding-left 0.25s;
}

.menu-nav a:hover { color: #ff8fc0; padding-left: 0.5rem; }

body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-img { transform: none; }
}

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