@charset "utf-8";

:root {
  --g: #69ff69;
  --c: #00ffff;
  --ink: #172617;
  --bg: #0a150a;
  --line: rgba(105, 255, 105, 0.22);
  --chrome: linear-gradient(155deg, #eafff2, #9fffc4 20%, rgba(0, 255, 255, 0.6) 46%, #2c4a2c 60%, #d9ffe6 82%, #69ff69);
  --glow: 0 0 18px rgba(105, 255, 105, 0.45);
  --r: 18px;
  --side: 238px;
  --ff: 'Quicksand', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --fh: 'Caveat', 'Quicksand', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.75;
  color: #e3ffe9;
  background:
    radial-gradient(62vw 62vw at 92% -10%, rgba(0, 255, 255, 0.16), transparent 62%),
    radial-gradient(54vw 46vw at 4% 6%, rgba(105, 255, 105, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #07120a 62%, #041004 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 14% 22%, rgba(255, 255, 255, 0.85), transparent 62%),
    radial-gradient(1.4px 1.4px at 73% 11%, rgba(0, 255, 255, 0.9), transparent 62%),
    radial-gradient(1.8px 1.8px at 88% 54%, rgba(255, 255, 255, 0.7), transparent 62%),
    radial-gradient(1.4px 1.4px at 34% 76%, rgba(105, 255, 105, 0.9), transparent 62%),
    radial-gradient(1.6px 1.6px at 62% 92%, rgba(255, 255, 255, 0.6), transparent 62%);
}

[hidden] {
  display: none !important;
}

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

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

img {
  max-width: 100%;
}

hr {
  border: 0;
  height: 2px;
  margin: 0 0 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--g), var(--c) 58%, transparent);
  opacity: 0.75;
}

/* ---------- 左侧固定竖排导航 ---------- */

.side {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 16px 26px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(13, 28, 13, 0.95), rgba(7, 19, 11, 0.92));
  border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.side::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 2px;
  background: var(--chrome);
  opacity: 0.5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
  text-decoration: none;
}

.brand-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow);
}

.brand-t {
  font-family: var(--fh);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(105, 255, 105, 0.55));
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nv-a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #cdeed4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: color 0.2s, background 0.25s, transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}

.nv-a:hover,
.nv-a:focus-visible {
  color: #04180a;
  border-color: #eaffef;
  background: linear-gradient(120deg, var(--g), var(--c));
  transform: translateX(3px);
  box-shadow: 0 0 22px rgba(105, 255, 105, 0.35);
}

.nv-i {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--g), var(--c));
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.nv-a:hover .nv-i,
.nv-a:focus-visible .nv-i {
  background: #05240e;
  box-shadow: none;
}

.side-search {
  position: relative;
  margin-top: auto;
}

.side-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 14px;
  font: inherit;
  font-size: 16px;
  color: #eafff0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.25s;
}

.side-search input::placeholder {
  color: #8fbf9b;
}

.side-search input:focus {
  border-color: var(--c);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.4);
  outline: none;
}

.s-ico {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border: 2px solid #8fbf9b;
  border-radius: 50%;
  pointer-events: none;
}

.s-ico::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  background: #8fbf9b;
  transform: rotate(45deg);
}

/* ---------- 主体 ---------- */

