/* ================================
   WhatsApp 品牌站 · 全局样式
   ================================ */
:root {
  --color-bg: #0b0814;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.1);
  --color-primary-start: #7c3aed;
  --color-primary-end: #e11d8a;
  --color-accent: #f472b6;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-focus: #a78bfa;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(124, 58, 237, 0.35);
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --space-base: 1rem;
  --container-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); line-height: 1.8; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }

/* 基础排版与容器 */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: 1.5rem; overflow-x: hidden; }
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  text-wrap: balance;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--color-text), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc { color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 680px; }

/* 页头与导航 */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 8, 20, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; letter-spacing: 0.05em; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-list { display: flex; gap: 2rem; }
.nav-link { position: relative; font-size: 0.95rem; font-weight: 500; padding: 0.25rem 0; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--color-primary-end); transition: width var(--transition); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--color-accent); }
.mobile-toggle { display: none; background: none; border: 1px solid var(--color-border); color: var(--color-text); padding: 0.5rem; border-radius: var(--radius-sm); cursor: pointer; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.6rem; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); border: none; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end)); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(225, 29, 138, 0.45); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-surface-hover); }

/* 网格与卡片 */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; transition: transform var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-4px); border-color: rgba(225, 29, 138, 0.4); }
.card-icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--color-accent); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; table-layout: fixed; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); word-break: break-word; }
.data-table th { background: rgba(124, 58, 237, 0.15); color: var(--color-accent); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* FAQ / Details */
.faq-list { display: grid; gap: 1rem; }
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition); }
details[open] { border-color: rgba(225, 29, 138, 0.3); }
summary { padding: 1.25rem; cursor: pointer; font-weight: 600; position: relative; list-style: none; display: flex; align-items: center; gap: 0.75rem; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+'; font-size: 1.25rem; color: var(--color-accent); font-weight: 400; transition: transform var(--transition); }
details[open] summary::before { transform: rotate(45deg); }
details p { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); line-height: 1.85; }

/* 页脚 */
.site-footer { margin-top: auto; background: rgba(0, 0, 0, 0.3); border-top: 1px solid var(--color-border); padding-block: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--color-accent); }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--color-accent); }
.copyright { text-align: center; color: var(--color-text-muted); font-size: 0.85rem; border-top: 1px solid var(--color-border); padding-top: 1.5rem; }

/* SVG 动效核心 */
.svg-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawStroke 4s ease-in-out infinite alternate, breathe 6s ease-in-out infinite; }
.svg-draw-fast { animation-duration: 2.5s; }
@keyframes drawStroke { 0% { stroke-dashoffset: 1; } 15% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }
.transform-center { transform-box: fill-box; transform-origin: center; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-list { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 1rem; gap: 1rem; }
  .nav-list.open { display: flex; }
  .mobile-toggle { display: block; }
  .grid-auto { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
