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

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --panel: #1d3320;
  --panel-2: #213a25;
  --line: rgba(105, 255, 105, 0.22);
  --text: #dcf7e2;
  --muted: #a9cfb6;
  --r: 28px;
  --chrome: linear-gradient(140deg, #f2fff6 0%, #93a898 26%, #ffffff 44%, #7f9484 62%, #e8fff0 100%);
}

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

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

body {
  margin: 0;
  font-family: 'Cabin', 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(760px 420px at 92% -6%, rgba(0, 255, 255, 0.18), transparent 60%),
    radial-gradient(620px 400px at 2% 4%, rgba(105, 255, 105, 0.13), transparent 62%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

a { color: var(--neon); }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: 'Amatic SC', 'Cabin', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.05rem, 6.2vw, 3.5rem);
  color: #f3fff6;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.5), 0 0 46px rgba(0, 255, 255, 0.32);
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  color: #eafff0;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.32);
}

h3 { font-size: 1.24rem; color: #d6ffe0; }

p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 9px clamp(14px, 3vw, 28px) 11px;
  background: rgba(17, 29, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.brandrow {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--chrome);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.55), inset 0 1px 0 #fff;
  text-decoration: none;
}

.mark span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff, #00ffff 55%, #0a6b6b);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.8);
}

.brandname {
  font-family: 'Amatic SC', 'Cabin', system-ui, 'PingFang SC', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  color: #eafff0;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mainnav {
  flex: 1 1 200px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mainnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mainnav a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #c7ecce;
  font-size: 0.97rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mainnav a:hover {
  background: rgba(105, 255, 105, 0.14);
  color: #f2fff6;
  box-shadow: inset 0 0 0 1px rgba(105, 255, 105, 0.38);
}

.mainnav .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

.mainnav li:first-child .dot { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.search { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.search input {
  width: 118px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.08);
  color: #eafff0;
  font: inherit;
  font-size: 0.94rem;
}

.search input::placeholder { color: #9dc9ad; }

.search input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.22);
}

.search button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--chrome);
  color: #10240f;
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.4);
}

/* 首屏 */
main { display: block; }

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px clamp(16px, 3vw, 28px) 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: 70vh;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  clip-path: polygon(0 100%, 100% 6%, 100% 100%);
  opacity: 0.5;
  filter: drop-shadow(0 0 22px rgba(0, 255, 255, 0.45));
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }

.hero-desc {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-act { margin: 24px 0 0; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  color: #0d200f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(105, 255, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-figure { margin: 0; min-width: 0; }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--chrome);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 26px 60px rgba(0, 255, 255, 0.2);
  animation: floaty 7s ease-in-out infinite;
}

.hero-media .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-media .slide.on { opacity: 1; }

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(0, 255, 255, 0.62) 46%, rgba(105, 255, 105, 0.24) 76%, transparent);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.45);
}

.b1 { width: 46%; height: 46%; left: 8%; top: 12%; animation: floaty 8s ease-in-out infinite; }
.b2 { width: 29%; height: 29%; right: 10%; top: 20%; animation: floaty 6.5s ease-in-out infinite reverse; }
.b3 { width: 20%; height: 20%; left: 32%; bottom: 12%; animation: floaty 9s ease-in-out infinite; }

@keyframes floaty {
  50% { transform: translateY(-14px); }
}

/* 内容区 */
.stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.prose { min-width: 0; }

.prose article {
  scroll-margin-top: 152px;
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 32px);
  border-radius: var(--r);
  background: var(--panel);
}

.prose article:nth-child(even) { background: var(--panel-2); }

.prose article.flash {
  box-shadow: 0 0 0 3px var(--cyan), 0 0 40px rgba(0, 255, 255, 0.5);
}

.prose article > :last-child { margin-bottom: 0; }

.prose hr {
  width: 110px;
  height: 3px;
  margin: 0 0 1.1em;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--neon), var(--cyan), transparent);
}

.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.34em 0; }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose strong { color: #f3fff6; }
.prose figure { margin: 1.2em 0; }
.prose figure img { border-radius: 18px; }

.prose blockquote {
  margin: 1.2em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--neon);
  border-radius: 0 16px 16px 0;
  background: rgba(105, 255, 105, 0.07);
}

/* 右侧栏 */
.rail {
  position: sticky;
  top: 148px;
  padding: 20px 16px 16px;
  border-radius: var(--r);
  background: rgba(0, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.16);
}

.rail h2 { font-size: 1.5rem; margin-bottom: 0.35em; }

.rail hr {
  width: 78px;
  height: 2px;
  margin: 0 0 0.8em;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 14px;
  color: #c3ecd0;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.rail a:hover { background: rgba(105, 255, 105, 0.16); color: #f2fff6; }

/* 页脚 */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 20px clamp(16px, 3vw, 28px);
  border-top: 1px solid var(--line);
  background: rgba(0, 255, 255, 0.06);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.97rem;
  min-width: 0;
}

.foot-nav { min-width: 0; }

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border-radius: 12px;
  color: #bfe6c9;
  font-size: 0.92rem;
  text-decoration: none;
}

.foot-nav a:hover { color: #f2fff6; background: rgba(105, 255, 105, 0.14); }

.foot-legal {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 4px;
  color: var(--cyan);
  text-decoration: none;
}

/* 滚动进场 */
.rv [data-reveal] { opacity: 0; transform: translateY(22px); }

.rv [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 断点 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 70px; }
  .hero-media { aspect-ratio: 16 / 10; }
  .stage { grid-template-columns: 1fr; }
  .rail { position: static; order: -1; }
  .rail ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose article { scroll-margin-top: 176px; }
}

@media (max-width: 720px) {
  .search { flex: 1 0 100%; }
  .search input { flex: 1 1 auto; width: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .rail ul { grid-template-columns: 1fr; }
  .site-foot { flex-direction: column; align-items: flex-start; }
  .foot-nav ul { gap: 0 4px; }
  .foot-legal { width: 100%; justify-content: space-between; }
  .prose article { scroll-margin-top: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-media,
  .bubble { animation: none; }
  .hero-media .slide { transition: none; }
}

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