/* =========================================
   WhatsApp 落地站全局样式
   设计方向：大地色系 + 自然质感 / 全宽分屏 + 横向画廊
   ========================================= */

:root {
  /* 色彩系统 */
  --color-bg: #F5F2EB;
  --color-surface: #FFFCF7;
  --color-surface-alt: #EDEAE3;
  --color-text: #2E2A24;
  --color-text-secondary: #5A5448;
  --color-primary: #4A6741;
  --color-primary-hover: #3B5233;
  --color-secondary: #8B7355;
  --color-accent: #D4C4A8;
  --color-border: #E2DED5;
  --color-focus: #3A5233;
  --color-success: #4A6741;
  
  /* 排版变量 */
  --font-base: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-head: "SF Pro Display", system-ui, -apple-system, "PingFang SC", sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-xxl: 6rem;
  
  /* 间距与圆角 */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-card: 0 6px 18px rgba(46, 42, 36, 0.06);
  --shadow-hover: 0 12px 28px rgba(46, 42, 36, 0.12);
  
  /* 动效 */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 180ms;
  --duration-normal: 320ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  line-height: 1.65;
  font-size: 16px;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 流体字号 */
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem); line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.3; }
p { margin-bottom: var(--space-md); max-width: 75ch; }
small { font-size: 0.875rem; color: var(--color-text-secondary); }

a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-primary-hover); }
a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-sm); }

img, svg { display: block; max-width: 100%; height: auto; }

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* 布局辅助 */
.grid-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  gap: var(--space-xl);
  align-items: center;
}

.gallery-wrap {
  overflow-x: auto;
  padding-bottom: var(--space-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.section { padding: var(--space-xxl) 0; }
.section-alt { background: var(--color-surface); }
.section-header { margin-bottom: var(--space-xl); text-align: center; }
.section-header p { margin-inline: auto; color: var(--color-text-secondary); }

/* 页头与导航 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-text); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav ul { display: flex; list-style: none; gap: var(--space-lg); }
nav a { text-decoration: none; color: var(--color-text-secondary); font-weight: 500; padding: var(--space-xs) 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--color-primary); border-color: var(--color-primary); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-sm); }
.mobile-toggle svg { width: 24px; height: 24px; stroke: var(--color-text); }

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--color-surface); padding: var(--space-md); border-bottom: 1px solid var(--color-border); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: var(--space-md); }
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  padding: 0.9rem 1.8rem; border-radius: var(--radius-md);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out);
  border: none; font-size: 1rem;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn svg { width: 20px; height: 20px; stroke-width: 2; }

/* 卡片与特性 */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-lg);
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-lg); }
.feature-icon { width: 48px; height: 48px; background: var(--color-surface-alt); border-radius: var(--radius-md); display: grid; place-items: center; margin-bottom: var(--space-md); }
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.feature-card h3 { margin-bottom: var(--space-sm); }

/* 表格 */
.table-wrap { overflow-x: auto; margin: var(--space-lg) 0; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: var(--space-md); text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface-alt); font-weight: 600; color: var(--color-text-secondary); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); margin-bottom: var(--space-md);
  transition: box-shadow var(--duration-fast) var(--ease-out);
}
details:hover { box-shadow: var(--shadow-card); }
summary {
  padding: var(--space-md) var(--space-lg); cursor: pointer;
  font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.25rem; color: var(--color-text-secondary); transition: transform var(--duration-fast) var(--ease-out); }
details[open] summary::after { transform: rotate(45deg); }
details .faq-answer { padding: 0 var(--space-lg) var(--space-lg); color: var(--color-text-secondary); }

/* 新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-lg); }
.news-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.news-meta { padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-border); }
.news-date { font-size: 0.85rem; color: var(--color-secondary); margin-bottom: var(--space-xs); }
.news-title { font-weight: 700; color: var(--color-text); margin-bottom: var(--space-xs); }
.news-excerpt { font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.6; flex-grow: 1; padding: var(--space-md) var(--space-lg); }
.news-footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--color-border); }
.link-btn { font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* 页脚 */
.site-footer { background: var(--color-text); color: var(--color-surface-alt); padding: var(--space-xxl) 0 var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-col h4 { color: #fff; margin-bottom: var(--space-md); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--space-sm); }
.footer-col a { color: var(--color-accent); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* SVG 动效核心 */
.svg-anim { width: 100%; height: auto; overflow: visible; }
.draw {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.stroke-path { animation: drawStroke 3.5s var(--ease-out) infinite alternate; }
.breath { animation: gentleBreath 4.5s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.float-up { animation: softFloat 5s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }

@keyframes drawStroke {
  0% { stroke-dashoffset: 1; }
  40%, 60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1; }
}
@keyframes gentleBreath {
  0% { transform: scale(0.98); opacity: 0.95; }
  100% { transform: scale(1.02); opacity: 1; }
}
@keyframes softFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .draw { stroke-dashoffset: 0 !important; }
  .breath, .float-up { animation: none !important; transform: none !important; }
}
