@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --ink: #172617;
  --ink-deep: #0b130b;
  --neon: #69ff69;
  --cyan: #00ffff;
  --paper: #0d1a0f;
  --text: #e6ffe6;
  --dim: rgba(198, 232, 198, 0.62);
  --line: rgba(105, 255, 105, 0.24);
  --chrome: linear-gradient(180deg, #ffffff 0%, #c8ffd8 24%, #69ff69 48%, #0a4a24 53%, #9dffbd 72%, #ffffff 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(0, 255, 255, 0.17), transparent 62%),
    radial-gradient(760px 520px at 6% 16%, rgba(105, 255, 105, 0.15), transparent 64%),
    linear-gradient(180deg, #0d1a0f 0%, #172617 46%, #0b130b 100%);
  background-attachment: fixed;
}

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

img { max-width: 100%; }

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

/* ---------- 左侧竖排导航 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 20px 30px;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(23, 38, 23, 0.97), rgba(9, 17, 10, 0.98));
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 44px rgba(0, 255, 255, 0.09);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  color: #ffffff;
}

.brand-name {
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.6);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 255, 0.55);
}

.brand-orb {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff, #69ff69 38%, #00ffff 72%, #0a4a24 100%);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.75), inset 0 -4px 8px rgba(0, 0, 0, 0.45);
}

.nav > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  color: #cdf6d4;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  border: 1px solid rgba(0, 255, 255, 0.32);
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(0, 255, 255, 0.1), rgba(105, 255, 105, 0.06));
}

.nav > summary::-webkit-details-marker { display: none; }

.nav > summary::after {
  content: "＋";
  font-size: 0.95rem;
  color: var(--neon);
}

.nav[open] > summary::after { content: "－"; }

.nav > menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.nav > menu li { margin: 0; }

.nav > menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  text-decoration: none;
  color: #c6efc9;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav > menu a:hover,
.nav > menu a:focus-visible {
  background: linear-gradient(90deg, rgba(105, 255, 105, 0.16), rgba(0, 255, 255, 0.06));
  color: #ffffff;
  border-left-color: var(--neon);
  transform: translateX(3px);
}

.rail-contact {
  margin: auto 0 0;
  padding-top: 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--dim);
  letter-spacing: 0.04em;
  word-break: break-all;
  border-top: 1px dashed rgba(105, 255, 105, 0.22);
}

/* ---------- 主体 ---------- */
main { margin-left: 250px; }

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: 44px;
  padding: 8vh 6vw 7vh;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 6%;
  height: 34%;
  z-index: 0;
  transform: skewY(-7deg);
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.2), rgba(105, 255, 105, 0.13) 55%, rgba(0, 255, 255, 0.02));
  border-top: 1px solid rgba(0, 255, 255, 0.42);
  border-bottom: 1px solid rgba(105, 255, 105, 0.35);
  filter: blur(0.2px);
}

.hero > * { position: relative; z-index: 1; }

.hero-fig {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 255, 255, 0.45);
  background:
    radial-gradient(120% 90% at 20% 12%, rgba(0, 255, 255, 0.28), transparent 58%),
    linear-gradient(150deg, rgba(105, 255, 105, 0.28), rgba(23, 38, 23, 0.94) 46%, rgba(0, 255, 255, 0.24));
  box-shadow: 0 0 56px rgba(105, 255, 105, 0.26), inset 0 0 70px rgba(0, 255, 255, 0.14);
  animation: pop 0.75s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  mix-blend-mode: luminosity;
}

.hero-fig::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: 12%;
  top: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ffffff, rgba(0, 255, 255, 0.75) 42%, rgba(105, 255, 105, 0.1) 72%, transparent 74%);
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.6);
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-fig::after {
  content: "✧";
  position: absolute;
  left: 12%;
  bottom: 11%;
  font-size: 1.7rem;
  color: #eafff0;
  text-shadow: 0 0 16px var(--neon), 0 0 32px var(--cyan);
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  inset: 22% 20% 24% 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.85), rgba(105, 255, 105, 0.5) 34%, rgba(0, 255, 255, 0.28) 62%, transparent 72%);
  filter: blur(2px);
}

.hero-copy { text-align: right; }

.hero-copy h1 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.5)) drop-shadow(0 0 36px rgba(105, 255, 105, 0.3));
  animation: rise 0.7s ease both;
}

