/* Bridge: mf101 old theme + redesign (body.rd) */
body.rd {
  background: var(--bg) !important;
  font-family: var(--font) !important;
  color: var(--ink);
}
body.rd > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
}
body.rd .site-header.header-box {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0;
  box-shadow: none;
}
body.rd .site-header .nav {
  height: 68px;
}
body.rd .brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
body.rd .footer-logo-img {
  height: 28px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
}
body.rd .brand.header-logo {
  gap: 0;
}
body.rd .card-icon i,
body.rd .cert i,
body.rd .doc-item i {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
}
body.rd .fa-brands,
body.rd i.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
body.rd .fa-solid {
  font-weight: 900 !important;
}
body.rd .header-menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.rd .header-menu-list > li > a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  display: inline-block;
}
body.rd .header-menu-list > li.active > a,
body.rd .header-menu-list > li > a:hover {
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 650;
}
body.rd .head-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
}
body.rd .navbar-collapse {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body.rd .navbar-collapse .nav-link {
  padding: 12px 20px;
  color: var(--ink-soft);
}

/* Soften old page containers that conflict with redesign */
body.rd .banner-section,
body.rd .banner-about,
body.rd .event-banner,
body.rd .common-section,
body.rd .net-section,
body.rd .product-section,
body.rd .advantage-section,
body.rd .introduce-section,
body.rd .recommend-section,
body.rd .register-section,
body.rd .enterprise-introduction,
body.rd .service-section,
body.rd .video-section,
body.rd .flash-sale {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.rd .section-title {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  text-align: left;
}
body.rd .section-des {
  color: var(--muted);
  margin: 0 0 28px;
  text-align: left;
}

/* Product / flash cards restyled */
body.rd .index-block,
body.rd .flash-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
body.rd .index-item,
body.rd .flash-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s, border-color .2s;
}
body.rd .index-item:hover,
body.rd .flash-item:hover {
  transform: translateY(-2px);
  border-color: #cfd5df;
}
body.rd .index-item-title,
body.rd .flash-name,
body.rd .goods-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
body.rd .index-item-des,
body.rd .flash-des,
body.rd .goods-des {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
body.rd .price-box,
body.rd .flash-price,
body.rd .price-num {
  font-family: var(--display);
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
}
body.rd .btn-pri,
body.rd .btn.btn-pri,
body.rd .block-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  text-decoration: none;
}
body.rd .btn-pri:hover,
body.rd .block-btn:hover {
  background: var(--accent-dark) !important;
}
body.rd .recommend-section .section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
body.rd .section-list-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}
body.rd .goods-config {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
body.rd .goods-config-item-name {
  color: var(--muted);
  font-size: 12px;
}
body.rd .goods-config-item-value {
  font-weight: 600;
  font-size: 14px;
}
body.rd .product-introduce {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.rd .product-introduce-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  text-align: left;
}
body.rd .product-introduce-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}
body.rd .product-introduce-title {
  font-size: 1.05rem;
  margin: 0 0 8px;
}
body.rd .product-introduce-content {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}
body.rd .doc-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.rd .doc-list {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
body.rd .doc-type {
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
body.rd .doc-item a,
body.rd .doc-more a {
  color: var(--ink-soft);
  font-size: 14px;
  display: block;
  padding: 6px 0;
}
body.rd .doc-item a:hover {
  color: var(--accent);
}
body.rd .doc-main.doc-main-compact .doc-list {
  padding: 14px 16px;
  box-shadow: none;
  border-radius: 12px;
}
body.rd .doc-main.doc-main-compact .doc-type {
  font-size: 14px;
  margin-bottom: 8px;
}
body.rd .doc-main.doc-main-compact .doc-item a,
body.rd .doc-main.doc-main-compact .doc-more a {
  padding: 5px 0;
  font-size: 13px;
}
body.rd .register-box {
  background: var(--hero);
  color: #fff;
  border-radius: 18px;
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
body.rd .register-box h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
}
body.rd .btn-black {
  background: #fff !important;
  color: var(--ink) !important;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  text-decoration: none;
}
body.rd .flash-config .config-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
body.rd .flash-config .config-name { color: var(--muted); }
body.rd .partners img,
body.rd .partener-item img {
  max-height: 36px;
  filter: grayscale(1);
  opacity: .75;
}
body.rd .parteners-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

/*
 * 订购页样式（cloud-buy / dcim-buy）
 * 注意：mf_dcim.css / mf_cloud.css 将 html { font-size:100px }，此处禁用 rem，一律用 px
 */
body.rd.buy-page,
body.rd #buy {
  background: var(--bg) !important;
}
body.rd.buy-page .page-banner {
  display: none !important;
}
body.rd .buy-section {
  width: min(100% - 48px, 1180px) !important;
  margin: 28px auto 56px !important;
  max-width: 1180px !important;
  padding: 0 !important;
}
body.rd.buy-page .buy-section .select-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding: 0;
}
body.rd.buy-page .buy-section .select-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
body.rd.buy-page .buy-section .config-text {
  color: var(--muted);
  font-size: 13.5px;
}
body.rd.buy-page .buy-section .config-text .link-text {
  color: var(--accent);
  cursor: pointer;
  font-weight: 650;
  margin-left: 6px;
}
body.rd.buy-page .buy-section .el-form-item__label {
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}
body.rd.buy-page .buy-section .s-tip {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
body.rd.buy-page .buy-section .com-tit {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.3;
}
/* 分段按钮：对齐原型 .seg（独立圆角芯片，非连体） */
body.rd.buy-page .el-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.rd.buy-page .el-radio-button {
  margin: 0 !important;
}
body.rd.buy-page .el-radio-button__inner {
  border-radius: 9px !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--ink-soft) !important;
  box-shadow: none !important;
  padding: 9px 14px !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  line-height: 1.2 !important;
}
body.rd.buy-page .el-radio-button:first-child .el-radio-button__inner,
body.rd.buy-page .el-radio-button:last-child .el-radio-button__inner {
  border-radius: 9px !important;
}
body.rd.buy-page .el-radio-button__orig-radio:checked + .el-radio-button__inner,
body.rd.buy-page .el-radio-button.is-active .el-radio-button__inner {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
  box-shadow: none !important;
}
body.rd.buy-page .el-tabs__header {
  margin-bottom: 12px;
}
body.rd.buy-page .el-tabs__item.is-active {
  color: var(--accent);
  font-weight: 650;
}
body.rd.buy-page .el-tabs__active-bar {
  background-color: var(--accent);
}
body.rd.buy-page .el-tabs__nav-wrap::after {
  background-color: var(--line);
}
body.rd.buy-page .el-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
body.rd.buy-page .el-table th {
  background: #fafbfc !important;
  color: var(--muted);
  font-weight: 650;
  font-size: 12.5px;
}
body.rd.buy-page .el-table td {
  color: var(--ink-soft);
}
body.rd.buy-page .el-table--enable-row-hover .el-table__body tr:hover > td {
  background: #f4f7fa !important;
}
body.rd.buy-page .el-radio__input.is-checked .el-radio__inner {
  border-color: var(--accent);
  background: var(--accent);
}
body.rd.buy-page .trial-tag {
  background: var(--accent) !important;
}
body.rd.buy-page .top-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
body.rd.buy-page .el-input__inner:focus,
body.rd.buy-page .el-textarea__inner:focus {
  border-color: var(--accent);
}
body.rd.buy-page .el-checkbox__input.is-checked .el-checkbox__inner,
body.rd.buy-page .el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: var(--accent);
  border-color: var(--accent);
}
body.rd.buy-page .el-checkbox__input.is-checked + .el-checkbox__label {
  color: var(--accent-dark);
}
body.rd.buy-page .el-switch.is-checked .el-switch__core {
  border-color: var(--accent);
  background-color: var(--accent);
}
body.rd.buy-page .image-box .image-item,
body.rd.buy-page .image-list .image-item {
  border-radius: 12px;
  border-color: var(--line);
}
body.rd.buy-page .image-box .image-item.active,
body.rd.buy-page .image-list .image-item.active,
body.rd.buy-page .image-item.active {
  border-color: var(--accent) !important;
  background: #f4f7fa;
}
body.rd.buy-page .filter-tree .el-tree-node__content:hover,
body.rd.buy-page .filter-tree .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background: var(--accent-soft) !important;
  color: var(--accent-dark) !important;
}

