/* ============================================================
   PawHeart 宠物繁育 — 全站样式
   风格：暖色杂志感、大留白、大圆角、米白+金色+暖棕
   主色系：米白#FDF8F0 / 浅灰 / 金色#C9A84C / 暖棕#8B6B4A
   排版：大留白杂志感，像宠物写真集
   依赖：Font Awesome 6, Swiper, AOS
   ============================================================ */

/* ===== Google Fonts Import ===== */


/* ===== CSS Variables ===== */
:root {
  /* 主色系 */
  --cream:        #FDF8F0;
  --cream-dark:   #F5EDE0;
  --gold:         #C9A84C;
  --gold-light:   #D4BC70;
  --gold-dark:    #A88830;
  --warm-brown:   #8B6B4A;
  --brown-light:  #A08464;
  --brown-dark:   #6B4F35;

  /* 功能色 */
  --text-primary:   #3D3025;
  --text-secondary: #6B5D50;
  --text-muted:     #9B8D80;
  --text-inverse:   #FFFFFF;
  --bg-page:        #FDF8F0;
  --bg-card:        #FFFFFF;
  --bg-warm:        #F5EDE0;
  --border:         #E8DDD0;
  --border-light:   #F0E8DC;
  --border-gold:    #C9A84C;

  /* 圆角 */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm:   0 1px 3px rgba(139,107,74,0.06);
  --shadow-md:   0 4px 16px rgba(139,107,74,0.10);
  --shadow-lg:   0 8px 32px rgba(139,107,74,0.12);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.20);

  /* 字体 — 杂志感+温暖 */
  --font-body:   'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-heading: 'Cormorant Garamond', 'Noto Serif SC', 'Georgia', 'STSong', serif;
  --font-hand:   'Cormorant Garamond', 'KaiTi', 'STKaiti', 'Georgia', italic;

  /* 间距 */
  --section-gap: 80px;
  --container-max: 1200px;

  /* 过渡 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol { list-style: none; }

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

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

/* ===== Container ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section ===== */
.section {
  padding: var(--section-gap) 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,248,240,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--warm-brown));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
}

.header__logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header__nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--warm-brown);
  background: var(--cream-dark);
}

.header__nav-item {
  position: relative;
}

/* Dropdown (13.3: z-index set) */
.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.header__dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.header__dropdown a:hover {
  background: var(--bg-warm);
  color: var(--warm-brown);
}

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-full);
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--gold);
  color: #fff;
}

/* Hamburger (13.4: 独立于 header__actions 外) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--warm-brown);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 105;
  padding: 80px 24px 24px;
  transition: right var(--transition);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open { right: 0; }

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav__overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-nav__link:hover {
  background: var(--bg-warm);
  color: var(--warm-brown);
}

.mobile-nav__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding-left: 20px;
}

.mobile-nav__sub.open { max-height: 300px; }

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mobile-nav__sub a:hover { color: var(--warm-brown); }

/* ===== Hero / Banner ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--brown-dark);
}

.hero .swiper { width: 100%; height: 100%; }

.hero__slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61,48,37,0.35) 0%,
    rgba(61,48,37,0.15) 50%,
    rgba(61,48,37,0.45) 100%
  );
  z-index: 2;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  width: 90%;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-pagination {
  position: absolute;
  bottom: 36px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  border-radius: 50%;
  transition: all var(--transition);
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn--outline-dark {
  background: transparent;
  color: var(--warm-brown);
  border: 2px solid var(--gold);
}

.btn--outline-dark:hover {
  background: var(--gold);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--warm-brown);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--bg-warm);
  border-color: var(--gold);
}

/* ===== Cards ===== */
.card {
  display: block;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-warm);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card__image img { transform: scale(1.05); }

.card__body {
  padding: 20px;
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card__meta i { color: var(--gold); }

.card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 8px;
}

