@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --paper: #eafff0;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(105, 255, 105, 0.28);
  --line2: rgba(0, 255, 255, 0.24);
  --chrome: linear-gradient(150deg, #f4fff7 0%, #a9c8b4 26%, #ffffff 45%, #8ba894 62%, #ddffe6 84%, #9de0ae 100%);
  --r: 18px;
  --bar: 78px;
  --gut: clamp(14px, 4vw, 46px);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Lexend', 'Source Sans 3', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--paper);
  overflow-x: hidden;
  padding-bottom: calc(var(--bar) + 1.4rem);
  min-height: 100vh;
  background:
    radial-gradient(880px 520px at 8% -10%, rgba(0, 255, 255, 0.2), transparent 62%),
    radial-gradient(760px 520px at 94% 2%, rgba(105, 255, 105, 0.2), transparent 64%),
    linear-gradient(180deg, #101d10 0%, #172617 44%, #0c150c 100%);
  background-attachment: fixed;
}

img { max-width: 100%; }

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

.skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--neon);
  color: #0d1a0d;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: none; }

/* ---------- 底部固定条 ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem calc(0.5rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.72), rgba(9, 16, 9, 0.96));
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px -18px rgba(105, 255, 105, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.35);
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }

.nav p {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  white-space: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.55rem;
  font-size: 0.95rem;
  line-height: 1.15;
  color: rgba(234, 255, 240, 0.86);
  text-decoration: none;
  border-radius: 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
  background: rgba(0, 255, 255, 0.1);
}
.nav a.on {
  color: #0d1a0d;
  background: var(--neon);
  border-bottom-color: var(--cyan);
}

.find {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.25rem 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.35);
}

.find input {
  width: 8.4rem;
  min-width: 0;
  min-height: 36px;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
}
.find input:focus { outline: none; }
.find input::placeholder { color: rgba(234, 255, 240, 0.55); }

.find button {
  flex: 0 0 auto;
  min-height: 36px;
  min-width: 40px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0d1a0d;
  background: var(--chrome);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
  cursor: pointer;
}

/* ---------- 头图区 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 1.2rem;
  min-height: 45vh;
  padding: 1.7rem var(--gut) 1.6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line2);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 26%, rgba(0, 255, 255, 0.28) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 16%, rgba(105, 255, 105, 0.3) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 74%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 84%, rgba(0, 255, 255, 0.22) 0 4px, transparent 5px);
  opacity: 0.85;
}

.hero::after {
  content: '';
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -80px;
  height: 130px;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), rgba(105, 255, 105, 0.55), transparent);
  filter: blur(10px);
  opacity: 0.75;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line2);
  background: linear-gradient(160deg, rgba(0, 255, 255, 0.14), rgba(105, 255, 105, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-fig {
  position: relative;
  z-index: 2;
  margin: 0;
  height: 100%;
}
.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow:
    0 0 22px rgba(0, 255, 255, 0.55),
    0 0 44px rgba(105, 255, 105, 0.4),
    inset -6px -8px 14px rgba(23, 38, 23, 0.35);
  animation: float 5.5s ease-in-out infinite;
}

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

.hero-h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f6fff8;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.55), 0 0 38px rgba(0, 255, 255, 0.28);
}

.hero-desc {
  max-width: 34rem;
  margin: 0 auto 1rem;
  color: rgba(234, 255, 240, 0.8);
  font-size: 1rem;
}

.hero-cta { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: var(--chrome);
  color: #10230f;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.45), inset 0 1px 0 #ffffff;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(105, 255, 105, 0.7), inset 0 1px 0 #ffffff;
}

/* ---------- 主栅格 ---------- */
main { display: block; }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.3rem;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem var(--gut);
}

.board { min-width: 0; }

.prose { display: block; }

