@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --ink-deep: #0a130b;
  --panel: #1d3220;
  --panel-hi: #223a25;
  --chrome: linear-gradient(135deg, #f3fff3 0%, #a9d8b3 20%, #ffffff 40%, #8fb79a 58%, #e8fbff 78%, #ffffff 100%);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --disp: "Orbitron", "JetBrains Mono", ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  padding-bottom: 108px;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.7;
  color: #d9ffdf;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(0, 255, 255, 0.16), transparent 46%),
    radial-gradient(circle at 88% 3%, rgba(105, 255, 105, 0.15), transparent 50%),
    repeating-linear-gradient(0deg, rgba(105, 255, 105, 0.05) 0 1px, transparent 1px 46px);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
}

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

:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 10px;
  top: -60px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 0 0 14px 14px;
  background: var(--neon);
  color: #0b1a0c;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 0;
}

.gloss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 28px;
  border-radius: 999px;
  background: var(--chrome);
  color: #0b1a0c;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-decoration: none;
  box-shadow:
    0 5px 0 #46714e,
    0 0 24px rgba(105, 255, 105, 0.55),
    inset 0 1px 0 #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gloss:hover,
.gloss:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #46714e,
    0 0 34px rgba(0, 255, 255, 0.75),
    inset 0 1px 0 #fff;
}

.gloss-sm {
  min-height: 44px;
  padding: 9px 20px;
  font-size: 16px;
  letter-spacing: 0.1em;
}

/* 顶部主视觉 */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.5vw, 32px);
  min-height: 70vh;
  padding: clamp(34px, 8vw, 84px) clamp(14px, 4vw, 44px) clamp(64px, 12vw, 112px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 16%, rgba(0, 255, 255, 0.3), transparent 45%),
    radial-gradient(circle at 78% 10%, rgba(105, 255, 105, 0.28), transparent 48%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -34px;
  height: clamp(92px, 16vw, 156px);
  z-index: -1;
  background: linear-gradient(100deg, var(--neon), var(--cyan) 58%, #7ef0ff);
  clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
  max-width: 26em;
}

.hero-copy::before {
  content: "✦ ✧ ✦";
  font-size: 14px;
  letter-spacing: 0.7em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.95);
}

.hero-h1 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(30px, 7.4vw, 64px);
  letter-spacing: 0.01em;
  color: #f4fff4;
  text-shadow:
    0 0 8px rgba(105, 255, 105, 0.9),
    0 0 28px rgba(0, 255, 255, 0.55),
    0 4px 0 #2c4a31;
}

.hero-fig {
  width: min(720px, 100%);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 0 0 2px rgba(105, 255, 105, 0.5),
    0 20px 54px rgba(0, 0, 0, 0.55);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-cap {
  padding: 10px 16px;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--neon);
  text-align: left;
}

/* 主体：正文与右栏 */
.deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(16px, 3vw, 32px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) clamp(12px, 3vw, 26px) 0;
  align-items: start;
}

.col {
  min-width: 0;
}

.col > div {
  position: relative;
  background: var(--panel);
  border-radius: 18px;
  padding: clamp(18px, 3.2vw, 34px);
  margin: 0 0 clamp(16px, 2.4vw, 24px);
  overflow: hidden;
  scroll-margin-top: 18px;
  scroll-margin-bottom: 112px;
  box-shadow: inset 0 0 0 1px rgba(105, 255, 105, 0.09);
}

.col > div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 55%, transparent);
}

.col > div:last-child {
  margin-bottom: 0;
}

.js .col > div {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.js .col > div.in {
  opacity: 1;
  transform: none;
}

.col h2 {
  margin: 0.1em 0 0.7em;
  font-family: var(--disp);
  font-size: clamp(20px, 3.2vw, 28px);
  color: #eaffea;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.55);
}

.col h2 > span,
.col h3 > span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 3px solid var(--cyan);
}

