@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0b150c;
  --paper: #e9ffe9;
  --serif: 'Cormorant Infant', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --sans: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --r: 4px;
  --line: rgba(105, 255, 105, .22);
  --glass: rgba(255, 255, 255, .055);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  font: 400 17px/1.75 var(--sans);
  background-color: var(--deep);
  background-image:
    radial-gradient(880px 620px at 82% -12%, rgba(0, 255, 255, .17), transparent 62%),
    radial-gradient(680px 520px at 4% 12%, rgba(105, 255, 105, .14), transparent 64%),
    linear-gradient(180deg, #172617 0%, #0d1a0f 55%, #08110a 100%);
  background-repeat: no-repeat;
}

img { max-width: 100%; }

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

::selection {
  background: var(--neon);
  color: #06180a;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 21, 12, .78);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .42);
}

.bar-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.menu-a { justify-content: flex-start; }
.bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 9px;
  border-radius: var(--r);
  color: #cbe8cb;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: color .2s, background .2s, text-shadow .2s;
}

.menu a:hover,
.menu a.on {
  color: var(--neon);
  background: rgba(105, 255, 105, .1);
  text-shadow: 0 0 12px rgba(105, 255, 105, .8);
}

.brand {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  padding: 6px 16px;
  border-radius: var(--r);
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(105, 255, 105, .26) 42%, rgba(0, 255, 255, .34) 74%, rgba(255, 255, 255, .3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .65),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 0 22px rgba(0, 255, 255, .26);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

.cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-decoration: none;
  color: #06180a;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .55);
  background: linear-gradient(135deg, #d6ffd6 0%, var(--neon) 40%, var(--cyan) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -2px 0 rgba(0, 90, 60, .22),
    0 8px 22px rgba(0, 255, 255, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cta:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 12px 30px rgba(105, 255, 105, .45);
}

/* ---------- 头图区 ---------- */
.hero { padding: 26px 0 10px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 34px;
  min-height: 64vh;
}

.hero-media {
  position: relative;
  margin: 0;
  height: clamp(300px, 56vh, 470px);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(160deg, rgba(0, 255, 255, .16), rgba(105, 255, 105, .08));
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(105, 255, 105, .18);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  will-change: transform;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .3) 0%, transparent 38%, transparent 62%, rgba(0, 255, 255, .22) 100%);
}

.bubbles { position: absolute; inset: 0; }

.bubbles i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(105, 255, 105, .45);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .4), rgba(0, 255, 255, .14) 58%, transparent 72%);
  box-shadow: 0 0 26px rgba(0, 255, 255, .24);
}

.bubbles i:nth-child(1) { width: 118px; height: 118px; left: 12%; top: 16%; }
.bubbles i:nth-child(2) { width: 62px; height: 62px; right: 18%; top: 30%; }
.bubbles i:nth-child(3) { width: 154px; height: 154px; right: 26%; bottom: 8%; }
.bubbles i:nth-child(4) { width: 40px; height: 40px; left: 26%; bottom: 22%; }

.badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  font-size: 16px;
  letter-spacing: .18em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: var(--r);
  background: rgba(8, 17, 10, .62);
  backdrop-filter: blur(6px);
  text-shadow: 0 0 12px rgba(0, 255, 255, .9);
}

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

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.1vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 .4em;
  background: linear-gradient(112deg, #ffffff 0%, #d8ffd8 38%, var(--neon) 62%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(105, 255, 105, .38));
}

.lead {
  max-width: 36ch;
  margin: 0 0 1.5em auto;
  color: #b8d8b8;
}

/* ---------- 正文 + 侧栏 ---------- */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 32px;
  align-items: start;
  padding: 34px 0 46px;
}

.prose { min-width: 0; }

.prose div {
  position: relative;
  overflow: hidden;
  margin: 0 0 26px;
  padding: 26px 24px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .018));
  backdrop-filter: blur(5px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  scroll-margin-top: 96px;
}

.prose div::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 46%, transparent 88%);
}

.prose div::after {
  content: '✦';
  position: absolute;
  right: 14px;
  top: 8px;
  font-size: 16px;
  color: rgba(0, 255, 255, .5);
  pointer-events: none;
}

.prose small,
.side small,
.foot small {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .22em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, .55);
}

.prose h2,
.prose h3 {
  font-family: var(--serif);
  color: #f0fff0;
  line-height: 1.28;
  margin: .1em 0 .62em;
  text-shadow: 0 0 20px rgba(105, 255, 105, .3);
}

.prose h2 { font-size: clamp(23px, 2.7vw, 31px); }
.prose h3 { font-size: clamp(20px, 2.2vw, 24px); }

.prose p,
.prose li {
  color: #cfe6cf;
  margin: 0 0 1em;
}

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

.prose li { margin-bottom: .45em; }

.prose strong { color: #ffffff; }

.prose img {
  height: auto;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .18);
}

.prose blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  border-left: 2px solid var(--neon);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(105, 255, 105, .07);
  color: #e4f7e4;
}

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

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  text-align: left;
}

.prose a { text-decoration-color: rgba(0, 255, 255, .5); }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 84px;
  padding: 18px;
  border-radius: var(--r);
  border: 1px solid rgba(0, 255, 255, .26);
  background: linear-gradient(180deg, rgba(0, 255, 255, .1), rgba(255, 255, 255, .03));
  backdrop-filter: blur(9px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
}

.side h2 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 12px;
  color: #f0fff0;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-radius: var(--r);
  color: #cfe6cf;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px dashed rgba(105, 255, 105, .16);
}

.side-list a:hover { color: var(--neon); background: rgba(105, 255, 105, .1); }

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid rgba(0, 255, 255, .45);
  color: var(--cyan);
  text-decoration: none;
  font-size: 16px;
}

.totop:hover { background: rgba(0, 255, 255, .12); }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, .07), rgba(8, 17, 10, 0) 70%);
  padding: 38px max(16px, calc(50% - 590px)) 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.foot h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 10px;
  color: #eaffea;
}

.foot p {
  margin: 0;
  color: #a7c8a7;
  font-size: 16px;
  max-width: 40ch;
}

.foot dl { margin: 0; }
.foot dt { margin: 0; }

.foot dt a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cfe6cf;
  text-decoration: none;
  font-size: 16px;
}

.foot dt a:hover { color: var(--neon); text-shadow: 0 0 12px rgba(105, 255, 105, .7); }

.foot-base {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

.foot-base p {
  margin: 0 auto;
  color: #8fb78f;
  font-size: 16px;
}

/* ---------- 滚动显现 ---------- */
[data-rev] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

[data-rev].in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  .bar-in {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-bottom: 6px;
  }

  .brand { order: -1; font-size: 23px; }

  .menu-a,
  .bar-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .menu a { padding: 0 8px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .hero-copy {
    order: -1;
    text-align: left;
  }

  .lead { margin-left: 0; }

  .hero-media { height: 34vh; min-height: 190px; }

  .doc { grid-template-columns: 1fr; gap: 24px; }

  .side { position: static; }

  .foot { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }

  .menu a { padding: 0 7px; font-size: 16px; }

  .prose div { padding: 20px 16px 10px; }

  .btn,
  .cta { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-rev] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media img { transform: none; }

  .cta:hover,
  .btn:hover { transform: none; }
}

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