/* ==========================================================================
   毛孩之家宠物生活馆 — 温暖奶油风设计系统
   纯手写 CSS，无框架依赖
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 奶油色阶 */
  --cream-0: #fffcf7;
  --cream-50: #fff8ef;
  --cream-100: #fdefdf;
  --cream-200: #f5e2c8;

  /* 主色：暖橙 */
  --orange-100: #ffe8d6;
  --orange-400: #ffa45c;
  --orange-500: #f98a3c;
  --orange-600: #ee7524;

  /* 辅助色（服务图标用） */
  --green-100: #e0f2e4;
  --green-600: #55a06e;
  --pink-100: #fde4e8;
  --pink-600: #e0708c;
  --blue-100: #e1eef8;
  --blue-600: #5d9fd4;

  /* 文字 */
  --brown-900: #3e2d20;
  --brown-700: #5b4433;
  --brown-500: #97826f;

  /* 卡片图标内部的对比色（表情点、圆心等） */
  --card-icon-bg: #ffffff;

  /* 圆角与阴影 */
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 34px rgba(94, 58, 24, 0.09);
  --shadow-hover: 0 18px 44px rgba(94, 58, 24, 0.14);

  /* 布局 */
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  /* 锚点定位时避开吸顶导航 */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--brown-700);
  background: var(--cream-0);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--brown-900);
  line-height: 1.3;
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: var(--orange-600);
  text-decoration: none;
}

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

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

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

::selection {
  background: var(--orange-400);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* 图标 sprite：默认填充 currentColor，描边类用 .stroke-current */
svg use {
  fill: currentColor;
}
.stroke-current {
  fill: none;
  stroke: currentColor;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.container--narrow {
  max-width: 760px;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  box-shadow: 0 8px 22px rgba(238, 117, 36, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(238, 117, 36, 0.45);
}

.btn--ghost {
  color: var(--brown-900);
  background: transparent;
  border: 2px solid var(--cream-200);
}

.btn--ghost:hover {
  border-color: var(--orange-400);
  color: var(--orange-600);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 38px;
  font-size: 17px;
}

.btn--sm {
  padding: 9px 22px;
  font-size: 15px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 252, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(94, 58, 24, 0.1);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--brown-900);
}

.nav__paw {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brown-700);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover {
  color: var(--orange-600);
  background: var(--orange-100);
}

.nav__link.is-active {
  color: var(--orange-600);
  background: var(--orange-100);
}

.nav__cta-item {
  margin-left: 10px;
}

/* 汉堡按钮（仅移动端显示） */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--orange-100);
}

.nav__toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brown-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  padding: 72px 0 130px;
  background:
    radial-gradient(720px 340px at 85% -60px, rgba(255, 164, 92, 0.22), transparent 70%),
    radial-gradient(560px 300px at 8% 110%, rgba(255, 196, 140, 0.18), transparent 70%),
    linear-gradient(180deg, var(--cream-50), var(--cream-0));
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--cream-200);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brown-700);
  box-shadow: 0 4px 14px rgba(94, 58, 24, 0.06);
}

.hero__badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52b788;
  box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(82, 183, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 183, 136, 0); }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 58px);
  letter-spacing: 0.5px;
}

.hero__title em {
  font-style: normal;
  color: var(--orange-600);
  position: relative;
}

.hero__sub {
  margin-top: 20px;
  font-size: 18.5px;
  color: var(--brown-500);
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-700);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 8px;
  color: var(--orange-600);
  background: var(--orange-100);
}

.hero__art img {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  filter: drop-shadow(0 24px 40px rgba(94, 58, 24, 0.14));
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__wave {
  position: absolute;
  inset: auto 0 -1px;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 64px;
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 96px 0;
}

.section--tinted {
  background: var(--cream-100);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3.5px;
  color: var(--orange-500);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(28px, 3.6vw, 38px);
}

.section__sub {
  margin-top: 14px;
  color: var(--brown-500);
}

/* ---------- 服务卡片 ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.card {
  height: 100%;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  margin-bottom: 22px;
}

.card__icon svg {
  width: 32px;
  height: 32px;
}

.card__icon--orange { color: var(--orange-600); background: var(--orange-100); }
.card__icon--green  { color: var(--green-600);  background: var(--green-100); }
.card__icon--pink   { color: var(--pink-600);   background: var(--pink-100); }
.card__icon--blue   { color: var(--blue-600);   background: var(--blue-100); }

.card__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.card__desc {
  font-size: 15px;
  color: var(--brown-500);
}

.card__more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 700;
}

/* ---------- 价格表 ---------- */
.pricing {
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.price-card--hot {
  border-color: var(--orange-400);
  transform: translateY(-4px);
}

.price-card--hot:hover {
  transform: translateY(-10px);
}

.price-card__tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.price-card__title {
  text-align: center;
  font-size: 21px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 2px dashed var(--cream-200);
}

.price-card__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  font-size: 15px;
}

.price-card__list li + li {
  border-top: 1px dashed var(--cream-200);
}

.price-card__list span {
  color: var(--brown-700);
}

.price-card__list b {
  color: var(--orange-600);
  font-size: 16.5px;
  white-space: nowrap;
}

.pricing__note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--brown-500);
}

