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

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

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #140a0a;
  --fg: #f8eded;
  --dim: #c8aeb2;
  --line: rgba(255, 255, 255, 0.18);
  --line-2: rgba(255, 255, 255, 0.08);
  --rad: 4px;
  --rail: 5.5rem;
  --fa: "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --fb: "Space Grotesk", "Archivo", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

body {
  margin: 0;
  padding-left: var(--rail);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--fa);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 44% at 16% 10%, rgba(255, 0, 0, 0.62), transparent 62%),
    radial-gradient(42% 40% at 84% 18%, rgba(255, 20, 147, 0.58), transparent 66%),
    radial-gradient(44% 48% at 56% 86%, rgba(255, 92, 30, 0.3), transparent 68%),
    radial-gradient(40% 44% at 10% 80%, rgba(186, 0, 96, 0.4), transparent 70%);
  filter: blur(72px) saturate(1.25);
  opacity: 0.5;
  animation: aurora 11s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(-2%, 1%, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.07); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.03); }
}

body.lock { overflow: hidden; }

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

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

.skip {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translate(-50%, -180%);
  z-index: 90;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: var(--ink);
  color: var(--fg);
  transition: transform 0.2s ease;
}
.skip:focus { transform: translate(-50%, 0); }

/* 左侧竖导轨 */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 1.1rem 0.4rem;
  border-right: 1px solid var(--line-2);
  background: rgba(20, 10, 10, 0.55);
  backdrop-filter: blur(14px);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--fg);
  font-family: var(--fb);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand:hover { color: var(--pink); }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--rad); }
.brand-txt { writing-mode: vertical-rl; font-size: 0.95rem; letter-spacing: 0.3em; }

.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 44px;
  min-height: 44px;
  padding: 0.65rem 0;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.burger:hover { border-color: var(--pink); background: rgba(255, 20, 147, 0.16); }
.burger-bars {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}
.burger-txt { font-size: 0.7rem; letter-spacing: 0.16em; }

/* 全屏遮罩菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  background:
    radial-gradient(58% 58% at 84% 8%, rgba(255, 20, 147, 0.34), transparent 70%),
    radial-gradient(56% 56% at 8% 92%, rgba(255, 0, 0, 0.34), transparent 72%),
    rgba(16, 8, 8, 0.94);
  backdrop-filter: blur(10px);
}
.menu.on { opacity: 1; visibility: visible; }

.menu-in {
  margin: auto;
  width: min(860px, 100%);
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem);
  display: grid;
  gap: 2rem;
}

.find {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.04);
}
.find-in {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: var(--rad);
  background: transparent;
}
.find-in::placeholder { color: var(--dim); }
.find-btn {
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  cursor: pointer;
  transition: filter 0.25s ease;
}
.find-btn:hover { filter: saturate(1.3) brightness(1.08); }

.menu-nav h2 {
  margin: 0 0 0.9rem;
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--dim);
}
.menu-nav ul { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.menu-nav li { counter-increment: m; }
.menu-a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.3rem 0.35rem;
  border-bottom: 1px solid var(--line-2);
  color: var(--fg);
  font-family: var(--fb);
  font-size: clamp(1.15rem, 3.1vw, 1.7rem);
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.menu-a::before {
  content: counter(m, decimal-leading-zero);
  margin-right: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.menu-a:hover { color: var(--pink); padding-left: 0.8rem; }

main {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

article { position: relative; padding-bottom: 2rem; }

/* 顶部主视觉 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  min-height: 70vh;
  padding: clamp(2.5rem, 9vh, 5rem) 0 2.5rem;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(66% 62% at 50% 46%, #000 18%, transparent 78%);
  mask-image: radial-gradient(66% 62% at 50% 46%, #000 18%, transparent 78%);
}
.hero-in { max-width: 22ch; }
h1 {
  margin: 0;
  font-family: var(--fb);
  font-size: clamp(2.1rem, 6.2vw, 4.1rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  background: linear-gradient(102deg, #ffffff 8%, var(--pink) 56%, var(--red) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.hero-media { width: min(920px, 100%); }
.hero-img {
  width: 100%;
  height: min(42vh, 360px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--rad);
}

/* 正文区块 */
article > section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line-2);
  scroll-margin-top: 5.5rem;
}
article > section h2 {
  margin: 0 0 1rem;
  font-family: var(--fb);
  font-size: clamp(1.35rem, 3.3vw, 2rem);
  font-weight: 600;
  line-height: 1.32;
}
article > section h2 span {
  background: linear-gradient(92deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
article > section p {
  margin: 0 0 1.1rem;
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.78;
  color: #f0e2e3;
}
article > section ul,
article > section ol { max-width: 68ch; padding-left: 1.3rem; }
article > section li { margin-bottom: 0.5rem; line-height: 1.75; }
article > section a { text-decoration: underline; text-underline-offset: 3px; }
article > section blockquote {
  margin: 1.2rem 0;
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid var(--pink);
  color: var(--dim);
}
article > section img { border: 1px solid var(--line); border-radius: var(--rad); }
article > section table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
article > section th,
article > section td { border: 1px solid var(--line-2); padding: 0.5rem 0.65rem; text-align: left; }

/* 侧栏 */
.side { margin-top: 2.5rem; }
.side-box {
  padding: 1rem 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.035);
}
.side h2 {
  margin: 0 0 0.7rem;
  font-family: var(--fb);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.15rem; }
.side-a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.2rem 0.45rem;
  border-bottom: 1px dashed var(--line-2);
  border-radius: var(--rad);
  color: var(--fg);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.side-a:hover { background: rgba(255, 20, 147, 0.16); color: #fff; }

/* 页脚 */
footer {
  margin-top: 3.5rem;
  padding: 2.25rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(15, 8, 8, 0.6);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}
.f-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-family: var(--fb);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.f-logo:hover { color: var(--pink); }
.f-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--rad); }
.f-nav dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.9rem;
  max-width: 34rem;
}
.f-nav dt {
  flex-basis: 100%;
  margin-bottom: 0.15rem;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}
.f-nav dd { margin: 0; }
.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--rad);
  color: var(--fg);
  font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.f-nav a:hover { border-color: var(--line); color: var(--pink); }

.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sub-in {
  min-height: 44px;
  min-width: 11rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: rgba(255, 255, 255, 0.04);
}
.sub-in::placeholder { color: var(--dim); }
.sub-btn {
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background: linear-gradient(100deg, var(--red), var(--pink));
  color: #fff;
  cursor: pointer;
  transition: filter 0.25s ease;
}
.sub-btn:hover { filter: brightness(1.1); }
.sub-note { font-size: 0.85rem; color: var(--dim); min-height: 1.2em; }

.f-legal {
  flex: 1 0 100%;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-2);
  text-align: center;
  font-size: 0.85rem;
  color: var(--dim);
}

@media (min-width: 1040px) {
  article { padding-right: 19rem; }
  .side {
    position: absolute;
    top: 2.5rem;
    right: 0;
    width: 17rem;
    margin-top: 0;
  }
}

@media (max-width: 899px) {
  body { padding-left: 0; padding-top: 4.5rem; }
  .rail {
    right: 0;
    bottom: auto;
    width: auto;
    height: 4.5rem;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-2);
  }
  .brand-txt { writing-mode: horizontal-tb; letter-spacing: 0.14em; }
  .hero { min-height: 62vh; }
}

@media (max-width: 520px) {
  footer { flex-direction: column; gap: 1.25rem; }
  .f-nav dl { gap: 0.2rem 0.5rem; }
  .sub-in { min-width: 0; flex: 1 1 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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