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

/* ============================================================
   CSS 变量 & 全局重置
   ============================================================ */
:root {
  --mint:       #b4fde1;
  --sky:        #add8e6;
  --dark:       #172620;
  --mint-dark:  #7ee8c0;
  --sky-dark:   #7bb8cc;
  --white:      #f8fffc;
  --card-bg:    #e8fef4;
  --card-bg2:   #ddf0f8;
  --text:       #172620;
  --text-muted: #3a5a4a;
  --border:     3px solid #172620;
  --radius-sm:  12px;
  --radius:     18px;
  --radius-lg:  24px;
  --shadow-out: 4px 4px 0px #172620;
  --shadow-clay: 4px 4px 0px #172620, inset -2px -2px 8px rgba(23,38,32,0.12);
  --shadow-hover: 6px 6px 0px #172620, inset -2px -2px 10px rgba(23,38,32,0.15);
  --nav-h:      64px;
  --anchor-h:   44px;
  --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --ease-clay: 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) + var(--anchor-h) + 12px);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   全局 Clay 按钮
   ============================================================ */
.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  min-height: 44px;
  background: var(--mint);
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 700;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
  transition: transform 200ms var(--ease-clay), box-shadow 200ms var(--ease-clay), background 150ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.clay-btn:hover {
  background: var(--mint-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.clay-btn:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0px var(--dark);
}

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

/* ============================================================
   全屏遮罩菜单
   ============================================================ */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.overlay-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-out);
  font-size: 1.1rem;
  color: var(--dark);
  transition: transform 200ms var(--ease-clay);
}
.overlay-close:hover { transform: scale(1.1) rotate(15deg); }
.close-icon { line-height: 1; }

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.overlay-nav-link {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--mint);
  padding: 0.5rem 2rem;
  border-radius: var(--radius);
  border: 3px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.overlay-nav-link:hover {
  background: var(--mint);
  color: var(--dark);
  border-color: var(--mint);
}
.overlay-brand {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(180,253,225,0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   顶部 Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(248,255,252,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  box-shadow: 0 3px 0px var(--dark);
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--mint);
  box-shadow: var(--shadow-out);
  overflow: hidden;
  transition: transform 200ms var(--ease-clay);
}
.header-logo:hover { transform: scale(1.08); }
.site-logo-img { width: 36px; height: 36px; object-fit: contain; }
.site-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

/* 导航：header > nav > p > a */
.header-nav {
  flex: 1;
  overflow: hidden;
}
.header-nav p {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav p::-webkit-scrollbar { display: none; }
.header-nav p a {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  padding: 0.45rem 0.75rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}
.header-nav p a:hover {
  background: var(--mint);
  border-color: var(--dark);
}

.header-cta {
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  min-height: 40px;
}

.hamburger-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--sky);
  box-shadow: var(--shadow-out);
  transition: transform 200ms var(--ease-clay), background 150ms ease;
}
.hamburger-btn:hover {
  transform: translateY(-2px);
  background: var(--sky-dark);
}
.ham-bar {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 150ms ease;
}

/* ============================================================
   粘性锚点条
   ============================================================ */
.anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 800;
  background: var(--sky);
  border-bottom: var(--border);
  box-shadow: 0 3px 0 var(--dark);
  height: var(--anchor-h);
  overflow: hidden;
}
.anchor-bar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1.25rem;
  gap: 0.15rem;
}
.anchor-bar-inner::-webkit-scrollbar { display: none; }
.anchor-link {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  padding: 0.35rem 0.7rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 150ms ease, border-color 150ms ease;
}
.anchor-link:hover {
  background: var(--mint);
  border-color: var(--dark);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  margin-top: calc(var(--nav-h) + var(--anchor-h));
  min-height: calc(100vh - var(--nav-h) - var(--anchor-h));
  background: linear-gradient(145deg, var(--mint) 0%, var(--sky) 60%, #e0f8f0 100%);
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -60px;
  bottom: -60px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  border: var(--border);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  left: 5%;
  top: -40px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  border: 3px solid rgba(23,38,32,0.15);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark);
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--dark);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 var(--dark);
}
.hero-h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-cta-btn {
  font-size: 1.05rem;
  padding: 0.85rem 2.2rem;
  min-height: 52px;
  border-radius: var(--radius-lg);
}

