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

/* ===== 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body.clay-body {
  font-family: 'Space Grotesk', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background-color: #172620;
  color: #e8fdf4;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 品牌色变量 ===== */
:root {
  --mint: #b4fde1;
  --fog: #add8e6;
  --dark: #172620;
  --dark2: #1f3329;
  --dark3: #243d2e;
  --text: #e8fdf4;
  --text-muted: #9ecfb8;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --border-w: 3px;
  --border-mint: 3px solid #b4fde1;
  --border-fog: 3px solid #add8e6;
  --shadow-clay: 4px 4px 0px #0d1a14, inset -2px -2px 8px rgba(0,0,0,0.25), inset 2px 2px 8px rgba(255,255,255,0.08);
  --shadow-card: 5px 5px 0px #0d1a14, inset -2px -2px 6px rgba(0,0,0,0.2), inset 2px 2px 6px rgba(180,253,225,0.1);
  --transition: 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 130px;
}

/* ===== 页面包裹 ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 导航 aside：两行结构 ===== */
.site-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #172620;
  border-bottom: var(--border-mint);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}

/* 品牌行 */
.brand-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 2rem;
  border-bottom: 2px solid rgba(180,253,225,0.15);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--mint);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.brand-link:hover {
  opacity: 0.85;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 10px;
}

.brand-name {
  line-height: 1;
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: auto;
  display: none;
}