.prose section {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 1.1rem 1.2rem 1.25rem;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px -26px rgba(0, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  scroll-margin-top: 1.1rem;
  animation: rise 0.55s ease both;
}
.prose section:nth-child(even) {
  border-color: var(--line);
  background: linear-gradient(170deg, rgba(105, 255, 105, 0.09), rgba(255, 255, 255, 0.05));
}
.prose section:nth-child(2) { animation-delay: 0.05s; }
.prose section:nth-child(3) { animation-delay: 0.1s; }
.prose section:nth-child(4) { animation-delay: 0.15s; }
.prose section:nth-child(5) { animation-delay: 0.2s; }
.prose section:nth-child(6) { animation-delay: 0.25s; }
.prose section:nth-child(7) { animation-delay: 0.3s; }

.prose section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--neon) 55%, transparent);
}

.prose section.hit {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.prose h2 {
  margin: 0.15rem 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #f4fff6;
}
.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.4);
}

.prose h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--neon);
}

.prose p { margin: 0.7rem 0; }
.prose ul,
.prose ol { margin: 0.7rem 0; padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose blockquote {
  margin: 0.9rem 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 255, 255, 0.08);
  color: rgba(234, 255, 240, 0.9);
}
.prose a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: #ffffff; }
.prose img { border-radius: 14px; border: 1px solid var(--line2); }
.prose strong { color: #ffffff; }

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(0, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px -28px rgba(105, 255, 105, 0.9);
}

.rail-h {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #f4fff6;
}
.rail-h > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spk {
  color: var(--cyan);
  font-size: 0.85rem;
  text-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

.rail-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}
.rail-list li { animation: rise 0.5s ease both; }
.rail-list li:nth-child(2) { animation-delay: 0.06s; }
.rail-list li:nth-child(3) { animation-delay: 0.12s; }
.rail-list li:nth-child(4) { animation-delay: 0.18s; }
.rail-list li:nth-child(5) { animation-delay: 0.24s; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  font-size: 0.98rem;
  color: rgba(234, 255, 240, 0.9);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.rail-list a:hover,
.rail-list a:focus-visible {
  background: rgba(105, 255, 105, 0.14);
  border-color: var(--line);
  color: #ffffff;
}

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: var(--chrome);
  color: #10230f;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: var(--maxw);
  margin: 1.4rem auto 0;
  padding: 1.3rem var(--gut) 1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.06), transparent 65%);
}

.foot-h {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.foot-h > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.foot dl { margin: 0; }

.foot dt {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--neon);
}

.foot dd {
  margin: 0.15rem 0;
  font-size: 0.98rem;
  color: rgba(234, 255, 240, 0.78);
}

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.15rem 0;
  color: rgba(234, 255, 240, 0.82);
  text-decoration: none;
}
.foot dd a:hover,
.foot dd a:focus-visible { color: var(--cyan); }

.sub {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.sub input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.34);
  color: var(--paper);
  font: inherit;
  font-size: 0.98rem;
}
.sub input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.sub button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: var(--chrome);
  color: #10230f;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.note {
  margin: 0.4rem 0 0;
  min-height: 1.2rem;
  font-size: 0.95rem;
  color: var(--cyan);
}

.cr {
  margin: 1.1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(234, 255, 240, 0.6);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
}

@media (max-width: 760px) {
  :root { --bar: 72px; }
  body { font-size: 17px; }

  .bar { gap: 0.35rem; padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom)); }
  .brand { font-size: 0.98rem; padding: 0 0.2rem; }
  .nav a { font-size: 0.95rem; padding: 0.55rem 0.45rem; }
  .find { padding-left: 0.55rem; }
  .find input { width: 5.2rem; }

  .hero {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 0.85rem;
    min-height: 0;
    padding: 1.15rem var(--gut) 1.2rem;
  }
  .hero-media { aspect-ratio: 1 / 1; }
  .hero-h1 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .hero-desc { font-size: 0.98rem; margin-bottom: 0.75rem; }

  .wrap { padding: 1.1rem var(--gut) 0.4rem; }
  .prose section { padding: 0.95rem 1rem 1.05rem; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .cr { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

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