@import url('https://fonts.googleapis.com/css2?family=Calistoga:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── 根变量 ── */
:root {
  --c-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-ink: #001e3c;
  --c-ink-80: rgba(0,30,60,0.80);
  --c-ink-60: rgba(0,30,60,0.60);
  --c-ink-20: rgba(0,30,60,0.20);
  --c-glass: rgba(153,255,204,0.08);
  --c-glass-border: rgba(153,255,204,0.22);
  --c-white: #f8fff9;
  --radius-card: 28px;
  --nav-h: 68px;
  --font-title: 'Calistoga', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-content: 860px;
  --transition-base: 0.35s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--c-ink);
  color: var(--c-white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── 有机背景层 ── */
.organic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
#bioCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: breathe 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #99ffcc 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
  opacity: 0.12;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00ff41 0%, transparent 70%);
  top: 40%; right: -180px;
  animation-delay: -3s;
  opacity: 0.09;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #99ffcc 0%, transparent 70%);
  bottom: 10%; left: 20%;
  animation-delay: -5s;
  opacity: 0.10;
}
@keyframes breathe {
  0%, 100% { transform: scale(1) translate(0,0); }
  33% { transform: scale(1.08) translate(20px,-15px); }
  66% { transform: scale(0.95) translate(-10px,20px); }
}

/* ── Hero ── */
.site-header {
  position: relative;
  z-index: 2;
}
.hero-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0,30,60,0.85) 0%,
    rgba(0,30,60,0.55) 50%,
    rgba(0,30,60,0.75) 100%
  );
}
.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 2;
  height: 100px;
  background: var(--c-ink);
  clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: right;
  padding: 0 6vw 120px 6vw;
  max-width: 680px;
  margin-left: auto;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.12;
  color: var(--c-white);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 32px rgba(0,30,60,0.7);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(248,255,249,0.82);
  line-height: 1.65;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-cta {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  background: var(--c-primary);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background var(--transition-base), transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 24px rgba(153,255,204,0.35);
}
.hero-cta:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,255,65,0.45);
}

/* ── 主体内容区 ── */
main {
  position: relative;
  z-index: 2;
  padding-bottom: calc(var(--nav-h) + 40px);
}
.content-root {
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 20px;
  align-items: flex-start;
}

/* ── Aside 侧边栏（左侧） ── */
.content-aside {
  width: 220px;
  min-width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  margin-right: 48px;
}
.aside-inner {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.aside-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.75;
}
.aside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aside-list li a {
  display: block;
  font-size: 0.88rem;
  color: rgba(248,255,249,0.72);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  line-height: 1.45;
}
.aside-list li a:hover {
  background: rgba(153,255,204,0.12);
  color: var(--c-primary);
}
.aside-deco {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  opacity: 0.6;
}
.aside-deco svg {
  width: 48px;
  height: 120px;
}

