/* ===== 栏目通道 /offerings/ ===== */
.page-products .pd-crumb {
  padding-top: 24px;
}

.page-products .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.02em;
}

.page-products .breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-products .breadcrumb li + li::before {
  content: "/";
  color: var(--slate-600);
}

.page-products .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.page-products .breadcrumb a:hover,
.page-products .breadcrumb a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

.page-products .breadcrumb [aria-current="page"] {
  color: var(--green-300);
  font-weight: 600;
}

/* ---------- 首屏：总览 + 设备预览 ---------- */
.page-products .pd-hero {
  position: relative;
  overflow: hidden;
}

.page-products .pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-500);
  opacity: 0.07;
  clip-path: polygon(0 0, 58% 0, 34% 100%, 0 100%);
  pointer-events: none;
}

.page-products .pd-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 122, 41, 0.24), rgba(255, 122, 41, 0) 68%);
  pointer-events: none;
}

.page-products .pd-hero__grid {
  position: relative;
  z-index: 1;
  align-items: center;
  row-gap: 32px;
}

.page-products .pd-hero__device {
  position: relative;
  order: 2;
}

.page-products .pd-hero__text {
  order: 1;
}

.page-products .pd-hero__text .lead {
  margin: 16px 0 0;
}

.page-products .pd-device {
  margin: 0;
  padding: 12px 12px 0;
  border: 1px solid rgba(16, 191, 108, 0.55);
  border-radius: 34px 34px 34px 10px;
  background: var(--panel);
}

.page-products .pd-device img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 920;
  object-fit: cover;
  border-radius: 24px 24px 6px 6px;
}

.page-products .pd-device .media-frame__caption {
  padding: 12px 6px 14px;
  font-size: var(--fs-12);
  color: var(--muted);
  line-height: 1.6;
}

.page-products .pd-device__badge {
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink-900);
  border: 1px solid var(--green-500);
  color: var(--green-300);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-products .pd-steps {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-step {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-products .pd-step__num {
  display: block;
  color: var(--brand);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-products .pd-step__title {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text);
}

.page-products .pd-step__desc {
  margin: 6px 0 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- 栏目清单 ---------- */
.page-products .pd-shot {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.page-products .pd-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1100 / 680;
  object-fit: cover;
}

.page-products .pd-shot .media-frame__caption {
  padding: 12px 16px;
  font-size: var(--fs-12);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-products .pd-tabs {
  margin-top: 28px;
}

.page-products .pd-tablist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.page-products .pd-tablist .tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--fs-14);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.page-products .pd-tablist .tab:hover {
  color: var(--text);
  border-color: var(--green-300);
}

.page-products .pd-tablist .tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-products .pd-tablist .tab[aria-selected="true"] {
  background: var(--green-500);
  border-color: var(--green-500);
  color: var(--ink-900);
  font-weight: 700;
}

.page-products .pd-tab__count {
  font-size: var(--fs-12);
  opacity: 0.75;
}

.page-products .pd-group {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.page-products .pd-gsum {
  padding: 20px;
  border-left: 4px solid var(--green-500);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.page-products .pd-gsum__num {
  margin: 0;
  color: var(--mist-400);
  font-size: var(--fs-12);
  letter-spacing: 0.16em;
}

.page-products .pd-gsum__title {
  margin: 8px 0 0;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--text);
}

.page-products .pd-gsum__desc {
  margin: 10px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pd-gsum__meta {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.page-products .pd-gsum__meta dt {
  font-size: var(--fs-12);
  color: var(--muted);
}

.page-products .pd-gsum__meta dd {
  margin: 2px 0 0;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--green-300);
}

.page-products .pd-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-list .index-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-products .pd-list .index-num {
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--mist-400);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.page-products .index-main {
  min-width: 0;
}

.page-products .index-main .index-title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text);
}

.page-products .index-main .index-desc {
  margin: 6px 0 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--muted);
}

.page-products .pd-list .chip--time {
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
}

.page-products .pd-list-wrap {
  display: grid;
  gap: 20px;
}

.page-products .pd-datacard {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel);
}

.page-products .pd-datacard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 600;
  object-fit: cover;
}

