/* ==========================================================================
   RefrioCore — product.css
   产品相关页面样式：目录双栏筛选、产品卡片网格、对比栏、规格表、
   性能曲线、应用场景、文档列表、相关产品、FAQ、对比表、询价三步表单、
   产品 hero 区。依赖 main.css 的设计令牌。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 产品卡片与网格
   -------------------------------------------------------------------------- */
.rf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--rf-space-lg);
  transition: opacity var(--rf-transition);
}

/* AJAX 加载态：骨架屏 */
.rf-product-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.rf-product-grid.is-loading::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rf-product-grid__wrapper {
  position: relative;
}

.rf-product-grid__found {
  font-size: var(--rf-fs-sm);
  color: var(--rf-color-text-muted);
  margin-block-end: var(--rf-space-md);
}

.rf-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
  overflow: hidden;
  box-shadow: var(--rf-shadow-sm);
  transition: transform var(--rf-transition), box-shadow var(--rf-transition),
    border-color var(--rf-transition);
}

.rf-product-card:hover,
.rf-product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--rf-shadow-lg);
  border-color: var(--rf-color-primary-light);
}

.rf-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--rf-color-bg-alt);
  overflow: hidden;
}

.rf-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--rf-transition);
}

.rf-product-card:hover .rf-product-card__media img {
  transform: scale(1.04);
}

.rf-product-card__model {
  position: absolute;
  top: var(--rf-space-sm);
  inset-inline-start: var(--rf-space-sm);
  padding: 0.2em 0.7em;
  font-family: var(--rf-font-heading);
  font-size: var(--rf-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11, 95, 255, 0.92);
  border-radius: var(--rf-radius-sm);
}

.rf-product-card__compare {
  position: absolute;
  top: var(--rf-space-sm);
  inset-inline-end: var(--rf-space-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em;
  font-size: var(--rf-fs-xs);
  color: var(--rf-color-heading);
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-pill);
  cursor: pointer;
  transition: background var(--rf-transition), color var(--rf-transition),
    border-color var(--rf-transition);
}

.rf-product-card__compare:hover {
  border-color: var(--rf-color-primary);
}

.rf-product-card__compare:checked,
.rf-product-card__compare.is-checked,
.rf-product-card__compare:has(:checked) {
  background: var(--rf-color-primary);
  border-color: var(--rf-color-primary);
  color: #fff;
}

.rf-product-card__compare:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rf-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--rf-space-md);
  gap: var(--rf-space-sm);
}

.rf-product-card__title {
  font-size: 1.0625rem;
  margin: 0;
}

.rf-product-card__title a {
  color: inherit;
}

/* 关键参数 dl */
.rf-product-card__specs {
  margin: 0;
  font-size: var(--rf-fs-sm);
}

.rf-product-card__specs div {
  display: flex;
  justify-content: space-between;
  gap: var(--rf-space-sm);
  padding-block: 0.25em;
  border-block-end: 1px dashed var(--rf-color-border);
}

.rf-product-card__specs div:last-child {
  border-block-end: 0;
}

.rf-product-card__specs dt {
  color: var(--rf-color-text-muted);
}

.rf-product-card__specs dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
}

.rf-product-card__footer {
  margin-block-start: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rf-space-sm);
}

.rf-product-card__price {
  font-family: var(--rf-font-heading);
  font-weight: 700;
  color: var(--rf-color-primary);
  font-size: var(--rf-fs-sm);
}

/* --------------------------------------------------------------------------
   2. 目录双栏布局 + 侧栏筛选
   -------------------------------------------------------------------------- */
.rf-catalog {
  display: block;
}

.rf-catalog__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--rf-space-xl);
  align-items: start;
}

.rf-catalog__sidebar {
  position: sticky;
  top: 96px;
}

.rf-filter {
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
  padding: var(--rf-space-lg);
  box-shadow: var(--rf-shadow-sm);
}

.rf-filter__group {
  padding-block: var(--rf-space-md);
  border-block-end: 1px solid var(--rf-color-border);
}

.rf-filter__group:first-child {
  padding-block-start: 0;
}

.rf-filter__group:last-of-type {
  border-block-end: 0;
}

.rf-filter__title {
  font-size: var(--rf-fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rf-color-heading);
  margin: 0 0 var(--rf-space-sm);
}

.rf-filter__options {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  margin: 0;
}

.rf-filter__options .rf-checkbox {
  font-size: var(--rf-fs-sm);
  font-weight: 400;
  color: var(--rf-color-text);
  cursor: pointer;
}