main {
  position: relative;
  z-index: 1;
  margin-left: var(--side);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(46px, 9vh, 110px) clamp(20px, 5vw, 64px);
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hero-h1 {
  margin: 0;
  font-family: var(--fh);
  font-size: clamp(2.4rem, 6.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  background: linear-gradient(118deg, #f4fff7, var(--g) 34%, var(--c) 68%, #eaffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(105, 255, 105, 0.45));
  animation: glowPulse 7s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(105, 255, 105, 0.4)); }
  50% { filter: drop-shadow(0 0 24px rgba(0, 255, 255, 0.7)); }
}

.hero-d {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: #bde5c7;
  text-align: center;
}

.hero-fig {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.hero-fig::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: calc(var(--r) + 12px);
  background: var(--chrome);
  opacity: 0.18;
  filter: blur(16px);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(105, 255, 105, 0.4);
  border-radius: var(--r);
  box-shadow: 0 0 0 6px rgba(0, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

/* ---------- 正文区：aside 在左，卡片在右 ---------- */

article {
  display: grid;
  grid-template-columns: minmax(0, 206px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 56px);
  padding: clamp(38px, 7vh, 78px) clamp(20px, 5vw, 64px) clamp(56px, 10vh, 110px);
}

.rail {
  position: sticky;
  top: 30px;
}

.rail-h {
  margin: 0 0 10px;
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c);
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.55);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.rail-list a {
  display: block;
  min-height: 40px;
  margin-left: -1px;
  padding: 8px 10px 8px 14px;
  font-size: 16px;
  color: #b7ddc1;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: var(--g);
  border-left-color: var(--g);
  background: rgba(105, 255, 105, 0.07);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 6px 15px;
  font-size: 16px;
  color: #d9ffe2;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.2s, background 0.25s, border-color 0.2s;
}

.rail-top:hover,
.rail-top:focus-visible {
  color: #06200c;
  border-color: #fff;
  background: linear-gradient(120deg, var(--g), var(--c));
}

.flow {
  min-width: 0;
}

.flow section {
  margin-bottom: clamp(18px, 2.6vw, 26px);
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.055), rgba(0, 255, 255, 0.03) 55%, rgba(105, 255, 105, 0.045));
  scroll-margin-top: 24px;
}

.flow > section.pre {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}

.flow > section.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0ms);
}

.flow h2 {
  margin: 0 0 12px;
  font-family: var(--fh);
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #f0fff5, var(--g) 44%, var(--c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow h3 {
  margin: 26px 0 10px;
  font-size: 1.22rem;
  color: #d8ffe2;
}

.flow p {
  margin: 0 0 16px;
  line-height: 1.85;
}

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

.flow a:hover {
  color: var(--g);
}

.flow ul,
.flow ol {
  padding-left: 1.3em;
  line-height: 1.85;
}

.flow img {
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.flow blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--c);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 255, 255, 0.06);
}

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

/* ---------- 页脚单行 ---------- */

footer {
  position: relative;
  z-index: 1;
  margin-left: var(--side);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 32px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.05), transparent);
}

.f-brand a {
  font-family: var(--fh);
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
}

.f-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin: 0;
}

.f-nav dt {
  font-size: 16px;
  color: #7cb992;
}

.f-nav dd {
  margin: 0;
}

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 16px;
  color: #c9efd3;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.f-nav a:hover,
.f-nav a:focus-visible {
  color: var(--g);
  text-shadow: 0 0 10px rgba(105, 255, 105, 0.7);
}

.f-copy {
  font-size: 16px;
  color: #8fbf9b;
}

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

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

  .rail {
    position: static;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .rail-list a {
    margin: 0;
    padding: 8px 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .rail-list a:hover,
  .rail-list a:focus-visible {
    border-bottom-color: var(--g);
  }

  .rail-top {
    margin-top: 10px;
  }
}

@media (max-width: 860px) {
  .side {
    position: sticky;
    inset: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side::after {
    inset: auto 0 0 0;
    width: auto;
    height: 2px;
  }

  .brand {
    flex: 0 0 auto;
    padding: 2px;
  }

  .brand-t {
    font-size: 21px;
  }

  .side-nav {
    flex-direction: row;
    gap: 5px;
  }

  .nv-a {
    white-space: nowrap;
  }

  .side-search {
    flex: 0 0 148px;
    min-width: 148px;
    margin-top: 0;
  }

  main,
  footer {
    margin-left: 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 34px;
    padding-bottom: 44px;
    gap: 28px;
  }

  .hero-fig {
    order: 2;
  }

  .flow section {
    scroll-margin-top: 84px;
  }

  footer {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .rail-h {
    font-size: 1.3rem;
  }
}

@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;
  }
}

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