/* =========================================================
   商品配置页统一皮肤（云服务器购买页）
   覆盖模块自带样式：idcsmart_common / remf_finance(.common-config) 与 mf_cloud
   模块 CSS 后注入，故统一以 .goods .config-box .content 前缀提高优先级
   ========================================================= */

/* ---------- 模块自带卡片/背景去重（外层 webPage.css 已有白卡） ---------- */
.goods .config-box .content .template { background: transparent; padding: 0; }
.goods .config-box .content .main-card {
  background: transparent; box-shadow: none; border: none; padding: 0; border-radius: 0;
}

/* ---------- 产品标题 ---------- */
.goods .config-box .content .pro-tit {
  font-size: 20px; font-weight: 600; color: #14121A; line-height: 1.4;
  padding-bottom: 16px; margin-bottom: 10px;
  border-bottom: 1px solid #EBF0EC;
}

/* ---------- 配置项标题 ---------- */
.goods .config-box .content .config-tit,
.goods .config-box .content .area-box .tit {
  font-size: 14.5px; font-weight: 600; color: #14121A;
  margin: 22px 0 12px; display: flex; align-items: center; gap: 8px;
}
.goods .config-box .content .config-tit::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #12B36C, #0B9D5C);
}

/* ---------- 选项按钮（通用 click-select / 周期 cycle / 区域 area） ---------- */
.goods .config-box .content .click-select .item,
.goods .config-box .content .cycle .item,
.goods .config-box .content .area-box .country .item,
.goods .config-box .content .area-box .city .item {
  border: 1px solid #E2E8F0; border-radius: 8px; background: #fff;
  color: #4A4653; transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.goods .config-box .content .click-select .item:hover,
.goods .config-box .content .cycle .item:hover,
.goods .config-box .content .area-box .item:hover {
  border-color: #0B9D5C; color: #077A47;
}
.goods .config-box .content .click-select .item.com-active,
.goods .config-box .content .cycle .item.com-active,
.goods .config-box .content .area-box .item.com-active {
  border-color: #0B9D5C; background: rgba(11,157,92,.07); color: #077A47;
  box-shadow: 0 2px 8px rgba(11,157,92,.12);
}
.goods .config-box .content .item.com-active .el-icon-check { color: #0B9D5C; }
.goods .config-box .content .cycle .item .price { color: #F04923; }

/* ---------- 级联选择 ---------- */
.goods .config-box .content .cascade-selector .level-label {
  font-size: 13px; color: #8B8794; margin-bottom: 8px;
}

/* ---------- mf_cloud 推荐配置卡片 ---------- */
.goods .config-box .content .cloud-box .cloud-item {
  border: 1px solid #E2E8F0; border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.goods .config-box .content .cloud-box .cloud-item:hover {
  border-color: #0B9D5C; transform: translateY(-2px);
}
.goods .config-box .content .cloud-box .cloud-item.active {
  border-color: #0B9D5C; box-shadow: 0 8px 22px rgba(11,157,92,.15);
}

/* ---------- Element 控件统一绿 ---------- */
.goods .config-box .content .el-slider__bar { background-color: #0B9D5C; }
.goods .config-box .content .el-slider__button { border-color: #0B9D5C; }
.goods .config-box .content .el-input-number .el-input-number__decrease,
.goods .config-box .content .el-input-number .el-input-number__increase { color: #0B9D5C; }
.goods .config-box .content .el-select .el-input.is-focus .el-input__inner,
.goods .config-box .content .el-input__inner:focus { border-color: #0B9D5C; }

/* ---------- 数量加减（通用结构） ---------- */
.goods .config-box .content .del-add .del,
.goods .config-box .content .del-add .add {
  border: 1px solid #E2E8F0; border-radius: 6px; color: #0B9D5C;
}
.goods .config-box .content .del-add .del:hover,
.goods .config-box .content .del-add .add:hover { border-color: #0B9D5C; background: rgba(11,157,92,.06); }

/* ---------- 价格强调色（与首页 --hot 一致） ---------- */
.goods .config-box .content .subtotal span:last-child,
.goods .config-box .content .footer-total .right > span,
.goods .config-box .content .bot-price .price,
.goods .config-box .content .bot-price .new { color: #F04923; }

/* ---------- 右侧预览面板（common-config） ---------- */
.goods .config-box .content .order-right .right-main {
  background: #FAFCFB; border: 1px solid rgba(11,157,92,.14);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(4,41,26,.05);
  padding: 22px 22px 18px;
}
.goods .config-box .content .order-right .right-title {
  font-size: 15.5px; font-weight: 600; color: #14121A;
  padding-bottom: 12px; border-bottom: 1px solid #EBF0EC; margin-bottom: 12px;
}
.goods .config-box .content .order-right .info .des .name { color: #4A4653; }
.goods .config-box .content .order-right .info .des .price { color: #F04923; }
.goods .config-box .content .subtotal {
  border-top: 1px dashed #E2E8F0; margin-top: 12px; padding-top: 14px;
  font-size: 14px; color: #4A4653;
}
.goods .config-box .content .subtotal span:last-child { font-size: 22px; font-weight: 700; }

/* ---------- 底部合计 + 购买按钮（common-config） ---------- */
.goods .config-box .content .order-right-footer {
  background: #fff; border: 1px solid rgba(11,157,92,.14); border-radius: 14px;
  padding: 16px 22px; box-shadow: 0 10px 30px rgba(4,41,26,.05);
}
.goods .config-box .content .footer-total .right > span { font-size: 24px; font-weight: 700; }
.goods .config-box .content .original-price { color: #8B8794; }

.goods .config-box .content .f-btn .el-button,
.goods .config-box .content .f-btn .buy-btn,
.goods .config-box .content .f-btn .cart {
  height: 48px; border-radius: 10px; font-size: 15.5px; font-weight: 600;
}
.goods .config-box .content .f-btn .buy-btn,
.goods .config-box .content .f-btn .el-button--primary:not(.is-plain) {
  background: linear-gradient(135deg, #12B36C, #0B9D5C); border: none;
  box-shadow: 0 8px 20px rgba(11,157,92,.3);
}
.goods .config-box .content .f-btn .buy-btn:hover,
.goods .config-box .content .f-btn .el-button--primary:not(.is-plain):hover {
  background: linear-gradient(135deg, #0B9D5C, #077A47);
}
.goods .config-box .content .f-btn .cart,
.goods .config-box .content .f-btn .el-button--primary.is-plain {
  border: 1px solid #0B9D5C; color: #077A47; background: rgba(11,157,92,.06);
}
.goods .config-box .content .f-btn .cart:hover { background: rgba(11,157,92,.12); }

/* ---------- mf_cloud 底部价格栏 ---------- */
.goods .config-box .content .right {
  background: #fff; border: 1px solid rgba(11,157,92,.14); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(4,41,26,.06); padding: 18px 24px;
}
.goods .config-box .content .right .link { color: #0B9D5C; }
.goods .config-box .content .bot-price .price { font-size: 24px; font-weight: 700; }
.goods .config-box .content .right .buy,
.goods .config-box .content .buy {
  background: linear-gradient(135deg, #12B36C, #0B9D5C); color: #fff;
  border-radius: 10px; font-size: 15.5px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(11,157,92,.3); transition: background .2s, transform .2s;
}
.goods .config-box .content .right .buy:hover,
.goods .config-box .content .buy:hover {
  background: linear-gradient(135deg, #0B9D5C, #077A47); transform: translateY(-1px);
}
.goods .config-box .content .buy-text { color: #0B9D5C; }

/* ---------- mf_cloud 区块标题与选项 ---------- */
.goods .config-box .content .mf-cloud .tit,
.goods .config-box .content .con .tit {
  font-size: 14.5px; font-weight: 600; color: #14121A;
}
.goods .config-box .content .image-box .image-ul .image-item.active,
.goods .config-box .content .item.active { border-color: #0B9D5C; color: #077A47; }

/* ---------- 优惠码/活动码区域 ---------- */
.goods .config-box .content .discount-box a,
.goods .config-box .content .discount-box span { color: #0B9D5C; }

/* ---------- 隐藏商品描述块（配置项上方的 vCPU/内存等清单） ---------- */
.goods .config-box .content .common-config .l-config > .description { display: none; }

/* ---------- 弹窗统一圆角 ---------- */
.cartDialog, .goods-change-box { border-radius: 14px; }

/* =========================================================
   通用结构（idcsmart_common / remf_finance）改为与 mf_cloud
   一致的上下布局：上部配置流 + 底部预览/价格/购买栏
   ========================================================= */
.goods .config-box .content .common-config .common-box { display: block; }
.goods .config-box .content .common-config .l-config {
  width: 100%; float: none; margin: 0; padding: 0;
}
/* 底部整栏 */
.goods .config-box .content .common-config .order-right {
  position: static; width: 100%; float: none; margin: 24px 0 0;
  display: flex; align-items: stretch; gap: 20px;
}
/* 左侧：配置预览清单 */
.goods .config-box .content .common-config .order-right .right-main {
  flex: 1; min-width: 0; padding: 18px 22px;
}
.goods .config-box .content .common-config .order-right .right-main .info {
  max-height: 200px; overflow: auto;
}
.goods .config-box .content .common-config .order-right .info .des {
  display: flex; justify-content: space-between; gap: 16px;
}
/* 右侧：数量 + 合计 + 按钮 */
.goods .config-box .content .common-config .order-right .f-box {
  width: 340px; flex: none; display: flex; flex-direction: column; gap: 14px;
}
.goods .config-box .content .common-config .order-right-footer {
  padding: 18px 20px; margin: 0;
}
.goods .config-box .content .common-config .f-btn {
  display: flex; gap: 12px; margin: 0;
}
.goods .config-box .content .common-config .f-btn .el-button {
  flex: 1; margin: 0; height: 48px;
}
/* 窄屏还原纵向堆叠 */
@media (max-width: 1100px) {
  .goods .config-box .content .common-config .order-right { flex-direction: column; }
  .goods .config-box .content .common-config .order-right .f-box { width: 100%; }
}

/* =========================================================
   mf_cloud 右侧订单汇总面板（JS 注入，见 js/goodsPanel.js）
   ========================================================= */
/* 配置页容器适度加宽，配合 JS 等比缩放保证面板独立不重叠 */
.goods .gl-container { max-width: 1500px; }
.goods .site-header .container { max-width: 1500px; }
/* 面板模式下页面层白卡透明化：配置卡片与摘要卡片各自独立、中间露出页面底色 */
.goods .main-card.gl-nocard {
  background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
}
.goods .config-box .content.has-side { display: flex; align-items: flex-start; gap: 20px; }
/* 左侧：整个配置区一张独立白卡（自然字号，自适应剩余宽度），通用于 mf_cloud 与通用配置模块 */
.goods .config-box .content.has-side > :not(.gl-side) {
  flex: 1; min-width: 0;
  background: #fff; border: 1px solid rgba(11,157,92,.08); border-radius: 16px;
  padding: 20px; box-shadow: 0 10px 34px rgba(4,41,26,.06);
  overflow: hidden;
}
/* 大卡片内部模块段落不再单独成卡 */
.goods .config-box .content.has-side > :not(.gl-side) .main-card {
  background: transparent; border: none; box-shadow: none; padding: 0;
}
/* 隐藏模块底部购买栏/右侧悬浮面板（时长/数量/购买已挪入右侧摘要卡片） */
.goods .config-box .content.has-side .f-order { display: none !important; }
.goods .config-box .content.has-side .f-right { display: none !important; }
.goods .config-box .content.has-side .order-right { display: none !important; }
.goods .config-box .content.has-side .common-config .cycle { display: none !important; }
.goods .gl-side { width: 318px; flex: none; position: sticky; top: 100px; }
.goods .gl-side-card {
  background: #fff; border: 1px solid rgba(11,157,92,.14); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(4,41,26,.06); padding: 22px;
}
.goods .gl-side-title {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 16px; font-weight: 600; color: #14121A;
  padding-bottom: 12px; border-bottom: 1px solid #EBF0EC; margin-bottom: 6px;
}
.goods .gl-side-tip { font-size: 11.5px; font-weight: 400; color: #9AA39D; }
.goods .gl-pname, .goods .gl-qty {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px; padding: 8px 0; line-height: 1.6;
}
.goods .gl-pname { border-bottom: 1px dashed #EDF2EE; margin-bottom: 4px; }
.goods .gl-k { color: #8B8794; flex: none; }
.goods .gl-v { color: #14121A; font-weight: 500; text-align: right; word-break: break-all; }
.goods .gl-side-rows { max-height: 320px; overflow: auto; }
.goods .gl-row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px; padding: 6px 0; color: #4A4653; line-height: 1.6;
}
.goods .gl-row .gl-r-name { word-break: break-all; }
.goods .gl-row .gl-r-price { color: #F04923; flex: none; }
.goods .gl-row.gl-empty { color: #8B8794; justify-content: center; }
/* 面板内 订购时长/订购数量 控件行 */
.goods .gl-field {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 0; font-size: 13px;
}
.goods .gl-select {
  width: 160px; height: 36px; border: 1px solid #E3E9E6; border-radius: 8px;
  padding: 0 10px; font-size: 13px; color: #14121A; background: #fff; cursor: pointer;
}
.goods .gl-select:focus { border-color: #0B9D5C; outline: none; }
.goods .gl-stepper { display: flex; align-items: center; border: 1px solid #E3E9E6; border-radius: 8px; overflow: hidden; }
.goods .gl-stepper button {
  width: 32px; height: 34px; border: none; background: #F3F7F5; color: #077A47;
  font-size: 16px; cursor: pointer; transition: background .2s;
}
.goods .gl-stepper button:hover { background: #E4F6EC; }
.goods .gl-stepper input {
  width: 56px; height: 34px; border: none; text-align: center;
  font-size: 13px; color: #14121A; outline: none;
}
.goods .gl-side-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed #E2E8F0; margin-top: 12px; padding-top: 14px;
  font-size: 14px; color: #4A4653;
}
.goods .gl-side-price { font-size: 24px; font-weight: 700; color: #F04923; }
.goods .gl-side-btns { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.goods .gl-btn-cart, .goods .gl-btn-buy {
  height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid #0B9D5C; transition: background .2s, transform .2s;
}
.goods .gl-btn-cart { background: rgba(11,157,92,.06); color: #077A47; }
.goods .gl-btn-cart:hover { background: rgba(11,157,92,.12); }
.goods .gl-btn-buy {
  background: linear-gradient(135deg, #12B36C, #0B9D5C); color: #fff; border: none;
  box-shadow: 0 8px 20px rgba(11,157,92,.3);
}
.goods .gl-btn-buy:hover { background: linear-gradient(135deg, #0B9D5C, #077A47); transform: translateY(-1px); }
@media (max-width: 1100px) {
  .goods .config-box .content.has-side { flex-direction: column; }
  .goods .config-box .content.has-side > :not(.gl-side) { width: 100%; }
  .goods .gl-side { width: 100%; position: static; }
}

/* ===== mf_cloud 磁盘表格紧凑化：保证 + 按钮完整显示 ===== */
.goods .config-box .content.has-side .el-table { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
.goods .config-box .content.has-side .el-table__header-wrapper,
.goods .config-box .content.has-side .el-table__body-wrapper { overflow-x: hidden !important; }
.goods .config-box .content.has-side .el-table__header-wrapper table,
.goods .config-box .content.has-side .el-table__body-wrapper table {
  width: 100% !important; table-layout: fixed !important;
}
.goods .config-box .content.has-side .el-table colgroup col { width: auto !important; }
/* 表头滚动条占位列（gutter）不参与等分，否则表头比表体多一列导致整行错位 */
.goods .config-box .content.has-side .el-table colgroup col[name="gutter"] { width: 0 !important; }
.goods .config-box .content.has-side .el-table th.gutter { display: none !important; width: 0 !important; padding: 0 !important; }
/* mf_dcim 机型表首列（单选列）固定窄宽，表头表体一致 */
.goods .config-box .content.has-side .mf-dcim .el-table colgroup col:first-child { width: 56px !important; }
.goods .config-box .content.has-side .mf-dcim .el-table th:first-child .cell,
.goods .config-box .content.has-side .mf-dcim .el-table td:first-child .cell { padding-left: 0; padding-right: 0; text-align: center; }
.goods .config-box .content.has-side .el-table th,
.goods .config-box .content.has-side .el-table td { vertical-align: middle !important; }
.goods .config-box .content.has-side .el-table th .cell,
.goods .config-box .content.has-side .el-table td .cell { padding-left: 6px; padding-right: 6px; font-size: 12.5px; box-sizing: border-box; }
.goods .config-box .content.has-side .el-table .el-select { width: 100%; min-width: 0; }
.goods .config-box .content.has-side .el-table .el-input-number { width: 124px; }
.goods .config-box .content.has-side .el-table .el-input-number .el-input__inner { padding-left: 34px; padding-right: 34px; }
.goods .config-box .content.has-side .el-table .el-input-number .el-input-number__decrease,
.goods .config-box .content.has-side .el-table .el-input-number .el-input-number__increase { width: 30px; }

/* has-side 模式下滑块输入框紧凑化，避免溢出被裁剪 */
.goods .config-box .content.has-side .el-slider--with-input { padding-right: 0 !important; max-width: 100% !important; box-sizing: border-box !important; min-width: 0 !important; }
.goods .config-box .content.has-side .el-form-item__content { max-width: 100% !important; box-sizing: border-box !important; min-width: 0 !important; }
.goods .config-box .content.has-side .el-slider__runway { min-width: 0 !important; flex: 1 1 0 !important; }
.goods .config-box .content.has-side .el-slider__input { width: 84px !important; margin-left: 8px !important; flex: none !important; }
/* el-input-number 内部默认宽 130px，必须 100% 填满收窄后的外壳，否则右侧 +/- 按钮被裁剪 */
.goods .config-box .content.has-side .el-slider__input .el-input-number { width: 100% !important; min-width: 0 !important; }
.goods .config-box .content.has-side .el-slider__input .el-input-number__decrease,
.goods .config-box .content.has-side .el-slider__input .el-input-number__increase { width: 22px !important; }
.goods .config-box .content.has-side .el-slider__input .el-input__inner { padding-left: 24px !important; padding-right: 24px !important; }

/* mf_dcim 模块滑块自带 rem 固定宽度（.el-slider 8.1rem / runway 6.6rem / slider-box 8.1rem），
   大屏根字号下约 810px 超出卡片导致输入框被裁剪，统一改为按容器自适应（轨道自动缩短） */
.goods .config-box .content.has-side .mf-dcim .el-slider { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
.goods .config-box .content.has-side .mf-dcim .el-slider__runway { width: auto !important; }
.goods .config-box .content.has-side .mf-dcim .el-slider--with-input .el-slider__runway { margin-right: 100px !important; }
.goods .config-box .content.has-side .mf-dcim .slider-box { width: 100% !important; max-width: 100% !important; }
.goods .config-box .content.has-side .mf-dcim .slider-box .el-input-number { width: 84px !important; flex: none !important; margin-left: 8px !important; }
.goods .config-box .content.has-side .mf-dcim .slider-box .el-input-number__decrease,
.goods .config-box .content.has-side .mf-dcim .slider-box .el-input-number__increase { width: 22px !important; }
.goods .config-box .content.has-side .mf-dcim .slider-box .el-input__inner { padding-left: 24px !important; padding-right: 24px !important; }
/* 带宽刻度条与轨道等宽对齐 */
.goods .config-box .content.has-side .mf-dcim .marks { width: calc(100% - 92px) !important; max-width: 100% !important; box-sizing: border-box !important; }

/* 系统镜像卡片容器不溢出 */
.goods .config-box .content.has-side .image-box,
.goods .config-box .content.has-side .image-ul { max-width: 100% !important; }

/* ===== 商品配置页容器宽度：左侧配置卡片宽度控制 ===== */
.goods .gl-container { max-width: 1320px; }

/* 下单页头部：强制官网导航单行显示（防止旧缓存样式导致导航换行） */
@media (min-width:1081px){
  .site-header .nav{display:flex!important;flex-wrap:nowrap!important;align-items:center}
  .site-header .nav>a,.site-header .nav-item{flex:none}
  .site-header .mega{position:absolute;top:100%;left:0;right:0;display:none}
  .site-header .nav-item:hover .mega{display:block}
}

/* 修复：会员中心 rem 适配把 html 字体放大(约76px)，body 继承后撑高 .nav-item 行盒导致导航换行；
   官网头部按 px 设计，显式恢复字体基准 */
.site-header{font-size:14.5px}
.site-header .nav-item{line-height:1.5}

/* mega 面板文字恢复正常换行（抵消 nav-item 继承影响） */
.site-header .mega{white-space:normal}

/* 缩短 带宽/附加IP/内存 滑杆长度，避免长条挡住右侧内容 */
.config-box .marks{max-width:580px}

/* 缩短滑杆轨道线长度，步进框保持行尾 */
.goods .config-box .content.has-side .el-slider__runway { max-width: 580px !important; }

/* 配置加载：去掉白色遮罩，只保留转圈 */
.goods .config-box .el-loading-mask { background: transparent !important; }

/* 页面底色加深一点，让左侧白色配置卡与背景拉开层次 */
.goods-page, body { background: #EDF4EF !important; }
/* 左卡描边和投影稍微加强 */
.goods .config-box .content.has-side > :not(.gl-side) {
  border-color: rgba(11,157,92,.18) !important;
  box-shadow: 0 12px 36px rgba(4,41,26,.10) !important;
}
