/* ==========================================================================
   SRACING · 数据中心 /data/  ·  sr-data-hub.css
   依据：视觉规格 20261023 §3（骨架 / 页头 / 双库通栏 / 双轮播 / 数据结论 / 响应式）
   依赖：sr-tokens.css（须先加载）
   注意：索引表不下线，下沉为 <details> 折叠区（GEO 内链兜底）
   ========================================================================== */

.dh { color: var(--l1); }

/* ---------------------------------------------------------------- 0. 页头（非 sticky） */
.dh-head {
  padding-top: 96px;
  padding-bottom: 80px;
}
.dh-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  letter-spacing: .04em;
  color: var(--accent);
}
.dh-h1 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 38px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-lead {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-body);
  color: var(--l2);
}

/* ---------------------------------------------------------------- 1. 双库通栏（贴屏） */
.dh-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 352px;
  padding: 0;
  margin: 0;
}
.dh-hub__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--s1);
  border: 1px solid var(--f1);
  text-decoration: none;
  color: inherit;
  transition: border-color 250ms var(--ease);
}
.dh-hub__cell--l { border-radius: 0 16px 16px 0; }
.dh-hub__cell--r { border-radius: 16px 0 0 16px; }
.dh-hub__cell:hover { border-color: var(--f3); }

.dh-hub__art {
  position: absolute;
  top: 0;
  right: var(--pad);
  height: 100%;
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  opacity: .95;
  transition: transform 700ms var(--ease);
}
.dh-hub__cell:hover .dh-hub__art { transform: scale(1.03); }
.dh-hub__art svg { width: 100%; height: auto; max-height: 78%; }

.dh-hub__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #0b0c0e 0%,
    rgba(11, 12, 14, .92) 34%,
    rgba(11, 12, 14, .58) 62%,
    rgba(11, 12, 14, 0) 100%
  );
}

.dh-hub__body {
  position: relative;
  z-index: 2;
  display: block;
  padding: 32px var(--pad);
}
/* 双库卡内全部是 span，必须显式块级化，否则标签/库名/说明会挤在同一行 */
.dh-hub__body > span { display: block; }
.dh-hub__no {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  letter-spacing: .04em;
  color: var(--accent);
}
.dh-hub__name {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 36px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-hub__desc {
  margin: 0 0 24px;
  max-width: 30em;
  min-height: 46px;
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  color: var(--l3);
}
.dh-hub__go {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: 14px;
  line-height: 23px;
  color: var(--l1);
  transition: color 250ms var(--ease);
}
.dh-hub__go::after { content: "→"; transition: transform 250ms var(--ease); }
.dh-hub__cell:hover .dh-hub__go { color: var(--red); }
.dh-hub__cell:hover .dh-hub__go::after { transform: translateX(4px); }

/* ---------------------------------------------------------------- 2. 两条独立轮播 */
.dh-rail-blk { padding-top: 80px; }
.dh-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
}
.dh-rail-head__l { display: flex; align-items: baseline; gap: 14px; }
.dh-rail-no {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  letter-spacing: .04em;
  color: var(--accent);
  white-space: nowrap;
}
.dh-rail-h2 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-rail-all {
  font-size: 14px;
  line-height: 23px;
  color: var(--l3);
  text-decoration: none;
  white-space: nowrap;
  transition: color 250ms var(--ease);
}
.dh-rail-all:hover { color: var(--red); }

.dh-rail {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 32px var(--pad) 8px;
  scrollbar-width: none;
  cursor: grab;
}
.dh-rail::-webkit-scrollbar { display: none; }
.dh-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }

.dh-card {
  flex: 0 0 min(384px, 78vw);
  scroll-snap-align: center;
  background: var(--s1);
  border: 1px solid var(--f1);
  border-radius: 16px;
  overflow: hidden;
  opacity: .3;
  transform: scale(.76);
  transition: transform 500ms var(--ease), opacity 500ms var(--ease),
              border-color 250ms var(--ease);
}
.dh-card.is-n { opacity: .55; transform: scale(.88); }
.dh-card.is-c { opacity: 1; transform: scale(1); border-color: var(--f2); }
.dh-card > a { display: block; color: inherit; text-decoration: none; }
.dh-card:hover { border-color: var(--f3); }

.dh-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dh-card__media svg { width: 62%; height: auto; }
.dh-card__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 12, 14, .6);
  backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 16px;
  font-weight: var(--w-head);
  letter-spacing: .04em;
  color: var(--l2);
}
.dh-card__body { padding: 20px; }
.dh-card__name {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 28px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-card__meta {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 23px;
  color: var(--l3);
}
.dh-card__desc {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 24px;
  font-weight: var(--w-body);
  color: var(--l3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dh-card__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--f1);
}
.dh-card__specs div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dh-card__specs dt {
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  color: var(--l3);
}
.dh-card__specs dd {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-head);
  color: var(--l1);
  font-variant-numeric: tabular-nums;
}

