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

:root {
  --ink: #172617;
  --deep: #0b160d;
  --neon: #69ff69;
  --cyan: #00ffff;
  --paper: #eafff0;
  --muted: #b6d3be;
  --line: rgba(105, 255, 105, 0.24);
  --line2: rgba(0, 255, 255, 0.26);
  --chrome: linear-gradient(180deg, #ffffff, #d3ecd9 36%, #93c9a4 58%, #f4fff8);
  --radius: 10px;
  --side: 238px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(60vw 60vw at 88% -8%, rgba(0, 255, 255, 0.16), transparent 62%),
    radial-gradient(50vw 46vw at 6% 108%, rgba(105, 255, 105, 0.16), transparent 64%),
    linear-gradient(180deg, #172617, #0d1a10 62%, #0a140c);
  background-attachment: fixed;
  color: var(--paper);
  font-family: "Raleway", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 左侧固定柱 ---------- */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 18px 22px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(0, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(11, 22, 13, 0.96), rgba(10, 20, 12, 0.99));
  border-right: 1px solid var(--line2);
  z-index: 30;
}

.side::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--neon), transparent);
  opacity: 0.85;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  min-height: 46px;
  text-decoration: none;
  color: var(--paper);
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.brand-mark {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.85), inset 0 0 5px rgba(23, 38, 23, 0.5);
}

.brand-text {
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.4);
}

.brand:hover .brand-mark {
  animation: spinmark 1.4s ease-in-out infinite;
}

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

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-left: 2px solid rgba(0, 255, 255, 0.28);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.side-nav a:hover,
.side-nav a:focus-visible {
  color: var(--neon);
  border-left-color: var(--neon);
  background: linear-gradient(90deg, rgba(105, 255, 105, 0.14), transparent);
  transform: translateX(3px);
  outline: none;
}

/* ---------- 搜索 ---------- */
.find {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: rgba(0, 255, 255, 0.07);
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
}

.find input::placeholder {
  color: #8fb39b;
}

.find input:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(105, 255, 105, 0.22);
}

.find button {
  flex: none;
  padding: 11px 14px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: var(--chrome);
  color: #123019;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.find button:hover {
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(0, 255, 255, 0.7));
  transform: translateY(-1px);
}

/* ---------- 舞台 ---------- */
.stage {
  margin-left: var(--side);
  padding: 28px clamp(16px, 3vw, 42px) 46px;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 24px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

article {
  min-width: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 45vh;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(0, 255, 255, 0.2), transparent 56%),
    radial-gradient(120% 140% at 100% 105%, rgba(105, 255, 105, 0.18), transparent 60%),
    linear-gradient(150deg, #1c3120, #0d1b11);
  scroll-margin-top: 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(0, 255, 255, 0.85) 0 1.4px, transparent 1.8px);
  background-size: 130px 110px, 190px 160px;
  background-position: 12px 18px, 74px 62px;
  opacity: 0.5;
}

.hero-art {
  position: relative;
  margin: 0;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(0, 255, 255, 0.09));
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff, #b9f3d0 34%, #35c9a6 62%, #10614a);
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.8), inset -8px -12px 22px rgba(0, 40, 30, 0.55);
}

.badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 11px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: rgba(9, 20, 12, 0.82);
  color: var(--cyan);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 0 6px;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.24;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 12%, #d8ffe4 46%, #7ee2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(105, 255, 105, 0.5));
}

.lede {
  margin: 0 auto;
  max-width: 44ch;
  color: #d4e9da;
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- 正文区块 ---------- */
article > div:not(.hero) {
  position: relative;
  margin: 0 0 20px;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(0, 255, 255, 0.07), rgba(105, 255, 105, 0.035) 48%, rgba(255, 255, 255, 0.02));
  scroll-margin-top: 24px;
  transition: border-color 0.2s ease;
}

article > div:not(.hero):hover {
  border-color: rgba(105, 255, 105, 0.55);
}

article h2,
article h3,
.rail-box h2 {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 14px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.35;
  color: #f4fff7;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.4);
}

