@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --lime: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --pink: #ff69b4;
  --line: rgba(105, 255, 105, 0.26);
  --line-b: rgba(0, 255, 255, 0.26);
  --txt: #d9f2de;
  --txt-dim: #a8c9b2;
  --chrome: linear-gradient(150deg, #f4fff6 0%, #a9bfb0 16%, #ffffff 33%, #7f9488 50%, #e8f6ec 68%, #94ab9c 100%);
  --glow: 0 0 18px rgba(105, 255, 105, 0.45);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

html {
  scroll-behavior: smooth;
  background: #0d180e;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 104px;
  font: 400 16px/1.75 var(--font);
  color: var(--txt);
  background:
    radial-gradient(62vw 48vh at 10% -10%, rgba(105, 255, 105, 0.2), transparent 70%),
    radial-gradient(52vw 42vh at 94% 6%, rgba(0, 255, 255, 0.17), transparent 68%),
    radial-gradient(46vw 40vh at 48% 112%, rgba(255, 105, 180, 0.14), transparent 72%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(2px 2px at 12% 16%, rgba(255, 255, 255, 0.9), transparent 62%),
    radial-gradient(1px 1px at 78% 12%, rgba(0, 255, 255, 0.95), transparent 62%),
    radial-gradient(1.6px 1.6px at 34% 62%, rgba(255, 105, 180, 0.85), transparent 62%),
    radial-gradient(1px 1px at 88% 72%, rgba(105, 255, 105, 0.9), transparent 62%),
    radial-gradient(1.4px 1.4px at 62% 34%, rgba(255, 255, 255, 0.7), transparent 62%);
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0.01em;
  font-weight: 700;
}

/* ===== 顶部主视觉 ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 84px 20px 56px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(105, 255, 105, 0.55);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.6),
    0 0 0 4px rgba(23, 38, 23, 0.9),
    0 0 0 5px rgba(0, 255, 255, 0.5),
    0 0 34px rgba(0, 255, 255, 0.28);
  background: linear-gradient(140deg, rgba(0, 255, 255, 0.22), rgba(255, 105, 180, 0.22));
}

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

.shot-a {
  top: 8%;
  left: 3%;
  width: 36vw;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  transform: translateY(var(--py, 0)) rotate(-3.5deg);
}

.shot-b {
  right: 3%;
  bottom: 6%;
  width: 32vw;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  transform: translateY(var(--py, 0)) rotate(4deg);
}

.hero-copy {
  position: relative;
  max-width: 660px;
  text-align: center;
  padding: 26px clamp(16px, 4vw, 34px) 30px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.35);
  background: linear-gradient(180deg, rgba(16, 30, 18, 0.86), rgba(12, 22, 13, 0.92));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.hero-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 4px;
  background: var(--chrome);
  opacity: 0.85;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 6.6vw, 54px);
  line-height: 1.18;
  color: #f2fff5;
  text-shadow:
    0 0 14px rgba(105, 255, 105, 0.6),
    0 0 40px rgba(0, 255, 255, 0.35);
}

.lede {
  margin: 0 auto 22px;
  max-width: 44ch;
  color: var(--txt-dim);
  font-size: 17px;
  line-height: 1.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #0d1a0e;
  background: linear-gradient(180deg, #d7ffe0 0%, var(--lime) 42%, #21c96f 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 12px 26px rgba(105, 255, 105, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.cta:hover,
.cta:focus-visible {
  background: linear-gradient(180deg, #ffffff 0%, #a6ffb6 45%, #43e0ff 100%);
  box-shadow: 0 14px 32px rgba(0, 255, 255, 0.4), inset 0 1px 0 #fff;
}

/* ===== 版心 ===== */
.spread {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 22px 48px;
}

/* ===== 左侧目录 ===== */
.rail {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 16px 14px 18px;
  border-radius: 4px;
  border: 1px solid var(--line-b);
  background: linear-gradient(180deg, rgba(20, 38, 22, 0.95), rgba(12, 23, 14, 0.96));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rail-head,
.foot-h {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.rail-head > span,
.foot-h > span {
  padding-bottom: 2px;
  background: linear-gradient(transparent 64%, rgba(0, 255, 255, 0.35) 64%);
}

.rail-list,
.veil-list,
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rail-list li + li {
  margin-top: 2px;
}

.rail-list a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  min-height: 44px;
  padding: 10px 10px;
  border-left: 2px solid rgba(105, 255, 105, 0.28);
  border-radius: 0 4px 4px 0;
  color: var(--txt);
  font-size: 16px;
  text-decoration: none;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #eaffee;
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.16), transparent);
}

.num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

/* ===== 正文 ===== */
.content {
  min-width: 0;
}

.content div {
  position: relative;
  margin: 0 0 26px;
  padding: 24px clamp(16px, 3vw, 32px) 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(25, 46, 28, 0.93), rgba(16, 31, 18, 0.95));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
  scroll-margin-top: 20px;
}

.content div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 4px;
  background: var(--chrome);
  opacity: 0.7;
}

.content h2 {
  position: relative;
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.32;
  color: #f0fff4;
  text-shadow: var(--glow);
}

.content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--pink) 70%);
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.85);
}

