/* ============================================================
   content.css — 产品参数区（文字参数表 + 详情长图）
   挂载点：[data-role=spec-rows]、[data-role=long-imgs]
   ============================================================ */

/* ---------------- 参数表 ---------------- */
.specs__table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.specs__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.specs__caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.specs__table th,
.specs__table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.specs__table tr:last-child th,
.specs__table tr:last-child td {
  border-bottom: 0;
}

.specs__table th {
  width: 40%;
  font-weight: 600;
  color: var(--ink-dim);
}

.specs__table td {
  color: var(--ink);
}

/* 移动端：行内上下排列，避免窄屏横向溢出 */
@media (max-width: 600px) {
  .specs__table,
  .specs__table tbody,
  .specs__table tr,
  .specs__table th,
  .specs__table td {
    display: block;
    width: auto;
  }

  .specs__table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .specs__table tr:last-child {
    border-bottom: 0;
  }

  .specs__table th,
  .specs__table td {
    padding: 0;
    border: 0;
  }

  .specs__table th {
    margin-bottom: 3px;
    font-size: 12px;
    letter-spacing: 0.03em;
  }
}

/* ---------------- 详情长图（分段懒加载） ---------------- */
.long-imgs {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.long-imgs__item {
  position: relative;
  background: var(--panel-2);
}

.long-imgs__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.long-imgs__item.is-loaded .long-imgs__img {
  opacity: 1;
}

/* 加载失败：收起破图，露出占位文案（页面不破版） */
.long-imgs__item.is-error .long-imgs__img {
  display: none;
}

.long-imgs__fallback {
  display: none;
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
}

.long-imgs__item.is-error .long-imgs__fallback {
  display: block;
  min-height: 120px;
  align-content: center;
}