.rf-filter__options label:hover {
  color: var(--rf-color-primary);
}

.rf-filter__sub {
  margin: 0.45em 0 0 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.rf-filter__price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rf-space-sm);
}

.rf-filter__actions {
  display: flex;
  gap: var(--rf-space-sm);
  margin-block-start: var(--rf-space-md);
}

.rf-filter__actions .rf-btn {
  flex: 1 1 0;
}

/* 目录工具条（排序 + 计数） */
.rf-catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rf-space-md);
  margin-block-end: var(--rf-space-lg);
}

.rf-catalog__sort {
  display: flex;
  align-items: center;
  gap: var(--rf-space-sm);
  font-size: var(--rf-fs-sm);
}

.rf-catalog__sort select {
  width: auto;
  min-width: 180px;
  padding: 0.45em 0.7em;
}

/* --------------------------------------------------------------------------
   3. 对比底栏
   -------------------------------------------------------------------------- */
.rf-compare-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--rf-z-compare);
  background: var(--rf-color-bg);
  border-block-start: 1px solid var(--rf-color-border);
  box-shadow: 0 -6px 24px rgba(14, 27, 44, 0.12);
  padding-block: var(--rf-space-sm);
  transform: translateY(110%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.rf-compare-bar.is-open {
  transform: translateY(0);
  visibility: visible;
}

.rf-compare-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--rf-space-md);
}

.rf-compare-bar__label {
  font-family: var(--rf-font-heading);
  font-size: var(--rf-fs-sm);
  font-weight: 700;
  flex: 0 0 auto;
}

.rf-compare-bar__slots {
  display: flex;
  flex: 1 1 auto;
  gap: var(--rf-space-sm);
  min-width: 0;
  overflow-x: auto;
}

.rf-compare-bar__slot {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.35em 0.7em 0.35em 0.35em;
  background: var(--rf-color-bg-alt);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-sm);
}

.rf-compare-bar__slot img {
  width: 44px;
  height: 33px;
  object-fit: cover;
  border-radius: var(--rf-radius-sm);
  flex: 0 0 auto;
}

.rf-compare-bar__slot-title {
  font-size: var(--rf-fs-xs);
  font-weight: 600;
  color: var(--rf-color-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.rf-compare-bar__remove {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rf-color-text-muted);
  font-size: 1rem;
  line-height: 1;
}

.rf-compare-bar__remove:hover {
  background: var(--rf-color-danger);
  color: #fff;
}

.rf-compare-bar__empty {
  color: var(--rf-color-text-muted);
  font-size: var(--rf-fs-xs);
  padding-inline: 0.7em;
}

.rf-compare-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--rf-space-sm);
  flex: 0 0 auto;
}

.rf-compare-bar__clear {
  background: none;
  border: 0;
  color: var(--rf-color-text-muted);
  font-size: var(--rf-fs-xs);
  text-decoration: underline;
  padding: 0;
}

.rf-compare-bar__clear:hover {
  color: var(--rf-color-danger);
}

/* --------------------------------------------------------------------------
   4. 产品详情 hero 区
   -------------------------------------------------------------------------- */
.rf-product-hero {
  background: var(--rf-color-bg-alt);
  border-block-end: 1px solid var(--rf-color-border);
  padding-block: var(--rf-space-xl);
}

.rf-product-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--rf-space-xl);
  align-items: center;
}

.rf-product-hero__media {
  aspect-ratio: 4 / 3;
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-product-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--rf-space-lg);
}

.rf-product-hero__title {
  font-size: var(--rf-fs-h1);
}

.rf-product-hero__model {
  display: inline-block;
  margin-block-end: var(--rf-space-sm);
  padding: 0.25em 0.9em;
  font-family: var(--rf-font-heading);
  font-size: var(--rf-fs-sm);
  font-weight: 700;
  color: var(--rf-color-primary);
  background: var(--rf-color-primary-light);
  border-radius: var(--rf-radius-pill);
}

.rf-product-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rf-space-md) var(--rf-space-xl);
  margin-block: var(--rf-space-md) var(--rf-space-lg);
  padding: var(--rf-space-md);
  background: var(--rf-color-bg);
  border-radius: var(--rf-radius-md);
  border: 1px solid var(--rf-color-border);
}

.rf-product-hero__meta div {
  font-size: var(--rf-fs-sm);
}

.rf-product-hero__meta dt {
  color: var(--rf-color-text-muted);
}

.rf-product-hero__meta dd {
  margin: 0;
  font-weight: 700;
  font-family: var(--rf-font-heading);
}