.content h2 > span,
.content h3 > span {
  background: linear-gradient(transparent 66%, rgba(0, 255, 255, 0.3) 66%);
}

.content h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  line-height: 1.4;
  color: #e6ffe9;
}

.content p,
.content li {
  color: var(--txt);
  line-height: 1.85;
}

.content p {
  margin: 0 0 14px;
}

.content ul,
.content ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.content li {
  margin-bottom: 8px;
}

.content strong {
  color: #f4fff6;
  text-shadow: 0 0 12px rgba(105, 255, 105, 0.4);
}

.content a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.content figure {
  margin: 18px 0;
}

.content figure img,
.content img {
  border-radius: 4px;
  border: 1px solid var(--line-b);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--lime);
  border-radius: 0 4px 4px 0;
  background: rgba(105, 255, 105, 0.07);
}

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

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

.content th {
  background: rgba(0, 255, 255, 0.1);
  color: #eafff2;
}

/* ===== 页脚 ===== */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 44px;
  border-top: 1px solid var(--line-b);
}

.foot-h {
  margin-bottom: 8px;
  letter-spacing: 0.12em;
}

.foot-copy {
  margin: 0;
  color: var(--txt-dim);
  font-size: 16px;
}

.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--txt-dim);
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.foot-list a:hover,
.foot-list a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

/* ===== 底部固定条 ===== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: linear-gradient(180deg, rgba(15, 28, 16, 0.9), rgba(9, 17, 10, 0.96));
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 34px rgba(0, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.dock-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: 8px;
  color: #f2fff5;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.7);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: #0c180d;
  cursor: pointer;
  background: linear-gradient(180deg, #f0fff3 0%, var(--cyan) 46%, #2bd4ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 22px rgba(0, 255, 255, 0.45), inset 0 1px 0 #fff;
}

.veil-toggle {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

/* ===== 全屏菜单 ===== */
.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: start;
  gap: 26px;
  padding: 20px clamp(18px, 5vw, 72px) 120px;
  overflow-y: auto;
  background:
    radial-gradient(60vw 50vh at 18% 0%, rgba(105, 255, 105, 0.24), transparent 70%),
    radial-gradient(50vw 44vh at 90% 100%, rgba(255, 105, 180, 0.22), transparent 70%),
    rgba(8, 16, 9, 0.97);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.veil-toggle:checked ~ .veil {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.veil-toggle:focus-visible ~ .dock .dock-btn {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

body.veil-open {
  overflow: hidden;
}

.veil-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-b);
}

.veil-brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime);
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.7);
}

.veil-x {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  color: #0c180d;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #b8ffc6);
  border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 0 20px rgba(105, 255, 105, 0.45);
}

.veil-list {
  display: grid;
  gap: 6px;
  max-width: 620px;
}

.veil-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 500;
  color: #eaffee;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.veil-list a:hover,
.veil-list a:focus-visible {
  border-color: var(--line-b);
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.16), rgba(105, 255, 105, 0.05));
  transform: translateX(4px);
}

.veil-list .num {
  font-size: 14px;
}

.veil-toggle:checked ~ .veil .veil-list li {
  animation: pop 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.veil-toggle:checked ~ .veil .veil-list li:nth-child(1) { animation-delay: 0.04s; }
.veil-toggle:checked ~ .veil .veil-list li:nth-child(2) { animation-delay: 0.08s; }
.veil-toggle:checked ~ .veil .veil-list li:nth-child(3) { animation-delay: 0.12s; }
.veil-toggle:checked ~ .veil .veil-list li:nth-child(4) { animation-delay: 0.16s; }
.veil-toggle:checked ~ .veil .veil-list li:nth-child(5) { animation-delay: 0.2s; }
.veil-toggle:checked ~ .veil .veil-list li:nth-child(6) { animation-delay: 0.24s; }
.veil-toggle:checked ~ .veil .veil-list li:nth-child(7) { animation-delay: 0.28s; }

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* 滚动揭示 */
.st {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}

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

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

/* ===== 窄屏 ===== */
@media (max-width: 880px) {
  .spread {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 6px 16px 40px;
  }

  .rail {
    position: static;
    order: -1;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 10px;
  }

  .rail-list li + li {
    margin-top: 0;
  }

  .hero {
    padding-top: 64px;
  }

  .shot-a {
    width: 46vw;
    max-width: 210px;
    top: 5%;
  }

  .shot-b {
    width: 40vw;
    max-width: 180px;
    bottom: 5%;
  }

  .foot {
    padding: 24px 16px 40px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 68vh;
    padding: 56px 14px 46px;
  }

  .hero-copy {
    padding: 20px 16px 24px;
  }

  .shot-a {
    width: 40vw;
    opacity: 0.9;
  }

  .shot-b {
    width: 34vw;
    opacity: 0.9;
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .content div {
    padding: 20px 16px 24px;
  }
}

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

  .veil,
  .veil-list a,
  .st {
    transition: none;
    animation: none;
  }

  .veil-toggle:checked ~ .veil .veil-list li {
    animation: none;
  }

  .st {
    opacity: 1;
    transform: none;
  }

  .shot-a,
  .shot-b {
    transform: rotate(0);
  }
}

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