/* ============================================================
   喵心洗 - 重置与基础排版
   ============================================================ */

/* —— 现代化重置 —— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--orange-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--orange-dark); }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: var(--lh-tight); font-weight: 700; color: var(--text-primary); }

/* —— 布局容器 —— */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* —— 区块通用 —— */
.section { padding: var(--space-2xl) 0; }
.section--alt { background-color: var(--bg-alt); }
.section--warm { background-color: var(--bg-warm); }
.section--orange { background: linear-gradient(135deg, var(--orange-primary), var(--orange-light)); color: #fff; }
.section--orange h2, .section--orange h3 { color: #fff; }

/* —— 区块标题 —— */
.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-xl); }
.section-header h2 { font-size: var(--fs-h2); margin-bottom: var(--space-sm); }
.section-header .section-sub { color: var(--text-secondary); font-size: var(--fs-h4); }
.section-header .section-tag {
  display: inline-block;
  background: var(--orange-lightest);
  color: var(--orange-primary);
  font-size: var(--fs-small);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
}

/* —— 通用工具类 —— */
.text-center { text-align: center; }
.text-orange { color: var(--orange-primary); }
.text-secondary { color: var(--text-secondary); }
.bg-warm { background-color: var(--bg-warm); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* —— 滚动入场动画初始态 —— */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* —— 选中高亮 —— */
::selection { background: var(--orange-primary); color: #fff; }

/* —— 滚动条 —— */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--orange-lighter); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-light); }