.rf-product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rf-space-md);
}

/* --------------------------------------------------------------------------
   5. 规格表（斑马纹分组）
   -------------------------------------------------------------------------- */
.rf-specs-table {
  width: 100%;
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--rf-fs-sm);
}

.rf-specs-table caption {
  text-align: start;
  font-family: var(--rf-font-heading);
  font-weight: 700;
  padding: var(--rf-space-sm) var(--rf-space-md);
  background: var(--rf-color-bg-dark);
  color: #fff;
}

.rf-specs-table thead th {
  background: var(--rf-color-bg-alt);
  font-family: var(--rf-font-heading);
  text-align: start;
  padding: 0.7em var(--rf-space-md);
  border-block-end: 1px solid var(--rf-color-border);
}

.rf-specs-table td {
  padding: 0.65em var(--rf-space-md);
  border-block-end: 1px solid var(--rf-color-border);
}

.rf-specs-table tbody tr:nth-child(even) {
  background: var(--rf-color-bg-alt);
}

.rf-specs-table tbody tr:last-child td {
  border-block-end: 0;
}

.rf-specs-table .rf-specs-table__group th {
  background: var(--rf-color-primary-light);
  color: var(--rf-color-primary-dark);
  font-weight: 700;
  padding: 0.55em var(--rf-space-md);
}

.rf-specs-table td:last-child {
  text-align: end;
  font-weight: 600;
  font-family: var(--rf-font-heading);
}

/* ≤768px 横向滚动容器 */
.rf-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  .rf-specs-table {
    min-width: 560px;
  }
}

/* --------------------------------------------------------------------------
   6. 性能曲线图（JS 渲染 SVG）
   -------------------------------------------------------------------------- */
.rf-perf-chart {
  position: relative; /* tooltip 定位锚点 */
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
  padding: var(--rf-space-lg);
}

.rf-perf-chart__title {
  font-size: var(--rf-fs-h3);
  margin-block-end: var(--rf-space-md);
}

.rf-perf-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.rf-perf-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rf-space-md);
  margin-block-start: var(--rf-space-md);
  font-size: var(--rf-fs-sm);
}

.rf-perf-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.rf-perf-chart__legend-swatch {
  width: 14px;
  height: 3px;
  border-radius: var(--rf-radius-pill);
}

.rf-perf-chart__axis-label {
  font-size: 11px;
  fill: var(--rf-color-text-muted);
  font-family: var(--rf-font-body);
}

.rf-perf-chart__tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--rf-color-bg-dark);
  color: #fff;
  font-size: var(--rf-fs-xs);
  padding: 0.4em 0.7em;
  border-radius: var(--rf-radius-sm);
  white-space: nowrap;
  transform: translate(-50%, -130%);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}

.rf-perf-chart__tooltip.is-visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   7. 应用场景图标卡
   -------------------------------------------------------------------------- */
.rf-applications {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--rf-space-lg);
}

.rf-application-card {
  text-align: center;
  padding: var(--rf-space-lg) var(--rf-space-md);
}

.rf-application-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-block-end: var(--rf-space-sm);
  border-radius: var(--rf-radius-pill);
  background: var(--rf-color-primary-light);
  color: var(--rf-color-primary);
  font-size: 1.8rem;
}

.rf-application-card__icon .dashicons,
.rf-application-card__icon svg {
  width: 32px;
  height: 32px;
  font-size: 32px;
}

.rf-application-card__title {
  font-size: var(--rf-fs-base);
  margin-block-end: var(--rf-space-xs);
}

.rf-application-card__desc {
  font-size: var(--rf-fs-sm);
  color: var(--rf-color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. 文档列表与权限 badge
   -------------------------------------------------------------------------- */
.rf-docs-list {
  display: flex;
  flex-direction: column;
  gap: var(--rf-space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.rf-docs-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rf-space-sm) var(--rf-space-md);
  padding: var(--rf-space-md);
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
  transition: border-color var(--rf-transition), box-shadow var(--rf-transition);
}

.rf-docs-list__item:hover {
  border-color: var(--rf-color-primary-light);
  box-shadow: var(--rf-shadow-sm);
}

.rf-docs-list__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-color-bg-alt);
  color: var(--rf-color-primary);
}

.rf-docs-list__body {
  flex: 1 1 220px;
  min-width: 0;
}

.rf-docs-list__title {
  font-weight: 600;
  color: var(--rf-color-heading);
  font-size: var(--rf-fs-sm);
}

