/* =========================================
   WhatsApp 品牌落地站 · 全局共享样式
   ========================================= */

/* ---------- 设计变量 ---------- */
:root {
  --color-bg: #fffaf5;
  --color-surface: #ffffff;
  --color-primary: #e85d75;
  --color-primary-hover: #d94a63;
  --color-secondary: #f7a072;
  --color-accent-light: #ffe0d6;
  --color-text: #2c2c2c;
  --color-text-secondary: #555555;
  --color-text-muted: #777777;
  --color-border: #e6ddd5;
  --color-focus: #e85d75;

  --font-main: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 32px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 4px 12px rgba(232, 93, 117, 0.25);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;

  --container-width: 1120px;
  --header-height: 64px;
}

/* ---------- 基础重置 & 排版 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* 流体字号 */
.display-text {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
.h1 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); line-height: 1.2; font-weight: 700; }
.h2 { font-size: clamp(1.5rem, 2.5vw + 0.4rem, 2rem); line-height: 1.25; font-weight: 600; margin-bottom: var(--space-md); }
.h3 { font-size: clamp(1.125rem, 1.5vw + 0.3rem, 1.35rem); line-height: 1.35; font-weight: 600; }
.p-body { font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem); line-height: 1.75; color: var(--color-text-secondary); }
.small-text { font-size: 0.875rem; color: var(--color-text-muted); }

/* ---------- 布局容器 ---------- */
.container { width: 100%; max-width: var(--container-width); margin-inline: auto; padding-inline: var(--space-lg); }
.section { padding-block: var(--space-3xl); position: relative; }
.grid-auto { display: grid; gap: var(--space-xl); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- 头部与导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 250, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: var(--space-sm); }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.125rem; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: var(--space-lg); align-items: center; }
.nav-link { font-weight: 500; position: relative; padding-block: 4px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--color-primary); border-radius: 2px;
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-xs); }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); margin-block: 4px; transition: 0.2s; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--color-surface); flex-direction: column; padding: var(--space-lg); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: 0.75rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: var(--shadow-button);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(232, 93, 117, 0.35); }
.btn-outline {
  background: transparent; border: 1.5px solid var(--color-border); color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- 卡片与通用组件 ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-xl); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.icon-box {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--color-accent-light); color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.icon-box svg { width: 22px; height: 22px; stroke-width: 1.8; }

/* 表格 */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--space-md); text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f8f3ef; font-weight: 600; font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }

/* FAQ (Details/Summary) */
details { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); margin-bottom: var(--space-md); transition: border-color 0.2s; }
details[open] { border-color: var(--color-primary); }
summary {
  padding: var(--space-md) var(--space-lg); cursor: pointer; font-weight: 600; font-size: 1.05rem;
  list-style: none; position: relative; padding-right: 2.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--color-primary); transition: transform 0.2s;
}
details[open] summary::after { content: "−"; }
.details-content { padding: 0 var(--space-lg) var(--space-lg); line-height: 1.7; color: var(--color-text-secondary); }

/* 焦点可见性 */
*:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- SVG 动效 ---------- */
.svg-canvas { width: 100%; height: auto; overflow: visible; }
.star { transform-box: fill-box; transform-origin: center; }
.line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes connectDraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.star-1 { animation: twinkle 6s ease-in-out infinite 0.2s; }
.star-2 { animation: twinkle 5s ease-in-out infinite 1.1s; }
.star-3 { animation: twinkle 7s ease-in-out infinite 2s; }
.line-anim { animation: connectDraw 4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.float-element { animation: floatSlow 6s ease-in-out infinite; }
.pulse-element { animation: pulseSoft 8s ease-in-out infinite; }

/* 减少动态效果 */
@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; }
}

/* ---------- 页脚 ---------- */
.site-footer { background: #f4ede7; border-top: 1px solid var(--color-border); padding-block: var(--space-2xl); margin-top: var(--space-2xl); }
.footer-grid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: var(--space-md); color: var(--color-text); }
.footer-col a { display: block; padding-block: 0.35rem; color: var(--color-text-secondary); font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-primary); }
.copyright { text-align: center; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.85rem; }
