:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0a140a;
  --glass: rgba(21, 38, 22, 0.6);
  --line: rgba(105, 255, 105, 0.26);
  --line-soft: rgba(0, 255, 255, 0.18);
  --chrome: linear-gradient(135deg, #f6fff6 0%, #a9e9bb 20%, #dfeaff 45%, #ffffff 60%, #8fe2cd 82%, #e9ffff 100%);
  --glow: 0 0 22px rgba(105, 255, 105, 0.42);
  --serif: 'EB Garamond', 'Crimson Text', 'Songti SC', 'SimSun', 'Times New Roman', serif;
  --radius: 10px;
  --pad: 1.1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.78;
  color: #dbf3db;
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 520px at 92% -8%, rgba(0, 255, 255, 0.16), transparent 64%),
    radial-gradient(720px 500px at 4% 2%, rgba(105, 255, 105, 0.14), transparent 62%),
    radial-gradient(600px 600px at 50% 108%, rgba(0, 255, 255, 0.1), transparent 70%),
    linear-gradient(180deg, #172617 0%, #0d1a0d 58%, #122112 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 0.6rem;
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(9, 20, 9, 0.96), rgba(9, 20, 9, 0.78));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.4);
}

.brandrow {
  padding: 0.5rem var(--pad) 0.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  text-decoration: none;
  color: #eaffea;
  font-size: 1.28rem;
  letter-spacing: 0.2em;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.6);
}

.brand-text {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(105, 255, 105, 0.35));
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.menurow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 var(--pad) 0.55rem;
}

.nav > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #0e200f;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: linear-gradient(180deg, #d8ffd8 0%, var(--neon) 46%, #2ddc90 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(105, 255, 105, 0.4);
}

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

.nav > summary::after {
  content: '＋';
  font-size: 0.95rem;
  line-height: 1;
}

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

.nav > menu {
  display: none;
  margin-top: 0.55rem;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.4rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 22, 10, 0.94);
}

.nav[open] > menu {
  display: grid;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  color: #d9f7d9;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid transparent;
}

.nav a:active,
.nav a:focus-visible {
  border-color: var(--line-soft);
  background: rgba(0, 255, 255, 0.1);
}

.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  color: #eafcff;
  border: 1px solid rgba(0, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.28), rgba(0, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 16px rgba(0, 255, 255, 0.3);
  white-space: nowrap;
}

/* ---------- 骨架 ---------- */

.shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.2rem var(--pad) 2.4rem;
}

.doc {
  order: 1;
  min-width: 0;
}

.rail {
  order: 2;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  padding: 0.95rem 0.85rem 0.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rail-title {
  font-size: 1.18rem;
  letter-spacing: 0.24em;
  margin: 0;
  color: #eaffea;
}

.subtitle {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.92rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.55);
}

.rail-menu {
  display: grid;
  gap: 0.1rem;
}

.rail-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #d7f2d7;
  border-left: 2px solid rgba(105, 255, 105, 0.22);
}

.rail-menu a:hover,
.rail-menu a:focus-visible {
  border-left-color: var(--neon);
  background: rgba(105, 255, 105, 0.12);
  color: #fff;
}

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.2em;
  color: #0e200f;
  background: linear-gradient(180deg, #e6ffe6, var(--neon) 55%, #22c98a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 18px rgba(105, 255, 105, 0.35);
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 1.2rem;
  min-height: 96svh;
  padding: 0.8rem 0 1.6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(0, 255, 255, 0.75) 0 1.4px, transparent 2px),
    radial-gradient(circle, rgba(105, 255, 105, 0.6) 0 1px, transparent 1.8px);
  background-size: 190px 190px, 130px 130px;
  background-position: 22px 34px, 78px 96px;
  opacity: 0.42;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

.hero-copy {
  position: relative;
  order: 1;
  text-align: right;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 8.5vw, 4.6rem);
  line-height: 1.08;
  margin: 0 0 0.7rem;
  color: #f4fff4;
  text-shadow: 0 0 26px rgba(105, 255, 105, 0.5), 0 2px 0 rgba(0, 0, 0, 0.45);
}

.hero-copy h1::after {
  content: '';
  display: block;
  width: 5.5rem;
  height: 4px;
  margin: 0.9rem 0 0 auto;
  border-radius: 2px;
  background: var(--chrome);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.7);
}

.lede {
  margin: 0;
  font-size: 1.02rem;
  color: #b9e6c4;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.hero-art {
  position: relative;
  order: 2;
  min-height: 40vh;
  will-change: transform;
}