/* ===== Feature Cards ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.feature-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--cream-dark), #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== List Grid ===== */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== Stats ===== */
.stats-section {
  background: var(--bg-warm);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Guide Section (左图右文) ===== */
.guide-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.guide-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-warm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,48,37,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

/* ===== Subscribe Card ===== */
.subscribe-card {
  background: linear-gradient(135deg, #fff, var(--cream-dark));
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 24px auto 0;
}

.subscribe-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.subscribe-form input:focus { border-color: var(--gold); }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--brown-dark), var(--warm-brown));
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.cta-section .section-tag { color: var(--gold-light); }
.cta-section .section-title { color: #fff; }

.cta-section__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

/* ===== Inner Banner ===== */
.inner-banner {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--brown-dark);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,48,37,0.5);
  z-index: 1;
}

.inner-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.inner-banner__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

.inner-banner__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}

/* ===== Breadcrumb ===== */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--warm-brown); }
.breadcrumb i { font-size: 0.65rem; margin: 0 8px; color: var(--border); }

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
}

.filter-bar a {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
  border: 1px solid var(--border-light);
}

.filter-bar a:hover,
.filter-bar a.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.pagination a:hover,
.pagination a.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
  display: block;
}

/* ===== Detail Page ===== */
.detail { max-width: 860px; margin: 0 auto; }

.detail__header {
  text-align: center;
  margin-bottom: 32px;
}

.detail__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.detail__meta-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.detail__meta-row i { color: var(--gold); margin-right: 4px; }

.detail__params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.detail__param {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
}

.detail__param-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail__param-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail__body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.detail__body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

.detail__body h2,
.detail__body h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail__pager a {
  color: var(--warm-brown);
  font-weight: 600;
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 56px;
  margin-bottom: 24px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== Gallery Thumbs (detail page) ===== */
.detail-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--cream-dark), #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
}

.contact-info__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group .required { color: #e74c3c; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
}

.form-control:focus { border-color: var(--gold); }

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239B8D80' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ===== Search ===== */
.search-box {
  text-align: center;
}

.search-form-row {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.search-input-wrap input:focus { border-color: var(--gold); }

/* Search Results */
.search-result-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  transition: all var(--transition);
}

.search-result-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.search-result-item__thumb {
  width: 140px;
  min-width: 140px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-warm);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info { flex: 1; }

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.search-result-item__date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.search-result-item__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
}

.tab-btn.active {
  color: var(--warm-brown);
  border-bottom-color: var(--gold);
}

.tab-panel.hidden { display: none; }

/* ===== Footer ===== */
.footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
}

.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer__links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold-light); }

.footer__contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer__contact-item i {
  color: var(--gold);
  margin-top: 4px;
  min-width: 16px;
}

.footer__qrcode {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-align: center;
}

/* Friends Links */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.friend-links__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.friend-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.friend-links a:hover { color: var(--gold-light); }

/* Footer Bottom */
.footer__bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 24px;
}

.footer__bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer__bottom-inner a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer__bottom-inner a:hover { color: var(--gold-light); }

/* ===== Back to Top ===== */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  cursor: pointer;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--gold-dark); }

/* ===== List Header ===== */
.list-header {
  text-align: center;
  margin-bottom: 40px;
}

.list-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* ===== Story Grid ===== */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.story-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.story-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-warm);
}

.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.story-card:hover .story-card__image img { transform: scale(1.05); }

.story-card__body {
  padding: 20px;
}

