/* ═══════════════════════════════════════════════
   Google Chrome 下载站 — 全局样式表
   自然生态清新绿主题
   ═══════════════════════════════════════════════ */

/* ── CSS 变量定义 ── */
:root {
  /* 背景 */
  --bg-primary: #f6fffe;
  --bg-secondary: #f0fdf4;
  --bg-hero: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 100%);

  /* 色彩 */
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-accent: #34d399;
  --color-accent-light: #d1fae5;
  --color-accent-medium: #a7f3d0;

  /* 文字 */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* 卡片 */
  --card-bg: #ffffff;
  --card-border: #d1fae5;
  --card-border-hover: #a7f3d0;
  --card-shadow: 0 4px 20px rgba(5, 150, 105, 0.06);
  --card-shadow-hover: 0 8px 30px rgba(5, 150, 105, 0.12);

  /* 按钮 */
  --btn-gradient: linear-gradient(135deg, #059669, #10b981);
  --btn-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);

  /* 导航 */
  --nav-height: 64px;
  --nav-scroll-bg: #ffffff;
  --nav-scroll-shadow: 0 1px 3px rgba(52, 211, 153, 0.3);

  /* 徽章 */
  --badge-bg: #d1fae5;
  --badge-text: #065f46;

  /* 警告/提示 */
  --warning-bg: #fef9c3;
  --warning-border: #fde68a;
  --warning-text: #92400e;

  /* 间距 */
  --section-gap: 80px;
  --container-max: 1200px;
  --container-pad: 24px;

  /* 圆角 */
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-badge: 9999px;
  --radius-input: 8px;

  /* 字体 */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 过渡 */
  --transition-default: all 0.3s ease-out;
}

/* ── 重置样式 ── */
*, *::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: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--color-primary-dark);
}

button {
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* ── 工具类 ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--section-gap) 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 背景纹理 ── */
.bg-texture {
  position: relative;
}

.bg-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(52, 211, 153, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(5, 150, 105, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse 100% 30% at 50% 100%, rgba(52, 211, 153, 0.025) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-texture > * {
  position: relative;
  z-index: 1;
}

/* ── 叶脉底纹 ── */
.leaf-pattern {
  position: relative;
  overflow: hidden;
}

.leaf-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-radial-gradient(
      circle at 0 0,
      transparent 0,
      transparent 40px,
      rgba(5, 150, 105, 0.015) 40px,
      rgba(5, 150, 105, 0.015) 41px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Spin 动画 ── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── 呼吸动画 ── */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ── 脉动动画 ── */
@keyframes pulse-green {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ── 淡入上移动画 ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 淡入动画 ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── 响应式断点 ── */
@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
    --container-pad: 16px;
  }

  .section-title {
    font-size: 26px;
  }
}
