@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: #192617;
  --ink-deep: #0e1a0c;
  --ink-soft: #1e301c;
  --panel: #21331f;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --violet: #b967ff;
  --text: #e9f6e4;
  --muted: #a8c3a1;
  --serif: 'Lora', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --sans: 'Raleway', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --rail: 264px;
  --radius: 28px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--ink-deep);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 118%, rgba(255, 113, 206, 0.26), transparent 62%),
    radial-gradient(85% 60% at 88% -12%, rgba(1, 205, 254, 0.2), transparent 70%),
    radial-gradient(70% 50% at 4% 30%, rgba(185, 103, 255, 0.14), transparent 72%),
    linear-gradient(180deg, #0c170b, var(--ink) 55%, #12200f);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background-image:
    linear-gradient(rgba(135, 255, 113, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.06) 1px, transparent 1px),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 4px);
  background-size: 48px 48px, 48px 48px, 100% 4px;
}

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

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

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

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 20px;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f1d0d 0%, rgba(25, 38, 23, 0.97) 55%, #101d0e 100%);
  border-right: 1px solid rgba(1, 205, 254, 0.32);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--neon);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 14px rgba(135, 255, 113, 0.45);
}

.brand-mark { display: inline-flex; }
.brand-mark svg, .brand-mark img { height: 26px; width: auto; display: block; }

.rail-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(135, 255, 113, 0.14);
  color: var(--neon);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.rail-nav { flex: 1 1 auto; }

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grp-name {
  display: block;
  margin: 16px 0 6px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  opacity: 0.8;
}

.rail-list > .grp > a,
.rail-list .sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #ddf0d7;
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rail-list .sub a {
  min-height: 40px;
  padding-left: 24px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
}

.rail-list > .grp > a:hover,
.rail-list .sub a:hover {
  background: var(--neon);
  color: var(--ink);
  transform: translateX(3px);
}

.sub {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.grp:hover .sub,
.grp:focus-within .sub { max-height: 340px; }

.rail-foot { padding-top: 14px; }

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: linear-gradient(120deg, var(--neon), var(--cyan));
  box-shadow: 0 0 22px rgba(1, 205, 254, 0.32);
}

/* ---------- 主区域 ---------- */

main {
  margin-left: var(--rail);
  padding: 0 clamp(16px, 4vw, 56px) 68px;
}

main > div {
  max-width: 860px;
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0 96px;
  isolation: isolate;
}

.hero h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7.6vw, 4.8rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(175deg, #d9ffd0 4%, var(--neon) 34%, var(--cyan) 68%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(1, 205, 254, 0.35));
}

.sun {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 1;
  margin: 0;
  width: min(300px, 66vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  opacity: 0.72;
  background: linear-gradient(180deg, var(--pink) 0%, #ffa06b 42%, var(--cyan) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 42%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 42%, transparent 100%);
}

.sun i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(25, 38, 23, 0) 0 12px,
    rgba(25, 38, 23, 0.62) 12px 14px
  );
}

.intro { padding: 0 0 26px; }

.intro h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.28);
}

hr {
  height: 2px;
  margin: 0 0 18px;
  border: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 46%, rgba(185, 103, 255, 0.2) 78%, transparent);
  border-radius: 2px;
}

.lede {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
}

/* ---------- 正文 ---------- */

.body-copy > div {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 38px);
  margin: 0 auto 24px;
  scroll-margin-top: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.body-copy > div:nth-child(even) {
  background: linear-gradient(170deg, #24381f, #1c2d1a);
}

.body-copy h2,
.body-copy h3 {
  font-family: var(--serif);
  line-height: 1.28;
  color: var(--neon);
  font-weight: 600;
  text-shadow: 0 0 16px rgba(135, 255, 113, 0.24);
}

.body-copy h2 { font-size: clamp(1.35rem, 3vw, 1.95rem); margin: 0 0 10px; }
.body-copy h3 { font-size: clamp(1.15rem, 2.3vw, 1.4rem); margin: 28px 0 8px; }
.body-copy p { margin: 0 0 14px; }
.body-copy p:last-child { margin-bottom: 0; }
.body-copy ul, .body-copy ol { padding-left: 1.35em; margin: 0 0 16px; }
.body-copy li { margin: 0 0 6px; }
.body-copy li::marker { color: var(--cyan); }
.body-copy strong { color: #f4ffe9; }
.body-copy a { text-decoration: 1px underline rgba(1, 205, 254, 0.5); text-underline-offset: 3px; }
.body-copy img, .body-copy figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 20px;
}
.body-copy blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(1, 205, 254, 0.1);
  color: #d9f1ff;
}
.body-copy blockquote p:last-child { margin-bottom: 0; }
.body-copy figure { margin: 18px 0; }
.body-copy figcaption { font-size: 0.9rem; color: var(--muted); }

/* ---------- 页脚 ---------- */

footer {
  margin-left: var(--rail);
  padding: 40px clamp(16px, 4vw, 56px) 26px;
  background: rgba(14, 26, 12, 0.86);
  border-top: 1px solid rgba(1, 205, 254, 0.22);
  text-align: center;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 0 22px;
  text-align: left;
  font-size: 0.94rem;
  color: var(--muted);
}

.foot-grid > span { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-grid b { color: #ecffe4; font-family: var(--serif); font-weight: 600; letter-spacing: 0.04em; }
.foot-grid a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }

.sub-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }

.sub-form input {
  flex: 1 1 110px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(135, 255, 113, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.94rem;
}

.sub-form button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--cyan);
  color: #06170c;
  font-family: var(--sans);
  font-weight: 700;
  cursor: pointer;
}

.sub-form button:hover { background: var(--neon); }

footer small {
  display: block;
  padding-top: 16px;
  border-top: 1px solid rgba(135, 255, 113, 0.14);
  color: rgba(168, 195, 161, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ---------- 入场 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 900px) {
  .rail {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: auto;
    padding: 10px 14px 12px;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(1, 205, 254, 0.32);
    overflow: visible;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  }

  .rail-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .rail-nav { display: none; }
  .rail.is-open .rail-nav { display: block; }

  .rail-foot { display: none; }
  .rail.is-open .rail-foot { display: block; }

  .rail-list { flex-direction: column; }
  .grp-name { margin-top: 10px; }
  .sub { max-height: none; }

  main { margin-left: 0; padding-bottom: 48px; }
  .hero { min-height: 56vh; padding: 40px 0 68px; }
  .body-copy > div { scroll-margin-top: 74px; }

  footer { margin-left: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { min-height: 48vh; padding: 28px 0 54px; }
  .foot-grid { grid-template-columns: 1fr; }
  .body-copy > div { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail-list a, .sub { transition: none; }
}

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