@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

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

:root {
  --mint: #99ffcc;
  --neon: #00ff41;
  --ink: #001e3c;
  --ink-2: #02203f;
  --paper: #eafff5;
  --soft: #b9dccf;
  --glass: rgba(153, 255, 204, .10);
  --line: rgba(153, 255, 204, .26);
  --r: 28px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Quicksand", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -12vh -12vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 255, 65, .22), transparent 42%),
    radial-gradient(circle at 84% 10%, rgba(153, 255, 204, .20), transparent 38%),
    radial-gradient(circle at 68% 76%, rgba(0, 255, 65, .15), transparent 46%),
    radial-gradient(circle at 26% 92%, rgba(153, 255, 204, .17), transparent 42%);
  filter: blur(46px);
  animation: breathe 15s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(0, -2%, 0); }
}

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

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--neon); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px; }

/* ---------- 顶部 ---------- */
.masthead {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px clamp(12px, 3vw, 32px) 10px;
}

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.menu-l { justify-content: flex-end; }
.menu-r { justify-content: flex-start; }

.menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  transition: background .25s ease, color .25s ease;
}

.menu a::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50% 46% 54% 48%;
  background: radial-gradient(circle at 30% 30%, var(--neon), var(--mint));
  box-shadow: 0 0 10px rgba(0, 255, 65, .8);
  animation: pulse 3.6s ease-in-out infinite;
}

.menu a:hover { background: var(--glass); color: var(--neon); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(153, 255, 204, .22), rgba(0, 255, 65, .08));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}

.brand img { display: block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50% 46% 54% 48%;
  background: linear-gradient(120deg, var(--neon), var(--mint));
  box-shadow: 0 0 16px rgba(0, 255, 65, .9);
  animation: pulse 4s ease-in-out infinite;
}

.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .06em; color: #fff; }

/* ---------- 粘性锚点条 ---------- */
.dock {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px clamp(12px, 3vw, 32px);
  background: rgba(0, 30, 60, .8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.dock::-webkit-scrollbar { display: none; }

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--soft);
  font-size: 16px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.dock a:hover { color: var(--neon); background: var(--glass); border-color: var(--line); }

main { position: relative; z-index: 1; }

/* ---------- 首屏 ---------- */
.banner { padding: 0 clamp(0px, 2vw, 20px); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 1300px;
  min-height: 70vh;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 64px);
  overflow: hidden;
  border-radius: 0 0 44% 44% / 0 0 15% 15%;
  background: linear-gradient(140deg, rgba(153, 255, 204, .2), rgba(0, 255, 65, .07) 55%, rgba(0, 30, 60, .95));
}

.hero-art-wrap { position: absolute; inset: 0; z-index: 0; display: block; }

.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .72; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(0, 30, 60, .12) 28%, rgba(0, 30, 60, .9) 94%);
}

.hero figcaption {
  position: relative;
  z-index: 2;
  max-width: min(680px, 94%);
  text-align: right;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5.4vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 6px 40px rgba(0, 30, 60, .8);
}

.hero p { margin: 0 0 0 auto; max-width: 46ch; color: var(--soft); font-size: 17px; }

/* ---------- 主体 ---------- */
.main-body {
  display: grid;
  grid-template-columns: minmax(0, 232px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 70px) clamp(14px, 3vw, 30px) 76px;
}

.rail {
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(153, 255, 204, .16), rgba(0, 30, 60, .6));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.rail h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: .12em; color: var(--mint); font-weight: 600; }

.rail-links { display: grid; gap: 2px; }

.rail-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--paper);
  font-size: 16px;
}

.rail-links a:hover { background: var(--glass); color: var(--neon); }

.prose { min-width: 0; }

.prose > div {
  margin: 0 0 26px;
  padding: clamp(20px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 26px 60px -46px #000;
  scroll-margin-top: 88px;
}

.prose h2, .prose h3 { margin: 0 0 14px; color: #fff; line-height: 1.32; }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.prose h3 { font-size: clamp(1.15rem, 2vw, 1.36rem); }

.rail h2 span,
.fcol h2 span,
.prose h2 span,
.prose h3 span {
  position: relative;
  display: inline-block;
  padding-right: 15px;
}

.rail h2 span::after,
.fcol h2 span::after,
.prose h2 span::after,
.prose h3 span::after {
  content: "";
  position: absolute;
  right: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50% 46% 54% 48%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 65, .9);
  animation: pulse 4.2s ease-in-out infinite;
}

.prose p { margin: 0 0 15px; color: #d9f2e8; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.3em; color: #d9f2e8; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--neon); }
.prose strong { color: #fff; }
.prose a { color: var(--neon); border-bottom: 1px solid rgba(0, 255, 65, .4); }
.prose img { display: block; max-width: 100%; height: auto; margin: 0 0 16px; border-radius: 22px; }
.prose blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 18px 18px 0;
  background: rgba(0, 255, 65, .07);
  color: #e6fff5;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid rgba(153, 255, 204, .18); text-align: left; }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 66px) clamp(14px, 3vw, 30px) 26px;
  border-top: 1px solid var(--line);
}

.mega {
  margin: 0;
  font-family: "Caveat", "Quicksand", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  color: transparent;
  background: linear-gradient(120deg, var(--mint), var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
}

.fcol h2 { margin: 0 0 10px; font-size: 15px; letter-spacing: .14em; color: var(--mint); font-weight: 600; }
.foot-nav dl { display: grid; gap: 2px; margin: 0; }
.foot-nav dt, .foot-nav dd { margin: 0; }

.foot-nav a,
.foot-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 4px;
  color: var(--paper);
  font-size: 16px;
}

.foot-nav a:hover, .foot-links a:hover { color: var(--neon); }

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

.fcol-addr address { display: grid; gap: 4px; font-style: normal; font-size: 16px; color: var(--soft); }

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(153, 255, 204, .14);
  color: var(--soft);
  font-size: 16px;
}

.foot-base p { margin: 0; }

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mint);
}

.foot-base a:hover { background: var(--glass); }

/* ---------- 入场 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .main-body { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .site-foot { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 60vh; border-radius: 0 0 26% 26% / 0 0 8% 8%; padding-bottom: 30px; }
}

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 6px; }
  .brand { order: -1; margin: 0 auto; }
  .menu-l, .menu-r { justify-content: center; }
  .menu a { padding: 0 11px; }
  .hero { min-height: 58vh; }
  .hero figcaption { max-width: 100%; }
  .hero p { max-width: 100%; }
}

@media (max-width: 480px) {
  .site-foot { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

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