.petf-catalog {
  /* 常用修改区：颜色与主体宽度。 */
  --petf-catalog-bg: #FBF7F1;
  --petf-catalog-blue: #123A70;
  --petf-catalog-muted: #66788E;
  --petf-catalog-card: #FFFEFB;
  --petf-catalog-line: #E3E5E5;
  --petf-catalog-image: #F3F1EB;

  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 16px 24px;
  box-sizing: border-box;
  background: var(--petf-catalog-bg);
  color: var(--petf-catalog-blue);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  isolation: isolate;
  -webkit-text-size-adjust: 100%;
}
.petf-catalog *,
.petf-catalog *::before,
.petf-catalog *::after {
  box-sizing: border-box;
}
.petf-catalog [hidden] {
  display: none !important;
}
.petf-catalog h1,
.petf-catalog h2,
.petf-catalog h3,
.petf-catalog p {
  margin: 0;
  font-family: inherit;
}
.petf-catalog h1,
.petf-catalog h2,
.petf-catalog h3 {
  color: inherit;
}
.petf-catalog button,
.petf-catalog input,
.petf-catalog a {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.petf-catalog button {
  appearance: none;
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  font-weight: 500;
  line-height: 1.35;
}
.petf-catalog a {
  text-decoration: none;
}
.petf-catalog button:focus-visible,
.petf-catalog a:focus-visible,
.petf-catalog input:focus-visible {
  outline: 3px solid #779BC4;
  outline-offset: 3px;
}
.petf-catalog-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.petf-catalog-intro {
  position: relative;
}
.petf-catalog-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.petf-catalog h1 {
  margin-top: 7px;
  font-size: clamp(27px, 7.2vw, 34px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.2px;
}
.petf-catalog-subtitle {
  margin-top: 9px !important;
  color: var(--petf-catalog-muted);
  font-size: 13px;
}
.petf-catalog-paw {
  position: absolute;
  width: 31px;
  height: 31px;
  right: 2px;
  top: -9px;
  color: var(--petf-catalog-blue);
  opacity: .08;
  transform: rotate(18deg);
}
.petf-catalog-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0 12px;
  height: 50px;
  border: 1px solid #DDE2E6;
  border-radius: 14px;
  background: var(--petf-catalog-card);
}
.petf-catalog-search:focus-within {
  border-color: var(--petf-catalog-blue);
}
.petf-catalog-search > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.petf-catalog .petf-catalog-search input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--petf-catalog-blue);
  font-size: 16px;
  line-height: normal;
  box-shadow: none;
}
.petf-catalog-search input::placeholder {
  font-size: 10px;
  color: var(--petf-catalog-muted);
  opacity: 1;
}
.petf-catalog-search input::-webkit-search-cancel-button {
  appearance: none;
}
.petf-catalog-search input:focus-visible {
  outline-offset: 0;
}
.petf-catalog-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}
.petf-catalog .petf-catalog-category {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--petf-catalog-line);
  border-radius: 18px;
  background: var(--petf-catalog-card);
  color: var(--petf-catalog-blue);
  text-align: left;
  transition: background 180ms, border-color 180ms;
}
.petf-catalog .petf-catalog-category[aria-pressed="true"] {
  background: var(--petf-catalog-blue);
  color: #FFF;
  border-color: var(--petf-catalog-blue);
}
.petf-catalog-category-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.petf-catalog-category-image {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 42px;
  border-radius: 10px;
  background: #F3F1EB;
  color: #7A8791;
  overflow: hidden;
}
.petf-catalog-category[aria-pressed="true"] .petf-catalog-category-image {
  background: #FFFFFF16;
  color: #F2E7D7;
}
.petf-catalog-category-image svg {
  width: 33px;
  height: 33px;
}
.petf-catalog-category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.petf-catalog-collection {
  margin-top: 30px;
  min-width: 0;
}
.petf-catalog-collection-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  justify-content: space-between;
}
.petf-catalog h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.45px;
}
.petf-catalog-subcount {
  flex-shrink: 0;
  color: var(--petf-catalog-muted);
  font-size: 10px;
}
.petf-catalog-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 14px -3px 0;
  padding: 3px 3px 5px;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}
