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

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

:root {
  --neon: #87ff71;
  --cyan: #01cdfe;
  --ink: #192617;
  --pink: #ff71ce;
  --violet: #b967ff;
  --bg: #0d1710;
  --text: #e9ffe9;
  --dim: #a8c8ac;
  --line: rgba(135, 255, 113, 0.28);
  --line-soft: rgba(135, 255, 113, 0.14);
  --bar: 58px;
  --radius: 18px;
  --wrap: 1180px;
  --serif: "Newsreader", Georgia, "Songti SC", serif;
  --sans: "Roboto", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 540px at 84% -10%, rgba(1, 205, 254, 0.2), transparent 70%),
    radial-gradient(760px 440px at 6% 2%, rgba(255, 113, 206, 0.15), transparent 72%),
    linear-gradient(180deg, #101c13, #0b140e 55%, #101c13);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.34;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

menu,
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 顶栏 ---------- */

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 20, 14, 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}

.chrome-bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: var(--wrap);
  min-height: var(--bar);
  margin: 0 auto;
  padding: 0 16px;
}

.chrome-side {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.chrome-side--r {
  justify-content: flex-end;
  gap: 8px;
}

.chrome-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 16px;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}

.chrome-link:hover,
.chrome-link:focus-visible {
  color: var(--neon);
  background: rgba(135, 255, 113, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 6px;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.55), 2px 0 0 rgba(255, 113, 206, 0.45), -2px 0 0 rgba(1, 205, 254, 0.45);
}

.brand:hover {
  animation: glitch 0.45s steps(2, end) 2;
}

@keyframes glitch {
  0% {
    text-shadow: 0 0 18px rgba(135, 255, 113, 0.6), 3px 0 0 rgba(255, 113, 206, 0.8), -3px 0 0 rgba(1, 205, 254, 0.8);
  }
  50% {
    text-shadow: 0 0 24px rgba(1, 205, 254, 0.7), -3px 0 0 rgba(255, 113, 206, 0.8), 3px 0 0 rgba(135, 255, 113, 0.8);
  }
  100% {
    text-shadow: 0 0 18px rgba(135, 255, 113, 0.55), 2px 0 0 rgba(255, 113, 206, 0.45), -2px 0 0 rgba(1, 205, 254, 0.45);
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-size: 16px;
  color: var(--cyan);
  background: rgba(1, 205, 254, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.cta:hover {
  background: var(--cyan);
  color: #08222a;
  box-shadow: 0 0 22px rgba(1, 205, 254, 0.5);
}

/* ---------- 汉堡遮罩菜单 ---------- */

.burger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: var(--neon);
  background: rgba(13, 23, 16, 0.7);
  cursor: pointer;
  list-style: none;
  position: relative;
  z-index: 3;
  transition: background 0.2s;
}

.burger::-webkit-details-marker {
  display: none;
}

.burger-lines {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--neon), var(--neon)) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--neon), var(--neon)) 0 5px / 18px 2px no-repeat,
    linear-gradient(var(--neon), var(--neon)) 0 10px / 18px 2px no-repeat;
}

.drawer[open] .burger {
  background: rgba(135, 255, 113, 0.16);
  border-color: var(--neon);
}

.drawer-menu {
  display: none;
  counter-reset: nav;
}

.drawer[open] .drawer-menu {
  display: grid;
}

.drawer-menu {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: auto;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  align-content: start;
  padding: calc(var(--bar) + 26px) 18px 34px;
  background:
    radial-gradient(700px 420px at 82% 0, rgba(1, 205, 254, 0.22), transparent 70%),
    radial-gradient(620px 400px at 0 22%, rgba(255, 113, 206, 0.18), transparent 72%),
    rgba(8, 14, 10, 0.97);
}

.drawer-menu li {
  counter-increment: nav;
}

.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.drawer-menu a::before {
  content: counter(nav, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.drawer-menu a:hover {
  color: var(--neon);
  border-color: var(--neon);
  box-shadow: inset 0 0 26px rgba(135, 255, 113, 0.16);
}

/* ---------- 锚点条 ---------- */

.railbar {
  position: sticky;
  top: var(--bar);
  z-index: 40;
  background: rgba(11, 19, 13, 0.9);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.railbar-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 12px;
  overflow-x: auto;
}

.railbar ul {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 5px 0;
}

.railbar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}

.railbar a:hover {
  color: var(--cyan);
  border-color: rgba(1, 205, 254, 0.55);
}

/* ---------- 首屏 ---------- */

.page {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 26px;
  max-width: var(--wrap);
  min-height: 45vh;
  margin: 0 auto;
  padding: 30px 18px 26px;
  overflow: hidden;
}

.hero-ghost {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 7.6rem);
  letter-spacing: 0.12em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135, 255, 113, 0.17);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.16;
  color: #fff;
  text-shadow: 0 0 26px rgba(135, 255, 113, 0.32);
}