/* cloud-buy：轻量统一（勿用 rem） */
body.rd.buy-page:not(.dcim-buy) .buy-section .card-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px !important;
  margin-top: 16px !important;
}
body.rd.buy-page:not(.dcim-buy) .f-order {
  background: #fff !important;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(18, 21, 28, 0.06);
}
body.rd.buy-page:not(.dcim-buy) .f-order .bot-price .new {
  color: var(--copper);
  font-family: var(--display);
  font-weight: 700;
}
body.rd.buy-page:not(.dcim-buy) .f-order .el-button.buy,
body.rd.buy-page:not(.dcim-buy) .f-order .buy {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: 10px !important;
  font-weight: 650 !important;
  color: #fff !important;
}

@media (max-width: 960px) {
  body.rd .index-block,
  body.rd .flash-list,
  body.rd .product-introduce,
  body.rd .doc-main {
    grid-template-columns: 1fr 1fr;
  }
  body.rd .section-list-item {
    grid-template-columns: 1fr;
  }
  body.rd .menu .header-menu-list { display: none !important; }
  body.rd .site-header .nav { height: 56px; }
  body.rd .brand-logo-img { height: 24px; max-width: 140px; }
  body.rd .navbar-collapse {
    max-height: 70vh;
    overflow-y: auto;
  }
  body.rd .navbar-collapse.show {
    display: block !important;
  }
}
@media (max-width: 640px) {
  body.rd .index-block,
  body.rd .flash-list,
  body.rd .product-introduce,
  body.rd .doc-main,
  body.rd .goods-config {
    grid-template-columns: 1fr;
  }
  body.rd .register-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
  body.rd .register-box h3 { font-size: 20px; }
  body.rd .brand-logo-img { height: 22px; max-width: 120px; }
  body.rd .hero-stats { grid-template-columns: 1fr 1fr; }
  body.rd .buy-section {
    width: min(100% - 24px, 1180px) !important;
    margin: 16px auto 32px !important;
  }
  body.rd .feature-media { min-height: 200px; }
}