.pet-store-hidden-utility {
  display: none !important;
}

.pet-video-trigger {
  cursor: pointer;
}

/* 播放按钮统一由本层的居中 ▶（.pet-video-trigger::after）承担，
   隐藏模板自带的播放按钮，避免同一张卡片出现两个播放键（右上角 Video 卡会重叠）。 */
.pet-video-trigger button {
  display: none !important;
}

/* 首屏三张获奖台素材保持完整画面，但不再以原始竖图高度撑满首屏。 */
#root img[src*="pet-store-media/hero-pet-"] {
  width: 100% !important;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
}

/* 首屏标题应位于三张底部图片之上，避免中间图遮住 Everything / Your Pets Love。 */
#root div:has(> div > img[src*="pet-store-media/hero-pet-"]) {
  z-index: 2 !important;
}

#root main h1 {
  position: relative;
  z-index: 20;
}

/* 顶栏右侧的用户头像（模板自带的占位头像）整体去掉。 */
#root header img[alt="User"] {
  display: none !important;
}


.pet-video-trigger::after {
  content: '▶';
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(26, 61, 26, 0.88);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}

.pet-video-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: #14351c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.pet-video-dialog::backdrop {
  background: rgba(10, 24, 12, 0.76);
  backdrop-filter: blur(5px);
}

.pet-video-dialog__panel {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.pet-video-dialog__player {
  display: block;
  width: 100%;
  max-height: min(72vh, 680px);
  background: #08150b;
}

.pet-video-dialog__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #14351c;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.pet-video-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: #effdf0;
  font: 600 14px/1.2 Inter, sans-serif;
}

.pet-video-dialog__fullscreen {
  padding: 8px 13px;
  border: 1px solid rgba(239, 253, 240, 0.7);
  border-radius: 999px;
  background: transparent;
  color: #effdf0;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 640px) {
  #root img[src*="pet-store-media/hero-pet-"] {
    width: 100% !important;
  }

  .pet-video-trigger::after {
    width: 42px;
    height: 42px;
  }

  .pet-video-dialog {
    width: calc(100vw - 20px);
  }
}

/* ============================================================
   宠物站「供应商及以下」区块：布局收紧 + 深色氛围
   仅覆盖间距/装饰（选择器用 #pawpal-root #id 提升权重，
   高于模板编译后的 #pawpal-root .py-24 等），不改结构、不动 JS。
   ============================================================ */

/* ① 区块上下留白：py-24 sm:py-32 -> 手机 py-14 / 桌面 py-20 */
#pawpal-root #clients,
#pawpal-root #services,
#pawpal-root #work,
#pawpal-root #about,
#pawpal-root #contact {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 640px) {
  #pawpal-root #clients,
  #pawpal-root #services,
  #pawpal-root #work,
  #pawpal-root #about,
  #pawpal-root #contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ②B 品类卡：宽屏由 2 列改为 4 列；标题到网格的间距 mt-16 -> 2.5rem */
#pawpal-root #services [class~="grid-cols-1"] {
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  #pawpal-root #services [class~="grid-cols-1"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ③ 关于我们：两栏间距 lg:gap-20 -> 3rem；统计卡加浅底/圆角/描边 */
@media (min-width: 1024px) {
  #pawpal-root #about [class~="grid-cols-1"] {
    gap: 3rem;
  }
}
#pawpal-root #about [class~="grid-cols-2"] > * {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left-color: rgba(96, 165, 250, 0.5);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

/* ④ 页脚列上方间距与热卖画廊间距收紧 */
#pawpal-root #contact [class~="border-t"] {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
}
#pawpal-root #work [class~="mt-14"] {
  margin-top: 2rem;
}

