.pd-wrap { margin: 0 var(--wrap-x); }

/* ---------- 页头：居中标题 + 大搜索框 ---------- */
.pd-hero {
  position: relative;
  height: auto;
  padding-bottom: 56px;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 50% -60px, rgba(var(--brand-rgb), .06), transparent 70%),
    radial-gradient(520px 300px at 92% 30%, rgba(var(--warm-rgb), .06), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--fill-1) 100%);
  text-align: center;
}
.pd-hero-inner { position: relative; z-index: 1; padding-top: 72px; }
.pd-hero-title { font-size: 40px; font-weight: 600; line-height: 52px; color: var(--title); }
.pd-hero-sub { margin-top: 16px; font-size: 16px; line-height: 28px; color: var(--sub); }
.pd-search {
  display: flex;
  align-items: center;
  width: 680px;
  max-width: 100%;
  height: 56px;
  margin: 40px auto 0;
  padding: 0 6px 0 24px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: var(--sh-2);
  transition: box-shadow var(--dur-2);
}
.pd-search:focus-within { box-shadow: var(--sh-2), var(--ring); }
.pd-search > svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.pd-search input { flex: 1; min-width: 0; height: 100%; margin-left: 12px; border: 0; background: none; font-size: 16px; color: var(--title); }
.pd-search input::placeholder { color: var(--placeholder); }
.pd-search input::-webkit-search-cancel-button { display: none; }
.pd-search button { flex: none; width: 112px; height: 44px; border-radius: var(--r-pill); background: var(--brand-500); color: var(--white); font-size: 16px; font-weight: 500; transition: background var(--dur-2), box-shadow var(--dur-2); }
.pd-search button:hover { background: var(--brand-600); box-shadow: var(--glow); }
.pd-hot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--muted); }
.pd-hot span { margin-right: 4px; }
.pd-hot a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); transition: color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2); }
.pd-hot a:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--brand-500); color: var(--brand-500); }

/* ---------- 产品分组 ---------- */
.pd-main { padding: 16px 0 96px; background: var(--fill-1); }
.pd-result { margin: 40px var(--wrap-x) -8px; font-size: 14px; line-height: 22px; color: var(--sub); }
.pd-result em { font-style: normal; color: var(--brand-500); font-weight: 600; }
.pd-result a, .pd-result button { margin-left: 4px; color: var(--brand-500); font-size: 14px; }
.pd-result a { display: inline-flex; align-items: center; gap: 6px; }
.pd-result a .arrow-r { width: 6px; height: 6px; }
.pd-group { padding-top: 64px; scroll-margin-top: calc(var(--header-h) + 8px); }
.pd-anchor { display: block; height: 0; }
.pd-group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.pd-group-head h2 { font-size: 24px; font-weight: 600; line-height: 34px; color: var(--title); }
.pd-group-head p { flex: 1; font-size: 16px; line-height: 24px; color: var(--sub); }
.pd-count { flex: none; font-size: 14px; color: var(--sub); }
.pd-count b { color: var(--title); font-weight: 500; }
.pd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pd-tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--text); white-space: nowrap; transition: color var(--dur-2), box-shadow var(--dur-2); }
.pd-tab em { font-size: 12px; font-style: normal; color: var(--muted); }
.pd-tab:hover { color: var(--brand-500); }
.pd-tab.is-active { box-shadow: inset 0 0 0 1px var(--brand-500); color: var(--brand-500); font-weight: 500; }
.pd-tab.is-active em { color: var(--brand-400); }
.pd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd-empty { grid-column: 1 / -1; padding: 40px 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- 产品卡 ---------- */
.pd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-1);
  scroll-margin-top: 90px;
  cursor: pointer;
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.pd-card:hover, .pd-card:focus-within { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pd-card:focus-within { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.pd-name > a::after { content: ""; position: absolute; inset: 0; }
.pd-card-top { display: flex; align-items: center; gap: 14px; }
.pd-title { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pd-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-title b { font-size: 18px; font-weight: 600; line-height: 26px; color: var(--title); transition: color var(--dur-2); }
.pd-title a:hover b, .pd-card:hover .pd-title b { color: var(--brand-500); }
.pd-title small { margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--muted); }
.pd-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 44px; margin: 14px 0 20px; overflow: hidden; font-size: 14px; line-height: 22px; color: var(--sub); }
.pd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.pd-price { font-size: 14px; color: var(--muted); white-space: nowrap; }
.pd-price b { margin-right: 2px; font-size: 20px; font-weight: 500; color: var(--price); }
.pd-price.is-talk { color: var(--sub); }
.pd-acts { position: relative; z-index: 1; display: flex; gap: 8px; }
.pd-go, .pd-act { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; white-space: nowrap; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.pd-go { border: 1px solid var(--line-strong); color: var(--title); }
.pd-go:hover { border-color: var(--title); }
.pd-act { border: 1px solid rgba(var(--brand-rgb), .32); color: var(--brand-500); }
.pd-act:hover { border-color: var(--brand-500); background: var(--brand-500); color: var(--white); }

.pd-more { display: flex; justify-content: center; margin-top: 64px; }
.pd-more .btn { min-width: 220px; }

/* 901–1199：三列卡片放不下「价格 + 两个按钮」一行，按钮换到下一行平分 */
@media (max-width: 1199px) and (min-width: 901px) {
  .pd-grid { gap: 16px; }
  .pd-card { padding: 20px 20px 18px; }
  .pd-foot { flex-wrap: wrap; row-gap: 12px; }
  .pd-acts { flex: 1 1 100%; }
  .pd-acts > a { flex: 1; justify-content: center; }
}

@media (max-width: 900px) {
  .pd-wrap, .pd-result { margin-left: var(--pad-x); margin-right: var(--pad-x); }
  .pd-hero { padding-bottom: 32px; }
  .pd-hero-inner { padding: 40px var(--pad-x) 0; }
  .pd-hero-title { font-size: 28px; line-height: 36px; }
  .pd-hero-sub { font-size: 14px; line-height: 22px; }
  .pd-search { height: 50px; margin-top: 24px; padding-left: 16px; }
  .pd-search button { width: 76px; height: 40px; font-size: 14px; }
  .pd-main { padding-bottom: 56px; }
  .pd-group { padding-top: 40px; }
  .pd-group-head { flex-wrap: wrap; gap: 4px 12px; }
  .pd-group-head h2 { font-size: 20px; line-height: 28px; }
  .pd-group-head p { flex-basis: 100%; order: 3; font-size: 14px; }
  .pd-tabs { flex-wrap: nowrap; margin: 0 calc(var(--pad-x) * -1) 20px; padding: 0 var(--pad-x); overflow-x: auto; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pd-card { padding: 20px; }
  .pd-more { margin-top: 40px; padding: 0 var(--pad-x); }
  .pd-more .btn { width: 100%; }
}