.page-products .pd-datacard .media-frame__caption {
  padding: 10px 14px;
  font-size: var(--fs-12);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- 收藏 ---------- */
.page-products .pd-save__grid {
  align-items: start;
  row-gap: 28px;
}

.page-products .pd-save__frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.page-products .pd-save__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 520;
  object-fit: cover;
}

.page-products .pd-save__frame .media-frame__caption {
  padding: 12px 16px;
  font-size: var(--fs-12);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-products .pd-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.page-products .pd-points li {
  padding-left: 16px;
  border-left: 2px solid var(--slate-600);
}

.page-products .pd-points__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text);
}

.page-products .pd-points p {
  margin: 6px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pd-fixed {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px dashed var(--slate-600);
}

.page-products .pd-fixed__label {
  margin: 0 0 12px;
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--mist-400);
}

.page-products .pd-fixed__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 离线缓存 ---------- */
.page-products .pd-offline__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.page-products .pd-offline__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(140, 155, 168, 0.3) 1px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}

.page-products .pd-offline__panel > * {
  position: relative;
  z-index: 1;
}

.page-products .pd-stats {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.page-products .pd-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green-500);
  border-radius: var(--radius-sm);
  background: rgba(12, 20, 28, 0.72);
}

.page-products .pd-stat .stat-value {
  display: block;
  font-size: var(--fs-40);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green-300);
}

.page-products .pd-stat .stat-label {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--muted);
}

.page-products .pd-offline__tip {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.8;
}

/* ---------- 订阅与导出 ---------- */
.page-products .pd-sub__grid {
  align-items: start;
  row-gap: 28px;
}

.page-products .pd-tabs--sub {
  margin-top: 20px;
}

.page-products .pd-panel--sub {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: rgba(19, 31, 42, 0.7);
}

.page-products .pd-subpanel__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text);
}

.page-products .pd-panel--sub p {
  margin: 10px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pd-subpanel__meta {
  color: var(--orange-200) !important;
  font-size: var(--fs-12) !important;
  font-weight: 600;
}

.page-products .pd-export {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--green-500);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.page-products .pd-export__title {
  margin: 0;
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text);
}

.page-products .pd-export p {
  margin: 8px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pd-sub__media {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-products .pd-sub__shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.page-products .pd-sub__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 420;
  object-fit: cover;
}

.page-products .pd-sub__shot .media-frame__caption {
  padding: 12px 16px;
  font-size: var(--fs-12);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.page-products .pd-sub__hint {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
}

.page-products .pd-sub__hint a {
  color: var(--green-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 场景 ---------- */
.page-products .pd-scene-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.page-products .pd-scene {
  position: relative;
  padding: 20px 0 20px 24px;
  border-left: 2px solid var(--line);
}

.page-products .pd-scene::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-500);
}

.page-products .pd-scene__time {
  display: block;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.page-products .pd-scene__title {
  margin: 8px 0 0;
  font-size: var(--fs-20);
  font-weight: 700;
  color: var(--text);
}

.page-products .pd-scene p {
  margin: 8px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 结尾入口 ---------- */
.page-products .pd-next__inner {
  display: grid;
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-500);
}

.page-products .pd-next__text .section-title {
  margin: 0;
}

.page-products .pd-next__text p {
  margin: 10px 0 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--muted);
  max-width: 56ch;
}

.page-products .pd-next__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-products .pd-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .pd-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .pd-list .index-row {
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .page-products .pd-list .chip--time {
    grid-column: auto;
    margin-top: 0;
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .page-products .pd-hero__device {
    order: 1;
  }

  .page-products .pd-hero__text {
    order: 2;
  }

  .page-products .pd-gsum {
    position: sticky;
    top: 96px;
  }

  .page-products .pd-group {
    grid-template-columns: minmax(220px, 280px) 1fr;
    align-items: start;
    gap: 32px;
  }

  .page-products .pd-save__media {
    position: sticky;
    top: 96px;
  }

  .page-products .pd-next__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 32px 36px;
  }
}

@media (max-width: 899px) {
  .page-products .pd-sub__media {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-tablist .tab {
    transition: none;
  }
}
