@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS 变量与基础重置
============================================================ */
:root {
  --c-primary: #99ffcc;
  --c-accent: #00ff41;
  --c-bg: #001e3c;
  --c-bg-2: #00274f;
  --c-bg-3: #003060;
  --c-text: #cce8d8;
  --c-text-muted: #7ab8a0;
  --c-border: rgba(153,255,204,0.15);
  --c-glow: rgba(0,255,65,0.25);
  --c-glow-primary: rgba(153,255,204,0.2);
  --nav-h: 68px;
  --font-head: 'Syne', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius-card: 18px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-bg);
  color: var(--c-text);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--c-bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--c-accent);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--c-primary);
}

/* ============================================================
   scroll-margin for sections（吸顶导航补偿）
============================================================ */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ============================================================
   有机背景 Canvas
============================================================ */
#bio-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ============================================================
   页面包装层
============================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* ============================================================
   顶部导航  aside > nav > ul > li > a
============================================================ */
.site-nav-aside {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 30, 60, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
  padding: 0 24px;
}

.nav-brand {
  flex-shrink: 0;
  margin-right: 28px;
}

.brand-link {
  display: flex;
  align-items: center;
}

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

.brand-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  box-shadow: 0 0 14px var(--c-glow);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.nav-link:hover,
.nav-link--active {
  color: var(--c-primary);
  background: rgba(153, 255, 204, 0.08);
}

.nav-cta-wrap {
  flex-shrink: 0;
  margin-left: 16px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: 0 0 20px var(--c-glow);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta-btn:hover {
  background: var(--c-primary);
  color: var(--c-bg);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(153, 255, 204, 0.45);
}

/* ============================================================
   Hero 满屏
============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px 0;
  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;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 30, 60, 0.82) 0%,
    rgba(0, 30, 60, 0.55) 50%,
    rgba(0, 30, 60, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 48px;
  text-align: left;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(153, 255, 204, 0.4);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--c-text);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  min-height: 52px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--c-primary);
  color: var(--c-bg);
  box-shadow: 0 0 32px var(--c-glow-primary);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--c-primary));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   主内容布局（带侧边栏）
============================================================ */
.site-main {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* 内容区和侧边栏并排 */
.content-article {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

/* 正文 section */
.content-body {
  min-width: 0;
}

/* ============================================================
   page.content 内部元素样式（section by section）
============================================================ */
.content-body section {
  padding: 64px 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

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

.content-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
  position: relative;
}

.content-body h2::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin-bottom: 14px;
  box-shadow: 0 0 12px var(--c-glow);
}

.content-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-accent);
  margin: 28px 0 10px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  padding-left: 1.4em;
  margin-bottom: 20px;
}

.content-body ul {
  list-style: disc;
}

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

.content-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 8px;
}

.content-body strong {
  color: var(--c-primary);
  font-weight: 600;
}

.content-body em {
  color: var(--c-accent);
  font-style: normal;
}

.content-body a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  color: var(--c-accent);
}

/* 卡片类区块（content 里可能有 .card 类） */
.content-body .card,
.content-body [class*="card"] {
  background: var(--c-bg-2);
  border-radius: var(--radius-card);
  border-bottom: 3px solid var(--c-accent);
  padding: 24px;
  margin-bottom: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-body .card:hover,
.content-body [class*="card"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 255, 65, 0.15);
}

/* ============================================================
   侧边栏 aside（内容右侧）
============================================================ */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  z-index: 10;
}

.aside-inner {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(153, 255, 204, 0.03);
}

.aside-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.aside-subtitle {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
}

.aside-link::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.aside-link:hover {
  color: var(--c-primary);
  background: rgba(153, 255, 204, 0.07);
  transform: translateX(3px);
}

.aside-link:hover::before {
  opacity: 1;
}

/* ============================================================
   页脚  footer address + ul
============================================================ */
.site-footer {
  position: relative;
  z-index: 2;
  background: #000d1f;
  border-top: 1px solid var(--c-border);
  padding-top: 60px;
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 360px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}

.footer-contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact a {
  font-size: 0.92rem;
  color: var(--c-text-muted);
}

.footer-contact a:hover {
  color: var(--c-primary);
}

.footer-col-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.footer-col-sub {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 16px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  min-height: 40px;
  transition: color var(--transition), transform var(--transition);
}

.footer-nav-link:hover {
  color: var(--c-primary);
  transform: translateX(4px);
}

/* 订阅区 */
.footer-subscribe {
  border-top: 1px solid var(--c-border);
  padding-top: 40px;
}

.footer-sub-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 6px;
}

.footer-sub-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.subscribe-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--c-bg-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 48px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.subscribe-input::placeholder {
  color: var(--c-text-muted);
}

.subscribe-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 16px var(--c-glow-primary);
}

.subscribe-btn {
  padding: 12px 28px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 48px;
  min-width: 88px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.subscribe-btn:hover {
  background: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--c-glow);
}

/* 底部版权栏 */
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 24px;
  text-align: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ============================================================
   呼吸动画 / 有机微交互
============================================================ */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--c-glow); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 65, 0.5); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes staggerIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 呼吸动画应用 */
.brand-text-icon {
  animation: breathe 3.5s ease-in-out infinite;
}

.cta-btn {
  animation: glowPulse 3s ease-in-out infinite;
}

/* 内容区列表条目交错淡入 */
.content-body section {
  animation: fadeInUp 0.6s ease both;
}

/* ============================================================
   辅助样式（.subtitle 等抽签约定）
============================================================ */
.subtitle {
  font-size: 0.92rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ============================================================
   响应式断点
============================================================ */

/* 大屏 */
@media (min-width: 1200px) {
  .content-article {
    grid-template-columns: 1fr 300px;
  }
}

/* 中屏平板 */
@media (max-width: 1024px) {
  .content-article {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 10px 10px;
  }
}

/* 小屏 */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  /* 导航折叠为双排 */
  .site-nav-aside {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  .nav-brand {
    margin-right: 0;
    flex: 0 0 auto;
  }

  .site-nav-aside nav {
    order: 3;
    flex: 0 0 100%;
  }

  .nav-list {
    gap: 2px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.75rem;
    padding: 8px 8px;
  }

  .nav-cta-wrap {
    margin-left: auto;
    order: 2;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-scroll-hint {
    right: 24px;
  }

  /* 内容区单列 */
  .content-article {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }

  .content-aside {
    position: static;
    margin-top: 48px;
    margin-bottom: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-btn {
    width: 100%;
  }

  .hero-h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
}

/* 超小屏 */
@media (max-width: 375px) {
  .hero-content {
    padding: 0 16px;
  }

  .footer-top {
    padding: 0 16px 40px;
  }

  .nav-link {
    font-size: 0.72rem;
    padding: 8px 6px;
  }
}

/* ============================================================
   减少动效（可访问性）
============================================================ */
@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;
  }

  #bio-canvas {
    display: none;
  }
}
