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

/* ─── CSS 变量 ─── */
:root {
  --c-mint: #b4fde1;
  --c-fog: #add8e6;
  --c-dark: #172620;
  --c-dark2: #1f352c;
  --c-dark3: #0e1a14;
  --c-mint-light: #d4fff0;
  --c-fog-light: #d6edf5;
  --c-white: #f8fffc;
  --c-text: #172620;
  --c-text-muted: #3a5448;
  --c-border: #7ee8c0;
  --radius-card: 20px;
  --radius-btn: 50px;
  --border-w: 3px;
  --nav-h: 110px;
  --shadow-outer: 4px 4px 10px rgba(23,38,32,0.18);
  --shadow-inner: inset -2px -2px 8px rgba(23,38,32,0.10);
  --shadow-card: 4px 4px 10px rgba(23,38,32,0.15), inset -1px -1px 6px rgba(255,255,255,0.6);
  --font-main: 'Figtree', 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --trans-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── 重置 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  font-size: 16px;
  background: var(--c-dark);
}
body.clay-body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: linear-gradient(160deg, #d6fff0 0%, #e8f8f0 40%, var(--c-fog-light) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── 站点包裹 ─── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ══════════════════════════════════════
   顶部 aside 导航（两行：品牌 + 菜单）
══════════════════════════════════════ */
.site-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  border-bottom: var(--border-w) solid var(--c-mint);
  box-shadow: 0 4px 16px rgba(23,38,32,0.28);
}

.aside-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  border-bottom: 2px solid rgba(180,253,225,0.15);
}

.aside-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-mint);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.aside-logo:hover { color: var(--c-fog); }

.aside-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(180,253,225,0.08);
  border: 2px solid rgba(180,253,225,0.25);
  border-radius: 50px;
  overflow: hidden;
  max-width: 420px;
  transition: border-color 0.2s;
}
.aside-search:focus-within { border-color: var(--c-mint); }
.aside-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--c-mint-light);
  min-height: 40px;
}
.aside-search input::placeholder { color: rgba(180,253,225,0.45); }
.aside-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: var(--c-mint);
  display: flex;
  align-items: center;
  min-height: 40px;
  min-width: 44px;
  transition: color 0.2s;
}
.aside-search button:hover { color: var(--c-fog); }

.burger-btn {
  background: none;
  border: var(--border-w) solid var(--c-mint);
  border-radius: 12px;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.burger-btn:hover { background: rgba(180,253,225,0.12); }
.burger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--c-mint);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.aside-nav-row {
  padding: 0 2rem;
}
.aside-nav-row nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.aside-nav-row nav ul li a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: rgba(180,253,225,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.aside-nav-row nav ul li a:hover {
  color: var(--c-mint);
  border-bottom-color: var(--c-mint);
}

/* ══════════════════════════════════════
   全屏遮罩菜单
══════════════════════════════════════ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-dark3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.fullscreen-menu nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fullscreen-menu nav ul li {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s var(--trans-bounce), opacity 0.4s ease;
}
.fullscreen-menu.is-open nav ul li {
  transform: translateY(0);
  opacity: 1;
}
.fullscreen-menu.is-open nav ul li { transition-delay: calc(var(--i) * 0.06s + 0.1s); }
.menu-link {
  display: block;
  padding: 0.9rem 2.5rem;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--c-mint);
  text-decoration: none;
  border-radius: 16px;
  border: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-link:hover {
  background: rgba(180,253,225,0.1);
  border-color: var(--c-mint);
  color: var(--c-mint-light);
}
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: var(--border-w) solid var(--c-mint);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-mint);
  transition: background 0.2s;
}
.menu-close:hover { background: rgba(180,253,225,0.12); }

/* ══════════════════════════════════════
   main / wrap 结构
══════════════════════════════════════ */
main {
  flex: 1;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ══════════════════════════════════════
   Hero 区块
══════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 6rem 0 4rem;
  position: relative;
}
.hero-content {
  flex: 1;
  max-width: 560px;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  max-width: 440px;
}
.hero-cta {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-mint);
  padding: 0.9rem 2.4rem;
  border-radius: var(--radius-btn);
  border: var(--border-w) solid var(--c-dark);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-outer);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 16px rgba(23,38,32,0.22);
  background: var(--c-dark2);
}
.hero-cta:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 6px rgba(23,38,32,0.15);
  transition-duration: 0.1s;
}

.hero-media {
  flex: 1;
  position: relative;
  height: 480px;
  max-width: 520px;
}
.hero-img {
  position: absolute;
  width: 65%;
  border-radius: var(--radius-card);
  border: var(--border-w) solid rgba(180,253,225,0.5);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  display: block;
}
.hero-img-1 {
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-3deg);
  max-height: 320px;
}
.hero-img-2 {
  bottom: 0;
  right: 0;
  z-index: 3;
  transform: rotate(4deg);
  max-height: 280px;
}

