@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; }

:root {
  --green: #99ffcc;
  --green-bright: #00ff41;
  --navy: #001e3c;
  --navy-mid: #002d57;
  --navy-light: #003d70;
  --green-dim: rgba(153,255,204,0.15);
  --green-dim2: rgba(0,255,65,0.08);
  --text-main: #d4f5e4;
  --text-muted: #7dbfa0;
  --radius: 10px;
  --nav-h: 120px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  background: var(--navy);
  color: var(--text-main);
  font-family: var(--font);
}

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

body { min-height: 100vh; overflow-x: hidden; position: relative; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }
ul, ol { list-style: none; }

/* ── 仿生背景层 ── */
.bio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  opacity: 1;
}

.blob-1 { top: -100px; right: -150px; }
.blob-2 { bottom: -150px; left: -100px; }

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

.blob-path {
  animation: breathe 8s ease-in-out infinite;
}

.blob-2 .blob-path {
  animation-duration: 11s;
  animation-delay: -4s;
}

.cell-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(153,255,204,0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(0,255,65,0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 10%, rgba(153,255,204,0.02) 0%, transparent 40%);
}

/* ── 顶部导航（两行：品牌行 + 菜单行） ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,30,60,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(153,255,204,0.12);
}

.header-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px 8px;
  border-bottom: 1px solid rgba(153,255,204,0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo { height: 36px; width: auto; }

.brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav-row {
  padding: 8px 32px 10px;
}

.header-nav-row > p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(153,255,204,0.25);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(153,255,204,0.05);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-pill:hover {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(153,255,204,0.5);
}

/* sections scroll-margin */
div[id] { scroll-margin-top: var(--nav-h); }

/* ── Hero 区块 ── */
.hero-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 45vh;
  padding: 48px 32px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-figure {
  flex: 0 0 auto;
  width: 340px;
}

.hero-collage {
  position: relative;
  height: 260px;
}

.hero-tile {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid rgba(153,255,204,0.2);
  background: var(--navy-mid);
  overflow: hidden;
}

.hero-tile-a {
  width: 200px;
  height: 160px;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
}

.hero-tile-b {
  width: 180px;
  height: 150px;
  bottom: 0;
  right: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,255,65,0.06), rgba(153,255,204,0.08));
  border-color: rgba(0,255,65,0.2);
}

.tile-inner {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}

.tile-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(153,255,204,0.25);
  animation: pulse-bar 3s ease-in-out infinite;
}

.tile-bar.short { width: 60%; animation-delay: 0.5s; }

@keyframes pulse-bar {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; background: rgba(153,255,204,0.5); }
}

.hero-aside {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.cta-btn:hover {
  background: var(--green-bright);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ── 内容主区（侧边栏 + 正文） ── */
.content-section {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-areas: "sidebar content";
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  align-items: start;
}

/* aside 在内容左侧 */
.content-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  border: 1px solid rgba(153,255,204,0.15);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(0,30,60,0.6);
  backdrop-filter: blur(8px);
}

.sidebar-card-glow {
  border-color: rgba(0,255,65,0.2);
  background: rgba(0,255,65,0.03);
}

.sidebar-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 4px;
}

.sidebar-card > p.subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
  background: var(--green-dim);
  color: var(--green);
}

.sidebar-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 正文容器 ── */
.content-figure {
  grid-area: content;
}

.content-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-main);
}

/* 正文内样式 */
.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(153,255,204,0.1);
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-bright);
  margin: 1.8rem 0 0.5rem;
}

.content-body p {
  margin-bottom: 1rem;
}

.content-body ul, .content-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.content-body a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(153,255,204,0.4);
}

.content-body a:hover {
  color: var(--green-bright);
  text-decoration-color: var(--green-bright);
}

.content-body strong { color: var(--green); font-weight: 700; }

.content-body blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  background: var(--green-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content-body th {
  background: var(--green-dim);
  color: var(--green);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(153,255,204,0.2);
}

.content-body td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(153,255,204,0.07);
  vertical-align: top;
}

.content-body tr:hover td {
  background: rgba(153,255,204,0.03);
}

/* Section 内容区块（page.content 里的 div） */
.content-body div {
  padding: 32px 0;
  border-bottom: 1px solid rgba(153,255,204,0.06);
}

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

/* ── 页脚（单行：logo + nav + copyright 横排） ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(153,255,204,0.1);
  background: rgba(0,20,40,0.85);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 32px;
}

.footer-brand-col {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav {
  flex: 1;
}

.footer-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-nav > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.83rem;
  color: var(--text-muted);
  border-radius: 6px;
  border: 1px solid rgba(153,255,204,0.1);
  transition: color 0.15s, border-color 0.15s;
}

.footer-link:hover {
  color: var(--green);
  border-color: rgba(153,255,204,0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  border-top: 1px solid rgba(153,255,204,0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── 滚动揭示动画 ── */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: reveal-up 0.6s ease forwards;
}

/* ── 响应式 ── */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "sidebar";
  }

  .content-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-card {
    flex: 1 1 240px;
  }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 32px 20px 24px;
    gap: 24px;
  }

  .hero-figure { width: 100%; }

  .hero-collage { height: 180px; }

  .hero-tile-a { width: 160px; height: 130px; }
  .hero-tile-b { width: 150px; height: 120px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 130px; }

  .header-brand-row { padding: 10px 16px 6px; }
  .header-tagline { display: none; }
  .header-nav-row { padding: 6px 16px 8px; overflow-x: auto; }
  .header-nav-row > p { flex-wrap: nowrap; }

  .hero-section { padding: 24px 16px 20px; }
  .hero-h1 { font-size: 1.5rem; }

  .content-section { padding: 24px 16px 40px; gap: 24px; }

  .content-sidebar { flex-direction: column; }

  .footer-inner { flex-direction: column; gap: 28px; padding: 28px 16px 24px; }
  .footer-brand-col { flex: none; }
  .footer-bottom { padding: 12px 16px; flex-direction: column; text-align: center; }

  .nav-pill { padding: 8px 14px; font-size: 0.8rem; }
}
