/* ============================================================
   鲜本 PetOrigin — 主样式 (style.css)
   主题：宠物天然粮 / 鲜食品牌 · 自然纯净 · 科学喂养
   色系：天然绿 #4A7C59 + 大地色 #D4C5A9 + 木色 #A98467 + 米白暖底
   风格：大留白 · 大圆角 · 食品营养手册感 · 亮色暖调
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 主色 */
  --green: #4A7C59;
  --green-dark: #3A6247;
  --green-deep: #2F5238;
  --green-light: #E9F1EB;
  --green-tint: #F4F8F5;

  /* 大地 / 木色 */
  --earth: #D4C5A9;
  --earth-light: #EAE0CC;
  --wood: #A98467;
  --wood-dark: #8B6B4F;

  /* 中性暖底 */
  --cream: #FAF6EE;
  --cream-dark: #F2EBDD;
  --white: #FFFFFF;

  /* 文字 */
  --text: #2C2B28;
  --text-muted: #6E6A60;
  --text-light: #9A948A;

  /* 边框 / 阴影 */
  --border: #EAE4D6;
  --border-soft: #F0EBE0;

  /* 圆角 */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* 阴影（柔和绿调） */
  --shadow-sm: 0 2px 10px rgba(74, 124, 89, 0.07);
  --shadow-md: 0 10px 32px rgba(74, 124, 89, 0.11);
  --shadow-lg: 0 18px 50px rgba(74, 124, 89, 0.14);

  /* 字体：西文 Manrope，中文 Noto Sans SC（思源黑体），系统兜底 */
  --font-heading: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-body: 'Manrope', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  /* 布局 */
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* 横向溢出裁剪：防止移动端 AOS 左右位移 / 装饰元素造成横向滚动（整体偏左）。
   clip 不产生滚动容器，因此不影响 .header 的 sticky 吸顶。 */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.3; font-weight: 700; }

:focus-visible { outline: 3px solid rgba(74, 124, 89, 0.4); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 3. 通用工具 ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--cream); }
.section--green { background: linear-gradient(160deg, #3A6247 0%, #2F5238 100%); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head--left { text-align: left; margin-left: 0; }
.section-eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--green); font-weight: 700; text-transform: uppercase;
  background: var(--green-light); padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--text); margin-bottom: 14px; }