/* 菜单行 */
.top-nav {
  padding: 0 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.nav-item {
  flex-shrink: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
  min-height: 40px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  background: rgba(180,253,225,0.12);
  border-color: rgba(180,253,225,0.35);
  color: var(--mint);
  transform: translateY(-2px);
}

/* CTA 按钮（最后一项） */
.nav-cta-btn {
  background: linear-gradient(135deg, #b4fde1 0%, #add8e6 100%);
  color: #172620 !important;
  border: var(--border-w) solid #b4fde1 !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-clay);
  margin-left: auto;
  text-transform: uppercase;
}

.nav-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 6px 6px 0px #0d1a14, inset -2px -2px 8px rgba(0,0,0,0.2), inset 2px 2px 8px rgba(255,255,255,0.15);
}

/* scroll-margin for sections */
div[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ===== Hero ===== */
.hero-block {
  position: relative;
  background: linear-gradient(135deg, #1f3329 0%, #172620 60%, #1a2d24 100%);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-media {
  flex-shrink: 0;
  display: none;
}

.hero-img {
  width: 320px;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--mint);
  box-shadow: var(--shadow-clay);
}

.hero-copy {
  flex: 1;
  text-align: left;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
  text-shadow: 3px 3px 0px #0d1a14;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, #b4fde1 0%, #add8e6 100%);
  color: #172620;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: var(--border-w) solid #b4fde1;
  box-shadow: var(--shadow-clay);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.hero-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 7px 7px 0px #0d1a14, inset -2px -2px 8px rgba(0,0,0,0.2), inset 2px 2px 10px rgba(255,255,255,0.18);
}

/* 斜切底边 */
.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #172620;
  clip-path: polygon(0 60px, 100% 0, 100% 60px);
}

/* ===== 主体内容 ===== */
.site-main {
  flex: 1;
  padding: 3rem 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-section {
  /* div > article 契约 */
}

.content-article {
  /* 正文容器 */
}

/* ===== 正文内样式（page.content 内的元素） ===== */
.content-article div,
.site-main div {
  background: linear-gradient(135deg, rgba(180,253,225,0.06) 0%, rgba(173,216,230,0.06) 100%);
  border: var(--border-w) solid rgba(180,253,225,0.22);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.content-article div::before,
.site-main div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--fog) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.content-article div:hover,
.site-main div:hover {
  transform: translateY(-3px);
  box-shadow: 6px 8px 0px #0d1a14, inset -2px -2px 8px rgba(0,0,0,0.22), inset 2px 2px 8px rgba(180,253,225,0.1);
}

/* 交替配色 */
.content-article div:nth-child(even),
.site-main div:nth-child(even) {
  background: linear-gradient(135deg, rgba(173,216,230,0.08) 0%, rgba(180,253,225,0.04) 100%);
  border-color: rgba(173,216,230,0.28);
}

/* ===== 标题样式 ===== */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0px #0d1a14;
}

h3 {
  font-size: 1.2rem;
  color: var(--fog);
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

h4 {
  font-size: 1rem;
  color: var(--mint);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

/* small 眉题（契约：small 同级紧邻在 h2 前） */
small {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  background: rgba(173,216,230,0.12);
  border: 1px solid rgba(173,216,230,0.3);
  border-radius: 6px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

a:hover {
  color: var(--fog);
}

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

strong {
  color: var(--mint);
  font-weight: 700;
}

em {
  color: var(--fog);
  font-style: italic;
}

/* ===== 问答/QA块 ===== */
.content-article details,
.site-main details {
  /* 不使用 details 隐藏内容——不用 details */
}

/* ===== 卡片玻璃效果（复用） ===== */
.glass-card {
  background: rgba(180,253,225,0.06);
  backdrop-filter: blur(8px);
  border: var(--border-w) solid rgba(180,253,225,0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 6px 8px 0px #0d1a14, inset -2px -2px 8px rgba(0,0,0,0.2), inset 2px 2px 8px rgba(180,253,225,0.12);
}

/* ===== 页脚 ===== */
.site-footer {
  background: #0f1d16;
  border-top: var(--border-w) solid rgba(180,253,225,0.2);
  margin-top: 2rem;
}

.footer-top {
  display: flex;
  gap: 3rem;
  padding: 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-brand-col {
  flex: 1;
  min-width: 200px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--mint);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  transition: opacity var(--transition);
}

.footer-brand-link:hover {
  opacity: 0.8;
}

.footer-logo {
  height: 30px;
  width: auto;
  border-radius: 8px;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links-col {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: flex-start;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color var(--transition), transform 160ms ease;
}

.footer-nav-link:hover {
  color: var(--mint);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(180,253,225,0.1);
  padding: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ===== Stagger 列表动效 ===== */
@keyframes clayFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.content-article div,
.site-main div {
  animation: clayFadeUp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.content-article div:nth-child(1) { animation-delay: 0.05s; }
.content-article div:nth-child(2) { animation-delay: 0.12s; }
.content-article div:nth-child(3) { animation-delay: 0.19s; }
.content-article div:nth-child(4) { animation-delay: 0.26s; }
.content-article div:nth-child(5) { animation-delay: 0.33s; }
.content-article div:nth-child(6) { animation-delay: 0.40s; }
.content-article div:nth-child(7) { animation-delay: 0.47s; }

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== 响应式：平板 ===== */
@media (min-width: 768px) {
  .brand-tagline {
    display: block;
  }
  .hero-media {
    display: block;
  }
  .nav-list {
    flex-wrap: nowrap;
  }
}

/* ===== 响应式：大屏 ===== */
@media (min-width: 1024px) {
  .hero-inner {
    padding: 4rem 3rem 5rem;
  }
  .wrap {
    padding: 0 2rem;
  }
}

/* ===== 移动端修正 ===== */
@media (max-width: 767px) {
  :root {
    --nav-h: 110px;
  }

  .brand-bar {
    padding: 0.6rem 1rem;
  }

  .top-nav {
    padding: 0 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list {
    flex-wrap: nowrap;
    gap: 0.15rem;
    padding-bottom: 0.6rem;
  }

  .nav-link {
    font-size: 0.78rem;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    min-height: 40px;
  }

  .hero-inner {
    flex-direction: column;
    padding: 2.5rem 1.2rem 3rem;
    gap: 1.5rem;
  }

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

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero-btn {
    padding: 0.75rem 1.6rem;
    font-size: 0.92rem;
    min-height: 44px;
  }

  .content-article div,
  .site-main div {
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.2rem;
  }

  .footer-nav {
    gap: 1.2rem;
  }

  .footer-bottom {
    padding: 0.85rem 1.2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.25rem;
  }
}

/* ===== 375px 最窄屏 ===== */
@media (max-width: 400px) {
  .nav-link {
    font-size: 0.72rem;
    padding: 0.45rem 0.5rem;
  }
  .brand-name {
    font-size: 1.05rem;
  }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #172620;
}
::-webkit-scrollbar-thumb {
  background: rgba(180,253,225,0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(180,253,225,0.55);
}

/* ===== 图片 ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 焦点可访问性 ===== */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

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