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

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

:root {
  --bg: #0d0d0d;
  --panel: #15111c;
  --panel2: #1c1526;
  --violet: #8000ff;
  --magenta: #ff00ff;
  --ink: #ece4f5;
  --dim: #a99bc4;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Raleway', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 82% -12%, rgba(128, 0, 255, .24), transparent 62%),
    radial-gradient(760px 420px at -6% 18%, rgba(255, 0, 255, .12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  opacity: .85;
}

img { max-width: 100%; }

a { color: #e7b9ff; }

h1, h2, h3 { font-family: 'Lora', Georgia, serif; line-height: 1.22; }

article[id] { scroll-margin-top: 132px; }

/* ---------- 顶部条 + 导航 ---------- */
.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 13, 13, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128, 0, 255, .3);
}

.tog {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 20px;
  border-bottom: 1px dashed rgba(255, 0, 255, .22);
}

.bar__t {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--dim);
  text-transform: uppercase;
}

.bar__s { color: var(--magenta); margin: 0 8px; }
.bar__m { color: var(--violet); }

.bar__x {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--ink);
  background: rgba(128, 0, 255, .22);
  cursor: pointer;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px;
}

.nav__l, .nav__r { display: flex; gap: 26px; align-items: flex-start; min-width: 0; }
.nav__l { justify-content: flex-end; }
.nav__r { justify-content: flex-start; }

.navg { position: relative; }

.navg__k {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--violet);
  padding: 6px 2px 2px;
  text-shadow: 0 0 12px rgba(128, 0, 255, .6);
}

.navg__l { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }

.navg__l a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

.navg__l a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.navg:hover .navg__l a::after,
.navg__l a:hover::after { transform: scaleX(1); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: .14em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(255, 0, 255, .55), 0 0 2px rgba(255, 0, 255, .8);
  white-space: nowrap;
}

.brand__g {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 0 14px rgba(255, 0, 255, .8);
}

/* ---------- 骨架 ---------- */
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 首屏 ---------- */
.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
  min-height: 70vh;
  padding: 44px 0 54px;
  border-bottom: 1px solid rgba(128, 0, 255, .26);
}

.hero__copy { text-align: center; min-width: 0; }

.hero__h {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 26px rgba(128, 0, 255, .65), 0 0 3px rgba(255, 0, 255, .7);
  animation: rise .7s ease both;
}

.hero__p {
  max-width: 38ch;
  margin: 18px auto 26px;
  color: var(--dim);
  animation: rise .7s .1s ease both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
  box-shadow: 0 0 28px rgba(255, 0, 255, .42);
}

.hero__cta:hover { box-shadow: 0 0 40px rgba(255, 0, 255, .7); }

.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  animation: rise .8s .12s ease both;
}

.hero__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  transform-origin: center;
  background: conic-gradient(from 0deg, var(--violet), var(--magenta), transparent 58%, var(--violet));
  animation: spin 18s linear infinite;
  opacity: .95;
}

.hero__pic {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 26px;
  object-fit: cover;
  background: #0d0d0d;
  filter: saturate(.92) contrast(1.06);
}

/* ---------- 正文 ---------- */
.doc {
  min-width: 0;
  display: grid;
  gap: 22px;
  padding-bottom: 10px;
}

.doc article {
  background: var(--panel);
  border-radius: 28px;
  padding: 30px 28px;
  box-shadow: inset 0 0 70px rgba(128, 0, 255, .07);
  animation: rise .6s ease both;
}

.doc article:nth-child(2) { animation-delay: .05s; }
.doc article:nth-child(3) { animation-delay: .1s; }
.doc article:nth-child(4) { animation-delay: .15s; }
.doc article:nth-child(5) { animation-delay: .2s; }
.doc article:nth-child(6) { animation-delay: .25s; }
.doc article:nth-child(7) { animation-delay: .3s; }

.doc h2 {
  margin: 0 0 .55em;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 0, 255, .35);
}

.doc h3 { margin: 1.4em 0 .5em; font-size: 1.2rem; color: #f4e9ff; }

.doc small {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--magenta);
  margin-bottom: 8px;
}