/* ── 正文主区 ── */
.content-main {
  flex: 1;
  min-width: 0;
}
.section-intro-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--c-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-hr {
  border: none;
  border-top: 1.5px solid var(--c-glass-border);
  margin-bottom: 28px;
}
.intro-figure {
  background: var(--c-glass);
  border-left: 3px solid var(--c-accent);
  border-radius: 0 14px 14px 0;
  padding: 14px 20px;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.intro-caption {
  font-style: italic;
  font-size: 1rem;
  color: rgba(248,255,249,0.72);
  line-height: 1.6;
}

/* ── page.content 内的通用样式 ── */
.page-content-wrap {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(248,255,249,0.90);
}
.page-content-wrap h2 {
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--c-primary);
  margin: 52px 0 12px;
  line-height: 1.22;
}
.page-content-wrap h2 + hr,
.page-content-wrap h3 + hr {
  border: none;
  border-top: 1px solid var(--c-glass-border);
  margin-bottom: 20px;
}
.page-content-wrap h3 {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: rgba(153,255,204,0.85);
  margin: 36px 0 10px;
  line-height: 1.3;
}
.page-content-wrap p {
  margin-bottom: 1.2em;
}
.page-content-wrap ul,
.page-content-wrap ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.page-content-wrap li {
  margin-bottom: 0.5em;
}
.page-content-wrap a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.page-content-wrap a:hover {
  color: var(--c-accent);
}
.page-content-wrap blockquote {
  border-left: 3px solid var(--c-accent);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--c-glass);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: rgba(248,255,249,0.78);
}
.page-content-wrap img {
  max-width: 100%;
  border-radius: 16px;
  margin: 24px 0;
  display: block;
}
.page-content-wrap article {
  padding-top: 24px;
  margin-bottom: 12px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ── article 中的 figure/aside 结构 ── */
.page-content-wrap figure {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 28px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page-content-wrap figcaption {
  font-size: 0.88rem;
  color: rgba(248,255,249,0.55);
  margin-top: 10px;
  font-style: italic;
}
.page-content-wrap aside {
  background: var(--c-glass);
  border: 1px solid rgba(153,255,204,0.18);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.95rem;
  color: rgba(248,255,249,0.80);
}

/* ── scroll margin for anchor sections ── */
article[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* ── 页脚 ── */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 28px 20px calc(var(--nav-h) + 28px);
  border-top: 1px solid var(--c-glass-border);
  background: rgba(0,30,60,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--c-primary);
  opacity: 0.9;
}
.footer-copy {
  font-size: 0.80rem;
  color: rgba(248,255,249,0.38);
  letter-spacing: 0.04em;
}

/* ── 底部固定导航条（aside > nav > ul > li > a） ── */
.bottom-nav-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,20,48,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--c-glass-border);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
}
.bottom-nav {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  gap: 0;
}
.nav-left,
.nav-right {
  list-style: none;
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0;
}
.nav-right {
  justify-content: flex-end;
}
.nav-left li a,
.nav-right li a {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  font-size: 0.78rem;
  color: rgba(248,255,249,0.65);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  transition: color 0.2s, background 0.2s;
  border-radius: 10px;
  letter-spacing: 0.02em;
}
.nav-left li a:hover,
.nav-right li a:hover {
  color: var(--c-primary);
  background: rgba(153,255,204,0.08);
}
.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 4px;
}
.nav-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent), 0 0 22px rgba(0,255,65,0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px var(--c-accent), 0 0 22px rgba(0,255,65,0.5); transform: scale(1); }
  50% { box-shadow: 0 0 18px var(--c-accent), 0 0 40px rgba(0,255,65,0.7); transform: scale(1.18); }
}
.nav-brand-text {
  font-family: var(--font-title);
  font-size: 0.72rem;
  color: var(--c-primary);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ── 动效：Stagger List ── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-content-wrap article {
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
}
.page-content-wrap article:nth-child(1) { animation-delay: 0.05s; }
.page-content-wrap article:nth-child(2) { animation-delay: 0.15s; }
.page-content-wrap article:nth-child(3) { animation-delay: 0.25s; }
.page-content-wrap article:nth-child(4) { animation-delay: 0.35s; }
.page-content-wrap article:nth-child(5) { animation-delay: 0.45s; }
.page-content-wrap article:nth-child(6) { animation-delay: 0.55s; }
.page-content-wrap article:nth-child(7) { animation-delay: 0.65s; }

/* ── hr 装饰 ── */
hr {
  border: none;
  border-top: 1px solid rgba(153,255,204,0.20);
  margin: 24px 0;
}

/* ── 玻璃卡片通用 ── */
.glass-card {
  background: var(--c-glass);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(153,255,204,0.12);
}

/* ── 响应式断点 ── */
@media (max-width: 900px) {
  .content-root {
    flex-direction: column;
    padding: 40px 16px 20px;
  }
  .content-aside {
    width: 100%;
    min-width: unset;
    margin-right: 0;
    margin-bottom: 32px;
    position: static;
  }
  .aside-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px 16px;
  }
  .aside-label {
    width: 100%;
    margin-bottom: 4px;
  }
  .aside-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .aside-deco { display: none; }
}

@media (max-width: 600px) {
  .hero-content {
    text-align: right;
    padding: 0 5vw 100px;
    max-width: 100%;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .nav-left li a,
  .nav-right li a {
    font-size: 0.70rem;
    padding: 10px 6px;
  }
  .nav-brand-text {
    font-size: 0.65rem;
  }
  .section-intro-title {
    font-size: 1.4rem;
  }
  .page-content-wrap h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 420px) {
  :root { --nav-h: 60px; }
  .nav-left,
  .nav-right {
    gap: 0;
  }
  .nav-left li:nth-child(n+3),
  .nav-right li:nth-child(n+3) {
    display: none;
  }
  .hero-content {
    padding: 0 4vw 90px;
  }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .nav-brand-dot { animation: none; }
  .page-content-wrap article {
    opacity: 1;
    animation: none;
  }
}