/* ══════════════════════════════════════
   内容区：主体 + 侧边栏
══════════════════════════════════════ */
.content-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 4rem 0;
}
.content-body {
  flex: 1;
  min-width: 0;
}
.content-aside {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── 侧边栏卡片 ── */
.aside-card {
  background: rgba(255,255,255,0.55);
  border: var(--border-w) solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.aside-card h2,
.aside-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 0.5rem;
}
.aside-card hr {
  border: none;
  border-top: 2px solid var(--c-border);
  margin-bottom: 1rem;
}
.aside-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.aside-card ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.aside-card ul li a:hover {
  background: rgba(180,253,225,0.4);
  color: var(--c-dark);
}
.contact-card span {
  display: block;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding: 0.3rem 0;
}

/* ══════════════════════════════════════
   page.content 内部样式（7个 div）
══════════════════════════════════════ */
.content-body h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--c-dark);
  margin: 3rem 0 0.5rem;
  letter-spacing: -0.015em;
}
.content-body h2:first-child { margin-top: 0; }
.content-body h2 + hr {
  border: none;
  border-top: 3px solid var(--c-mint);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}
.content-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-dark2);
  margin: 2rem 0 0.75rem;
}
.content-body h3 + hr {
  border: none;
  border-top: 2px solid var(--c-fog);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}
.content-body p {
  margin-bottom: 1.25rem;
  color: #2a4038;
  font-size: 1.02rem;
}
.content-body ul,
.content-body ol {
  margin: 0 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.content-body li { color: #2a4038; }
.content-body a {
  color: #0e7c55;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.content-body a:hover { color: var(--c-dark); }
.content-body div {
  margin-bottom: 1rem;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius-card);
  border: var(--border-w) solid rgba(180,253,225,0.6);
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.content-body div + div {
  margin-top: 2rem;
}

/* 问答样式 */
.content-body .faq-item,
.content-body dt {
  font-weight: 600;
  color: var(--c-dark);
}

/* ══════════════════════════════════════
   页脚
══════════════════════════════════════ */
footer {
  background: var(--c-dark);
  border-top: var(--border-w) solid var(--c-mint);
  color: rgba(180,253,225,0.75);
  margin-top: 4rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}
.footer-brand-big {
  display: block;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--c-mint);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}
.footer-brand-col p {
  font-size: 0.9rem;
  color: rgba(180,253,225,0.55);
  max-width: 280px;
  line-height: 1.6;
}
.footer-nav-col h3,
.footer-contact-col h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-fog);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.footer-nav-col hr,
.footer-contact-col hr {
  border: none;
  border-top: 1.5px solid rgba(180,253,225,0.2);
  margin-bottom: 1rem;
}
.footer-nav-col nav,
.footer-contact-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-nav-col nav a,
.footer-contact-col nav a {
  color: rgba(180,253,225,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.footer-nav-col nav a:hover,
.footer-contact-col nav a:hover { color: var(--c-mint); }
.footer-contact-col p {
  font-size: 0.875rem;
  color: rgba(180,253,225,0.5);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.footer-contact { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-contact span {
  font-size: 0.875rem;
  color: rgba(180,253,225,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(180,253,225,0.12);
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.footer-bottom nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-bottom nav a {
  color: rgba(180,253,225,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-bottom nav a:hover { color: var(--c-mint); }

/* ══════════════════════════════════════
   Scroll Reveal 动效
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s var(--trans-bounce);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Parallax 对象 */
.parallax-slow { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fullscreen-menu nav ul li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════
   响应式
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand-col { grid-column: 1 / -1; }
  .hero-media { max-width: 380px; height: 360px; }
}

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

  .aside-brand-row { padding: 0.75rem 1rem; gap: 0.75rem; }
  .aside-search { max-width: 200px; }
  .aside-nav-row { padding: 0 0.5rem; overflow-x: auto; }
  .aside-nav-row::-webkit-scrollbar { height: 0; }
  .aside-nav-row nav ul { flex-wrap: nowrap; }
  .aside-nav-row nav ul li a { padding: 0.6rem 0.8rem; font-size: 0.82rem; }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 2.5rem 0 3rem;
    gap: 2rem;
  }
  .hero-content { max-width: 100%; }
  .hero-media {
    width: 100%;
    max-width: 100%;
    height: 260px;
  }

  .content-section {
    flex-direction: column;
  }
  .content-aside {
    width: 100%;
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.5rem 1.25rem 2rem;
  }
  .footer-brand-col { grid-column: auto; }
  .footer-brand-big { font-size: 3rem; }
}

@media (max-width: 480px) {
  .aside-search { display: none; }
  .content-body div { padding: 1.5rem 1.25rem; }
  .hero-content h1 { font-size: 2rem; }
}

/* ══════════════════════════════════════
   通用工具
══════════════════════════════════════ */
img { max-width: 100%; height: auto; display: block; }
:focus-visible {
  outline: 3px solid var(--c-mint);
  outline-offset: 3px;
  border-radius: 4px;
}
