:root {
  --ink: #0a140b;
  --ink2: #172617;
  --neon: #69ff69;
  --cyan: #00ffff;
  --pink: #ff9ae4;
  --text: #ddf6df;
  --dim: #9cc9a2;
  --line: rgba(105, 255, 105, 0.26);
  --chrome: linear-gradient(135deg, #ffffff 0%, #cfffd9 16%, #69ff69 40%, #00ffff 66%, #d9fff0 86%, #ffffff 100%);
  --glow: 0 0 18px rgba(105, 255, 105, 0.45);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 84% 4%, rgba(0, 255, 255, 0.16), transparent 52%),
    radial-gradient(circle at 6% 34%, rgba(255, 154, 228, 0.12), transparent 58%),
    radial-gradient(circle at 50% 90%, rgba(105, 255, 105, 0.12), transparent 60%),
    var(--ink);
  color: var(--text);
  font: 400 17px/1.78 'Quicksand', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgba(105, 255, 105, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--neon);
  color: var(--ink);
}

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

small {
  display: inline-block;
  font-family: 'Caveat', 'Quicksand', cursive;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.55);
}

/* ---------- 顶部 ---------- */
.top {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.94), rgba(10, 20, 11, 0.62));
  backdrop-filter: blur(7px);
}

.top-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 8px;
  text-decoration: none;
}

.mark {
  font-size: 1.25rem;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.9);
  animation: twinkle 4.5s ease-in-out infinite;
}

.brand-name {
  font-family: 'Caveat', 'Quicksand', cursive;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 7px rgba(0, 255, 255, 0.5));
}

.menu {
  order: 3;
  width: 100%;
}

.menu > ol {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu > ol::-webkit-scrollbar {
  display: none;
}

.menu > ol > li {
  position: relative;
  flex: 0 0 auto;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text);
  font-size: 0.97rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--neon);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.8);
}

.has-sub > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.7rem;
  color: var(--neon);
}

.sub {
  margin: 0;
  padding: 6px;
  list-style: none;
  display: none;
  min-width: 170px;
  background: linear-gradient(180deg, #10220f, #0a140b);
  border: 1px solid var(--line);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(0, 255, 255, 0.08);
}

.has-sub:hover .sub,
.has-sub:focus-within .sub {
  display: block;
}

.cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #08170a;
  text-decoration: none;
  border: 1px solid #e6fff0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #9bffb8 44%, #37d977 100%);
  box-shadow: inset 0 -3px 8px rgba(0, 90, 40, 0.35), 0 6px 20px rgba(0, 255, 255, 0.28);
}

