/* ══════════════════════════════════════════════════════════
   润皓科技 RAISEINFO · 产品详情页共用 detail.css
   由 smartorders.html / ud.html / yeji.html / rag.html 共用
══════════════════════════════════════════════════════════ */

/* ── 正文段落 ── */
.dt-prose p {
  font-size: var(--fs-base);
  line-height: 1.9;
  margin-bottom: var(--sp-4);
  max-width: 68ch;
}
.dt-prose p:last-child { margin-bottom: 0; }
.dt-prose b { color: var(--text-hi); font-weight: 500; }

/* ── 两栏：正文 + 侧栏信息卡 ── */
.dt-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.dt-side {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.dt-side__t {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.dt-rows { display: flex; flex-direction: column; gap: var(--sp-3); }
.dt-rows > div { display: flex; flex-direction: column; gap: 4px; }
.dt-rows dt { font-size: var(--fs-xs); color: var(--text-lo); }
.dt-rows dd {
  font-size: var(--fs-sm);
  color: var(--text-hi);
  line-height: 1.65;
}
.dt-rows dd.mono {
  font-family: var(--font-num);
  letter-spacing: 0.4px;
}

/* ── 能力卡 ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.feat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.feat:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
}
.feat__k {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 1.5px;
  color: var(--brand);
  margin-bottom: 10px;
}
.feat__t {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-hi);
  margin-bottom: 10px;
}
.feat__d {
  font-size: var(--fs-sm);
  color: var(--text-md);
  line-height: 1.8;
}
.feat__list {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-sm);
  color: var(--text-md);
  line-height: 1.75;
}
.feat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .8;
}
.feat--wide { grid-column: 1 / -1; }

/* ── 步骤 ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.step {
  position: relative;
  padding-top: var(--sp-4);
  border-top: 2px solid var(--border-hi);
}
.step__no {
  display: block;
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  letter-spacing: 1.5px;
  color: var(--brand);
  margin-bottom: 10px;
}
.step__t {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-hi);
  margin-bottom: 8px;
}
.step__d {
  font-size: var(--fs-sm);
  color: var(--text-md);
  line-height: 1.8;
}

/* ── 规格 / 接口表 ── */
.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.spec-table table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-lo);
  background: var(--bg-surface);
}
.spec-table tbody th {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
  width: 1%;
}
.spec-table td {
  font-size: var(--fs-sm);
  color: var(--text-md);
  line-height: 1.8;
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table code {
  font-family: var(--font-num);
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: 0.2px;
  word-break: break-all;
}

/* ── 效果对比 ── */
.cmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.cmp-pair {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cmp-pair__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.cmp-pair__imgs figure { position: relative; background: var(--bg-surface); }
.cmp-pair__imgs img {
  width: 100%;
  height: auto;            /* 必须写：img 的 height 属性是表现性提示，会盖过 aspect-ratio */
  aspect-ratio: 8 / 5;
  object-fit: cover;
}
.cmp-pair__imgs figcaption {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
}
.cmp-pair__body { padding: var(--sp-4); }
.cmp-pair__t {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-hi);
  margin-bottom: 6px;
}
.cmp-pair__d { font-size: var(--fs-xs); color: var(--text-lo); }

/* ── 提示条 ── */
.note {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--brand-soft);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--text-md);
}
.note b { color: var(--text-hi); font-weight: 500; }
.note__mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 700;
}

/* ── 来源声明（小字） ── */
.src {
  font-size: var(--fs-xs);
  color: var(--text-lo);
  line-height: 1.8;
}

/* ── 响应式 ── */
@media (max-width: 1080px) {
  .dt-split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .dt-side { position: static; }
  .cmp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .feat, .dt-side { padding: var(--sp-4); }
  .note { padding: var(--sp-3) var(--sp-4); }

  /* 接口表在窄屏改为竖排 */
  .spec-table { border: none; border-radius: 0; background: none; }
  .spec-table thead { display: none; }
  .spec-table table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td { display: block; width: auto; }
  .spec-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--sp-4);
    margin-bottom: var(--sp-2);
  }
  .spec-table tbody th,
  .spec-table td { padding: 0; border: none; white-space: normal; }
  .spec-table tbody th { margin-bottom: 6px; }
  .spec-table td:empty { display: none; }
}