.petf-catalog-tabs::-webkit-scrollbar {
  display: none;
}
.petf-catalog .petf-catalog-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--petf-catalog-line);
  border-radius: 24px;
  color: var(--petf-catalog-blue);
  background: var(--petf-catalog-card);
  font-size: 12px;
  user-select: none;
  transition: background 180ms, border-color 180ms;
}
.petf-catalog .petf-catalog-tab[aria-pressed="true"] {
  background: var(--petf-catalog-blue);
  border-color: var(--petf-catalog-blue);
  color: #FFF;
}
.petf-catalog-results {
  margin: 14px 0 10px !important;
  color: var(--petf-catalog-muted);
  font-size: 11px;
}
.petf-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}
.petf-catalog .petf-catalog-product {
  display: block;
  min-width: 0;
  border: 1px solid var(--petf-catalog-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--petf-catalog-card);
  color: var(--petf-catalog-blue);
  box-shadow: 0 2px 5px #123A7003;
  transition: border-color 180ms, transform 180ms;
}
.petf-catalog-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  background: var(--petf-catalog-image);
}
.petf-catalog-product-image > svg {
  width: 64%;
  height: 64%;
  color: #B6B1A6;
  stroke-width: 1.3;
}
.petf-catalog-product-image > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.petf-catalog-product-info {
  padding: 12px 11px 11px;
}
.petf-catalog .petf-catalog-product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  height: 36px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.petf-catalog-product-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: space-between;
  margin-top: 5px;
}
.petf-catalog-model {
  min-width: 0;
  font-size: 10px;
  line-height: 1.3;
  color: var(--petf-catalog-muted);
  overflow-wrap: anywhere;
}
.petf-catalog-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #EEF1F3;
  font-size: 16px;
}
.petf-catalog-empty {
  padding: 30px 16px;
  border: 1px dashed #CDD5DD;
  border-radius: 18px;
  text-align: center;
}
.petf-catalog-empty p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--petf-catalog-muted);
}
.petf-catalog .petf-catalog-reset {
  min-height: 44px;
  padding: 10px 16px;
  margin-top: 12px;
  border: 1px solid var(--petf-catalog-line);
  border-radius: 24px;
  background: #FFF;
  color: var(--petf-catalog-blue);
}
.petf-catalog .petf-catalog-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid #B9C7D5;
  border-radius: 14px;
  background: transparent;
  color: var(--petf-catalog-blue);
  font-size: 12px;
  font-weight: 700;
  transition: background 180ms, border-color 180ms;
}
.petf-catalog-more span {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
.petf-catalog-cta {
  position: relative;
  margin-top: 30px;
  padding: 23px 19px 20px;
  border-radius: 22px;
  background: var(--petf-catalog-blue);
  color: #FFFEFB;
  overflow: hidden;
}
.petf-catalog-cta h2 {
  position: relative;
  font-size: 21px;
  max-width: 270px;
}
.petf-catalog-cta p {
  position: relative;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.7;
  color: #E0E7EF;
}
.petf-catalog-cta-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}
.petf-catalog .petf-catalog-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 7px;
  border: 1px solid #FFFEFB;
  border-radius: 12px;
  background: #FFFEFB;
  color: var(--petf-catalog-blue);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.petf-catalog .petf-catalog-contact-secondary {
  background: transparent;
  border-color: #FFFFFF60;
  color: #FFF;
}
.petf-catalog-cta-pet {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 12px;
  right: -13px;
  opacity: .07;
  transform: rotate(-20deg);
  pointer-events: none;
}
@media (hover: hover) {
  .petf-catalog .petf-catalog-category:hover,
  .petf-catalog .petf-catalog-tab:hover {
    border-color: #91A6BE;
  }
  .petf-catalog .petf-catalog-product:hover {
    border-color: #91A6BE;
    transform: translateY(-2px);
  }
  .petf-catalog .petf-catalog-more:hover {
    background: #EEF1F3;
  }
}
@media (max-width: 374px) {
  .petf-catalog {
    padding-right: 14px;
    padding-left: 14px;
  }
  .petf-catalog .petf-catalog-category {
    gap: 7px;
    padding: 9px;
  }
  .petf-catalog-category-label {
    font-size: 11.5px;
  }
  .petf-catalog-category-image {
    flex-basis: 32px;
    width: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .petf-catalog *,
  .petf-catalog *::before,
  .petf-catalog *::after {
    transition: none !important;
  }
}
/* Dynamic data states only; original visual rules above remain unchanged. */
.petf-catalog .petf-image:not([hidden]) + svg { display: none; }
.petf-catalog .petf-catalog-category-image { position: relative; }
.petf-catalog .petf-catalog-category-image > img { position: absolute; inset: 0; }
.petf-catalog .petf-catalog-paw > svg, .petf-catalog .petf-catalog-cta-pet > svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.petf-catalog .petf-catalog-product-meta > .petf-catalog-arrow { margin-left: auto; }
.petf-catalog .petf-catalog-cta-actions > a:only-child { grid-column: 1 / -1; }
.petf-catalog .petf-catalog-more:disabled { opacity: .55; cursor: wait; }
.petf-catalog .petf-catalog-category-label { min-width: 0; flex: 1; white-space: normal; }