.rf-docs-list__meta {
  font-size: var(--rf-fs-xs);
  color: var(--rf-color-text-muted);
}

.rf-docs-list__download {
  flex: 0 0 auto;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.7em;
  font-size: var(--rf-fs-xs);
  font-weight: 700;
  border-radius: var(--rf-radius-pill);
  white-space: nowrap;
}

.rf-badge--public {
  background: rgba(30, 158, 90, 0.12);
  color: var(--rf-color-success);
}

.rf-badge--registered {
  background: rgba(11, 95, 255, 0.12);
  color: var(--rf-color-primary);
}

.rf-badge--verified {
  background: rgba(224, 161, 0, 0.15);
  color: #9A7000;
}

/* --------------------------------------------------------------------------
   9. 相关产品
   -------------------------------------------------------------------------- */
.rf-related .rf-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* --------------------------------------------------------------------------
   10. FAQ（details/summary）
   -------------------------------------------------------------------------- */
.rf-faq {
  display: flex;
  flex-direction: column;
  gap: var(--rf-space-sm);
  max-width: 820px;
}

.rf-faq__item {
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
  overflow: hidden;
}

.rf-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rf-space-md);
  padding: var(--rf-space-md) var(--rf-space-lg);
  font-family: var(--rf-font-heading);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.rf-faq__item summary::-webkit-details-marker {
  display: none;
}

.rf-faq__item summary::after {
  content: "+";
  font-size: 1.4em;
  font-weight: 400;
  color: var(--rf-color-primary);
  flex: 0 0 auto;
  transition: transform var(--rf-transition);
}

.rf-faq__item[open] summary::after {
  transform: rotate(45deg);
}

.rf-faq__item summary:hover {
  background: var(--rf-color-bg-alt);
}

.rf-faq__answer {
  padding: 0 var(--rf-space-lg) var(--rf-space-md);
  color: var(--rf-color-text-muted);
  border-block-start: 1px solid var(--rf-color-border);
  padding-block-start: var(--rf-space-md);
}

/* --------------------------------------------------------------------------
   11. 对比表（sticky 首列 + 表头）
   -------------------------------------------------------------------------- */
.rf-compare-table-wrap {
  position: relative;
  overflow: auto;
  max-height: 70vh;
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-md);
}

.rf-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--rf-fs-sm);
  min-width: 720px;
}

.rf-compare-table th,
.rf-compare-table td {
  padding: 0.7em var(--rf-space-md);
  border-block-end: 1px solid var(--rf-color-border);
  border-inline-end: 1px solid var(--rf-color-border);
  text-align: start;
  background: var(--rf-color-bg);
}

.rf-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--rf-color-bg-alt);
  font-family: var(--rf-font-heading);
  font-weight: 700;
}

.rf-compare-table th:first-child,
.rf-compare-table td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  background: var(--rf-color-bg-alt);
  font-weight: 600;
  color: var(--rf-color-text-muted);
  min-width: 160px;
}

.rf-compare-table thead th:first-child {
  z-index: 4;
}

.rf-compare-table thead th img {
  width: 84px;
  height: 63px;
  object-fit: cover;
  border-radius: var(--rf-radius-sm);
  margin-block-end: var(--rf-space-xs);
}

.rf-compare-table tbody tr:nth-child(even) td:not(:first-child) {
  background: var(--rf-color-bg-alt);
}

.rf-compare-table tbody tr:last-child td {
  border-block-end: 0;
}

.rf-compare-table td:last-child,
.rf-compare-table th:last-child {
  border-inline-end: 0;
}

.rf-compare-table__row-label {
  text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   12. 询价表单：三步向导
   -------------------------------------------------------------------------- */
.rf-inquiry-form {
  max-width: 760px;
  margin-inline: auto;
  background: var(--rf-color-bg);
  border: 1px solid var(--rf-color-border);
  border-radius: var(--rf-radius-lg);
  padding: clamp(var(--rf-space-lg), 4vw, var(--rf-space-xl));
  box-shadow: var(--rf-shadow-md);
}

.rf-inquiry-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.rf-inquiry-form fieldset[hidden],
.rf-inquiry-form .rf-step:not(.is-active) {
  display: none;
}

.rf-inquiry-form legend {
  font-family: var(--rf-font-heading);
  font-size: var(--rf-fs-h3);
  font-weight: 700;
  padding: 0;
  margin-block-end: var(--rf-space-md);
}

.rf-inquiry-form .rf-field {
  margin-block-end: var(--rf-space-md);
}

.rf-inquiry-form .rf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rf-space-md);
}

