/* ==========================================
   全局设计变量与基础重置
   ========================================== */
:root {
  /* 色彩系统：浅色编辑风 + 克制中性灰阶 + WhatsApp 品牌绿点缀 */
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text-main: #111827;
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-accent: #25d366;
  --color-accent-hover: #1da851;
  --color-accent-bg: #ecfdf5;
  
  /* 字体栈：衬线标题 + 无衬线正文 */
  --font-heading: "Playfair Display", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  
  /* 间距系统 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* 圆角与阴影 */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  /* 容器最大宽度 */
  --container-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.65;
  -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;
}

/* ==========================================
   排版系统 (Fluid Type)
   ========================================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

h1 { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw + 0.25rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem); }
p  { font-size: clamp(1rem, 1.2vw + 0.25rem, 1.125rem); }

.section-title {
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.grid-auto {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================
   导航与页头页脚
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.footer h4 {
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.footer ul li {
  margin-bottom: var(--space-xs);
}

.footer ul li a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer ul li a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  margin-top: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ==========================================
   按钮组件
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  border-color: var(--color-text-main);
  background-color: #f3f4f6;
}

/* ==========================================
   卡片与表格
   ========================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--color-text-muted);
}

tr:last-child td {
  border-bottom: none;
}

/* ==========================================
   FAQ 组件 (<details>/<summary>)
   ========================================== */
.faq-list {
  display: grid;
  gap: var(--space-sm);
}

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  transition: border-color 0.2s ease;
}

details[open] {
  border-color: var(--color-accent);
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   SVG 动效关键帧
   ========================================== */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes drawLine {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

.orbit-svg circle,
.orbit-svg path {
  transform-box: fill-box;
  transform-origin: center;
}

.animate-breathe-1 { animation: breathe 6s ease-in-out infinite; }
.animate-breathe-2 { animation: breathe 8s ease-in-out infinite 1s; }
.animate-breathe-3 { animation: breathe 10s ease-in-out infinite 2s; }
.animate-draw { animation: drawLine 4s linear infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ==========================================
   响应式适配
   ========================================== */
@media (max-width: 768px) {
  .nav-links { display: none; } /* 移动端简化处理，实际项目可加汉堡菜单 */
  :root { --space-lg: 3rem; --space-xl: 4rem; }
}