/* ---------- 内容区 ---------- */
.stage {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 0 6vw 9vh;
}

.side {
  position: sticky;
  top: 24px;
  padding: 18px 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.26);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(9px);
}

.side h2 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-size: 1.06rem;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.6);
}

.side hr,
.prose hr {
  border: 0;
  height: 2px;
  margin: 11px 0 13px;
  background: linear-gradient(90deg, var(--neon), var(--cyan), transparent);
}

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

.side ul a {
  display: block;
  min-height: 40px;
  padding: 9px 8px;
  font-size: 0.9rem;
  color: #bff3cc;
  text-decoration: none;
  border-radius: 4px;
  border-left: 2px solid rgba(0, 255, 255, 0.34);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.side ul a:hover,
.side ul a:focus-visible {
  background: rgba(0, 255, 255, 0.12);
  color: #ffffff;
  border-left-color: var(--neon);
}

.prose { min-width: 0; overflow-wrap: break-word; }

.prose section {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 28px 22px;
  border-radius: 4px;
  scroll-margin-top: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  animation: rise 0.6s ease both;
}

.prose section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.65), transparent);
}

.prose section:nth-child(1) { animation-delay: 0.04s; }
.prose section:nth-child(2) { animation-delay: 0.1s; }
.prose section:nth-child(3) { animation-delay: 0.16s; }
.prose section:nth-child(4) { animation-delay: 0.22s; }
.prose section:nth-child(5) { animation-delay: 0.28s; }
.prose section:nth-child(6) { animation-delay: 0.34s; }
.prose section:nth-child(7) { animation-delay: 0.4s; }
.prose section:nth-child(8) { animation-delay: 0.46s; }

.prose section > :first-child { margin-top: 0; }
.prose section > :last-child { margin-bottom: 0; }

.prose h2,
.prose h3 {
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  color: #ffffff;
  line-height: 1.3;
  margin: 0.9em 0 0.35em;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.5);
}

.prose h3 {
  font-size: 1.2rem;
  color: #d9ffdf;
}

.prose p { margin: 0 0 1em; line-height: 1.85; }

.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.3em; }

.prose li { margin: 0.3em 0; }

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

.prose a {
  color: var(--cyan);
  text-decoration-color: rgba(0, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--neon); }

.prose strong { color: #ffffff; }

.prose blockquote {
  margin: 1em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 4px;
  background: rgba(0, 255, 255, 0.07);
  color: #dcffe4;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 9px 12px;
  border: 1px solid rgba(105, 255, 105, 0.28);
  text-align: left;
}

.prose th {
  color: #ffffff;
  background: rgba(105, 255, 105, 0.12);
}

.prose code {
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0, 255, 255, 0.14);
}

/* ---------- 页脚 ---------- */
.base {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-left: 250px;
  padding: 42px 6vw 22px;
  border-top: 1px solid rgba(0, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.42));
}

.base p { margin: 0; }

.base .f-brand {
  font-family: "Crimson Pro", Georgia, "Songti SC", serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.55);
}

.f-k {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: rgba(0, 255, 255, 0.8);
  margin-bottom: 4px;
}

.f-v {
  display: block;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--dim);
  word-break: break-word;
}

.base small {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(105, 255, 105, 0.24);
  font-size: 0.8rem;
  color: rgba(198, 232, 198, 0.5);
}

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

@keyframes pop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
  body { font-size: 16.5px; }

  .rail {
    position: static;
    width: auto;
    padding: 13px 16px 15px;
    gap: 11px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 26px rgba(0, 255, 255, 0.1);
  }

  .rail-contact { margin-top: 4px; padding-top: 10px; }

  main { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 22px;
    padding: 26px 18px 32px;
  }

  .hero::before { height: 26%; bottom: 2%; }

  .hero-fig { order: 2; aspect-ratio: 16 / 11; }
  .hero-copy { order: 1; }
  .hero-copy h1 { font-size: clamp(1.95rem, 9vw, 2.8rem); }

  .stage {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px 48px;
  }

  .side { position: static; }

  .side ul { display: flex; flex-wrap: wrap; gap: 6px; }

  .side ul a {
    border-left: 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 8px 11px;
    font-size: 0.85rem;
  }

  .prose section { padding: 20px 18px 16px; }

  .base {
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 28px 16px 18px;
  }
}

@media (max-width: 420px) {
  .base { grid-template-columns: 1fr; }
}

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