.cta:hover {
  filter: brightness(1.07) drop-shadow(0 0 14px rgba(0, 255, 255, 0.65));
}

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10, 20, 11, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.rail > ol {
  display: flex;
  gap: 2px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail > ol::-webkit-scrollbar {
  display: none;
}

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 13px;
  font-size: 0.92rem;
  color: var(--dim);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.rail a:hover,
.rail a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* ---------- 结构 ---------- */
main {
  position: relative;
  z-index: 1;
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 20px 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

/* ---------- 头图 ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 54px 0 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.75;
  transform: translate3d(0, var(--par, 0px), 0);
  background-image: radial-gradient(rgba(0, 255, 255, 0.3) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 68%);
  mask-image: linear-gradient(100deg, transparent 8%, #000 68%);
  will-change: transform;
}

.hero::after {
  content: "✦ ✧ ✦";
  position: absolute;
  top: 34px;
  right: 4px;
  font-size: 1.1rem;
  letter-spacing: 0.7em;
  color: var(--pink);
  text-shadow: 0 0 14px rgba(255, 154, 228, 0.85);
}

.kicker {
  margin: 0 0 6px;
  font-family: 'Caveat', 'Quicksand', cursive;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7.6vw, 5.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 700;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(0, 255, 255, 0.5));
  animation: pulseglow 6.5s ease-in-out infinite;
}

.lead {
  max-width: 44ch;
  margin: 18px 0 26px;
  color: #b9e8c4;
  font-size: 1.02rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #07160a;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4fff8, #8dffb0 46%, #2ed070 100%);
  border: 1px solid #e2ffed;
  box-shadow: inset 0 -3px 9px rgba(0, 90, 40, 0.35), 0 6px 20px rgba(105, 255, 105, 0.32);
}

.hero-cta:hover {
  filter: brightness(1.07) drop-shadow(0 0 14px rgba(105, 255, 105, 0.7));
}

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

section > article {
  position: relative;
  scroll-margin-top: 96px;
  padding: 34px 0 38px;
  border-bottom: 1px solid rgba(105, 255, 105, 0.15);
}

section > article::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  box-shadow: 0 0 14px rgba(105, 255, 105, 0.85);
}

section > article:first-child {
  padding-top: 12px;
}

section h2 {
  margin: 0.2em 0 0.55em;
  font-size: clamp(1.42rem, 3.1vw, 2rem);
  line-height: 1.28;
  color: #f3fff6;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.35);
}

section h3 {
  margin: 1.4em 0 0.4em;
  font-size: 1.18rem;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.4);
}

section p,
section li {
  color: #cfe9d5;
}

section p {
  margin: 0.85em 0;
}

section ul,
section ol {
  padding-left: 1.3em;
}

section li {
  margin: 0.35em 0;
}

section a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 255, 0.45);
}

section a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

section strong {
  color: #eaffef;
}

section blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--neon);
  background: rgba(105, 255, 105, 0.07);
}

section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

section th,
section td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

/* ---------- 侧栏 ---------- */
.side {
  align-self: start;
  position: sticky;
  top: 62px;
  margin-top: 34px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.9), rgba(10, 20, 11, 0.9));
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.07), 0 0 26px rgba(0, 255, 255, 0.09);
}

.side h2 {
  margin: 2px 0 12px;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #eaffef;
}

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

.side a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.94rem;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid rgba(105, 255, 105, 0.25);
}

.side a:hover {
  color: var(--neon);
  border-left-color: var(--cyan);
  background: rgba(105, 255, 105, 0.07);
}

.to-top {
  border-left-color: var(--pink);
  color: var(--pink);
}

.to-top:hover {
  color: #fff;
  border-left-color: #fff;
  background: rgba(255, 154, 228, 0.1);
}

/* ---------- 页脚 ---------- */
footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px 26px;
  max-width: 1180px;
  margin: 54px auto 0;
  padding: 40px 18px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.5), transparent);
}

footer h3 {
  margin: 4px 0 10px;
  font-size: 1.02rem;
  color: #eaffef;
  font-weight: 600;
}

footer p {
  margin: 0;
  color: var(--dim);
  font-size: 0.94rem;
}

footer ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

footer a:hover {
  color: var(--neon);
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.7);
}

.fmark {
  font-size: 1.5rem;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 154, 228, 0.8);
}

.foot-base {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(105, 255, 105, 0.16);
  text-align: center;
}

.foot-base p {
  font-size: 0.88rem;
  color: #86b58e;
}

/* ---------- 动效 ---------- */
@keyframes pulseglow {
  50% {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 34px rgba(105, 255, 105, 0.75));
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.45;
    transform: scale(0.85) rotate(18deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero h1,
  .mark {
    animation: none;
  }

  .hero::before {
    transform: none;
  }
}

/* ---------- 断点 ---------- */
@media (min-width: 860px) {
  .menu {
    order: 0;
    width: auto;
  }

  .menu > ol > li {
    position: relative;
  }

  .sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 6;
  }
}

@media (max-width: 900px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 26px;
  }

  .side {
    position: static;
    margin-top: 26px;
  }

  .hero {
    min-height: 64vh;
    justify-content: flex-start;
    padding: 38px 0 32px;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    margin-top: 34px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16.5px;
  }

  .top-in {
    padding: 8px 14px;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .wrap {
    padding: 0 14px 22px;
  }

  .hero {
    min-height: 0;
    padding: 30px 0 28px;
  }

  .hero::after {
    top: 14px;
    font-size: 0.85rem;
    letter-spacing: 0.45em;
  }

  .lead {
    margin: 14px 0 20px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 28px 14px 18px;
    gap: 8px;
  }
}

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