@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ===== 重置与基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: #001e3c;
  color: #c8f5e0;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== scroll-margin-top for sections ===== */
div[id], article[id] {
  scroll-margin-top: 110px;
}

/* ===== 图片基础 ===== */
img { max-width: 100%; height: auto; display: block; }

a { color: #99ffcc; text-decoration: none; transition: color 0.2s; }
a:hover { color: #00ff41; }

ul { list-style: none; }

/* ===== 站点包裹 ===== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部导航（aside > nav > ul > li > a） ===== */
.site-aside-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(0, 30, 60, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(153, 255, 204, 0.12);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #99ffcc;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.brand-name {
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-aside-nav nav {
  flex: 1;
  overflow: hidden;
}

.site-aside-nav nav ul {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.site-aside-nav nav ul::-webkit-scrollbar { display: none; }

.site-aside-nav nav ul li a.pill-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: rgba(153, 255, 204, 0.07);
  border: 1px solid rgba(153, 255, 204, 0.18);
  border-radius: 999px;
  color: #99ffcc;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-aside-nav nav ul li a.pill-btn:hover,
.site-aside-nav nav ul li a.pill-btn:focus-visible {
  background: rgba(0, 255, 65, 0.18);
  border-color: #00ff41;
  color: #00ff41;
  outline: none;
}

/* ===== 二级粘性锚点条 ===== */
.sticky-anchor-bar {
  position: sticky;
  top: 64px;
  z-index: 150;
  background: rgba(0, 20, 48, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(153, 255, 204, 0.08);
}

.anchor-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar-inner::-webkit-scrollbar { display: none; }

.anchor-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(153, 255, 204, 0.7);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.anchor-pill:hover {
  background: rgba(0, 255, 65, 0.12);
  color: #00ff41;
}

/* ===== Hero ===== */
.hero-wrap {
  position: relative;
  min-height: 70vh;
  margin-top: 110px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.45) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,30,60,0.75) 0%, rgba(0,30,60,0.3) 60%, transparent 100%);
}

.hero-blob {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 700px;
  padding: 80px 40px 90px;
  text-align: left;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(200, 245, 224, 0.9);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 32px;
  background: linear-gradient(90deg, #00ff41, #99ffcc);
  border-radius: 999px;
  color: #001e3c;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.35);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.55);
  color: #001e3c;
}

/* 仿生气泡装饰 */
.blob-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.blob-deco-1 {
  width: 320px;
  height: 320px;
  right: 8%;
  top: 10%;
  animation: blob-float 8s ease-in-out infinite;
}

.blob-deco-2 {
  width: 220px;
  height: 220px;
  right: 22%;
  bottom: 12%;
  animation: blob-float 11s ease-in-out infinite reverse;
}

@keyframes blob-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

/* ===== 正文主体 ===== */
.site-main {
  flex: 1;
  width: 100%;
}

.content-section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 48px;
  align-items: start;
}

/* figure 放左列顶部作为装饰 */
.section-deco-figure {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
}

.section-deco-figure svg {
  width: 100px;
  height: 100px;
  opacity: 0.7;
}

/* aside 放左列下部 */
.section-aside {
  grid-column: 1;
  grid-row: 2;
  background: rgba(153, 255, 204, 0.04);
  border: 1px solid rgba(153, 255, 204, 0.12);
  border-radius: 16px;
  padding: 24px 20px;
  margin-top: 32px;
}

.section-aside h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #99ffcc;
  margin-bottom: 4px;
}

.section-aside p.subtitle {
  font-size: 0.82rem;
  color: rgba(153, 255, 204, 0.6);
  margin-bottom: 16px;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #c8f5e0;
  background: rgba(0, 255, 65, 0.04);
  border: 1px solid rgba(153, 255, 204, 0.08);
  transition: background 0.2s, color 0.2s;
}

.aside-link:hover {
  background: rgba(0, 255, 65, 0.14);
  color: #00ff41;
}

/* content-body 右列，跨两行 */
.content-body {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* ===== 正文内容样式 ===== */
.content-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #99ffcc;
  margin: 48px 0 8px;
  line-height: 1.3;
}

.content-body h2:first-child { margin-top: 0; }

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #c8f5e0;
  margin: 28px 0 8px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #b8e8d0;
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
  list-style: disc;
}

.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: #b8e8d0;
  margin-bottom: 6px;
}

.content-body a {
  color: #00ff41;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 65, 0.35);
}

.content-body a:hover {
  text-decoration-color: #00ff41;
}

/* page.content 里的 div 区块 */
.content-body div {
  padding: 40px 0 20px;
  border-bottom: 1px solid rgba(153, 255, 204, 0.08);
}

.content-body div:last-child {
  border-bottom: none;
}

.content-body div h2 {
  margin-top: 0;
}

/* 卡片样式（正文内若有） */
.content-body .card,
.content-body section {
  background: rgba(153, 255, 204, 0.05);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border: none;
}

/* ===== 页脚 CTA 块 ===== */
.footer-cta-block {
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.12) 0%, rgba(153, 255, 204, 0.06) 100%);
  border-top: 1px solid rgba(153, 255, 204, 0.15);
  border-bottom: 1px solid rgba(153, 255, 204, 0.15);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta-block::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,255,65,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  animation: breathing 5s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.footer-cta-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #99ffcc;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.footer-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 40px;
  background: linear-gradient(90deg, #00ff41, #99ffcc);
  border-radius: 999px;
  color: #001e3c;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0, 255, 65, 0.6);
  color: #001e3c;
}

/* ===== 页脚（仅 p + small） ===== */
.site-footer {
  background: rgba(0, 10, 28, 0.95);
  border-top: 1px solid rgba(153, 255, 204, 0.08);
  padding: 32px 24px;
  text-align: center;
}

.site-footer p.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #99ffcc;
  margin-bottom: 8px;
}

.site-footer small.footer-copy {
  font-size: 0.8rem;
  color: rgba(153, 255, 204, 0.45);
  line-height: 1.6;
}

/* ===== 滚动揭示动画 ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
    padding: 40px 20px 60px;
  }

  .section-deco-figure {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    margin-bottom: 16px;
  }

  .section-aside {
    grid-column: 1;
    grid-row: 3;
    margin-top: 40px;
  }

  .content-body {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-content {
    padding: 64px 24px 80px;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding: 0 16px;
    height: 60px;
    gap: 12px;
  }

  .site-aside-nav nav ul {
    gap: 6px;
  }

  .site-aside-nav nav ul li a.pill-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .sticky-anchor-bar {
    top: 60px;
  }

  .hero-wrap {
    margin-top: 106px;
    min-height: 70vh;
  }

  .hero-h1 {
    font-size: 1.9rem;
  }

  .hero-cta-btn {
    height: 48px;
    padding: 0 24px;
    font-size: 0.95rem;
  }

  .blob-deco-1, .blob-deco-2 { display: none; }

  .footer-cta-btn {
    height: 50px;
    padding: 0 28px;
    font-size: 0.95rem;
  }

  .anchor-bar-inner {
    padding: 0 12px;
  }
}

@media (max-width: 375px) {
  .brand-name { font-size: 0.9rem; }
  .content-body h2 { font-size: 1.2rem; }
}
