@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --ink: #001e3c;
  --deep: #00142a;
  --brass: #c08a56;
  --paper: #e9fff6;
  --muted: #8fb3c9;
  --line: rgba(192, 138, 86, .4);
  --hair: rgba(153, 255, 204, .12);
  --serif: "Cormorant Garamond", "Crimson Pro", Georgia, "Songti SC", "Noto Serif SC", serif;
  --body: "Crimson Pro", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 26px 52px -30px rgba(0, 5, 14, .95), 0 1px 0 0 rgba(153, 255, 204, .07);
}

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

body {
  margin: 0;
  padding-bottom: 96px;
  background:
    radial-gradient(circle at 82% 6%, rgba(0, 255, 65, .11), transparent 44%),
    radial-gradient(circle at 4% 58%, rgba(153, 255, 204, .1), transparent 52%),
    linear-gradient(180deg, var(--ink), var(--deep));
  color: var(--paper);
  font: 400 17px/1.8 var(--body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(153, 255, 204, .22) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 24%, #000 26%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 24%, #000 26%, transparent 80%);
  animation: breathe 11s ease-in-out infinite;
}

img,
svg { max-width: 100%; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: .01em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0 0;
}

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

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes breathe {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.04); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.09); opacity: 1; }
}

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

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 45vh;
  padding: 44px 22px 36px;
  border-bottom: 1px solid var(--hair);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 255, 65, .3) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(155deg, #000 5%, transparent 78%);
  mask-image: linear-gradient(155deg, #000 5%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 34px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 40ch;
  margin-left: auto;
  text-align: right;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 56px);
  color: #f4fffa;
  letter-spacing: .015em;
  text-shadow: 0 0 42px rgba(0, 255, 65, .16);
}

.hero-desc {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.cellmark {
  flex: 0 0 auto;
  width: clamp(56px, 10vw, 108px);
  color: var(--brass);
  filter: drop-shadow(0 0 16px rgba(0, 255, 65, .25));
  animation: pulse 7s ease-in-out infinite;
}

/* ---------- 主体网格 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 0 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 22px 72px;
}

.rail {
  position: sticky;
  top: 22px;
  align-self: start;
  padding: 20px 18px 22px;
  background: rgba(0, 22, 42, .7);
  border: 1px solid rgba(192, 138, 86, .26);
  box-shadow: var(--shadow);
}

.rail h2 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .26em;
  text-indent: .26em;
  color: var(--brass);
}

.rail hr { margin: 12px 0 8px; }

.raillist a {
  position: relative;
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 1px solid rgba(192, 138, 86, .24);
  color: #cfe6ef;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}

.raillist a::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--brass);
  transform: translateY(-50%);
  transition: background .2s, box-shadow .2s;
}

.raillist a:hover { color: #f0fff9; border-color: var(--neon); }
.raillist a:hover::before { background: var(--neon); box-shadow: 0 0 10px var(--neon); }

.stream { min-width: 0; }

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

.prose {
  padding: clamp(20px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(6, 42, 70, .74), rgba(0, 22, 44, .8));
  border: 1px solid rgba(192, 138, 86, .28);
  box-shadow: var(--shadow);
}

.prose > article {
  scroll-margin-top: 96px;
}

.prose > article + article {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}

.prose h2 {
  font-size: clamp(23px, 3.2vw, 31px);
  color: #e4fff3;
  margin-bottom: 4px;
}

.prose h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

.prose h3 {
  font-size: clamp(19px, 2.4vw, 23px);
  color: var(--mint);
  margin: 30px 0 4px;
}

.prose p {
  margin: 14px 0 0;
  color: #d4e9f1;
}

.prose strong { color: #f4fffa; font-weight: 600; }

.prose a {
  text-decoration-color: rgba(0, 255, 65, .45);
  text-underline-offset: .18em;
}

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

.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--brass); }

.prose blockquote {
  margin: 20px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--brass);
  color: #c8dfe9;
  font-style: italic;
}

.prose figure { margin: 22px 0 0; }

.prose img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(192, 138, 86, .32);
  box-shadow: 0 18px 36px -26px #000;
}

.prose figcaption {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- 滚动浮现 ---------- */

.prose > article.rv {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}

.prose > article.rv-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.prose > article.hit {
  animation: hit 1.8s ease;
}

@keyframes hit {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
  30% { box-shadow: 0 0 0 2px rgba(0, 255, 65, .75); }
}

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

.base {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px 40px;
}

.cta {
  padding: clamp(26px, 5vw, 54px) 22px;
  text-align: center;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(0, 255, 65, .16), transparent 68%),
    rgba(0, 22, 44, .72);
  box-shadow: var(--shadow);
}

