/* ═══════════════════════════════════════════════
   Chrome 安全下载站 — 全局样式表
   风格：Stripe / Linear 极简科技风
   ═══════════════════════════════════════════════ */

/* ─── CSS 变量（:root） ─── */
:root {
  /* 主色调 */
  --color-primary: #1a73e8;
  --color-primary-dark: #1557b0;
  --color-primary-light: #e8f0fe;
  /* 背景 */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-hero: #f1f5f9;
  /* 文字 */
  --color-text: #202124;
  --color-text-secondary: #5f6368;
  --color-text-muted: #80868b;
  /* 边框与分割线 */
  --color-border: #dadce0;
  --color-border-light: #e8eaed;
  /* 功能色 */
  --color-success: #34a853;
  --color-warning: #f9ab00;
  --color-error: #ea4335;
  /* 间距体系（8px 基数） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  /* 阴影 */
  --shadow-card: 0 1px 3px rgba(60, 64, 67, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(60, 64, 67, 0.15);
  --shadow-nav: 0 1px 2px rgba(60, 64, 67, 0.1);
  /* 排版 */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
  /* 容器 */
  --container-max: 1200px;
  --container-padding: 24px;
}

/* ─── CSS Reset ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ─── 工具类 ─── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-padding-sm {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-muted {
  color: var(--color-text-muted);
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── 排版工具 ─── */
.heading-xl {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.heading-md {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.3;
}

.heading-sm {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.body-base {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ─── 动画关键帧 ─── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease forwards;
}

/* ─── 通用交互 ─── */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ─── 分隔线 ─── */
.divider {
  height: 1px;
  background-color: var(--color-border-light);
  margin: var(--space-8) 0;
}

/* ─── 标签 ─── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: 999px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* ─── 响应式断点工具（仅辅助） ─── */
@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --text-4xl: 28px;
    --text-3xl: 24px;
    --text-2xl: 20px;
  }

  .section-padding {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }

  .heading-xl {
    font-size: var(--text-3xl);
  }

  .heading-lg {
    font-size: var(--text-2xl);
  }
}