.story-card__pet {
  font-size: 0.82rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.story-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.story-card__quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

/* ===== Cert Badges ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.cert-item {
  padding: 32px 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.cert-item:hover { box-shadow: var(--shadow-md); }

.cert-item__icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.cert-item__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cert-item__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== About Intro ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro__text {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
}

.about-intro__text p { margin-bottom: 16px; }

.about-intro__quote {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--warm-brown);
  font-style: italic;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 24px 0;
}

/* ===== Online Service Button ===== */
.online-service {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
  z-index: 90;
  cursor: pointer;
  transition: all var(--transition);
  animation: pulse-gold 2s infinite;
}

.online-service:hover {
  background: var(--gold-dark);
  transform: scale(1.1);
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  70% { box-shadow: 0 0 0 16px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

/* ===== AOS Override ===== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ===== Responsive (768px) ===== */
@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  .container { padding: 0 16px; }

  .section-title { font-size: 1.6rem; }

  /* Header */
  .header__inner { height: 60px; gap: 16px; }

  .header__nav { display: none; }
  .header__actions { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { height: 80vh; min-height: 480px; }

  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__actions { flex-direction: column; align-items: center; }

  /* Features */
  .features { grid-template-columns: 1fr; }

  /* Cards */
  .list-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* Guide */
  .guide-section { grid-template-columns: 1fr; gap: 32px; }

  .guide-text { text-align: center; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Subscribe */
  .subscribe-card { padding: 40px 20px; }
  .subscribe-form { flex-direction: column; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  /* Inner Banner */
  .inner-banner { height: 240px; }
  .inner-banner__title { font-size: 1.6rem; }

  /* Detail */
  .detail__title { font-size: 1.4rem; }
  .detail__params { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Cert */
  .cert-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-intro__image { aspect-ratio: 4/3; }

  /* Story */
  .story-grid { grid-template-columns: 1fr; }

  /* Search */
  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 160px; }

  /* Related */
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tabs */
  .tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; }
  .tab-btn { padding: 10px 16px; font-size: 0.85rem; }

  /* Filter */
  .filter-bar { gap: 6px; }
  .filter-bar a { padding: 6px 14px; font-size: 0.82rem; }

  /* Back to top */
  .back-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
  .online-service { bottom: 76px; right: 20px; width: 44px; height: 44px; }

  /* Contact form */
  .contact-form-card { padding: 24px; }
}

/* ===== Mobile Footer Nav ===== */
.mobile-footer-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-footer-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-light);
    z-index: 89;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .mobile-footer-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 0;
  }

  .mobile-footer-nav a i { font-size: 1.2rem; }
  .mobile-footer-nav a.active { color: var(--gold-dark); }
}

/* ============================================================
   移动端重排 (Mobile) — 桌面样式完全不受影响
   ------------------------------------------------------------
   原样式表只有一段「桌面等比缩小」的媒体查询，手机端表现为：
   页面高达 10600px、文字 13px 起、Hero 分页器与按钮重叠、
   页脚四列堆叠过长。此区块按手机阅读习惯重新排版。

   · 纵向节奏收紧：区块 56→40px，标题组 48→26px
   · 卡片图片高宽比 4/3 → 16/10，卡片正文留白同步压缩
   · 正文/辅助文字统一提到 ≥14px，元信息不再小到看不清
   · 修复 .hero-pagination 绝对定位与 Hero 按钮重叠
   · 补齐 .show-mobile（原表缺失，移动端专属按钮从未显示过）
   · 为底部固定导航条预留安全区
   ============================================================ */

@media (max-width: 768px) {

  /* ---------- 设计令牌 ---------- */
  :root {
    --section-gap: 40px;
    --radius-lg: 18px;
    --radius-xl: 22px;
  }

  body {
    font-size: 15px;
    line-height: 1.75;
    /* 底部固定导航条高度 + iPhone 安全区 */
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .container { padding: 0 18px; }

  /* 移动端专属元素（原样式表缺失该类，导致按钮一直不显示） */
  .show-mobile { display: block !important; }

  /* ---------- 区块与标题 ---------- */
  .section { padding: var(--section-gap) 0; }

  .section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .section-subtitle { font-size: 0.92rem; line-height: 1.7; }

  /* 模板里标题组写死了 48px 下边距，手机上过大；同步压缩到 26px。
     用属性选择器匹配内联样式，避免逐个改模板。 */
  .section .container > div[style*="margin-bottom:48px"] { margin-bottom: 26px !important; }

  /* 「知识·养护」的标题行是 flex 布局，右侧按钮在手机上隐藏（下方另有专属按钮） */
  .section .container > div[style*="justify-content:space-between"] { margin-bottom: 20px !important; }
  .section .container > div[style*="justify-content:space-between"] > .btn { display: none; }

  /* ---------- 顶部栏 ---------- */
  .header__inner { height: 56px; padding: 0 16px; gap: 12px; }
  .header__logo { gap: 8px; }
  .header__logo-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
  .header__logo-name { font-size: 1rem; }
  .header__logo-sub { font-size: 0.56rem; letter-spacing: 0.08em; }

  .header__nav,
  .header__actions { display: none; }

  .hamburger { display: flex; margin-left: auto; padding: 11px 8px; }

  /* ---------- 侧滑菜单 ---------- */
  .mobile-nav { width: 82vw; max-width: 320px; padding: 68px 18px 28px; }
  .mobile-nav__link { padding: 13px 14px; font-size: 0.98rem; }
  .mobile-nav__sub a { padding: 10px 14px; }

  /* ---------- Hero ---------- */
  .hero { height: 66vh; min-height: 420px; max-height: 520px; }
  .hero__content { width: 88%; }
  .hero__title { font-size: 1.6rem; line-height: 1.4; margin-bottom: 12px; }
  .hero__subtitle { font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 240px;
    margin: 0 auto;
  }

  .hero__actions .btn {
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  /* 修复：分页器原本 absolute 定位于 .hero__content 内，压在按钮上 */
  .hero-pagination { position: static; margin-top: 20px; }
  .hero-pagination .swiper-pagination-bullet { width: 6px; height: 6px; }
  .hero-pagination .swiper-pagination-bullet-active { width: 18px; }

  /* ---------- 按钮 ---------- */
  .btn { padding: 12px 22px; font-size: 0.92rem; min-height: 44px; }

  /* ---------- 繁育·理念（关于）---------- */
  .about-intro { grid-template-columns: 1fr; gap: 22px; }
  .about-intro__image { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
  .about-intro__text { font-size: 0.94rem; }
  .about-intro__quote { font-size: 0.98rem; padding: 16px 18px; }

  /* ---------- 卡片列表 ---------- */
  .list-grid { grid-template-columns: 1fr; gap: 16px; }

  .card { border-radius: var(--radius-lg); }
  .card__image { aspect-ratio: 16 / 10; }
  .card__body { padding: 16px 18px 18px; }
  .card__tag { font-size: 0.72rem; padding: 3px 10px; margin-bottom: 7px; }
  .card__title { font-size: 1.08rem; margin-bottom: 7px; }
  .card__desc { font-size: 0.88rem; line-height: 1.65; }
  .card__meta { font-size: 0.86rem; margin-top: 10px; gap: 10px; }

  /* ---------- 血统·证书 ---------- */
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cert-item { padding: 22px 14px; }
  .cert-item__icon { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 12px; }
  .cert-item__name { font-size: 0.95rem; margin-bottom: 6px; }
  .cert-item__desc { font-size: 0.8rem; line-height: 1.6; }
  /* 5 条两列排布时最后一条独占整行，避免右侧留空 */
  .cert-grid > .cert-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* ---------- 客户·分享 ---------- */
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-card { border-radius: var(--radius-lg); }
  .story-card__image { aspect-ratio: 16 / 10; }
  .story-card__body { padding: 16px 18px 18px; }
  .story-card__pet { font-size: 0.82rem; }
  .story-card__title { font-size: 1.08rem; margin-bottom: 7px; }
  .story-card__quote { font-size: 0.88rem; line-height: 1.65; }

  /* ---------- 知识·养护（横向卡片）---------- */
  .guide-section { grid-template-columns: 1fr; gap: 12px !important; }
  .guide-section .card { border-radius: var(--radius-md); }
  .guide-section .card__image { width: 116px !important; min-width: 116px !important; }
  .guide-section .card__body { padding: 12px 14px; }
  .guide-section .card__tag { font-size: 0.68rem; padding: 3px 9px; margin-bottom: 5px; }
  .guide-section .card__title {
    font-size: 0.98rem !important;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .guide-section .card__desc { font-size: 0.82rem !important; line-height: 1.55; }
  .guide-section .card__meta { font-size: 0.78rem; margin-top: 6px; }

  /* ---------- CTA ---------- */
  .cta-section { padding: 48px 0; }
  .cta-section__title { font-size: 1.5rem; margin-bottom: 12px; }

  /* ---------- 内页 Banner / 面包屑 ---------- */
  .inner-banner { height: 200px; }
  .inner-banner__title { font-size: 1.5rem; }
  .inner-banner__subtitle { font-size: 0.88rem; }
  .breadcrumb { padding: 11px 18px; font-size: 0.82rem; }
  .breadcrumb i { margin: 0 5px; }

  /* ---------- 筛选 / 分页 ---------- */
  .filter-bar { gap: 6px; padding: 10px 0; }
  .filter-bar a { padding: 7px 15px; font-size: 0.84rem; }
  .pagination { margin-top: 28px; gap: 5px; }
  .pagination a { min-width: 38px; height: 38px; font-size: 0.86rem; }

  /* ---------- 详情页 ---------- */
  .detail__header { margin-bottom: 22px; }
  .detail__title { font-size: 1.45rem; }
  .detail__meta-row { gap: 12px; font-size: 0.84rem; }
  .detail__params { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }
  .detail__param { padding: 14px 10px; }
  .detail__param-value { font-size: 1.05rem; }
  .detail__body { font-size: 0.95rem; line-height: 1.85; }
  .detail__body img { margin: 16px 0; }
  .detail__body h2, .detail__body h3 { margin: 22px 0 10px; font-size: 1.2rem; }
  .detail__pager { margin-top: 32px; padding: 18px 0; font-size: 0.86rem; }
  .related-title { font-size: 1.25rem; margin-top: 34px; margin-bottom: 16px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .detail-gallery { margin-bottom: 22px; }

  /* ---------- 联系 / 表单 ---------- */
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-info__item { gap: 13px; margin-bottom: 18px; }
  .contact-info__icon { width: 42px; height: 42px; min-width: 42px; font-size: 1.05rem; }
  .contact-form-card { padding: 20px 18px; }
  .form-group { margin-bottom: 16px; }
  /* 16px 以下 iOS 聚焦会自动放大页面 */
  .form-control { font-size: 16px; padding: 11px 14px; }

  /* ---------- 搜索 ---------- */
  .search-form-row { flex-direction: column; gap: 10px; }
  .search-result-item { flex-direction: row; gap: 12px; padding: 12px; }
  .search-result-item__thumb { width: 96px; min-width: 96px; height: 76px; }
  .search-result-item__title { font-size: 1rem; }
  .search-result-item__desc {
    font-size: 0.84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ---------- 标签页 ---------- */
  .tabs { margin-bottom: 22px; }
  .tab-btn { padding: 11px 16px; font-size: 0.88rem; white-space: nowrap; }

  /* ---------- 页脚 ---------- */
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 18px 26px; }
  .footer__brand-desc { font-size: 0.88rem; margin-bottom: 16px; }
  .footer__col-title { font-size: 1rem; margin-bottom: 14px; }
  /* 6 条快速链接改双列，从 6 行压到 3 行 */
  .footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
  .footer__links a { padding: 7px 0; font-size: 0.88rem; }
  .footer__contact-item { font-size: 0.88rem; margin-bottom: 11px; }
  .footer__social a { width: 38px; height: 38px; }
  .friend-links { padding: 18px 0; gap: 9px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; gap: 10px; }

  /* ---------- 浮动按钮（避开底部固定导航条）---------- */
  .back-top { bottom: 78px; right: 16px; width: 42px; height: 42px; }
  .online-service { bottom: 132px; right: 16px; width: 46px; height: 46px; }
}

/* ============================================================
   小屏手机 (≤400px) — 进一步压缩标题与留白
   ============================================================ */
@media (max-width: 400px) {
  .container { padding: 0 15px; }
  .hero__title { font-size: 1.45rem; }
  .section-title { font-size: 1.38rem; }
  .cert-grid { gap: 10px; }
  .cert-item { padding: 18px 11px; }
  .cert-item__icon { width: 46px; height: 46px; font-size: 1.15rem; }
  .guide-section .card__image { width: 100px !important; min-width: 100px !important; }
  .related-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   移动端底部固定导航条
   （基类必须写在媒体查询之前，否则 display:none 会覆盖移动端规则）
   ============================================================ */
.mobile-footer-nav { display: none; }

@media (max-width: 768px) {
  .mobile-footer-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-light);
    z-index: 89;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(139,107,74,0.07);
  }

  .mobile-footer-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 5px 0;
    /* 触摸目标 ≥44px */
    min-height: 44px;
    justify-content: center;
  }

  .mobile-footer-nav a i { font-size: 1.15rem; }
  .mobile-footer-nav a.active { color: var(--gold-dark); }
}

/* ============================================================
   其余组件在手机端的排布
   ============================================================ */
@media (max-width: 768px) {
  /* 特色卡 / 数据 / 图库 / 订阅 — 原来只做了简单的列数压缩 */
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 26px 20px; }
  .feature-card__icon { width: 58px; height: 58px; font-size: 1.5rem; margin-bottom: 14px; }
  .feature-card__title { font-size: 1.05rem; }
  .feature-card__desc { font-size: 0.86rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item { padding: 22px 12px; }
  .stat-item__number { font-size: 2.1rem; }
  .stat-item__label { font-size: 0.82rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item__overlay { opacity: 1; padding: 12px; }
  .gallery-item__title { font-size: 0.88rem; }

  .subscribe-card { padding: 32px 20px; border-radius: var(--radius-lg); }
  .subscribe-form { flex-direction: column; gap: 10px; }
  .subscribe-form input { font-size: 16px; }

  .empty-state { padding: 48px 20px; }
  .empty-state i { font-size: 2.4rem; }

  .list-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================================================
   证书区：5 条两列排布时最后一条落单。
   让落单的一条变成横向行（图标左、文字右），填满整行而不显突兀。
   ============================================================ */
@media (max-width: 768px) {
  .cert-grid > .cert-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 16px 18px;
  }

  .cert-grid > .cert-item:last-child:nth-child(odd) .cert-item__icon {
    margin: 0;
    flex-shrink: 0;
  }

  .cert-grid > .cert-item:last-child:nth-child(odd) .cert-item__name { margin-bottom: 3px; }
}

/* ============================================================
   「客户·分享」在手机端改为横向卡片（图左文右）。
   待售宝贝等卖点区块仍保留全宽大图，只有信息型区块走紧凑排版，
   避免整个页面被几张超高的竖排卡片拖长。
   ============================================================ */
@media (max-width: 768px) {
  .story-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius-md);
  }

  .story-card__image {
    width: 118px;
    min-width: 118px;
    aspect-ratio: auto;
  }

  .story-card__body {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .story-card__pet { font-size: 0.75rem; margin-bottom: 3px; }

  .story-card__title {
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .story-card__quote {
    font-size: 0.82rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
/* ============================================================
   第二轮压缩 —— 「001 还是有点长」
   ------------------------------------------------------------
   不推翻已定的分区差异化策略：待售·宝贝依旧保留全宽大图卡。
   本轮只动三类「本来就不该占那么高」的地方：
     1. 繁育计划·预告 —— 内容是繁育时间表（信息型），改横向卡
     2. Hero —— 两个按钮原来竖排吃掉 118px，改并排；高度 520→400
     3. 全局节奏 —— 区块 40→32、标题组、页脚、证书同步收紧
   ============================================================ */
@media (max-width: 768px) {

  /* ---------- 全局节奏 40 → 32 ---------- */
  :root { --section-gap: 28px; }
  .section-head { margin-bottom: 18px !important; }

  /* ---------- Hero：按钮并排 + 降低高度 ---------- */
  /* 原为 height:66vh/max-height:520px，标题+副标题+竖排按钮只占 261px，
     上下各留 130px 空白。按钮改一行后内容降到 197px，400px 足够。 */
  .hero { height: 370px; min-height: 370px; max-height: 370px; }
  .hero__subtitle { margin-bottom: 18px; }
  .hero__actions { flex-direction: row; max-width: none; gap: 9px; margin: 0; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: 12px 8px; font-size: 0.88rem; }
  .hero-pagination { margin-top: 16px; }

  /* ---------- 繁育计划·预告：大图卡 → 横向卡 ---------- */
  /* 与 .list-grid（在售宝贝）区分：本块是时间表，图不是卖点。 */
  .list-grid--plan { grid-template-columns: 1fr; gap: 11px; }
  .list-grid--plan .card {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: stretch;
    border-radius: var(--radius-md);
  }
  .list-grid--plan .card__image {
    grid-area: 1 / 1;
    width: 112px;
    aspect-ratio: auto;
    height: 100%;
    min-height: 96px;
  }
  .list-grid--plan .card__body {
    grid-area: 1 / 2;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .list-grid--plan .card__tag { font-size: 0.66rem; padding: 3px 9px; margin-bottom: 5px; }
  .list-grid--plan .card__title { font-size: 1rem; margin-bottom: 4px; }
  .list-grid--plan .card__desc { font-size: 0.82rem; line-height: 1.5; }
  .list-grid--plan .card__meta { font-size: 0.76rem; margin-top: 6px; gap: 8px; }

  /* ---------- 在售宝贝：仍是大图卡，只把卡内留白和底部按钮收紧 ---------- */
  .list-grid:not(.list-grid--plan) .card__body { padding: 13px 15px 14px; }
  .list-grid:not(.list-grid--plan) .card__meta { margin-top: 7px; }

  /* 「查看全部」按钮组：36px 上边距在手机上过大 */
  .section .container > div[style*="margin-top:36px"] { margin-top: 22px !important; }

  /* ---------- 繁育·理念 ---------- */
  .about-intro { gap: 18px; }
  .about-intro__image { aspect-ratio: 16 / 9; }
  .about-intro__text { font-size: 0.92rem; line-height: 1.7; }
  .about-intro__quote { font-size: 0.95rem; padding: 13px 16px; margin: 16px 0; }

  /* ---------- 血统·证书 ---------- */
  .cert-item { padding: 14px 11px; }
  .cert-item__icon { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 9px; }
  .cert-item__name { font-size: 0.92rem; margin-bottom: 5px; }
  .cert-item__desc { font-size: 0.78rem; line-height: 1.55; }

  /* ---------- 客户·分享 ---------- */
  .story-card__body { padding: 13px 15px 14px; }

  /* ---------- CTA ---------- */
  .cta-section { padding: 34px 0; }

  /* ---------- 页脚 ---------- */
  .footer__grid { gap: 16px; padding: 26px 18px 18px; }
  .footer__links a { padding: 4px 0; }
  .footer__contact-item { margin-bottom: 7px; }
  .footer__brand-desc { margin-bottom: 12px; }
  .friend-links { padding: 14px 0; }
}

/* ---------- 第三轮：继续收口 ---------- */
@media (max-width: 768px) {
  /* 标题组副标题 2 行，行高 1.7 → 1.55；6 个区块合计省约 50px */
  .section-subtitle { line-height: 1.55; }

  /* 在售宝贝：照片仍是满宽大图，高宽比与 006 统一到 16/9 */
  .list-grid:not(.list-grid--plan) .card__image { aspect-ratio: 16 / 9; }

  /* 繁育·理念首图 16/9 → 2/1 */
  .about-intro__image { aspect-ratio: 2 / 1; }

  /* 血统证书：图标与内边距再收一档（三行网格，省 3 倍） */
  .cert-item { padding: 12px 11px; }
  .cert-item__icon { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 7px; }

  /* CTA */
  .cta-section { padding: 30px 0; }

  /* 页脚 */
  .footer__grid { gap: 14px; padding: 22px 18px 16px; }
  .footer__links a { padding: 3px 0; }
  .footer__social a { width: 34px; height: 34px; }
  .friend-links { padding: 11px 0; }
}

/* ---------- 修正：横向卡里的标签被拉伸成整条 ----------
   .card__body 改成 flex column 后，<span class="card__tag"> 作为 flex 项
   默认 align-items:stretch，「春季繁育」的浅色底被拉满整列，看着像一条色带。 */
@media (max-width: 768px) {
  .list-grid--plan .card__tag,
  .guide-section .card__tag { align-self: flex-start; }

  /* 试过 text-wrap:balance 想把末行的孤字摊平，但中文没有词边界，balance
     只优化行长，结果把「用心」拆到了两行上，比原来的孤字更糟。中文按自然
     折行即可，这里不再干预。 */
}