.hero-desc {
  max-width: 44ch;
  margin: 0 auto 18px;
  font-size: 17px;
  color: var(--dim);
}

.hero-act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--neon);
  border-radius: 999px;
  font-size: 16px;
  color: #0b1a0e;
  background: var(--neon);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.btn--ghost {
  background: transparent;
  color: var(--neon);
}

.btn--ghost:hover {
  background: rgba(135, 255, 113, 0.12);
}

.hero-art {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #ff71ce, #b967ff 40%, #01cdfe 72%, #0d1710);
}

.sun {
  position: absolute;
  left: 22%;
  top: 12%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff5b0, rgba(255, 113, 206, 0.85) 46%, rgba(255, 113, 206, 0) 70%);
}

.grid-floor {
  position: absolute;
  left: -22%;
  right: -22%;
  bottom: -6%;
  height: 54%;
  opacity: 0.6;
  transform: perspective(220px) rotateX(62deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(135, 255, 113, 0.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 255, 113, 0.65) 1px, transparent 1px);
  background-size: 100% 26px, 44px 100%;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: translate3d(0, calc(var(--par, 0px) * -1), 0);
}

/* ---------- 正文 + 侧栏 ---------- */

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 18px 56px;
}

.article > div {
  position: relative;
  margin: 0 0 20px;
  padding: 24px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(135, 255, 113, 0.05), rgba(1, 205, 254, 0.03));
  scroll-margin-top: calc(var(--bar) + 76px);
  transition: border-color 0.25s;
}

.article > div:hover {
  border-color: var(--line);
}

.article :is(h2, h3) {
  margin: 0 0 12px;
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--neon);
}

.article h2 {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
}

.article h3 {
  font-size: 1.2rem;
  color: var(--cyan);
}

.article p {
  margin: 0 0 14px;
  color: #dcf0dc;
}

.article ul {
  list-style: square;
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.article ol {
  list-style: decimal;
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.article li {
  margin-bottom: 8px;
}

.article a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article strong {
  color: #fff;
}

.article img {
  height: auto;
  margin: 0 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.article blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 113, 206, 0.09);
}

.article hr {
  height: 0;
  margin: 22px 0;
  border: 0;
  border-top: 1px dashed var(--line);
}

.rail {
  position: sticky;
  top: calc(var(--bar) + 64px);
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(1, 205, 254, 0.05);
}

.rail small {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: none;
}

.rail-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.28rem;
  color: var(--neon);
}

.rail-list li + li {
  border-top: 1px dashed rgba(135, 255, 113, 0.16);
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 4px;
  font-size: 16px;
  color: #e6fbe6;
  transition: color 0.2s, padding-left 0.2s;
}

.rail-list a:hover {
  color: var(--neon);
  padding-left: 10px;
}

/* ---------- 页脚 ---------- */

.foot {
  margin-top: 12px;
  padding: 38px 18px 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(135, 255, 113, 0.07));
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-addr {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.4);
}

.foot-host {
  font-size: 16px;
  color: rgba(233, 255, 233, 0.6);
  word-break: break-all;
}

.foot-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  align-content: start;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--dim);
  transition: color 0.2s;
}

.foot-links a:hover {
  color: var(--cyan);
}

.foot-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
  font-size: 16px;
  text-align: center;
  color: rgba(233, 255, 233, 0.62);
}

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--neon);
}

.to-top:hover {
  background: rgba(135, 255, 113, 0.12);
}

/* ---------- 断点 ---------- */

@media (max-width: 1000px) {
  .chrome-side--l {
    display: none;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 22px;
    gap: 20px;
  }
  .body-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .rail {
    position: static;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cta {
    display: none;
  }
  .chrome-bar {
    padding: 0 10px;
    gap: 6px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .hero {
    padding: 18px 14px 22px;
  }
  .body-grid {
    padding: 10px 14px 44px;
  }
  .article > div {
    padding: 20px 16px;
  }
  .foot-links {
    grid-template-columns: 1fr;
  }
}

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

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