.section-title em { font-style: normal; color: var(--green); }
.section-desc { color: var(--text-muted); font-size: 1rem; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.98rem; line-height: 1; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 46px;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(74, 124, 89, 0.28); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(74, 124, 89, 0.34); }
.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.85); }
.btn--outline:hover { background: #fff; color: var(--green); transform: translateY(-2px); }
.btn--ghost { background: var(--green-light); color: var(--green-dark); }
.btn--ghost:hover { background: #DCE8DF; transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: 0.88rem; min-height: 40px; }

/* ---------- 4. 头部 Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(44, 43, 40, 0.07); }
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.header__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__logo-mark {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(74, 124, 89, 0.3);
}
.header__logo-mark i { font-size: 1.1rem; }
.header__logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.header__logo-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--text); }
.header__logo-sub { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--green); text-transform: uppercase; }

.header__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header__nav-item { position: relative; }
.header__nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 0.95rem; font-weight: 600; color: var(--text);
  border-radius: var(--radius-sm); white-space: nowrap;
}
.header__nav-link:hover { color: var(--green); background: var(--green-tint); }
.header__nav-link.active { color: var(--green); }
.header__nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 3px; background: var(--green); border-radius: 3px;
}
.header__nav-link .fa-chevron-down { font-size: 0.6rem; transition: transform .2s ease; }
.header__nav-item:hover .fa-chevron-down { transform: rotate(180deg); }

/* 下拉菜单（13.3：高 z-index） */
.header__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 200px; background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px; z-index: 1200;
  opacity: 0; visibility: hidden; transition: all .22s ease;
  border: 1px solid var(--border-soft);
}
.header__nav-item:hover .header__dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.header__dropdown a {
  display: block; padding: 11px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
}
.header__dropdown a:hover { background: var(--green-tint); color: var(--green); }

/* 无子栏目的导航项：隐藏下拉箭头与空下拉框（通过 [nav:soncount] 标记） */
.header__nav-item[data-soncount="0"] .fa-chevron-down { display: none; }
.header__nav-item[data-soncount="0"] .header__dropdown { display: none; }

/* 右侧 CTA + 汉堡（汉堡独立，13.4） */
.header__cta { flex-shrink: 0; }
.hamburger {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--green-tint); transition: background .2s ease;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s ease; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: min(320px, 82vw); height: 100vh;
  background: #fff; z-index: 2000; transition: right .3s ease;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12); overflow-y: auto;
}
.mobile-nav.is-open { right: 0; }
.mobile-nav__inner { padding: 24px 20px 40px; }
.mobile-nav__link {
  display: block; padding: 13px 8px; font-size: 1.02rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav__link:hover { color: var(--green); }
.mobile-nav__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 8px; font-size: 1.02rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav__toggle:hover { color: var(--green); }
.mobile-nav__toggle .fa-chevron-down { font-size: 0.7rem; color: var(--text-light); transition: transform .25s ease; }
/* 无子栏目的导航项：隐藏箭头，父级直接跳转 */
.mobile-nav__item[data-soncount="0"] .fa-chevron-down { display: none; }
.mobile-nav__sub { display: none; padding: 4px 0 8px 16px; }
.mobile-nav__sub.is-open { display: block; }
.mobile-nav__sub a { display: block; padding: 10px 8px; font-size: 0.92rem; color: var(--text-muted); }
.mobile-nav__sub a:hover { color: var(--green); }
.mobile-nav__overlay {
  position: fixed; inset: 0; background: rgba(44, 43, 40, 0.4); z-index: 1500;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.mobile-nav__overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- 5. 内页 Banner ---------- */
.inner-banner {
  position: relative; padding: 78px 0; text-align: center; overflow: hidden;
  background: linear-gradient(150deg, #E9F1EB 0%, #F4F8F5 55%, #EAE0CC 100%);
}
.inner-banner::before, .inner-banner::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 124, 89, 0.08), transparent 70%);
}
.inner-banner::before { width: 420px; height: 420px; top: -180px; left: -120px; }
.inner-banner::after { width: 360px; height: 360px; bottom: -160px; right: -100px; }
.inner-banner__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); position: relative; z-index: 1; }
.inner-banner__sub { color: var(--text-muted); margin-top: 10px; position: relative; z-index: 1; }

/* 面包屑 */
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--border-soft); }
.breadcrumb__inner { padding: 13px 20px; font-size: 0.88rem; color: var(--text-muted); max-width: var(--container); margin: 0 auto; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-light); }
.breadcrumb .current { color: var(--green); font-weight: 600; }

/* ---------- 6. 首页 Banner ---------- */
.hero { position: relative; overflow: hidden; }
.hero .swiper { height: 520px; }
.hero__slide { position: relative; height: 100%; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__mask { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(47, 82, 56, 0.72) 0%, rgba(47, 82, 56, 0.28) 60%, rgba(47, 82, 56, 0.05) 100%); }
.hero__content {
  position: relative; z-index: 2; max-width: var(--container); margin: 0 auto;
  padding: 0 20px; height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.hero__tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); color: #fff; padding: 8px 18px; border-radius: var(--radius-pill); font-size: 0.84rem; letter-spacing: 0.08em; margin-bottom: 22px; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; font-weight: 800; line-height: 1.2; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2); }
