/* ==================== 设计变量与基础重置 ==================== */
:root {
  --color-primary: #7B2CBF;
  --color-secondary: #C77DFF;
  --color-accent: #E0AAFF;
  --color-bg: #F5F7FA;
  --color-surface: rgba(255, 255, 255, 0.62);
  --color-surface-hover: rgba(255, 255, 255, 0.88);
  --color-text: #1A1A2E;
  --color-text-muted: #5A5A7A;
  --color-border: rgba(123, 44, 191, 0.12);
  --color-success: #10B981;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 40px rgba(123, 44, 191, 0.08);
  --shadow-float: 0 16px 48px rgba(123, 44, 191, 0.12);
  --font-main: system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spacing-section: clamp(3rem, 7vw, 6rem);
  --container-width: 1140px;
  --transition-base: 0.25s 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);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-secondary); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 4px; border-radius: var(--radius-sm); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }

/* ==================== 布局容器 ==================== */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.section { padding: var(--spacing-section) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(200,140,255,0.06) 0%, rgba(255,255,255,0) 100%); }
.grid-2 { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.grid-3 { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ==================== 排版系统 ==================== */
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: clamp(1rem, 2vw, 1.5rem); color: var(--color-text); }
.section-desc { font-size: clamp(1rem, 1.8vw, 1.125rem); color: var(--color-text-muted); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 640px; text-wrap: balance; }
.text-highlight { background: linear-gradient(90deg, rgba(123,44,191,0.08), rgba(199,125,255,0.12)); padding: 0.2em 0.4em; border-radius: var(--radius-sm); }

/* ==================== 组件：按钮 ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; font-size: 1rem; font-weight: 500; border-radius: var(--radius-md);
  border: none; cursor: pointer; transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff; box-shadow: 0 4px 16px rgba(123,44,191,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,44,191,0.35); background: linear-gradient(135deg, #6B21A8, #B060E0); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: var(--color-surface-hover); border-color: var(--color-secondary); }

/* ==================== 组件：卡片与玻璃层 ==================== */
.card {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); background: var(--color-surface-hover); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background: rgba(123,44,191,0.08); color: var(--color-primary); }
.card-title { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card-body { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.65; }

/* ==================== 组件：表格 ==================== */
.table-wrapper { overflow-x: auto; margin-top: 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); backdrop-filter: blur(8px); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
th { background: rgba(123,44,191,0.04); font-weight: 600; color: var(--color-primary); }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 500; }

/* ==================== 组件：FAQ ==================== */
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 1rem; overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 500; user-select: none; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--color-secondary); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.25rem; color: var(--color-text-muted); line-height: 1.7; }

/* ==================== 组件：进度环动画 ==================== */
.progress-ring { transform: rotate(-90deg); transform-origin: center; }
.progress-ring__circle {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s ease-out;
  fill: none;
  stroke-linecap: round;
}
.anim-draw-1 { animation: drawProgress 6s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate; }
.anim-draw-2 { animation: drawProgress 8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate 1s; }
.anim-draw-3 { animation: drawProgress 7s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate 2s; }
.anim-slow-drift { animation: drift 12s ease-in-out infinite alternate; }
.anim-pulse { animation: pulse 4s ease-in-out infinite; }

@keyframes drawProgress {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}
@keyframes drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ==================== 页头与导航 ==================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.75); backdrop-filter: blur(16px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.nav { display: none; gap: 1.5rem; }
@media (min-width: 800px) { .nav { display: flex; } }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--color-text-muted); padding: 0.4rem 0; position: relative; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--color-secondary); border-radius: 2px; }

/* ==================== 页脚 ==================== */
.site-footer { background: #111827; color: #CBD5E1; padding: clamp(2rem, 4vw, 3rem) 0; margin-top: var(--spacing-section); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: #94A3B8; font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; color: #64748B; }

/* ==================== 移动端适配微调 ==================== */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
}

/* ==================== 减少动态效果支持 ==================== */
@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;
  }
  .progress-ring__circle, .anim-draw-1, .anim-draw-2, .anim-draw-3, .anim-slow-drift, .anim-pulse {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}