/* ---------- 萌宠相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery__item {
  margin: 0;
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery__btn:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-hover);
}

.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery__item figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brown-500);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--brown-900);
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-100);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--orange-600);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__a > p {
  overflow: hidden;
  padding: 0 24px;
  color: var(--brown-500);
  font-size: 15.5px;
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__item.is-open .faq__a > p {
  padding-bottom: 22px;
}

/* ---------- 关于我们 ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.about__p {
  margin-top: 18px;
  color: var(--brown-700);
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 34px;
}

.stat {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.stat__value {
  display: flex;
  align-items: baseline;
}

.stat__num,
.stat__plus {
  font-size: 40px;
  font-weight: 800;
  color: var(--orange-600);
  line-height: 1.1;
}

.stat__plus {
  display: inline;
  margin-left: 2px;
}

.stat__label {
  font-size: 14.5px;
  color: var(--brown-500);
  font-weight: 600;
}

.about__art img {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  filter: drop-shadow(0 20px 36px rgba(94, 58, 24, 0.12));
}

/* ---------- 联系我们 ---------- */
.contact {
  text-align: center;
}

.contact__card {
  padding: 34px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.contact__card .card__icon {
  margin-bottom: 12px;
}

.contact__title {
  font-size: 19px;
}

.contact__card > p {
  font-size: 15.5px;
  color: var(--brown-700);
}

.contact__link {
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-900);
}

a.contact__link:hover {
  color: var(--orange-600);
}

.contact__tip {
  font-size: 13.5px !important;
  color: var(--brown-500) !important;
}

.contact__qr {
  margin-top: 8px;
  border-radius: 14px;
  border: 2px solid var(--cream-200);
}

.contact__map-btn {
  margin-top: 10px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brown-900);
  color: rgba(255, 248, 239, 0.82);
  padding: 52px 0 88px;
}

.site-footer__inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.site-footer__brand .nav__paw {
  width: 30px;
  height: 30px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

.site-footer__nav a {
  color: rgba(255, 248, 239, 0.82);
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: var(--orange-400);
}

.site-footer__copy {
  font-size: 13.5px;
  color: rgba(255, 248, 239, 0.55);
}

.site-footer__copy a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- 移动端快捷联系条 ---------- */
.quick-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -8px 26px rgba(63, 46, 34, 0.18);
}

.quick-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px calc(15px + env(safe-area-inset-bottom));
  background: #fff;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--brown-900);
}

.quick-bar__btn svg {
  width: 20px;
  height: 20px;
  color: var(--orange-600);
}

.quick-bar__btn--primary {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  color: #fff;
}

.quick-bar__btn--primary svg {
  color: #fff;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: rgba(50, 35, 23, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(860px, 100%);
}

.lightbox__figure img {
  width: min(100%, 780px);
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
}

.lightbox__figure figcaption {
  color: rgba(255, 248, 239, 0.9);
  font-size: 15px;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.06);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange-600);
  box-shadow: var(--shadow-hover);
  font-size: 20px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

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

.back-top:hover {
  background: var(--orange-500);
  color: #fff;
}

/* ---------- 滚动浮现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 浮现动画的错峰延迟 */
.grid-4 > .reveal:nth-child(2),
.grid-3 > .reveal:nth-child(2),
.gallery > .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid-4 > .reveal:nth-child(3),
.grid-3 > .reveal:nth-child(3),
.gallery > .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid-4 > .reveal:nth-child(4),
.gallery > .reveal:nth-child(4) { transition-delay: 0.24s; }
.gallery > .reveal:nth-child(5) { transition-delay: 0.1s; }
.gallery > .reveal:nth-child(6) { transition-delay: 0.18s; }

/* ---------- 减少动态效果偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  /* 移动端导航面板 */
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    padding: 12px 16px;
  }

  .nav__cta-item {
    margin: 8px 0 0;
  }

  .nav__cta {
    width: 100%;
  }

  .hero {
    padding: 48px 0 110px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero__sub .br-mobile {
    display: none;
  }

  .hero__actions,
  .hero__points,
  .hero__badge {
    justify-content: center;
  }

  .hero__points {
    gap: 12px 20px;
  }

  .hero__art img {
    max-width: 420px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__text {
    text-align: center;
  }

  .about__stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(var(--container), 100% - 36px);
  }

  .section {
    padding: 68px 0;
  }

  .grid-4,
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }

  /* 快捷联系条仅移动端显示 */
  .quick-bar {
    display: grid;
  }

  /* 移动端给底部快捷条留出空间 */
  body {
    padding-bottom: 62px;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .back-top {
    right: 16px;
    bottom: 80px;
  }

  .price-card--hot {
    transform: none;
  }

  .hero__title {
    font-size: clamp(32px, 9vw, 40px);
  }

  .lightbox {
    gap: 10px;
    padding: 14px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