.shot {
  position: absolute;
  margin: 0;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--chrome);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6), 0 0 26px rgba(0, 255, 255, 0.3);
  overflow: hidden;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.shot.a {
  top: 0;
  left: 0;
  width: 64%;
  transform: rotate(-3.5deg);
  z-index: 1;
}

.shot.b {
  right: 0;
  bottom: 0;
  width: 54%;
  transform: rotate(4deg);
  z-index: 2;
}

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

.doc > div {
  position: relative;
  margin: 0 0 1.3rem;
  padding: 1.4rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.28);
  scroll-margin-top: 150px;
}

.doc > div::after {
  content: '';
  position: absolute;
  top: 0;
  right: 14px;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.85;
}

.doc > div.hero {
  margin-bottom: 1.2rem;
  padding: 0.4rem 0 1.4rem;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.doc > div.hero::after {
  display: none;
}

.doc h2 {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  color: #f0fff0;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.35);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.28);
}

.doc h2 + .subtitle {
  margin-top: -0.35rem;
  margin-bottom: 0.9rem;
}

.doc h3 {
  font-size: 1.2rem;
  color: #d6ffdc;
  margin-top: 1.4rem;
}

.doc p {
  margin: 0 0 0.95rem;
}

.doc ul,
.doc ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

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

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

.doc a:hover {
  text-decoration-color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.doc strong {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.35);
}

.doc blockquote {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--neon);
  background: rgba(0, 255, 255, 0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #cfeeda;
}

.doc figure {
  margin: 1rem 0;
}

.doc figcaption {
  font-size: 0.9rem;
  color: #9dc7a8;
  letter-spacing: 0.08em;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.6rem;
  text-align: left;
}

.doc th {
  background: rgba(105, 255, 105, 0.14);
  color: #eaffea;
}

.doc code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.94em;
  background: rgba(0, 255, 255, 0.12);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

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

.foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 2rem var(--pad) 1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 21, 10, 0.55), rgba(4, 10, 4, 0.95));
}

.cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.5rem 1.1rem;
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 160px at 88% -30%, rgba(0, 255, 255, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(105, 255, 105, 0.18), rgba(0, 255, 255, 0.1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 34px rgba(0, 255, 255, 0.2);
}

.cta-brand {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 2.9rem);
  letter-spacing: 0.2em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(105, 255, 105, 0.45));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #0b1c0c;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(180deg, #f0fff0 0%, var(--neon) 48%, #23c98c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 22px rgba(105, 255, 105, 0.45);
}

.fcol {
  min-width: 0;
}

.colh {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.32em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.fcol a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0;
  color: #d3f0d3;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.fcol a:hover,
.fcol a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--neon);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(105, 255, 105, 0.16);
  font-size: 0.88rem;
  letter-spacing: 0.24em;
  color: #8fb99a;
}

/* ---------- 滚动显现 ---------- */

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

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

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

@media (min-width: 640px) {
  :root {
    --pad: 1.6rem;
  }

  .foot {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2.4rem;
  }

  .doc > div {
    padding: 1.8rem 1.6rem;
  }
}

@media (min-width: 901px) {
  :root {
    --pad: 2rem;
  }

  body {
    font-size: 18px;
  }

  .brandrow {
    padding-top: 0.7rem;
  }

  .menurow {
    align-items: center;
    padding-bottom: 0.6rem;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav > summary {
    display: none;
  }

  .nav > menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav a {
    padding: 0.5rem 0.7rem;
    min-height: 40px;
    color: #cfeccf;
    letter-spacing: 0.06em;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: #ffffff;
    background: rgba(105, 255, 105, 0.14);
    box-shadow: 0 0 0 1px var(--line-soft), 0 0 16px rgba(0, 255, 255, 0.28);
  }

  .shell {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 1.9rem;
    padding-top: 1.8rem;
  }

  .doc {
    order: 2;
  }

  .rail {
    order: 1;
    position: sticky;
    top: 132px;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 100svh;
    gap: 1.6rem;
    padding: 1.6rem 0 2.4rem;
  }

  .hero-copy {
    order: 2;
  }

  .hero-art {
    order: 1;
    min-height: 60vh;
  }

  .lede {
    font-size: 1.1rem;
    max-width: 30ch;
    margin-left: auto;
  }

  .doc > div {
    padding: 2rem 1.9rem;
    scroll-margin-top: 118px;
  }

  .foot {
    grid-template-columns: 1.4fr repeat(4, 1fr);
    padding-left: max(2rem, calc((100% - 1180px) / 2));
    padding-right: max(2rem, calc((100% - 1180px) / 2));
  }

  .cta {
    padding: 2rem 2.2rem;
  }
}

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

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

  .hero-art {
    transform: none !important;
  }
}

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