.col h3 {
  margin: 1.2em 0 0.5em;
  font-family: var(--disp);
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--cyan);
}

.col p {
  margin: 0 0 1em;
}

.col p:last-child,
.col ul:last-child,
.col ol:last-child {
  margin-bottom: 0;
}

.col ul,
.col ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.col li {
  margin: 0.35em 0;
}

.col strong,
.col b {
  color: var(--neon);
}

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

.col blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  background: rgba(0, 255, 255, 0.08);
}

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

.col figure {
  margin: 1em 0;
}

.col figure img,
.col img {
  border-radius: 14px;
}

.col figcaption {
  font-size: 16px;
  color: #a9dcb5;
  padding-top: 6px;
}

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

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

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

.rail {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel-hi), #172a18);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.2),
    0 16px 36px rgba(0, 0, 0, 0.42);
}

.rail h2 {
  margin: 0 0 12px;
  font-family: var(--disp);
  font-size: 17px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.rail h2 span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--neon);
}

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

.rail-list li {
  opacity: 0;
  transform: translateX(12px);
  animation: railIn 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}

.rail-list li:nth-child(1) { animation-delay: 0.04s; }
.rail-list li:nth-child(2) { animation-delay: 0.1s; }
.rail-list li:nth-child(3) { animation-delay: 0.16s; }
.rail-list li:nth-child(4) { animation-delay: 0.22s; }
.rail-list li:nth-child(5) { animation-delay: 0.28s; }
.rail-list li:nth-child(6) { animation-delay: 0.34s; }
.rail-list li:nth-child(7) { animation-delay: 0.4s; }

@keyframes railIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.07);
  color: #d9ffdf;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(105, 255, 105, 0.24);
  color: #06120a;
}

/* 页码区 */
.site-foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(34px, 7vw, 72px);
  padding: clamp(28px, 5vw, 56px) clamp(14px, 4vw, 54px) 24px;
  background: linear-gradient(180deg, #111e12, var(--ink-deep));
  border-top: 2px solid rgba(0, 255, 255, 0.4);
}

.site-foot h3 {
  margin: 0 0 12px;
  font-family: var(--disp);
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--neon);
}

.site-foot h3 span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--cyan);
}

.brand-giant {
  margin: 0;
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(34px, 9vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(105, 255, 105, 0.45));
}

.f-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.f-list a:hover,
.f-list a:focus-visible {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.f-note {
  margin: 0;
  font-size: 16px;
  color: #b9e6c3;
}

.mark {
  display: block;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.85));
}

.f-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(105, 255, 105, 0.26);
  font-size: 16px;
  color: #a7d9b2;
}

.f-bar p {
  margin: 0;
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(16, 30, 17, 0.92), rgba(8, 16, 9, 0.99));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(105, 255, 105, 0.45);
  box-shadow: 0 -12px 34px rgba(0, 255, 255, 0.14);
}

.dock-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  font-family: var(--disp);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.9);
}

.dock-list {
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.dock-list::-webkit-scrollbar {
  display: none;
}

.dock-list li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.dock-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: rgba(105, 255, 105, 0.1);
  color: #ddffe2;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.dock-list a:hover,
.dock-list a:focus-visible {
  background: var(--neon);
  color: #08150a;
  box-shadow: 0 0 18px rgba(105, 255, 105, 0.75);
}

@media (max-width: 920px) {
  .deck {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-foot {
    grid-template-columns: 1fr 1fr;
  }

  .f-mark {
    display: none;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 16px;
    padding-bottom: 100px;
  }

  .site-foot {
    grid-template-columns: 1fr;
  }

  .f-mark {
    display: block;
  }

  .dock-brand {
    font-size: 15px;
    padding: 8px 4px;
  }

  .hero-h1 {
    font-size: clamp(27px, 8.6vw, 40px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .col > div {
    opacity: 1;
    transform: none;
  }

  .rail-list li {
    opacity: 1;
    transform: none;
  }
}

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