@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ===== CSS 变量 ===== */
:root {
  --mint: #99ffcc;
  --green: #00ff41;
  --dark: #001e3c;
  --dark2: #002a54;
  --dark3: #003366;
  --text-main: #e0ffe8;
  --text-muted: #7fbfa0;
  --text-dim: #4a8c68;
  --border: rgba(153,255,204,0.18);
  --card-r: 28px;
  --nav-h: 64px;
  --font-body: 'Cormorant Infant', 'Noto Serif SC', Georgia, serif;
  --font-display: 'Great Vibes', cursive;
  --trans: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 18px;
  background: var(--dark);
  color: var(--text-main);
}
body { min-height: 100vh; overflow-x: hidden; position: relative; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--green); }
ol, ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
input { outline: none; }

/* ===== 生物底纹背景 ===== */
.bio-body {
  background: var(--dark);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 1rem;
}
.bio-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cell {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: breathe 8s ease-in-out infinite;
  filter: blur(60px);
  opacity: 0.18;
}
.cell-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #00ff41 0%, transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
.cell-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #99ffcc 0%, transparent 70%);
  top: 30%; right: -80px;
  animation-delay: 2s;
}
.cell-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #00ff41 0%, transparent 70%);
  bottom: 20%; left: 20%;
  animation-delay: 4s;
}
.cell-4 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #99ffcc 0%, transparent 70%);
  bottom: -60px; right: 10%;
  animation-delay: 6s;
}
.orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(153,255,204,0.12);
  animation: orbPulse 12s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  animation-delay: 4s;
}
@keyframes breathe {
  0%, 100% { transform: scale(1) translate(0,0); opacity: 0.18; }
  50% { transform: scale(1.18) translate(20px, 15px); opacity: 0.28; }
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.08); opacity: 0.14; }
}

/* ===== 页头 ===== */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-icon-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.brand-icon img { width: 44px; height: 44px; border-radius: 14px; }
.header-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,255,65,0.1);
  border: 1px solid rgba(0,255,65,0.3);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: breathe 2s ease-in-out infinite;
  display: inline-block;
}
.badge-text { font-size: 0.78rem; }

/* ===== Hero ===== */
.hero-section {
  position: relative;
  z-index: 5;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(2px) saturate(1.4);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow-tag {
  background: rgba(153,255,204,0.12);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  color: var(--mint);
  letter-spacing: 0.06em;
}
.eyebrow-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--mint);
  text-shadow: 0 0 40px rgba(0,255,65,0.4), 0 0 80px rgba(153,255,204,0.2);
  margin-bottom: 0.9rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--card-r);
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--trans), box-shadow var(--trans);
  min-height: 44px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,255,65,0.35);
  color: var(--dark);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--card-r);
  border: 1px solid var(--mint);
  color: var(--mint);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--trans), color var(--trans);
  min-height: 44px;
}
.btn-outline:hover {
  background: rgba(153,255,204,0.1);
  color: var(--green);
}

/* ===== 布局包裹 ===== */
.layout-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 6rem;
  gap: 2rem;
}

/* ===== 侧边栏 ===== */
.site-aside {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}
.aside-inner {
  background: rgba(0,30,60,0.7);
  border: 1px solid var(--border);
  border-radius: var(--card-r);
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(12px);
}
.aside-title {
  margin-bottom: 1rem;
}
.aside-title span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  display: block;
  padding-bottom: 0.5rem;
}
.aside-nav-list { display: flex; flex-direction: column; gap: 0.3rem; }
.aside-link {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.aside-link:hover {
  background: rgba(153,255,204,0.1);
  color: var(--mint);
}
.aside-tip {
  margin-top: 1.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(0,255,65,0.06);
  border: 1px solid rgba(0,255,65,0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.tip-icon { flex-shrink: 0; }

/* ===== 主内容 ===== */
.site-main { flex: 1; min-width: 0; }
.main-article { width: 100%; }
.content-section { width: 100%; }

/* ===== 正文 HTML 内容样式 ===== */
.content-section h2,
.content-section h3 {
  font-family: var(--font-display);
  color: var(--mint);
  line-height: 1.3;
  margin: 2.5rem 0 1rem;
}
.content-section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.content-section h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.content-section h2 > span,
.content-section h3 > span {
  display: inline;
}
.content-section p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.content-section section {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
  padding: 2rem 1.6rem;
  margin-bottom: 1.5rem;
  border-radius: var(--card-r);
  background: rgba(0,30,60,0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.content-section section::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,65,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.content-section a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--trans);
}
.content-section a:hover { color: var(--green); }
.content-section ul,
.content-section ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }
.content-section li { margin-bottom: 0.4rem; }
.content-section strong { color: var(--mint); font-weight: 600; }
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
}
.content-section th {
  background: rgba(0,255,65,0.1);
  color: var(--green);
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.content-section td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(153,255,204,0.08);
  color: var(--text-muted);
}
.content-section tr:hover td { background: rgba(153,255,204,0.04); }
.content-section blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 1.2rem;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 1.4rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0,10,25,0.8);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.site-footer small {
  display: block;
}
.footer-small {
  font-size: 0.72rem;
  color: rgba(74,140,104,0.7);
}

/* ===== 底部固定导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,15,35,0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.bottom-nav-inner::-webkit-scrollbar { display: none; }
.bottom-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--mint));
  color: var(--dark);
  text-decoration: none;
}
.bottom-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dark);
  line-height: 1;
}
.bottom-logo-img { width: 28px; height: 28px; border-radius: 8px; }
.bottom-search {
  display: flex;
  align-items: center;
  background: rgba(153,255,204,0.08);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}
.bottom-search-input {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.82rem;
  width: 90px;
  padding: 0.25rem 0.3rem;
  font-family: var(--font-body);
}
.bottom-search-input::placeholder { color: var(--text-dim); }
.bottom-search-btn {
  display: flex;
  align-items: center;
  color: var(--mint);
  padding: 0.2rem 0.2rem;
  min-height: 28px;
  transition: color var(--trans);
}
.bottom-search-btn:hover { color: var(--green); }
.bottom-nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.5rem 0.7rem;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: background var(--trans), color var(--trans);
  min-height: 40px;
  line-height: 1.2;
}
.nav-link:hover {
  background: rgba(153,255,204,0.12);
  color: var(--mint);
}

/* ===== Scroll Reveal ===== */
.content-section section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.content-section section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .layout-wrap {
    flex-direction: column;
    padding: 1.2rem 0.9rem 80px;
    gap: 1.2rem;
  }
  .site-aside {
    width: 100%;
    position: static;
  }
  .aside-inner { padding: 1rem; }
  .aside-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
  }
  .hero-section { min-height: 45vh; padding: 1.5rem 1rem 2.5rem; }
  .hero-h1 { font-size: 2rem; }
  .site-header { padding: 1rem; }
  .content-section section { padding: 1.4rem 1.1rem; }
}
@media (max-width: 480px) {
  .bottom-search { display: none; }
  .nav-link { padding: 0.5rem 0.5rem; font-size: 0.76rem; }
}

/* ===== 减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .content-section section {
    opacity: 1 !important;
    transform: none !important;
  }
}
