/* 
 * WhatsApp 品牌落地站共享样式
 * 视觉系统：紫粉双色调 + 玻璃层次 + 圆体亲和字体
 */

:root {
  /* 核心色板 */
  --color-brand: #A855F7;       /* 紫色主调 */
  --color-brand-light: #C084FC;
  --color-accent: #EC4899;      /* 粉色点缀 */
  --color-bg-gradient-start: #FAF5FF;
  --color-bg-gradient-end: #FFF1F2;

  /* 文本颜色 */
  --text-main: #1E1B4B;         /* 深紫黑 */
  --text-secondary: #4B5563;
  --text-inverse: #FFFFFF;

  /* 玻璃拟态参数 */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px rgba(168, 85, 247, 0.12);
  
  /* 间距与排版 */
  --container-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 12px;
  --spacing-section: clamp(4rem, 8vw, 8rem);
  
  /* 动效 */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ================= 基础设置 ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "PingFang SC", "SF Pro SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 容器 */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* 通用排版 */
h1, h2, h3, h4 { line-height: 1.2; text-wrap: balance; letter-spacing: -0.02em; color: var(--text-main); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; position: relative; display: inline-block; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; max-width: 75ch; color: var(--text-secondary); }
p strong { color: var(--text-main); font-weight: 600; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }

img { max-width: 100%; height: auto; display: block; }

/* 装饰性背景光晕 */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

/* ================= 组件库 ================= */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-accent) 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* 玻璃卡片 */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

/* 表格样式 */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

th { background: rgba(168, 85, 247, 0.05); font-weight: 600; color: var(--text-main); }
tr:last-child th, tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(255, 255, 255, 0.4); }

/* FAQ Details/Summary */
details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

details[open] { border-color: rgba(168, 85, 247, 0.4); }

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-brand);
  transition: transform 0.3s;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* 列表 */
ul.clean-list {
  list-style: none;
}
ul.clean-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
ul.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* 分割线 */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
  margin: var(--spacing-section) 0;
  border: none;
}

/* ================= 页头页脚 ================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 0;
  transition: box-shadow 0.3s;
}

.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand-logo img {
  height: 36px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

nav a:hover, nav a[aria-current="page"] {
  color: var(--color-brand);
}

nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
}

@media (max-width: 768px) {
  nav { display: none; } /* 移动端简化导航 */
}

.site-footer {
  background: #ffffff;
  padding: 4rem 0 2rem;
  margin-top: var(--spacing-section);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-main); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-brand); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #f0f0f0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ================= SVG 动效系统 ================= */

/* 进度环描边动画 */
.anim-progress-ring {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawRing 6s linear infinite;
  transform-origin: center;
}

@keyframes drawRing {
  0% { stroke-dashoffset: 1; opacity: 0; }
  10% { opacity: 1; }
  90% { stroke-dashoffset: 1; opacity: 1; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}

/* 缓慢旋转 */
.spin-slow {
  animation: spinSlow 20s linear infinite;
  transform-origin: center;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 浮动呼吸 */
.float-y {
  animation: floatY 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { 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;
  }
  .float-y, .spin-slow, .anim-progress-ring { animation: none !important; }
}

/* ================= 页面特有样式覆盖 ================= */

/* Hero 区域 */
.hero-section {
  padding-top: calc(10vh + 80px);
  padding-bottom: var(--spacing-section);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { z-index: 2; }

.hero-visual svg {
  width: 100%;
  height: auto;
  max-height: 500px;
  filter: drop-shadow(0 20px 40px rgba(168, 85, 247, 0.15));
}

/* 功能网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-brand);
}

.feature-item p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0; }

/* 界面示意区 */
.interface-mockup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.mockup-window {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid #eee;
  aspect-ratio: 4/3;
}

.mockup-header {
  background: #f8f8f8;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.mock-dot.red { background: #ff605c; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }

.mock-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.msg-bubble { padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; max-width: 80%; }
.msg-in { background: #f0f0f0; color: #333; align-self: flex-start; border-top-left-radius: 2px; }
.msg-out { background: #EADCFE; color: #111; align-self: flex-end; border-top-right-radius: 2px; }

/* 下载引导区 */
.download-zone {
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: white;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-zone h2 { color: white; margin-bottom: 1rem; }
.download-zone p { color: rgba(255,255,255,0.9); }

.download-btn-large {
  display: inline-block;
  background: white;
  color: var(--color-brand);
  padding: 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 99px;
  margin-top: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.download-btn-large:hover {
  transform: scale(1.05);
}

/* 新闻卡片 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  border-top: 4px solid var(--color-brand);
}

.news-date {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: 1rem;
}

.read-more-link:hover { text-decoration: underline; }

/* 快速开始步骤 */
.steps-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  counter-reset: step-counter;
}

.step-item {
  flex: 1;
  min-width: 250px;
  position: relative;
  counter-increment: step-counter;
}

.step-item::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-brand);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { order: 2; }
  .hero-visual { order: 1; }
  .interface-mockup { grid-template-columns: 1fr; }
}