/* 蜜罐：视觉隐藏但保持可聚焦性外（不用 display:none 以骗过机器人） */
.rf-inquiry-form .rf-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* 进度指示 */
.rf-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-block-end: var(--rf-space-xl);
  counter-reset: rf-step;
}

.rf-steps__item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--rf-fs-sm);
  color: var(--rf-color-text-muted);
  position: relative;
}

.rf-steps__item::before {
  counter-increment: rf-step;
  content: counter(rf-step);
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--rf-color-border);
  background: var(--rf-color-bg);
  font-family: var(--rf-font-heading);
  font-weight: 700;
  transition: background var(--rf-transition), border-color var(--rf-transition),
    color var(--rf-transition);
}

.rf-steps__item::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  background: var(--rf-color-border);
  margin-inline: 0.6em;
}

.rf-steps__item:last-child::after {
  display: none;
}

.rf-steps__item.is-active {
  color: var(--rf-color-primary);
}

.rf-steps__item.is-active::before {
  border-color: var(--rf-color-primary);
  color: var(--rf-color-primary);
  box-shadow: 0 0 0 4px var(--rf-color-primary-light);
}

.rf-steps__item.is-done {
  color: var(--rf-color-success);
}

.rf-steps__item.is-done::before {
  content: "✓";
  border-color: var(--rf-color-success);
  background: var(--rf-color-success);
  color: #fff;
}

.rf-steps__item.is-done::after {
  background: var(--rf-color-success);
}

.rf-steps__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 表单底部按钮 */
.rf-inquiry-form__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--rf-space-md);
  margin-block-start: var(--rf-space-lg);
}

.rf-inquiry-form__nav .rf-btn--prev {
  visibility: hidden;
}

.rf-inquiry-form[data-step="1"] .rf-btn--prev {
  visibility: hidden;
}

.rf-inquiry-form:not([data-step="1"]) .rf-btn--prev {
  visibility: visible;
}

/* 提交状态/结果消息 */
.rf-msg {
  display: none;
  padding: var(--rf-space-md);
  border-radius: var(--rf-radius-md);
  font-size: var(--rf-fs-sm);
  margin-block-start: var(--rf-space-md);
}

.rf-msg.is-visible {
  display: block;
}

.rf-msg--ok {
  background: rgba(30, 158, 90, 0.1);
  border: 1px solid var(--rf-color-success);
  color: var(--rf-color-success);
}

.rf-msg--err {
  background: rgba(214, 54, 56, 0.08);
  border: 1px solid var(--rf-color-danger);
  color: var(--rf-color-danger);
}

/* 隐私协议勾选 */
.rf-inquiry-form .rf-privacy {
  margin-block: var(--rf-space-md);
}

/* 提交中状态 */
.rf-inquiry-form.is-submitting .rf-btn--submit {
  opacity: 0.6;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. 产品页响应式
   -------------------------------------------------------------------------- */
@media (max-width: 479.98px) {
  .rf-inquiry-form .rf-field-row {
    grid-template-columns: 1fr;
  }

  .rf-steps__label {
    display: none;
  }

  .rf-compare-bar__label {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .rf-product-hero__inner {
    grid-template-columns: 1fr;
  }
}

/* ≤1024px：目录侧栏折叠为顶部 details 折叠组 */
@media (max-width: 1023.98px) {
  .rf-catalog {
    grid-template-columns: 1fr;
  }

  .rf-catalog__sidebar {
    position: static;
  }

  .rf-filter {
    padding: 0;
    border: 1px solid var(--rf-color-border);
  }

  .rf-filter__group {
    padding: 0;
    border-block-end: 0;
  }

  .rf-filter__group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9em var(--rf-space-md);
    font-family: var(--rf-font-heading);
    font-size: var(--rf-fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rf-color-heading);
    cursor: pointer;
    list-style: none;
    border-block-end: 1px solid var(--rf-color-border);
  }

  .rf-filter__group > summary::-webkit-details-marker {
    display: none;
  }

  .rf-filter__group > summary::after {
    content: "+";
    font-size: 1.2em;
    color: var(--rf-color-primary);
  }

  .rf-filter__group[open] > summary::after {
    content: "−";
  }

  .rf-filter__body {
    padding: var(--rf-space-md);
  }

  .rf-filter__actions {
    padding: var(--rf-space-md);
    margin-block-start: 0;
  }
}

/* 打印对比栏隐藏 */
@media print {
  .rf-compare-bar {
    display: none;
  }
}
