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

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

:root {
  --plum: #26171f;
  --ink: #170d13;
  --mag: #ff0080;
  --fuch: #ff00ff;
  --cyan: #00e1ff;
  --cream: #ffe9f4;
  --dim: #cda7c1;
  --line: rgba(255, 0, 128, 0.26);
  --r: 18px;
  --pad: clamp(14px, 4vw, 44px);
  --pixel: "Press Start 2P", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --body: "VT323", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -22vmax;
  z-index: -2;
  background:
    radial-gradient(42vmax 42vmax at 16% 10%, rgba(255, 0, 128, 0.55), transparent 62%),
    radial-gradient(46vmax 46vmax at 84% 4%, rgba(255, 0, 255, 0.4), transparent 60%),
    radial-gradient(38vmax 38vmax at 70% 82%, rgba(0, 225, 255, 0.2), transparent 66%),
    radial-gradient(52vmax 52vmax at 8% 88%, rgba(255, 0, 190, 0.3), transparent 68%);
  filter: blur(30px) saturate(135%);
  animation: aurora 24s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.85;
}

@keyframes aurora {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.14);
  }
}

::selection {
  background: var(--mag);
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fuch);
  outline-offset: 3px;
  border-radius: 6px;
}

article {
  scroll-margin-top: 92px;
}

/* ---------- 顶部两行 ---------- */
.site-top {
  padding: 10px var(--pad) 0;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255, 0, 255, 0.5);
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: conic-gradient(from 40deg, var(--mag), var(--fuch), var(--cyan), var(--mag));
  box-shadow: 0 0 16px rgba(255, 0, 255, 0.85);
}

.brand-name {
  font-family: var(--pixel);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  background: linear-gradient(96deg, #fff, #ffc2e4 55%, var(--fuch));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.top-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.55);
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.22), rgba(255, 0, 255, 0.14));
  color: var(--cream);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.12em;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.top-contact:hover {
  box-shadow: 0 0 24px rgba(255, 0, 255, 0.55);
  transform: translateY(-1px);
}

/* ---------- 胶囊菜单 ---------- */
.pillnav {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 8px;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(23, 13, 19, 0.94), rgba(23, 13, 19, 0.7));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 0, 255, 0.16);
}

.pillnav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillnav li {
  flex: 0 0 auto;
}

.pillnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.32);
  background: rgba(255, 0, 128, 0.08);
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.pillnav a:hover {
  background: linear-gradient(100deg, var(--mag), var(--fuch));
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 0, 255, 0.5);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: center;
  min-height: 70vh;
  padding: clamp(28px, 6vw, 56px) var(--pad) clamp(36px, 7vw, 64px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--mag), var(--fuch) 46%, var(--cyan));
  transform: skewY(-0.7deg);
  box-shadow: 0 0 26px rgba(255, 0, 255, 0.6);
}

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

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--pixel);
  font-size: clamp(20px, 3.6vw, 34px);
  line-height: 1.55;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #fff, #ffd2ea 34%, var(--fuch) 72%, var(--mag));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(255, 0, 255, 0.28);
}

.hero-lede {
  margin: 0;
  max-width: 42ch;
  color: var(--dim);
  font-size: 18px;
  line-height: 1.8;
}

.hero-art {
  position: relative;
  min-height: clamp(280px, 44vh, 400px);
}

.tile-wrap {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 26px 60px -30px rgba(255, 0, 128, 0.95);
  will-change: transform;
}

.tile-wrap .tile,
.tile-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.t1 {
  top: 0;
  left: 0;
  width: 62%;
  transform: rotate(-3deg);
}

.t2 {
  bottom: 0;
  right: 0;
  width: 54%;
  transform: rotate(4deg);
}

/* ---------- 目录 + 正文 ---------- */
.deck {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: start;
  padding: clamp(22px, 4vw, 38px) var(--pad) 46px;
}

.rail {
  position: sticky;
  top: 84px;
  padding: 18px 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(58, 32, 48, 0.9), rgba(26, 15, 22, 0.92));
  box-shadow: 0 20px 44px -32px rgba(255, 0, 128, 0.95);
}

.eyebrow {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

.rail h2 {
  margin: 6px 0 0;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: #fff;
}

.rail-list {
  counter-reset: rail;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.rail-list li {
  counter-increment: rail;
}

.rail-list a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: 11px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  transition: background 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--mag);
  flex: 0 0 auto;
}

.rail-list a:hover {
  color: var(--cream);
  background: rgba(255, 0, 255, 0.12);
  padding-left: 13px;
}

.prose {
  min-width: 0;
}

.prose article {
  position: relative;
  margin: 0 0 20px;
  padding: 24px clamp(16px, 2.4vw, 30px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(162deg, rgba(56, 31, 46, 0.88), rgba(28, 16, 23, 0.92));
  box-shadow: 0 22px 52px -36px rgba(255, 0, 128, 0.95);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.prose article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--mag), var(--fuch), var(--cyan));
}

.prose article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 255, 0.5);
  box-shadow: 0 30px 62px -32px rgba(255, 0, 255, 0.85);
}

.prose h2 {
  margin: 0.2em 0 0.75em;
  font-family: var(--pixel);
  font-size: clamp(15px, 2.1vw, 18px);
  line-height: 1.65;
  letter-spacing: 0.02em;
  background: linear-gradient(96deg, #fff, #ffc7e6 58%, var(--fuch));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose h3 {
  margin: 1.3em 0 0.5em;
  font-family: var(--pixel);
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.7;
  color: #ffd7ec;
  letter-spacing: 0.03em;
}

.prose p {
  margin: 0 0 1em;
  color: #f0dbe7;
}

.prose strong {
  color: #fff;
}

.prose a {
  color: #ff9ad4;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 128, 0.55);
  text-underline-offset: 3px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--fuch);
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 18px;
  border-left: 3px solid var(--mag);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 0, 128, 0.1);
  color: #ffd9ec;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.prose figure {
  margin: 0 0 1em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 17px;
}

.prose th,
.prose td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 0, 255, 0.2);
  text-align: left;
}

.prose th {
  color: #ffd7ec;
  font-weight: 400;
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.7;
}

.prose hr {
  border: 0;
  height: 1px;
  margin: 1.4em 0;
  background: linear-gradient(90deg, transparent, var(--fuch), transparent);
}

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px clamp(18px, 3vw, 34px);
  padding: clamp(26px, 4vw, 40px) var(--pad) 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 13, 19, 0.35), rgba(14, 8, 12, 0.95));
}

.site-foot p {
  margin: 0;
}

.foot-lead {
  color: var(--dim);
  font-size: 17px;
  line-height: 1.8;
  max-width: 48ch;
}

.foot-lead strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: #fff;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  align-content: start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 4px;
  color: var(--dim);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px dashed rgba(255, 0, 128, 0.4);
  transition: color 0.22s ease;
}

.foot-links a:hover {
  color: #fff;
}

.foot-copy,
.foot-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(205, 167, 193, 0.72);
}

.foot-note {
  letter-spacing: 0.1em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-art {
    min-height: 250px;
    order: 2;
  }

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

  .rail {
    position: static;
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .rail-list li {
    flex: 0 0 auto;
  }

  .rail-list a {
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 255, 0.24);
    padding: 4px 12px;
    min-height: 40px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .pillnav ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

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

  .hero h1 {
    font-size: clamp(19px, 5.6vw, 26px);
  }

  .tile-wrap {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .tile-wrap {
    animation: none !important;
  }

  .prose article,
  .prose article:hover,
  .pillnav a,
  .top-contact,
  .rail-list a {
    transition: none;
    transform: none;
  }
}

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