/* =========================================================
   r39 · 号码详情页：小屏自适应 + 黑金主题统一
   加载在 mobile-r37.css 之后，只覆盖详情页，不改列表页。
   ========================================================= */

/* ---------- 1. 号码牌：按屏宽收缩，11 位号码不越界 ---------- */
body .detail-hero .num-badge.num-badge-fill {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(23px, 9.4vw, 37px) !important;
  letter-spacing: .35px !important;
  line-height: 1.15;
  padding: 12px 10px !important;
  margin: 4px 0 0 !important;
  border-radius: 12px;
}
body .detail-hero .num-slogan {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

/* ---------- 2. 价格框：按内容自适应，不再固定 232px ---------- */
body .detail-hero .dh-price-box {
  width: max-content !important;
  min-width: 220px;
  max-width: calc(100% - 8px) !important;
  box-sizing: border-box;
  margin: 12px auto 0 !important;
  padding: 12px 18px 13px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center !important;
  gap: 2px 8px !important;
}
body .detail-hero .dh-price-box .dh-price-label {
  font-size: clamp(22px, 6.7vw, 26px) !important;
  font-weight: 800;
  letter-spacing: .8px !important;
  line-height: 1.1;
  margin: 0 !important;
}
body .detail-hero .dh-price-box .d-price {
  margin: 0 !important;
  justify-content: center !important;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
body .detail-hero .dh-price-box .d-price .val {
  font-size: clamp(22px, 6.7vw, 26px) !important;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
}
body .detail-hero .dh-price-box .d-price .val.ask {
  font-size: clamp(21px, 6.4vw, 25px) !important;
}
body .detail-hero .dh-price-box .dh-price-note {
  flex: 0 0 100%;
  text-align: center !important;
  margin-top: 5px !important;
}

@media (max-width: 340px) {
  body .detail-hero .dh-price-box {
    min-width: 210px;
    padding: 11px 12px 12px !important;
    gap: 0 6px !important;
  }
}

/* ---------- 3. 黑金主题：详情页白色卡片全部改成黑金 ---------- */
body[data-theme="blackgold"] .detail-hero {
  background: var(--detail-bg) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}
body[data-theme="blackgold"] .detail-hero .num-slogan {
  color: #e4c981 !important;
}
body[data-theme="blackgold"] .detail-hero .dh-price-box {
  background: linear-gradient(180deg, rgba(214, 178, 94, .10) 0%, rgba(20, 17, 12, .72) 100%) !important;
  border-color: rgba(214, 178, 94, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 171, .08), 0 6px 16px rgba(0, 0, 0, .28);
}
body[data-theme="blackgold"] .detail-hero .dh-price-label {
  color: var(--sub) !important;
}
body[data-theme="blackgold"] .detail-hero .d-price .cur,
body[data-theme="blackgold"] .detail-hero .d-price .val {
  color: var(--price-fg) !important;
}
body[data-theme="blackgold"] .detail-hero .d-price .val.ask {
  color: var(--red-2) !important;
}

body[data-theme="blackgold"] .d-detail {
  background: var(--card) !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body[data-theme="blackgold"] .d-detail h4 {
  color: var(--text) !important;
}
body[data-theme="blackgold"] .d-detail p {
  color: var(--sub) !important;
}

body[data-theme="blackgold"] .mod-card {
  background: var(--card) !important;
  border: 1px solid rgba(214, 178, 94, .16);
  border-top-width: 1px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .24);
}
body[data-theme="blackgold"] .mod-notice {
  background: linear-gradient(180deg, rgba(214, 178, 94, .13) 0%, var(--card) 54%) !important;
  border-top: 2px solid rgba(214, 178, 94, .34) !important;
}
body[data-theme="blackgold"] .mod-warn {
  background: linear-gradient(180deg, rgba(214, 178, 94, .08) 0%, var(--card) 54%) !important;
}
body[data-theme="blackgold"] .mod-ic {
  background: rgba(214, 178, 94, .13) !important;
  color: var(--red) !important;
  box-shadow: inset 0 0 0 1px rgba(214, 178, 94, .18);
}
body[data-theme="blackgold"] .mod-title {
  color: var(--text) !important;
}
body[data-theme="blackgold"] .mod-title span {
  color: var(--sub) !important;
}
body[data-theme="blackgold"] .mod-list li {
  color: var(--sub) !important;
}
body[data-theme="blackgold"] .mod-list li b {
  color: var(--red-2) !important;
}
body[data-theme="blackgold"] .mod-list li::marker {
  color: var(--red) !important;
}
body[data-theme="blackgold"] .fs-ic {
  background: linear-gradient(180deg, #2c2518 0%, #17130d 100%) !important;
  color: var(--red-2) !important;
  box-shadow: inset 0 0 0 1px rgba(214, 178, 94, .26), 0 4px 12px rgba(0, 0, 0, .28) !important;
}
body[data-theme="blackgold"] .fs-t {
  color: var(--text) !important;
}
body[data-theme="blackgold"] .fs-line {
  border-top-color: rgba(214, 178, 94, .28) !important;
}