.hero__desc { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; max-width: 520px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .swiper-pagination-bullet { background: #fff; opacity: 0.5; width: 8px; height: 8px; }
.hero .swiper-pagination-bullet-active { opacity: 1; background: #fff; width: 24px; border-radius: 4px; }

/* ---------- 7. 品牌数据 ---------- */
.stats { padding: 56px 0; background: var(--green-light); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat__num { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--green-dark); display: flex; align-items: baseline; justify-content: center; }
.stat__num .suffix { font-size: 1.2rem; margin-left: 2px; color: var(--green); }
.stat__label { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }

/* ---------- 8. 产品分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 34px 26px; text-align: center; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: block;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--earth-light); }
.cat-card__icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px;
  background: linear-gradient(135deg, var(--green-light), var(--green-tint));
  display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 1.7rem;
  transition: transform .3s ease;
}
.cat-card:hover .cat-card__icon { transform: scale(1.08) rotate(-4deg); }
.cat-card__name { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.cat-card__desc { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- 9. 产品卡片（明星产品 / 列表） ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.product-card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-dark); }
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__thumb img { transform: scale(1.06); }
.product-card__badge {
  position: absolute; top: 14px; left: 14px; background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill);
}
.product-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.product-card__nutri { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; flex: 1; }
.product-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 0.9rem; }
.product-card__more i { transition: transform .2s ease; }
.product-card:hover .product-card__more i { transform: translateX(4px); }

/* ---------- 10. 溯源区块 ---------- */
.trace { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.trace__media { position: relative; }
.trace__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.trace__media::after {
  content: ''; position: absolute; right: -18px; bottom: -18px; width: 60%; height: 60%;
  background: var(--earth-light); border-radius: var(--radius-lg); z-index: -1;
}
.trace__features { margin-top: 28px; display: grid; gap: 18px; }
.trace__feature { display: flex; gap: 16px; align-items: flex-start; }
.trace__feature-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.trace__feature h4 { font-size: 1.02rem; margin-bottom: 3px; }
.trace__feature p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- 11. 四项承诺（营养科学） ---------- */
.pledge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pledge-card {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 28px; text-align: center;
  border: 1px solid var(--border-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.pledge-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pledge-card__icon {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.pledge-card h4 { font-size: 1.08rem; margin-bottom: 8px; }
.pledge-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- 12. 文章（指南/新闻）横排卡 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.news-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-dark); }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__thumb img { transform: scale(1.06); }
.news-card__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card__date { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.news-card__title { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; line-height: 1.45; }
.news-card__desc { font-size: 0.9rem; color: var(--text-muted); flex: 1; }

/* 评价卡 */
.review-card {
  background: #fff; border-radius: var(--radius-lg); padding: 30px 28px;
  border: 1px solid var(--border-soft); transition: transform .25s ease, box-shadow .25s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.review-card__stars { color: #E8B54A; margin-bottom: 14px; font-size: 0.95rem; }
.review-card__text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; }
.review-card__user { display: flex; align-items: center; gap: 14px; }
.review-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cream-dark); }
.review-card__name { font-weight: 700; font-size: 0.95rem; }
.review-card__pet { font-size: 0.82rem; color: var(--text-light); }

/* ---------- 13. CTA 区块 ---------- */
.cta { text-align: center; color: #fff; }
.cta__title { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta__desc { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 32px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 14. 页脚 Footer ---------- */
.footer { background: #2F5238; color: rgba(255, 255, 255, 0.82); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 44px;
  padding: 64px 0 44px;
}
.footer__brand-desc { font-size: 0.92rem; line-height: 1.8; margin: 18px 0 22px; color: rgba(255, 255, 255, 0.7); }
.footer__logo { display: flex; align-items: center; gap: 12px; }
.footer__logo-mark {
  width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer__logo-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer__logo-sub { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--earth); text-transform: uppercase; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s ease;
}
.footer__social a:hover { background: var(--green); transform: translateY(-3px); }
.footer__col-title { color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.footer__links a { display: block; padding: 6px 0; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer__links a:hover { color: #fff; padding-left: 6px; }
.footer__contact-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.footer__contact-item i { color: var(--earth); margin-top: 5px; }
.footer__qrcode {
  width: 120px; height: 120px; background: #fff; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; text-align: center;
}
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__bottom-inner {
  max-width: var(--container); margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.86rem; color: rgba(255, 255, 255, 0.6);
}
.footer__bottom a { color: rgba(255, 255, 255, 0.6); }
.footer__bottom a:hover { color: #fff; }

/* ---------- 15. 内页布局 ---------- */
.page-main { padding: 56px 0 84px; }
.page-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* 文章列表行 */
.list-row { display: flex; gap: 24px; background: #fff; border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border-soft); margin-bottom: 20px; transition: all .25s ease; }
.list-row:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.list-row__thumb { width: 220px; height: 150px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: var(--cream-dark); }
.list-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row__body { flex: 1; display: flex; flex-direction: column; }
.list-row__title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.list-row__date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 8px; }
.list-row__desc { font-size: 0.92rem; color: var(--text-muted); flex: 1; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600; color: var(--text-muted);
  background: #fff; border: 1px solid var(--border-soft); transition: all .2s ease;
}
.pagination a:hover { color: var(--green); border-color: var(--green); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.no-data { text-align: center; color: var(--text-light); padding: 60px 0; }

/* 产品详情 */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail__gallery { position: sticky; top: 100px; }
.product-detail__main-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-dark); aspect-ratio: 1; }
.product-detail__main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
.product-detail__price { font-size: 1.6rem; font-weight: 800; color: var(--green); margin: 16px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); font-size: 0.94rem; }
.spec-table th { width: 120px; color: var(--text-muted); font-weight: 600; background: var(--green-tint); }
.spec-table td { color: var(--text); }

/* 文章详情 */
.article { background: #fff; border-radius: var(--radius-lg); padding: 44px 48px; border: 1px solid var(--border-soft); }
.article__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 16px; }
.article__meta { display: flex; gap: 20px; color: var(--text-light); font-size: 0.88rem; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); margin-bottom: 28px; flex-wrap: wrap; }
.article__body { font-size: 1rem; line-height: 1.9; color: var(--text); }
.article__body img { border-radius: var(--radius-md); margin: 20px auto; }
.article__body p { margin-bottom: 16px; }
.article__body h2, .article__body h3 { margin: 28px 0 14px; }

/* 单页内容（关于/溯源/联系/购买） */
.rich-content { background: #fff; border-radius: var(--radius-lg); padding: 44px 48px; border: 1px solid var(--border-soft); }
.rich-content p { margin-bottom: 16px; color: var(--text); line-height: 1.9; }
.rich-content img { border-radius: var(--radius-md); margin: 20px auto; max-width: 100%; max-height: 460px; width: auto; height: auto; }
.rich-content h2, .rich-content h3 { margin: 26px 0 14px; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-cards { display: grid; gap: 18px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px; }
.contact-card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-card h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--text-muted); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; transition: border-color .2s ease; background: #fff;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---------- 16. 搜索 ---------- */
.search-bar { display: flex; gap: 12px; margin-bottom: 40px; }
.search-bar input { flex: 1; padding: 15px 20px; border: 1.5px solid var(--border); border-radius: var(--radius-pill); font-size: 0.98rem; }
.search-bar input:focus { outline: none; border-color: var(--green); }

/* ---------- 17. 返回顶部 / 在线客服 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 88px; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--green); box-shadow: var(--shadow-md); z-index: 900;
  display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .25s ease;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.kefu {
  position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(74, 124, 89, 0.4); z-index: 900;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  transition: transform .2s ease;
}
.kefu:hover { transform: scale(1.08); }

/* ---------- 18. 懒加载占位 ---------- */
.lazy-img { opacity: 0; transition: opacity .5s ease, transform .5s ease; }
.lazy-img.is-loaded { opacity: 1; }

/* ---------- 19. 动画辅助 ---------- */
[data-aos] { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1024px) {
  .cat-grid, .pledge-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .trace { grid-template-columns: 1fr; gap: 36px; }
  .product-detail, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  /* 移动端关闭 AOS 左右位移动画，消除其 translateX(±100px) 带来的横向溢出 */
  [data-aos="fade-left"], [data-aos="fade-right"] { transform: none !important; }
  .header__nav { display: none; }
  .header__cta { display: none; }
  /* 移动端：汉堡按钮自身撑到最右（nav 的 margin-left:auto 随隐藏失效，需在此补回） */
  .hamburger { display: flex; margin-left: auto; }
  .section { padding: 60px 0; }
  /* 品牌数据：移动端压缩（缩小纵向留白、间距与数字字号，仅移动端生效） */
  .stats { padding: 30px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat__num { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .stat__num .suffix { font-size: 1rem; }
  .stat__label { font-size: 0.84rem; margin-top: 4px; }
  /* 原料溯源：移动端图片缩小并居中 */
  .trace__media { max-width: 85%; margin: 0 auto; }
  /* 产品系列：移动端（手机/平板）2×2 紧凑卡片（图标+名称+副标题），PC 保持 4 列 */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 12px 8px; border-radius: 12px; }
  .cat-card__icon { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 6px; font-size: 1.05rem; }
  .cat-card__name { font-size: 0.9rem; margin-bottom: 2px; }
  .cat-card__desc { display: block; font-size: 0.72rem; }
  /* 联系我们：4 个联系卡片一行排列（移动端紧凑化：图标上置、文字缩小居中） */
  .contact-cards { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .contact-card { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 4px; border-radius: var(--radius-md); }
  .contact-card__icon { width: 32px; height: 32px; border-radius: 10px; font-size: 0.8rem; }
  .contact-card h4 { font-size: 0.66rem; margin-bottom: 0; }
  .contact-card p { font-size: 0.6rem; line-height: 1.3; overflow-wrap: anywhere; }
  .hero .swiper { height: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
  .list-row__thumb { width: 120px; height: 96px; }
  .article, .rich-content { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  /* 购买页：产品一行两个（移动端卡片紧凑化） */
  .product-grid.shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid.shop-grid .product-card__body { padding: 12px 10px 14px; }
  .product-grid.shop-grid .product-card__name { font-size: 0.92rem; margin-bottom: 4px; }
  .product-grid.shop-grid .product-card__nutri { font-size: 0.78rem; margin-bottom: 8px; }
  .product-grid.shop-grid .product-card__more { font-size: 0.78rem; }
  /* 明星产品：移动端只保留前 2 个产品，一行两个 */
  .section--tint .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section--tint .product-grid > *:nth-child(n+3) { display: none; }
  /* 营养科学：4 个承诺卡一行排列（移动端紧凑化：隐藏描述、图标与标题缩小） */
  .pledge-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .pledge-card { padding: 12px 4px; border-radius: var(--radius-md); }
  .pledge-card__icon { width: 38px; height: 38px; margin: 0 auto 6px; font-size: 1rem; }
  .pledge-card h4 { font-size: 0.7rem; line-height: 1.25; margin-bottom: 0; }
  .pledge-card p { display: none; }
  /* 喂养指南 / 客户评价 / 新闻资讯：移动端每区只留 1 条，整体紧凑压缩 */
  .section--compact { padding: 24px 0; }
  .section--compact .section-head { margin-bottom: 14px; }
  .section--compact .section-eyebrow { padding: 4px 12px; margin-bottom: 8px; font-size: 0.68rem; }
  .section--compact .section-title { font-size: 1.3rem; margin-bottom: 0; }
  .section--compact .news-grid > :nth-child(n+2) { display: none; }
  /* 新闻卡：改横向紧凑（小图在左、内容在右） */
  .section--compact .news-card { flex-direction: row; align-items: center; gap: 14px; }
  .section--compact .news-card__thumb { aspect-ratio: auto; width: 112px; height: 84px; border-radius: 10px; flex-shrink: 0; }
  .section--compact .news-card__body { padding: 0; }
  .section--compact .news-card__date { font-size: 0.72rem; margin-bottom: 4px; }
  .section--compact .news-card__title { font-size: 0.94rem; margin-bottom: 0; line-height: 1.4; }
  .section--compact .news-card__desc { font-size: 0.76rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* 评价卡：紧凑化 */
  .section--compact .review-card { padding: 14px 16px; }
  .section--compact .review-card__stars { margin-bottom: 8px; font-size: 0.8rem; }
  .section--compact .review-card__text { font-size: 0.82rem; line-height: 1.6; margin-bottom: 10px; }
  .section--compact .review-card__avatar { width: 36px; height: 36px; }
  .section--compact .review-card__name { font-size: 0.85rem; }
  .section--compact .review-card__pet { font-size: 0.74rem; }
  /* 底部：产品系列 / 快速导航 各自「标题 + 链接」横排成一行，其余区块整行排列 */
  .footer__grid { grid-template-columns: 1fr; }
  .footer__grid > :nth-child(2),
  .footer__grid > :nth-child(3) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .footer__grid > :nth-child(2) .footer__col-title,
  .footer__grid > :nth-child(3) .footer__col-title { margin-bottom: 0; }
  .footer__links { display: flex; flex-wrap: wrap; flex: 1 1 0; min-width: 0; gap: 4px 18px; }
  .footer__links a { padding: 4px 0; }
  .list-row { flex-direction: column; }
  .list-row__thumb { width: 100%; height: 160px; }
  .hero .swiper { height: 360px; }
  .btn { padding: 13px 26px; }
}

/* ---------- 21. 尊重减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