.hero-img-wrap {
  margin-top: 2.5rem;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow-clay);
}
.hero-img-wrap .hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   主体布局：main > article + aside
   ============================================================ */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  align-items: flex-start;
}

/* aside 在左侧 */
.site-aside {
  flex-shrink: 0;
  width: 220px;
  position: sticky;
  top: calc(var(--nav-h) + var(--anchor-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-right: 2rem;
}
.aside-card {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-clay);
}
.aside-tip-card {
  background: var(--card-bg2);
}
.aside-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.aside-title span {
  display: inline;
}
.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.aside-link {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.aside-link:hover {
  background: var(--mint);
  border-color: var(--dark);
  color: var(--dark);
}
.aside-tip-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* article + section */
.site-article {
  flex: 1;
  min-width: 0;
}
.content-section {
  background: transparent;
}

/* ============================================================
   正文内容样式（page.content 内部）
   ============================================================ */
.content-section h2,
.site-article h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--mint);
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 16px);
}
.content-section h2 span,
.site-article h2 span {
  display: inline;
}
.content-section h3,
.site-article h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--dark);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 16px);
}
.content-section h3 span,
.site-article h3 span {
  display: inline;
}
.content-section p,
.site-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}
.content-section ul,
.site-article ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-section ul li,
.site-article ul li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
}
.content-section ol,
.site-article ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-section ol li,
.site-article ol li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
}
.content-section a,
.site-article a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.content-section a:hover,
.site-article a:hover {
  color: var(--dark);
}
.content-section strong,
.site-article strong {
  font-weight: 700;
}
.content-section em,
.site-article em {
  font-style: italic;
}
.content-section blockquote,
.site-article blockquote {
  border-left: 4px solid var(--mint);
  background: var(--card-bg);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-style: italic;
}
.content-section section,
.site-article section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 12px);
  padding: 2rem;
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  transition: box-shadow 200ms var(--ease-clay), transform 200ms var(--ease-clay);
}
.content-section section:hover,
.site-article section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.content-section section:nth-child(even),
.site-article section:nth-child(even) {
  background: var(--card-bg2);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--mint);
  border-top: var(--border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid rgba(180,253,225,0.2);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint);
}
.footer-slogan {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(180,253,225,0.6);
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 0.85rem;
}
.footer-col-title span { display: inline; }

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(180,253,225,0.7);
  padding: 0.3rem 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  transition: color 150ms ease;
}
.footer-col ul li a:hover {
  color: var(--mint);
}

.footer-col-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.footer-col-contact address p {
  font-size: 0.85rem;
  color: rgba(180,253,225,0.7);
  line-height: 1.5;
}
.footer-col-contact address a {
  color: rgba(180,253,225,0.7);
  transition: color 150ms ease;
}
.footer-col-contact address a:hover { color: var(--mint); }

.footer-policy-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-policy-links li a {
  font-size: 0.82rem;
  color: rgba(180,253,225,0.5);
  transition: color 150ms ease;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.footer-policy-links li a:hover { color: var(--mint); }

.footer-bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(180,253,225,0.4);
}
.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(180,253,225,0.4);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: color 150ms ease;
}
.footer-bottom-links a:hover { color: var(--mint); }

/* ============================================================
   响应式断点
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-aside {
    width: 190px;
  }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-cta { display: none; }

  .site-main {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  .site-aside {
    width: 100%;
    position: static;
    margin-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .aside-card {
    flex: 1;
    min-width: 160px;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
  .hero-section {
    padding: 2.5rem 1.25rem 2rem;
  }
  .content-section section,
  .site-article section {
    padding: 1.35rem 1rem;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hero-h1 {
    font-size: 1.75rem;
  }
  .site-aside {
    flex-direction: column;
  }
}

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