/* 基础重置和变量 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* ===== 品牌主色（来自 Logo 蓝紫色） ===== */
  --primary: #6366F1;        /* Logo 主色（核心品牌色） */
  --primary-600: #5B5FC7;    /* 按钮 / 主要交互 */
  --primary-700: #4F46E5;    /* hover / active */

  /* ===== 能量点缀色 ===== */
  --secondary: #A5B4FC;      /* 高亮 / 辅助强调 */

  /* ===== 中性色 ===== */
  --neutral: #F5F5FF;        /* 淡紫背景 */
  --dark: #1E1B4B;           /* 深紫黑（标题/主文案） */
  --muted: #6B7280;          /* 次要说明文字 */

  /* ===== 链接色 ===== */
  --link: var(--primary-600);
}


/* 基础样式 */
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.5; color: #1f2937; }
.font-sans { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.font-inter { font-family: 'Inter', system-ui, sans-serif; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* 链接和按钮基础样式 */
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* 布局 */
.container { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* 定位 */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

/* 尺寸 */
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }
.min-h-screen { min-height: 100vh; }

/* 间距 */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.mt-8 { margin-top: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.pl-6 { padding-left: 1.5rem; }

/* 排版 */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.leading-tight { line-height: 1.25; }

/* 颜色 */
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }

/* 主题色（替换原 text-blue-500/text-blue-600） */
.text-blue-500 { color: var(--primary); }
.text-blue-600 { color: var(--primary-600); }

.text-primary { color: var(--primary); }
.text-dark { color: var(--dark); }
.text-muted { color: var(--muted); }

.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }

/* 主题背景色（替换原 bg-blue-600） */
.bg-blue-600 { background-color: var(--primary-600); }

.bg-neutral { background-color: var(--neutral); }

/* 边框和圆角 */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-800 { border-color: #1f2937; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* 阴影 */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }

/* 过渡 */
.transition { transition-property: color, background-color, border-color, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* 悬停效果 */
.hover\:bg-blue-700:hover { background-color: var(--primary-700); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }

/* 列表 */
.list-disc { list-style-type: disc; }

/* prose 样式 (用于文章内容) */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; }

/* 主题链接色（替换原 var(--primary) 的用法为更可控的 --link） */
.prose a { color: var(--link); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* 响应式 */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:w-1\/2 { width: 50%; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 自定义类 (来自内联style) */
/* hero 渐变：替换原固定蓝色为主题变量 */
.hero-gradient { background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%); }

.download-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* clamp 字体大小 */
.text-\[clamp\(1\.5rem\,3vw\,2rem\)\] { font-size: clamp(1.5rem, 3vw, 2rem); }

/* 图片 */
img { max-width: 100%; height: auto; }

/* 内联显示 */
.inline-block { display: inline-block; }
