:root {
  --neon-red: #ff0000;
  --neon-mag: #ff006e;
  --neon-cyan: #39e6ff;
  --ink: #1a1a2e;
  --ink-deep: #0c0c16;
  --paper: #e9e7f6;
  --dim: #a2aad0;
  --line: rgba(120, 140, 220, 0.3);
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "STSong", Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink-deep);
  background-image:
    radial-gradient(900px 420px at 80% -10%, rgba(255, 0, 110, 0.2), transparent 66%),
    radial-gradient(760px 400px at 6% 2%, rgba(57, 230, 255, 0.14), transparent 70%),
    linear-gradient(rgba(120, 140, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 220, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.62;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.038) 0 1px, rgba(0, 0, 0, 0) 1px 4px);
}

a {
  color: var(--neon-cyan);
}

img {
  max-width: 100%;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.97), rgba(10, 10, 20, 0.86));
  border-bottom: 1px solid rgba(255, 0, 110, 0.42);
  box-shadow: 0 1px 0 rgba(57, 230, 255, 0.22);
  backdrop-filter: blur(6px);
}

.railbar {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 96px 6px 14px;
}

.navgrid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.nav-side {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-l {
  justify-content: flex-end;
}

.nav-side a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  border-radius: 8px;
  color: #cfd5ee;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-side a:hover,
.nav-side a:focus-visible {
  color: #fff;
  background: rgba(255, 0, 110, 0.16);
  text-shadow: 0 0 10px var(--neon-mag);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.85), 2px 0 0 rgba(57, 230, 255, 0.45);
  white-space: nowrap;
}

.cta {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--neon-mag);
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  box-shadow: inset 0 0 14px rgba(255, 0, 110, 0.4), 0 0 10px rgba(255, 0, 110, 0.35);
}

.cta:hover,
.cta:focus-visible {
  background: rgba(255, 0, 110, 0.22);
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 26px;
  align-items: center;
  max-width: 1180px;
  min-height: 45vh;
  margin: 0 auto;
  padding: 26px 16px 30px;
}

.hero-txt {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}

.hero-txt h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(29px, 4.4vw, 54px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 0, 0, 0.6),
    3px 3px 0 rgba(255, 0, 110, 0.55),
    -3px -2px 0 rgba(57, 230, 255, 0.42);
  animation: glitch 5.5s steps(1, end) infinite;
}

@keyframes glitch {
  0%, 92%, 100% {
    transform: translate(0, 0) skewX(0deg);
  }
  93% {
    transform: translate(-2px, 1px) skewX(-1.2deg);
  }
  95% {
    transform: translate(2px, -1px) skewX(1deg);
  }
  97% {
    transform: translate(-1px, 0) skewX(-0.5deg);
  }
}

.hero-art {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  height: clamp(200px, 38vh, 300px);
}

.frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(57, 230, 255, 0.5);
  border-radius: 28px;
  background: #14142a;
  box-shadow: 0 0 22px rgba(57, 230, 255, 0.16);
}

.frame .shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.f1 {
  inset: 0 26% 14% 0;
  transform: translateY(var(--par, 0px)) rotate(-1.6deg);
}

.f2 {
  width: 47%;
  height: 64%;
  right: 0;
  bottom: 0;
  border-color: rgba(255, 0, 110, 0.62);
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.22);
  transform: translateY(var(--par, 0px)) rotate(2.2deg);
}

.tag-float {
  position: absolute;
  left: 0;
  top: -12px;
  z-index: 2;
  max-width: 64%;
  padding: 6px 13px;
  border: 1px dashed rgba(255, 0, 0, 0.72);
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.94);
  color: #ffd9e6;
  font-size: 16px;
  line-height: 1.42;
  text-shadow: 0 0 8px rgba(255, 0, 110, 0.75);
}

/* 正文骨架 */
main {
  display: block;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 56px;
}

.prose {
  display: block;
}

.prose > section {
  margin: 0 0 26px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23, 23, 42, 0.94), rgba(15, 15, 29, 0.94));
  scroll-margin-top: 112px;
}

