@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ===== 基础变量 ===== */
:root {
  --mint: #99ffcc;
  --green: #00ff41;
  --navy: #001e3c;
  --navy-mid: #002a52;
  --navy-light: #003a6e;
  --text: #d4f5e9;
  --text-muted: #7ab8a0;
  --card-bg: rgba(0,46,82,0.72);
  --card-border: rgba(153,255,204,0.18);
  --radius-card: 28px;
  --radius-sm: 12px;
  --font-serif: 'Cormorant Garamond', 'Crimson Pro', Georgia, serif;
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Crimson Pro', 'Cormorant Garamond', Georgia, serif;
  --nav-h: 64px;
  --anchor-h: 44px;
  --shadow-card: 0 8px 40px rgba(0,255,65,0.08), 0 2px 12px rgba(0,30,60,0.6);
  --shadow-hover: 0 16px 60px rgba(153,255,204,0.18), 0 4px 20px rgba(0,30,60,0.7);
  --transition: 0.32s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 17px;
  background: var(--navy);
  color: var(--text);
}
body {
  font-family: var(--font-body);
  line-height: 1.72;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--navy);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--green); }
ul, ol { list-style: none; }

/* ===== Generative Canvas ===== */
.bio-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,30,60,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  height: var(--nav-h);
}

/* ===== Main Nav: brand centered, links split ===== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-right { justify-content: flex-end; }

.nav-left li,
.nav-right li { display: flex; }

.nav-left li a,
.nav-right li a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: var(--nav-h);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-left li a::after,
.nav-right li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-left li a:hover,
.nav-right li a:hover { color: var(--mint); }
.nav-left li a:hover::after,
.nav-right li a:hover::after { width: 60%; }

/* Nav Brand */
.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mint);
  text-transform: uppercase;
}

/* ===== Anchor Bar ===== */
.anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: rgba(0,42,82,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(153,255,204,0.1);
  height: var(--anchor-h);
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-bar::-webkit-scrollbar { display: none; }

.anchor-list {
  display: flex;
  align-items: center;
  height: var(--anchor-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  counter-reset: anchor-counter;
}
.anchor-list li {
  counter-increment: anchor-counter;
  display: flex;
}
.anchor-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: var(--anchor-h);
  font-size: 0.78rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition);
}
.anchor-list li a::before {
  content: counter(anchor-counter, decimal-leading-zero);
  font-size: 0.65rem;
  color: var(--green);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
.anchor-list li a:hover { color: var(--mint); }

/* Section scroll offset for sticky nav + anchor bar */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 16px);
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding: 48px 24px 40px;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 220px);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(153,255,204,0.07);
  text-stroke: 1px rgba(153,255,204,0.07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 5s ease-in-out infinite;
}
.hero-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 18px rgba(153,255,204,0.4));
}

.hero-copy {
  text-align: center;
  flex: 1;
  min-width: 240px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  opacity: 0.9;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--mint);
  margin-bottom: 14px;
  text-shadow: 0 0 40px rgba(153,255,204,0.3);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  font-style: italic;
}

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

/* ===== Main Layout ===== */
.site-main {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.content-article { width: 100%; }

.article-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ===== Aside (left) ===== */
.content-aside {
  flex: 0 0 220px;
  position: sticky;
  top: calc(var(--nav-h) + var(--anchor-h) + 24px);
  align-self: flex-start;
}

.aside-inner {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.aside-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 10px;
}
.aside-inner > hr {
  border: none;
  border-top: 1px solid rgba(153,255,204,0.2);
  margin-bottom: 16px;
}

.aside-links { display: flex; flex-direction: column; gap: 2px; }
.aside-links li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}
.aside-links li a:hover {
  background: rgba(153,255,204,0.08);
  color: var(--mint);
}

.aside-cell-decor {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 80px;
  pointer-events: none;
  opacity: 0.6;
}
.aside-cell-decor svg { width: 100%; height: auto; }

/* ===== Article Body (content) ===== */
.article-body {
  flex: 1;
  min-width: 0;
}

/* Content sections from page.content */
.article-body section {
  margin-bottom: 64px;
  padding: 36px 40px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-body section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153,255,204,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.article-body section:hover {
  box-shadow: var(--shadow-hover);
}

/* Typography inside content */
.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  color: var(--mint);
  letter-spacing: 0.05em;
  line-height: 1.3;
}
.article-body h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 10px;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 24px 0 8px;
}

.article-body h2 + hr,
.article-body h3 + hr {
  border: none;
  border-top: 1px solid rgba(153,255,204,0.22);
  margin-bottom: 20px;
}
.article-body hr {
  border: none;
  border-top: 1px solid rgba(153,255,204,0.15);
  margin: 20px 0;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}
.article-body p:last-child { margin-bottom: 0; }

.article-body ul,
.article-body ol {
  margin: 12px 0 16px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-body ul li,
.article-body ol li {
  padding-left: 20px;
  position: relative;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}
.article-body ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.55rem;
  top: 0.55em;
}
.article-body ol {
  counter-reset: ol-count;
}
.article-body ol li {
  counter-increment: ol-count;
}
.article-body ol li::before {
  content: counter(ol-count, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--mint);
  font-size: 0.75rem;
  font-family: var(--font-display);
  top: 0.3em;
}

.article-body strong { color: var(--mint); font-weight: 600; }
.article-body em { font-style: italic; color: var(--text-muted); }

.article-body a {
  color: var(--green);
  border-bottom: 1px solid rgba(0,255,65,0.3);
  transition: border-color var(--transition), color var(--transition);
}
.article-body a:hover {
  color: var(--mint);
  border-color: var(--mint);
}

/* Cell card style (for any .cell-card in content) */
.cell-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  will-change: transform;
}
.cell-card:hover {
  box-shadow: var(--shadow-hover);
}

/* ===== Fade-up animation ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(153,255,204,0.12);
  padding: 28px 24px;
  text-align: center;
  background: rgba(0,30,60,0.6);
  backdrop-filter: blur(8px);
}
.site-footer p.footer-copy {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.site-footer p.footer-copy strong {
  color: var(--mint);
  font-weight: 600;
}
.site-footer small.footer-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(153,255,204,0.35);
  letter-spacing: 0.04em;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg-text { will-change: auto; }
  .bio-canvas { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .article-layout { flex-direction: column; }
  .content-aside {
    position: static;
    flex: none;
    width: 100%;
  }
  .aside-cell-decor { display: none; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 56px;
    --anchor-h: 40px;
  }
  .site-nav {
    padding: 0 12px;
    gap: 8px;
  }
  .nav-left li a,
  .nav-right li a {
    padding: 0 8px;
    font-size: 0.75rem;
    height: var(--nav-h);
  }
  .anchor-list { padding: 0 12px; }
  .anchor-list li a { padding: 0 10px; font-size: 0.72rem; }
  .hero-section { padding: 36px 16px 32px; min-height: 42vh; }
  .hero-inner { gap: 20px; }
  .hero-icon { width: 56px; height: 56px; }
  .site-main { padding: 24px 16px 48px; }
  .article-body section { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .nav-left,
  .nav-right { display: none; }
  .site-nav { justify-content: center; }
  .anchor-bar { top: var(--nav-h); }
  .article-body section { padding: 20px 16px; }
  .hero-bg-text { font-size: clamp(60px, 22vw, 120px); }
}

@media (max-width: 375px) {
  .hero-h1 { font-size: 1.45rem; }
  .nav-left li a,
  .nav-right li a { min-height: 40px; }
  .anchor-list li a { min-height: 40px; }
}

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