/* ⑤ 深色氛围：区块内极淡光晕 + 顶部渐变细线（纯 CSS，无动画） */
#pawpal-root #services,
#pawpal-root #work,
#pawpal-root #about {
  isolation: isolate;
}
#pawpal-root #services::before,
#pawpal-root #work::before,
#pawpal-root #about::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 12% 0%, rgba(96, 165, 250, 0.07), transparent 60%),
    radial-gradient(44rem 32rem at 88% 100%, rgba(168, 85, 247, 0.07), transparent 60%);
}
#pawpal-root #services::after,
#pawpal-root #work::after,
#pawpal-root #about::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72rem, 90%);
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.30), rgba(168, 85, 247, 0.30), transparent);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: pet-line-sweep 9s linear infinite;
}

/* ⑨ 分隔细线：一道光缓慢从左扫到右 */
@keyframes pet-line-sweep {
  0% { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}

/* ⑥ 章节呼吸：在「热卖好物 → 关于我们」之间多加一段空白，
   作为整页中段的停顿（从"产品"过渡到"品牌故事"）。 */
#pawpal-root #about {
  padding-top: 5.5rem;
}
@media (min-width: 640px) {
  #pawpal-root #about {
    padding-top: 7.5rem;
  }
}

/* ============================================================
   B 档特效：⑧ 服务卡光晕 + ⑩ CTA 光晕/渐变描边 + ⑦ 标题逐词入场
   —— 需要 assets/pet-effects.js 配合（写 --mx/--my、拆词、加 .is-in）
   ============================================================ */

/* ⑧ 品类卡：鼠标跟随光晕 + hover 渐变描边（上浮已由模板 hover:-translate-y-1 提供） */
#pawpal-root #services article {
  position: relative;
}
#pawpal-root #services article::before,
#pawpal-root #services article::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#pawpal-root #services article::before {
  padding: 1px;
  background: linear-gradient(130deg, rgba(96, 165, 250, 0.75), rgba(168, 85, 247, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
#pawpal-root #services article::after {
  background: radial-gradient(16rem 16rem at var(--pet-mx, 50%) var(--pet-my, 50%), rgba(120, 170, 255, 0.18), transparent 65%);
}
#pawpal-root #services article:hover::before,
#pawpal-root #services article:hover::after {
  opacity: 1;
}

/* ⑩ CTA 按钮：hover 光晕；描边按钮额外加一层"流动渐变描边" */
#pawpal-root #hero a[class*="rounded-full"],
#pawpal-root #about a[class*="rounded-full"],
#pawpal-root #contact a[class*="rounded-full"] {
  position: relative;
}
#pawpal-root #hero a[class*="rounded-full"]:hover,
#pawpal-root #about a[class*="rounded-full"]:hover,
#pawpal-root #contact a[class*="rounded-full"]:hover {
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.35), 0 0 44px rgba(168, 85, 247, 0.22);
}
#pawpal-root #hero a[class*="rounded-full"][class*="border"]::after,
#pawpal-root #about a[class*="rounded-full"][class*="border"]::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9999px;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, #60a5fa, #a855f7, #60a5fa);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pet-btn-flow 5s linear infinite;
}
#pawpal-root #hero a[class*="rounded-full"][class*="border"]:hover::after,
#pawpal-root #about a[class*="rounded-full"][class*="border"]:hover::after {
  opacity: 1;
}
@keyframes pet-btn-flow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ⑦ 区块标题逐词入场（进入视口后由 JS 加 .is-in 触发） */
#pawpal-root .pet-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
}
#pawpal-root .pet-split.is-in .pet-word {
  animation: pet-word-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--pet-i, 0) * 70ms);
}
@keyframes pet-word-in {
  to { opacity: 1; transform: translateY(0); }
}

/* 无障碍：减少动态效果时，全部退化为静态 */
@media (prefers-reduced-motion: reduce) {
  #pawpal-root #services::after,
  #pawpal-root #work::after,
  #pawpal-root #about::after {
    animation: none;
    background-position: 50% 0;
  }
  #pawpal-root #hero a[class*="rounded-full"][class*="border"]::after,
  #pawpal-root #about a[class*="rounded-full"][class*="border"]::after {
    animation: none;
  }
  #pawpal-root .pet-word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
