/* =========================================
   全局设计变量与基础重置
   ========================================= */
:root {
  --color-primary: #6C4CE7;
  --color-primary-light: #8B6CF2;
  --color-secondary: #E84D93;
  --color-secondary-light: #F472B6;
  --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-accent: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary-light));
  
  --bg-page: #F8F9FC;
  --bg-surface: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.65);
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow-card: 0 12px 32px rgba(108, 76, 231, 0.10);
  --shadow-hover: 0 16px 40px rgba(232, 77, 147, 0.15);
  
  --text-main: #1E1E2A;
  --text-muted: #5A5A6B;
  --text-inverse: #FFFFFF;
  
  --font-main: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --spacing-unit: clamp(1rem, 0.8rem + 0.5vw, 1.5rem);
  
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition-base); }
ul, ol { list-style: none; }

/* =========================================
   布局容器与网格
   ========================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
}
.section-title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-wrap: balance;
  letter-spacing: 0.02em;
}
.section-desc {
  color: var(--text-muted);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.15rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 800px;
  text-wrap: pretty;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* =========================================
   玻璃质感卡片与通用组件
   ========================================= */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: white;
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.8rem;
  background: var(--gradient-brand);
  color: var(--text-inverse);
  font-weight: 600; font-size: 1rem;
  border-radius: 50px;
  border: none; cursor: pointer;
  transition: var(--transition-base);
  box-shadow: 0 4px 12px rgba(108, 76, 231, 0.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 77, 147, 0.35); }
.btn:focus-visible { outline: 3px solid var(--color-secondary-light); outline-offset: 2px; }
.btn-outline {
  background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); box-shadow: none;
}
.btn-outline:hover { background: rgba(108, 76, 231, 0.05); }

/* =========================================
   表单项与表格
   ========================================= */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border-glass); }
table { width: 100%; border-collapse: collapse; min-width: 600px; background: var(--bg-surface); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); }
th { background: rgba(108, 76, 231, 0.05); font-weight: 600; color: var(--color-primary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.5); }

/* =========================================
   FAQ 样式
   ========================================= */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item details {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  transition: var(--transition-base);
}
.faq-item summary {
  font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-weight: 300; font-size: 1.4rem; color: var(--color-primary); transition: var(--transition-base);
}
.faq-item details[open] summary::after { content: "−"; }
.faq-item details[open] { background: rgba(108, 76, 231, 0.04); border-color: var(--color-primary-light); }
.faq-item p { margin-top: 1rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* =========================================
   页头与页脚
   ========================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.8rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 1.25rem; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-primary); }
.footer {
  background: var(--text-main); color: rgba(255,255,255,0.8); padding: 3rem 0; margin-top: 4rem;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer-link { color: var(--color-secondary-light); }
.footer-link:hover { color: white; }

/* =========================================
   SVG 动效核心规则
   ========================================= */
.svg-draw {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@keyframes drawLine {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes gentleBreathe {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.animate-draw { animation: drawLine 2.2s ease-out forwards; }
.animate-breathe { animation: gentleBreathe 5s ease-in-out infinite; }
.transform-center { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .animate-draw, .animate-breathe { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 768px) {
  .nav-links { display: none; } /* 移动端简化导航 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
}