.dh-dots {
  display: flex;
  gap: 10px;
  padding: 16px var(--pad) 0;
}
.dh-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  transition: width 250ms var(--ease), background 250ms var(--ease);
}
.dh-dot.is-on { width: 24px; background: var(--accent); }

/* ---------------------------------------------------------------- 3. 数据结论（左对齐 760） */
.dh-concl {
  max-width: 760px;
  margin: 0;
  padding: 80px var(--pad) 0;
}
.dh-concl h2 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 36px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-concl p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 28px;
  font-weight: var(--w-body);
  color: var(--l1);
}
.dh-concl strong { font-weight: var(--w-head); font-variant-numeric: tabular-nums; }

.dh-dl {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, .10);
}
.dh-dl a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 23px;
  color: var(--l1);
  text-decoration: none;
  border-bottom: 1px solid var(--f1);
  transition: color 250ms var(--ease);
}
.dh-dl a b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: var(--w-head);
  letter-spacing: .04em;
  color: var(--accent);
  min-width: 36px;
}
.dh-dl a .dh-dl__arr {
  margin-left: auto;
  color: var(--l3);
  transition: transform 250ms var(--ease);
}
.dh-dl a:hover { color: var(--red); }
.dh-dl a:hover .dh-dl__arr { transform: translateX(4px); }

.dh-brand {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  color: var(--l4);
}

/* ---------------------------------------------------------------- 4. 常见问题（规格漏列，保留） */
.dh-faq { padding: 80px var(--pad) 0; }
.dh-faq h2 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 36px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-faq h3 {
  margin: 32px 0 8px;
  font-size: 17px;
  line-height: 24px;
  font-weight: var(--w-head);
  color: var(--l1);
  letter-spacing: 0;
}
.dh-faq p {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 24px;
  font-weight: var(--w-body);
  color: var(--l2);
}

/* ---------------------------------------------------------------- 5. 完整索引（折叠，兜 GEO 内链） */
.dh-index { padding: 80px var(--pad); }
.dh-index__sum {
  display: flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--f2);
  font-size: 22px;
  line-height: 28px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.dh-index__sum::-webkit-details-marker { display: none; }
.dh-index__sum::before { content: "＋"; color: var(--accent); }
.dh-index[open] .dh-index__sum::before { content: "−"; }
.dh-index__sum span {
  font-size: 14px;
  line-height: 23px;
  font-weight: var(--w-body);
  color: var(--l3);
}
.dh-index__sub {
  margin: 40px 0 16px;
  font-size: 17px;
  line-height: 24px;
  font-weight: var(--w-head);
  color: var(--l1);
}
.dh-index__wrap { max-width: 1040px; margin: 0; overflow-x: auto; }
.dh-index table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 23px;
}
.dh-index caption {
  text-align: left;
  padding-bottom: 12px;
  font-size: 14px;
  color: var(--l3);
  font-weight: var(--w-body);
}
.dh-index th {
  text-align: left;
  font-weight: var(--w-head);
  color: var(--l3);
  border-bottom: 1px solid var(--f2);
  padding: 10px 12px 10px 0;
  white-space: nowrap;
}
.dh-index td {
  border-bottom: 1px solid var(--f1);
  padding: 10px 12px 10px 0;
  color: var(--l2);
  font-variant-numeric: tabular-nums;
}
.dh-index td a { color: var(--l1); text-decoration: none; }
.dh-index td a:hover { color: var(--red); }
.dh-index__note {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 23px;
  color: var(--l3);
}

/* ---------------------------------------------------------------- 响应式 ≤900 */
@media (max-width: 900px) {
  .dh-head { padding-top: 64px; padding-bottom: 48px; }
  .dh-h1 { font-size: 28px; line-height: 36px; }
  .dh-hub {
    grid-template-columns: 1fr;
    height: auto;
    gap: 16px;
  }
  .dh-hub__cell { border-radius: 16px; min-height: 240px; }
  .dh-hub__cell--l, .dh-hub__cell--r { border-radius: 16px; }
  .dh-hub__art { width: 58%; opacity: .7; }
  .dh-rail-blk { padding-top: 56px; }
  .dh-rail { padding-top: 24px; gap: 16px; }
  .dh-concl, .dh-faq, .dh-index { padding-top: 56px; padding-bottom: 0; }
  .dh-index { padding-bottom: 56px; }
  .dh-rail-head { flex-wrap: wrap; }
}
