/* 首页「裸金属服务器」板块
   位置：插在「服务器租用，独享算力按需租赁」整体板块上方。
   取数：后台产品管理中 physical_mode=1 / 系列为「裸金属产品」的在架机型，首页只取 2 款。
   配色沿用站点品牌橙（--brand #0e7c86）与浅橙底（--brand-soft），与云服务器套餐、租用板块形成节奏区分。 */

.home-bm {
  position: relative;
  background: #ffffff;
}

.home-bm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.home-bm-intro {
  max-width: 640px;
}
.home-bm-intro .eyebrow {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-bm-intro .section-title {
  margin: 0 0 12px;
}
.home-bm-intro .section-lead {
  max-width: 36em;
}
.home-bm-facts {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: none;
}
.home-bm-facts li {
  min-width: 104px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dde9ea;
  box-shadow: 0 4px 12px rgba(17,36,39, 0.04);
}
.home-bm-facts b {
  display: block;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--brand-strong);
}
.home-bm-facts span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.home-bm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.home-bm-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

.bm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 22px;
  border: 1px solid #dae6e8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(17,36,39, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #246168 100%);
}
.bm-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-soft-line);
  box-shadow: 0 16px 36px rgba(17,36,39, 0.1);
}
/* 卡片晚于全站入场脚本插入，单独按同一节奏做淡入上浮（translate 与 hover 的 transform 互不覆盖） */
.bm-card.bm-reveal {
  opacity: 0;
  translate: 0 20px;
}
.bm-card.bm-reveal.bm-in {
  opacity: 1;
  translate: none;
  transition:
    opacity 0.72s cubic-bezier(0.22, 0.72, 0.24, 1),
    translate 0.72s cubic-bezier(0.22, 0.72, 0.24, 1);
  transition-delay: var(--bm-delay, 0ms);
}
@supports not (translate: 0 20px) {
  .bm-card.bm-reveal {
    transform: translate3d(0, 20px, 0);
  }
  .bm-card.bm-reveal.bm-in {
    transform: none;
  }
}
.bm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bm-series {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 600;
}
.bm-flag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--brand-soft-line);
  background: #f9fbfb;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.bm-name {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}
.bm-desc {
  margin: 0;
  min-height: 2.6em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.bm-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 16px 0 0;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.bm-cell dt {
  font-size: 11px;
  color: var(--ink-3);
}
.bm-cell dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.bm-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.bm-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.bm-price-num {
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.bm-price-unit {
  font-size: 12px;
  color: var(--ink-3);
}
.bm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bm-link {
  font-size: 12px;
  color: var(--ink-2);
}
.bm-link:hover {
  color: var(--brand-strong);
}

.home-bm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 26px;
}
.home-bm-consult {
  font-size: 13px;
  color: var(--ink-2);
}
.home-bm-consult:hover {
  color: var(--brand-strong);
}

@media (max-width: 1023px) {
  .home-bm-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .home-bm-facts {
    flex-wrap: wrap;
  }
  .bm-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .home-bm-grid {
    grid-template-columns: 1fr;
  }
  .bm-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-bm-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bm-card {
    transition: none;
  }
  .bm-card.bm-reveal,
  .bm-card.bm-reveal.bm-in {
    opacity: 1;
    translate: none;
    transform: none;
    transition: none;
  }
}