.cta h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  color: #eafff6;
}

.cta hr {
  width: 60px;
  margin: 14px auto 22px;
  border-top-color: rgba(153, 255, 204, .3);
}

.bigback {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 26px;
  border: 1px solid var(--neon);
  border-radius: 999px;
  background: rgba(0, 255, 65, .1);
  color: #ecfff5;
  font-size: 16px;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}

.bigback:hover {
  background: rgba(0, 255, 65, .22);
  box-shadow: 0 0 26px -6px rgba(0, 255, 65, .6);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}

.foot-grid dt {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .22em;
  color: var(--brass);
}

.foot-grid dd {
  margin: 4px 0 0;
  color: #cfe6ef;
  font-size: 16px;
  line-height: 1.5;
}

.foot-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #cfe6ef;
  text-decoration: none;
}

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

.colophon {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0, 26, 50, .9), rgba(0, 14, 30, .98));
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.wing { position: relative; }

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }

.wing > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(153, 255, 204, .06);
  color: var(--mint);
  font-size: 16px;
  line-height: 1;
  transition: background .2s, border-color .2s, color .2s;
}

.wing > summary::after {
  content: "▾";
  font-size: 12px;
  opacity: .7;
}

.wing[open] > summary {
  border-color: var(--neon);
  color: #eafff6;
  background: rgba(0, 255, 65, .16);
}

.pills {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 186px;
  padding: 10px;
  background: rgba(0, 16, 32, .98);
  border: 1px solid var(--line);
  box-shadow: 0 26px 50px -24px #000;
}

.wing--b .pills { left: auto; right: 0; }

details:not([open]) > .pills { display: none; }

.pill {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(153, 255, 204, .05);
  color: var(--mint);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.pill:hover {
  background: rgba(0, 255, 65, .18);
  border-color: var(--neon);
  color: #f2fff9;
  transform: translateY(-1px);
}

.dock-brand {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .06em;
  white-space: nowrap;
}

.dock-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 6px;
  color: #eafff6;
  text-decoration: none;
}

.dock-brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}

.bead {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(0, 255, 65, .9);
  animation: pulse 4.5s ease-in-out infinite;
}

.dock-find {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 180px;
}

.dock-find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 16, 32, .72);
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.dock-find input:focus {
  outline: 2px solid rgba(0, 255, 65, .5);
  outline-offset: 1px;
}

.dock-find input.miss { animation: shake .4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.dock-find button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 255, 65, .16);
  color: #ecfff5;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.dock-find button:hover { background: rgba(0, 255, 65, .28); }

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  body { padding-bottom: 92px; }

  .hero {
    min-height: 42vh;
    padding: 34px 18px 28px;
  }

  .hero-copy { max-width: 30ch; }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 18px 56px;
  }

  .rail {
    position: static;
    padding: 16px 14px 14px;
  }

  .raillist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .raillist a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 16px;
  }

  .raillist a::before { display: none; }

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

  .dock { gap: 8px; padding-inline: 12px; }
  .dock-find { flex: 1 1 84px; }
  .dock-brand { font-size: 16px; letter-spacing: 0; }
  .wing > summary,
  .pill { padding: 0 12px; }
}

@media (max-width: 380px) {
  .dock-brand span { display: none; }
  .dock-brand a { padding: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .prose > article.rv { opacity: 1; transform: none; filter: none; }
}

@media (min-width: 901px) {
  .pills {
    position: static;
    flex-direction: row;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  details:not([open]) > .pills { display: none; }
  .wing--b { margin-left: 2px; }
  .dock-brand { margin-inline: auto; }
  .dock-find { flex: 0 0 210px; }
  .prose > article + article { margin-top: 56px; padding-top: 46px; }
}

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