@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Patrick+Hand&display=swap');

:root {
  --bg: #000000;
  --panel: #0b0b0b;
  --line: #262626;
  --ink: #e9e6e2;
  --dim: #a9a3a0;
  --pink: #ff4d9d;
  --gold: #ffd166;
  --mint: #7bf1c0;
  --r: 18px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Kalam', 'Patrick Hand', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.2px);
  background-size: 24px 24px;
}

a { color: inherit; }
img { max-width: 100%; }

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

ol, ul { list-style-position: outside; }

/* 顶栏：品牌居中，菜单分列两侧 */
.bar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px clamp(10px, 3.5vw, 36px);
  background: #000;
  border-bottom: 1.5px dashed var(--line);
}

.bar__side { min-width: 0; }
.bar__side--l { justify-self: start; }
.bar__side--r { justify-self: end; }

.bar__list,
.strip__list,
.foot__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bar__list { display: flex; flex-wrap: wrap; gap: 2px; }

.bar__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 11px;
  font-size: 16.5px;
  color: var(--dim);
  text-decoration: none;
  border-radius: 14px;
  transition: color .2s ease, background .2s ease;
}

.bar__list a:hover,
.bar__list a:focus-visible {
  color: #fff;
  background: #121212;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 77, 157, .45);
}

.brand__mark { display: block; width: 26px; height: 26px; }

.brand__txt { padding-bottom: 1px; border-bottom: 2px dashed var(--pink); }

/* 粘性锚点条 */
.strip {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px clamp(10px, 3.5vw, 36px);
  background: rgba(0, 0, 0, .9);
  border-bottom: 1.5px dashed var(--line);
  backdrop-filter: blur(6px);
}

.strip nav { flex: 1 1 auto; min-width: 0; }

.strip__list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.strip__list::-webkit-scrollbar { display: none; }

.strip__list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  font-size: 16px;
  color: #8f8a86;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.strip__list a:hover,
.strip__list a:focus-visible {
  color: #fff;
  border-bottom-color: var(--pink);
}

.strip__form { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }

.strip__input {
  width: 110px;
  min-height: 42px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 16px;
  color: #fff;
  background: #080808;
  border: 1.5px solid #2c2c2c;
  border-radius: 14px;
}

.strip__input::placeholder { color: #6d6866; }

.strip__btn {
  min-height: 42px;
  padding: 4px 13px;
  font-family: inherit;
  font-size: 16px;
  color: #ffc9e1;
  background: transparent;
  border: 1.5px solid var(--pink);
  border-radius: 14px;
  cursor: pointer;
}

.strip__btn:hover { background: #160309; color: #fff; }

/* 主栏 + 右侧栏 */
.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  align-items: start;
  gap: clamp(18px, 3.5vw, 42px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3.5vw, 44px) clamp(12px, 3.5vw, 36px) 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  min-height: 45vh;
  margin: 0 0 clamp(22px, 4vw, 40px);
}

.hero__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 77, 157, .16), transparent 62%),
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 16px 16px,
    #0a0a0a;
  border: 1.5px solid #2b2b2b;
  border-bottom: 3px solid var(--pink);
  border-radius: var(--r);
}

.hero__frame:empty { display: none; }

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(calc(var(--py, 0) * 1px)) scale(1.06);
}

.hero__copy { text-align: right; }

h1 {
  margin: 0 0 12px;
  font-size: clamp(27px, 4.4vw, 44px);
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 77, 157, .32);
}

.hero__desc { margin: 0 0 20px; font-size: 17px; color: #b6afab; }

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 20px;
  font-size: 16.5px;
  color: #ffd7e8;
  text-decoration: none;
  border: 1.5px solid var(--pink);
  border-bottom-width: 3px;
  border-radius: var(--r);
}

.cta:hover { background: #160309; color: #fff; }

/* 正文 */
.sheet { min-width: 0; }

.sheet > div {
  scroll-margin-top: 118px;
  margin: 0 0 clamp(16px, 3vw, 26px);
  padding: clamp(15px, 2.8vw, 26px);
  background: #070707;
  border: 1.5px dashed #2a2a2a;
  border-bottom: 3px solid #1c1c1c;
  border-radius: var(--r);
}

.sheet h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.26;
  color: #fff;
}

.sheet h2 span { padding-bottom: 2px; border-bottom: 2px dashed rgba(255, 77, 157, .6); }

.sheet h3 { margin: 20px 0 10px; font-size: 19px; color: #fff; }

.sheet h3 span { padding-bottom: 2px; border-bottom: 1.5px dashed #3a3a3a; }

.sheet p { margin: 0 0 14px; color: #cdc7c2; }

.sheet ul,
.sheet ol { margin: 0 0 16px; padding-left: 1.25em; color: #c6c0bb; }

.sheet li { margin: 0 0 6px; }

.sheet a { color: #ffa8cd; text-underline-offset: 3px; }

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

.sheet blockquote {
  margin: 0 0 16px;
  padding: 10px 14px;
  color: #ded6c9;
  background: #0d0c08;
  border-left: 3px solid var(--gold);
}

.sheet table { width: 100%; border-collapse: collapse; font-size: 16px; }

.sheet th,
.sheet td { padding: 8px; text-align: left; border-bottom: 1px dashed #2c2c2c; }

/* 右侧栏 */
.rail { position: sticky; top: 64px; min-width: 0; }

.rail__h {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 400;
  color: #8f8a86;
  letter-spacing: .06em;
}

.rail__h span { padding-bottom: 3px; border-bottom: 1.5px dashed #333; }

.rail__list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border-left: 1.5px dashed var(--line);
}

.rail__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 2px 10px;
  font-size: 16px;
  color: #b6afab;
  text-decoration: none;
}

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

.rail__list em { font-style: normal; font-size: 16px; color: var(--pink); }

.rail__top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 2px 16px;
  font-size: 16px;
  color: #c9c3bf;
  text-decoration: none;
  border: 1.5px solid #2c2c2c;
  border-radius: 999px;
}

.rail__top:hover { border-color: var(--pink); color: #fff; }

/* 页脚 */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 20px clamp(12px, 3.5vw, 36px) 36px;
  border-top: 1.5px dashed var(--line);
}

.foot__list { display: flex; flex-wrap: wrap; gap: 2px; }

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 3px 10px;
  font-size: 16px;
  color: #a9a3a0;
  text-decoration: none;
  border-radius: 12px;
}

.foot a:hover { color: #fff; background: #121212; }

.foot__brand a { font-size: 18px; font-weight: 700; color: #fff; }

.foot__copy { margin: 0; font-size: 16px; color: #75706d; }

/* 移动端 */
@media (max-width: 860px) {
  .bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    padding: 8px 10px 4px;
  }

  .bar__side--l,
  .bar__side--r { justify-self: center; }

  .bar__list { justify-content: center; }

  .stage { grid-template-columns: minmax(0, 1fr); }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
  }

  .hero__copy { order: -1; text-align: left; }

  .rail { position: static; margin-top: 6px; }

  .sheet > div { scroll-margin-top: 126px; }

  .strip__input { width: 84px; }

  h1 { font-size: clamp(26px, 7.2vw, 34px); }
}

@media (max-width: 420px) {
  .strip { gap: 6px; }
  .strip__list a { padding: 4px 8px; }
  .hero__desc { font-size: 16px; }
}

/* 动效 */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
  }

  .js .reveal.in { opacity: 1; transform: none; }

  .js .sheet > div {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: calc(var(--i, 0) * 55ms);
  }

  .js .sheet > div.in { opacity: 1; transform: none; }
}

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