/* =========================================================
   派霏尔宠艺学院 · base.css
   设计 Token + 重置 + 排版 + 通用组件（按钮/栅格/卡片/标题）
   断点：手机 <640px · 平板 640–1024px · 桌面 >1024px
   ========================================================= */

/* ---------- 设计 Token ---------- */
:root {
  /* 品牌色 —— 主色 #FECA3B（明黄）：只做「面」，文字一律用深色配它 */
  --brand:        #FECA3B;   /* 主色：按钮/色块底，配 --brand-ink 文字，10.9:1 */
  --brand-ink:    #2B1A12;   /* 落在主色面上的文字（近黑暖棕） */
  --brand-deep:   #8A6A00;   /* 白/浅底上的文字、图标，5.07:1 AA 通过 */
  --brand-dark:   #6E5400;   /* 更深：正文链接 / hover，7.16:1 */
  --brand-soft:   #FFF4D6;   /* 浅底：标签、图标底 */
  --brand-tint:   #FFFAEA;   /* 更浅底：整块 section */
  --brand-lift:   #FFE08A;   /* 亮黄浅调，仅装饰（光晕/渐变） */

  /* 深色（英雄区 / 反色区块） */
  --deep:         #211D16;
  --deep-2:       #3B3324;
  --overlay:      rgba(42, 21, 12, .62);

  /* 文字 */
  --ink:          #2B1A12;   /* 标题 */
  --text:         #6B5A52;   /* 正文 */
  --text-soft:    #837066;   /* 次要 */
  --on-dark:      #FFFFFF;
  --on-dark-soft: rgba(255,255,255,.80);

  /* 背景 / 线条 */
  --bg:           #FFFFFF;
  --bg-soft:      #F9F6F3;
  --bg-warm:      #FBF6EF;
  --line:         #EDE6E0;
  --line-soft:    #F5F0EB;

  /* 点缀暖色（少量使用：星级、标签） */
  --accent:       #F0A45C;

  /* 形状 */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-pill:  999px;

  /* 投影 */
  --shadow-soft:  0 6px 22px rgba(66,33,16,.06);
  --shadow-card:  0 10px 30px rgba(66,33,16,.08);
  --shadow-hover: 0 22px 48px rgba(66,33,16,.14);

  /* 间距 */
  --section-pad:  clamp(56px, 8vw, 104px);
  --gutter:       clamp(16px, 4vw, 24px);
  --container:    1200px;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-latin: "Poppins", var(--font-sans);

  /* 动效 */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--brand-dark); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--brand-deep); }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 3.6vw, 38px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: clamp(17px, 1.6vw, 19px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 600; }

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--brand-tint); }
.section--warm { background: var(--bg-warm); }
.section--deep { background: var(--deep); color: var(--on-dark-soft); }
.section--deep h2, .section--deep h3 { color: var(--on-dark); }

/* 区块标题母题：小标签 + 大标题 + 描述 */
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 56px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--brand);
  border-radius: 2px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text); font-size: clamp(15px, 1.5vw, 17px); margin: 0; }
.section--deep .section-head p { color: var(--on-dark-soft); }
.section--deep .eyebrow { color: var(--brand); }
.section--deep .eyebrow::before { background: var(--brand); }

/* ---------- 栅格 ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* 主按钮：品牌填充 + hover 深色填充（呼应参考站的"扩散填充"母题） */
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 22px rgba(202,162,30,.32); }
.btn--primary:hover { background: var(--deep); color: #fff; box-shadow: 0 14px 30px rgba(42,21,12,.30); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand); color: var(--brand-ink); }

.btn--ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* 文字链接箭头 */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-dark); }
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card__body { padding: clamp(20px, 2.4vw, 28px); }
.card__media { position: relative; overflow: hidden; }
.card__media img { width: 100%; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }

/* ---------- 图片外框（占位图统一处理） ---------- */
.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x3  { aspect-ratio: 4 / 3; }
.media-3x4  { aspect-ratio: 3 / 4; }
.media { width: 100%; object-fit: cover; background: var(--bg-soft); }

/* ---------- 小标签 ---------- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
}
.tag--warm { color: #8a5a1e; background: #FCEEDC; }

/* ---------- 列表（带对勾） ---------- */
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6A00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- 无障碍 / 工具类 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- 滚动进场动画（仅在 JS 可用时隐藏，保证无 JS/蜘蛛可抓取） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 响应式栅格降级 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-head { text-align: left; }
  .btn { padding: 13px 24px; }
}
