/* ============================================================
   工具中心 / page-products
   ============================================================ */

.page-products {
  --prod-gap: clamp(22px, 4vw, 46px);
  --prod-rule: 1px solid var(--rb-line-soft);
}

/* ---------- 面包屑 ---------- */
.page-products .prod-crumbs {
  border-bottom: var(--prod-rule);
  background: linear-gradient(180deg, rgba(6, 32, 54, 0.62), rgba(3, 17, 31, 0));
}

.page-products .prod-crumbs .rb-container {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ---------- 首屏 ---------- */
.page-products .prod-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(40px, 7vw, 88px);
  border-bottom: var(--prod-rule);
}

.page-products .prod-hero::before {
  content: "";
  position: absolute;
  top: -16%;
  right: -24%;
  width: min(780px, 86vw);
  height: min(620px, 72vw);
  background: linear-gradient(142deg, rgba(37, 244, 216, 0.2) 0%, rgba(37, 244, 216, 0.05) 42%, rgba(6, 32, 54, 0) 72%);
  clip-path: polygon(22% 0%, 100% 0%, 100% 74%, 0% 100%);
  pointer-events: none;
  z-index: 0;
}

.page-products .prod-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(110px, 22vw, 300px);
  height: 2px;
  background: var(--rb-coral);
  z-index: 2;
}

.page-products .prod-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--prod-gap);
  align-items: center;
}

.page-products .prod-hero__note {
  display: none;
}

.page-products .prod-hero__copy .rb-eyebrow {
  margin: 0 0 14px;
}

.page-products .prod-hero__copy .rb-display {
  margin: 0 0 clamp(16px, 2.4vw, 22px);
  max-width: 19ch;
}

.page-products .prod-hero__copy .rb-lede {
  margin: 0;
}

.page-products .prod-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3.2vw, 32px);
}

.page-products .prod-hero__figure {
  margin: 0;
  position: relative;
  border: 1px solid var(--rb-line-soft);
}

.page-products .prod-hero__figure::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 54px;
  height: 54px;
  border-top: 1px solid var(--rb-line);
  border-left: 1px solid var(--rb-line);
  pointer-events: none;
}

.page-products .prod-hero__figure .rb-figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 工具分组 ---------- */
.page-products .prod-tools {
  padding-top: clamp(44px, 7vw, 86px);
  padding-bottom: clamp(44px, 7vw, 86px);
  border-bottom: var(--prod-rule);
}

.page-products .prod-tools__head {
  max-width: 58ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-products .prod-tools__head .rb-eyebrow {
  margin: 0 0 12px;
}

.page-products .prod-tools__head .rb-h2 {
  margin: 0 0 14px;
}

.page-products .prod-tools__head .rb-lede {
  margin: 0;
}

.page-products .prod-tabs {
  position: relative;
}

.page-products .prod-tabs .rb-tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rb-line-soft);
}

.page-products .prod-tabs .rb-tab {
  min-height: 40px;
}

.page-products .prod-panel {
  padding-top: clamp(24px, 3.6vw, 40px);
}

.page-products .prod-panel__grid {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.page-products .prod-panel__copy .rb-eyebrow {
  margin: 0 0 10px;
}

.page-products .prod-panel__copy .rb-h3 {
  margin: 0 0 14px;
}

.page-products .prod-panel__copy > p {
  margin: 0 0 20px;
  max-width: 54ch;
  color: var(--rb-text-dim);
  line-height: 1.85;
}

.page-products .prod-panel__figure {
  margin: 0;
  border: 1px solid var(--rb-line-soft);
}

.page-products .prod-panel__figure .rb-figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- 条目列表 ---------- */
.page-products .prod-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rb-line-faint);
}

.page-products .prod-list li {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rb-line-faint);
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--rb-text-dim);
}

.page-products .prod-list__key {
  font-family: var(--rb-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--rb-cyan);
  padding-top: 4px;
}

/* ---------- 上手顺序 ---------- */
.page-products .prod-path {
  padding-top: clamp(44px, 7vw, 82px);
  padding-bottom: clamp(44px, 7vw, 82px);
}

.page-products .prod-path__head {
  max-width: 54ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-products .prod-path__head .rb-eyebrow {
  margin: 0 0 12px;
}

.page-products .prod-path__head .rb-h2 {
  margin: 0;
}

.page-products .prod-steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--rb-line-faint);
  border: 1px solid var(--rb-line-faint);
}

.page-products .prod-step {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--rb-abyss);
  overflow: hidden;
}

.page-products .prod-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--rb-cyan);
  transition: height 0.45s var(--rb-ease);
}

.page-products .prod-step:hover::after,
.page-products .prod-step:focus-within::after {
  height: 100%;
}

.page-products .prod-step__num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--rb-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--rb-coral);
}

.page-products .prod-step__title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.1vw, 1.2rem);
  line-height: 1.4;
  color: var(--rb-text);
}

.page-products .prod-step p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--rb-text-dim);
}

/* ---------- 联系与帮助 ---------- */
.page-products .prod-cta {
  position: relative;
  overflow: hidden;
  padding-top: clamp(44px, 7vw, 84px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-products .prod-cta::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -34%;
  width: min(580px, 72vw);
  height: min(440px, 56vw);
  background: radial-gradient(circle at 32% 60%, rgba(255, 95, 61, 0.17), rgba(3, 17, 31, 0) 68%);
  pointer-events: none;
}

.page-products .prod-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.page-products .prod-cta__copy .rb-eyebrow {
  margin: 0 0 12px;
}

.page-products .prod-cta__copy .rb-h2 {
  margin: 0 0 14px;
}

.page-products .prod-cta__copy > p {
  margin: 0;
  max-width: 54ch;
  color: var(--rb-text-dim);
  line-height: 1.85;
}

.page-products .prod-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 30px);
}

.page-products .prod-cta__meta {
  margin: 0;
  border-top: 1px solid var(--rb-line);
}

.page-products .prod-cta__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rb-line-faint);
}

.page-products .prod-cta__row dt {
  padding-top: 4px;
  font-family: var(--rb-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--rb-cyan);
}

.page-products .prod-cta__row dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--rb-text);
  overflow-wrap: anywhere;
}

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

@media (min-width: 860px) {
  .page-products .prod-panel__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    column-gap: clamp(26px, 4.5vw, 64px);
  }
}

@media (min-width: 900px) {
  .page-products .prod-cta__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: clamp(30px, 4vw, 64px);
  }
}

@media (min-width: 960px) {
  .page-products .prod-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    column-gap: clamp(28px, 4vw, 60px);
  }
}

@media (min-width: 1180px) {
  .page-products .prod-hero__grid {
    grid-template-columns: auto minmax(0, 1.04fr) minmax(0, 0.96fr);
    column-gap: clamp(18px, 2.2vw, 34px);
  }

  .page-products .prod-hero__note {
    display: block;
    align-self: start;
    padding-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .prod-step::after {
    transition: none;
  }
}