.doc p { margin: 0 0 1em; color: #d7cee4; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.2em; }
.doc li { margin: .35em 0; }
.doc strong { color: #fff; }
.doc a { text-decoration-color: rgba(255, 0, 255, .6); }

/* ---------- 旁栏 ---------- */
.side {
  position: sticky;
  top: 124px;
  margin-top: 4px;
  padding: 22px 18px;
  border-radius: 28px;
  background: var(--panel2);
  box-shadow: inset 0 0 60px rgba(255, 0, 255, .07);
}

.side__k {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--magenta);
  margin-bottom: 6px;
}

.side__h { margin: 0 0 12px; font-size: 1.15rem; color: #fff; }

.side__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.side__l li { animation: rise .45s ease both; }
.side__l li:nth-child(2) { animation-delay: .04s; }
.side__l li:nth-child(3) { animation-delay: .08s; }
.side__l li:nth-child(4) { animation-delay: .12s; }
.side__l li:nth-child(5) { animation-delay: .16s; }
.side__l li:nth-child(6) { animation-delay: .2s; }
.side__l li:nth-child(7) { animation-delay: .24s; }

.side__l a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
}

.side__l a:hover { background: rgba(128, 0, 255, .18); color: #fff; }

/* ---------- 页脚 ---------- */
.foot {
  max-width: 1240px;
  margin: 72px auto 0;
  padding: 0 20px 44px;
}

.cta {
  padding: 40px 26px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(125deg, rgba(128, 0, 255, .4), rgba(255, 0, 255, .28));
  box-shadow: inset 0 0 80px rgba(13, 13, 13, .45);
}

.cta__k {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .32em;
  color: #f6dcff;
  margin-bottom: 10px;
}

.cta__h {
  margin: 0 0 22px;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 0, 255, .6);
}

.cta__b {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0d0d0d;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(13, 13, 13, .6);
}

.cta__b:hover { color: var(--magenta); }

.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(128, 0, 255, .28);
}

.addr {
  font-style: normal;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 0 16px rgba(128, 0, 255, .55);
}

.foot__nav dl { margin: 0; display: grid; gap: 10px; }

.foot__nav dt a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

.foot__nav dt a:hover { color: var(--magenta); }

.foot__nav dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--dim);
}

.fl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.fl a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}

.fl a:hover { color: var(--magenta); }

.copy {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--dim);
  text-align: center;
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- 桌面下拉 ---------- */
@media (min-width: 861px) {
  .navg__l {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 208px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(21, 17, 28, .98);
    box-shadow: 0 0 0 1px rgba(128, 0, 255, .38), 0 18px 40px rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .nav__r .navg__l { left: auto; right: 0; }

  .navg:hover .navg__l,
  .navg:focus-within .navg__l {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navg__l a { padding: 2px 10px; border-radius: 10px; }
  .navg__l a::after { display: none; }
  .navg__l a:hover { background: rgba(128, 0, 255, .2); }
}

/* ---------- 移动端 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }

  .bar { padding: 5px 16px; }
  .bar__x { display: inline-flex; }

  .nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 16px 22px;
  }

  .tog:checked ~ .nav { display: grid; }

  .nav__l, .nav__r {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
  }

  .brand { order: -1; justify-content: center; padding-bottom: 6px; }

  .navg__l {
    flex-direction: column;
    gap: 0;
    border-left: 1px solid rgba(128, 0, 255, .35);
    padding-left: 12px;
  }

  .navg__l a { min-height: 46px; width: 100%; }
  .navg__l a::after { display: none; }

  .main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
    padding: 28px 0 36px;
  }

  .hero__media { order: 2; aspect-ratio: 16 / 10; }

  .doc article { padding: 24px 18px; border-radius: 24px; }

  .side {
    position: static;
    margin-top: 0;
    padding: 20px 16px;
  }

  .side__l { grid-template-columns: 1fr 1fr; gap: 4px; }
  .side__l a { min-height: 44px; font-size: 15px; }

  .foot { margin-top: 52px; padding: 0 16px 36px; }
  .cta { padding: 30px 18px; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; gap: 18px; }
  .side__l { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__h, .hero__p, .hero__media, .doc article, .side__l li { opacity: 1; transform: none; }
}

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