.prose h2 {
  margin: 0.1em 0 0.5em;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.42);
}

.prose h3 {
  margin: 1.5em 0 0.4em;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: #ffd3e4;
}

.prose p {
  margin: 0 0 1.05em;
}

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

.prose li {
  margin: 0.32em 0;
}

.prose a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 110, 0.6);
  text-underline-offset: 3px;
}

.prose a:hover,
.prose a:focus-visible {
  color: #fff;
  text-decoration-color: var(--neon-red);
}

.prose blockquote {
  margin: 0 0 1.1em;
  padding: 12px 16px;
  border-left: 3px solid var(--neon-mag);
  background: rgba(255, 0, 110, 0.09);
  border-radius: 0 14px 14px 0;
}

.prose img {
  border-radius: 18px;
}

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

.prose td,
.prose th {
  padding: 8px 10px;
  border: 1px solid var(--line);
}

hr {
  height: 1px;
  margin: 12px 0 20px;
  border: 0;
  background: linear-gradient(90deg, var(--neon-red), var(--neon-mag), var(--neon-cyan), transparent);
  opacity: 0.8;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 106px;
  padding: 20px 18px 22px;
  border: 1px solid rgba(255, 0, 110, 0.32);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(32, 18, 36, 0.9), rgba(14, 14, 28, 0.94));
}

.rail-h {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.2em;
  color: #ffd3e4;
}

.rail hr {
  margin: 10px 0 14px;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  border-left: 2px solid rgba(255, 0, 110, 0.45);
  color: #cbd2ec;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  border-left-color: var(--neon-cyan);
  background: rgba(57, 230, 255, 0.1);
}

.rail-mark {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(120, 140, 220, 0.35);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.24em;
  color: #8f9bd0;
}

/* 页脚 */
.site-foot {
  margin-top: 12px;
  padding: 34px 0 16px;
  border-top: 1px solid rgba(255, 0, 110, 0.42);
  background: linear-gradient(180deg, rgba(12, 12, 22, 0.6), rgba(26, 26, 46, 0.9));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

address {
  font-style: normal;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 0, 0, 0.7);
}

.foot-host {
  display: block;
  color: var(--dim);
  font-size: 16px;
  word-break: break-all;
}

.foot-h {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #8fa0d8;
}

.foot-grid hr {
  margin: 8px 0 10px;
  opacity: 0.55;
}

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

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #c9d0ea;
  font-size: 16px;
  text-decoration: none;
}

.foot-list a:hover,
.foot-list a:focus-visible {
  color: #fff;
  text-shadow: 0 0 10px var(--neon-mag);
}

.foot-key {
  margin: 0;
  color: #b9c1e2;
  font-size: 16px;
  line-height: 1.7;
}

.copy {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 14px 16px 0;
  border-top: 1px dashed rgba(120, 140, 220, 0.3);
  color: #8992b4;
  font-size: 16px;
}

/* 动效 */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-txt h1 {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 窄屏 */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .rail {
    position: static;
  }
  .prose > section {
    scroll-margin-top: 190px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid .foot-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .railbar {
    padding: 6px 12px 8px;
  }
  .navgrid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .brand {
    order: -1;
    justify-content: center;
    padding: 4px 0;
  }
  .nav-side {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .nav-side::-webkit-scrollbar {
    display: none;
  }
  .nav-side a {
    white-space: nowrap;
  }
  .cta {
    position: static;
    transform: none;
    justify-content: center;
    max-width: 260px;
    margin: 8px auto 2px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: 18px 16px 24px;
  }
  .hero-txt,
  .hero-art {
    grid-column: auto;
    grid-row: auto;
  }
  .hero-art {
    height: 208px;
  }
  .tag-float {
    top: auto;
    bottom: -10px;
    max-width: 72%;
  }
  .prose > section {
    padding: 22px 18px 24px;
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-txt h1 {
    font-size: clamp(26px, 8vw, 34px);
  }
}

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