article h2 {
  font-size: clamp(21px, 2.4vw, 28px);
}

article h3 {
  font-size: clamp(18px, 1.9vw, 22px);
  margin-top: 22px;
  color: #dffbe7;
}

article h2 > span::before,
article h3 > span::before,
.rail-box h2 > span::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 10px;
  border-radius: 50%;
  vertical-align: 2px;
  background: var(--chrome);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.9);
}

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

article p:last-child {
  margin-bottom: 0;
}

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

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

article ul,
article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

article li {
  margin-bottom: 8px;
}

article li::marker {
  color: var(--neon);
}

article img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

article blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 255, 255, 0.07);
  color: #d9f2e2;
}

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

article code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(0, 255, 255, 0.12);
  color: #c8fff0;
  font-size: 15px;
}

article table {
  width: 100%;
  margin-bottom: 16px;
  border-collapse: collapse;
  font-size: 16px;
}

article th,
article td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  text-align: left;
}

article th {
  background: rgba(105, 255, 105, 0.1);
  color: #f0fff4;
}

/* ---------- 右栏 ---------- */
.rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rail-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(0, 255, 255, 0.09), rgba(11, 22, 13, 0.5));
}

.rail-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.rail-list a b {
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0.85;
}

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

.rail-site {
  margin: 0 0 6px;
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  color: #f0fff5;
}

.rail-host {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(0, 255, 255, 0.08);
  color: #b9f5e2;
  font-size: 15px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: 1160px;
  margin: 34px auto 0;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line2);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  color: #e9fff0;
}

.foot-brand .brand-mark {
  width: 16px;
  height: 16px;
}

.foot-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.16s ease, text-shadow 0.16s ease;
}

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

.copy {
  margin: 0;
  color: #9dbba8;
  font-size: 16px;
}

.is-off {
  display: none !important;
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spinmark {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.15);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .side-nav a,
  .rail-list li,
  .hero-copy h1,
  .lede {
    animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  }
  .side-nav a:nth-child(1) { animation-delay: 0.03s; }
  .side-nav a:nth-child(2) { animation-delay: 0.06s; }
  .side-nav a:nth-child(3) { animation-delay: 0.09s; }
  .side-nav a:nth-child(4) { animation-delay: 0.12s; }
  .side-nav a:nth-child(5) { animation-delay: 0.15s; }
  .side-nav a:nth-child(6) { animation-delay: 0.18s; }
  .side-nav a:nth-child(7) { animation-delay: 0.21s; }
  .rail-list li:nth-child(1) { animation-delay: 0.05s; }
  .rail-list li:nth-child(2) { animation-delay: 0.1s; }
  .rail-list li:nth-child(3) { animation-delay: 0.15s; }
  .rail-list li:nth-child(4) { animation-delay: 0.2s; }
  .rail-list li:nth-child(5) { animation-delay: 0.25s; }
  .rail-list li:nth-child(6) { animation-delay: 0.3s; }
  .rail-list li:nth-child(7) { animation-delay: 0.35s; }
  .lede { animation-delay: 0.1s; }
}

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

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .side {
    position: static;
    width: auto;
    height: auto;
    padding: 14px 16px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line2);
    background:
      linear-gradient(180deg, rgba(0, 255, 255, 0.1), transparent 70%),
      rgba(10, 20, 12, 0.96);
  }

  .brand {
    padding: 4px 0;
  }

  .side-nav p {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 10px;
  }

  .side-nav a {
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 16px;
  }

  .side-nav a:hover {
    transform: none;
  }

  .find {
    margin-top: 12px;
  }

  .stage {
    margin-left: 0;
    padding: 18px 14px 40px;
  }

  main {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .rail {
    position: static;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 14px;
  }

  .hero-art {
    min-height: 124px;
    aspect-ratio: 16 / 7;
  }

  .hero-copy {
    padding: 4px 0 6px;
  }
}

@media (max-width: 420px) {
  .side-nav a {
    padding: 9px 8px;
    font-size: 16px;
  }

  .hero-art {
    min-height: 108px;
  }
}

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