/* ==========================================================================
   goods-ref.css · 商品订购页（cart/goods）视觉层
   加载位置：cart/template/pc/default/goods.php，位于 goods.css 之后、
             goods-mobile.css 之前（移动端覆盖写在 goods-mobile.css）

   目标：对齐参考站（WHMCS configureproduct）观感
   1. 浅灰页底 + 白色圆角卡片
   2. 选项控件为灰底圆角胶囊，选中态为主色
   3. 底部结算条：费用合计 + 大号红色价格 + 主色「立即购买」按钮

   注意：插件 mf_cloud.css 是随内容 HTML 注入的（DOM 中位置在本文件之后），
   同优先级规则会覆盖本文件，所以本文件统一用 .goods 前缀提高优先级。

   另：插件 CSS 使用 var(--color-primary) / var(--color-price-text)，
   本模板未加载 theme/index.css，这两个变量原本为空（按钮、价格颜色失效），
   此处统一兜底。
   ========================================================================== */

:root {
  --color-primary: var(--cl-primary, #0e52ff);
  --color-primary-hover: var(--cl-primary-dark, #0043cc);
  --color-price-text: #ff0000;
  --color-danger: var(--cl-danger, #e34d59);
}

/* -------------------------------------------------- 页面底座与卡片 */
.goods .el-main {
  background: #f7f7f9;
}

.goods .template > .tit {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 4px 0 16px;
  max-width: 1500px;
}

.goods .mf-cloud {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 6px;
  padding: 20px 24px 150px;
  box-sizing: border-box;
}

.goods .mf-cloud .con {
  padding: 0;
}

.goods .mf-cloud .el-tabs__header {
  margin-bottom: 20px;
}

.goods .mf-cloud .com-tit {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.goods .mf-cloud .s-tip {
  font-size: 12px;
  line-height: 1.6;
  color: #9aa0a6;
  margin-top: 6px;
}

/* -------------------------------------------------- 表单行：左标签 + 右控件 */
.goods .mf-cloud .el-form .el-form-item {
  padding-left: 0;
  margin-bottom: 14px;
}

.goods .mf-cloud .el-form-item__label {
  font-size: 14px;
  line-height: 36px;
  color: #4a5057;
  padding-right: 12px;
  box-sizing: border-box;
}

.goods .mf-cloud .el-form-item__content {
  line-height: 36px;
  min-width: 0;
}

.goods .mf-cloud .el-input__inner {
  height: 36px;
  line-height: 36px;
  font-size: 14px;
  border-color: #dfe3e8;
  border-radius: 4px;
}

.goods .mf-cloud .el-textarea__inner {
  border-color: #dfe3e8;
  border-radius: 4px;
}

/* -------------------------------------------------- 单选 / 多选：灰底圆角胶囊 */
.goods .mf-cloud .el-form .el-radio-group {
  line-height: 36px;
}

.goods .mf-cloud .el-form .el-radio-button {
  margin: 0 8px 6px 0;
}

.goods .mf-cloud .el-form .el-radio-button__inner {
  min-width: auto;
  height: 36px;
  line-height: 32px;
  padding: 0 14px;
  font-size: 14px;
  background: #f2f3f8;
  border: 2px solid transparent;
  border-radius: 4px;
  color: #5b6473;
  box-shadow: none;
  transition: background-color .2s, color .2s, border-color .2s;
}

.goods .mf-cloud .el-form .el-radio-button__inner:hover {
  background: #f7f9fd;
  color: var(--color-primary);
}

.goods .mf-cloud .el-form .el-radio-button.is-active .el-radio-button__inner {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.goods .mf-cloud .el-form .flow-bw {
  height: 36px;
  line-height: 32px;
  border-radius: 4px;
}

/* -------------------------------------------------- 套餐 / 镜像卡片 */
.goods .mf-cloud .cloud-box {
  margin: 0 -6px;
}

.goods .mf-cloud .cloud-box .cloud-item {
  border: 2px solid #eef0f4;
  border-radius: 6px;
  margin: 6px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.goods .mf-cloud .cloud-box .cloud-item:hover {
  border-color: #d8e2ff;
}

.goods .mf-cloud .cloud-box .cloud-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px -12px rgba(14, 82, 255, .55);
}

.goods .mf-cloud .cloud-box .cloud-item .top {
  line-height: 42px;
  font-size: 14px;
  background: #f2f3f8;
}

.goods .mf-cloud .cloud-box .cloud-item.active .top {
  background: var(--color-primary);
  color: #fff;
}

.goods .mf-cloud .cloud-box .cloud-item.active .top .des {
  color: rgba(255, 255, 255, .85);
}

.goods .mf-cloud .cloud-box .cloud-item .info {
  padding: 10px 14px 14px;
}

.goods .mf-cloud .cloud-box .info p {
  font-size: 13px;
  line-height: 22px;
}

.goods .mf-cloud .cloud-box .info .name {
  color: #9aa0a6;
}

.goods .mf-cloud .image-item {
  border: 2px solid #eef0f4;
  border-radius: 6px;
  background: #f2f3f8;
  transition: border-color .2s, background-color .2s;
}

.goods .mf-cloud .image-item:hover {
  border-color: #d8e2ff;
}

.goods .mf-cloud .image-item.active,
.goods .mf-cloud .image-item.hover {
  background: #fff;
  border-color: var(--color-primary);
}

/* -------------------------------------------------- 底部结算条 */
.goods .f-order {
  height: 100px;
  font-size: 14px;
}

.goods .f-order .l-empty {
  width: 190px;
  height: 100px;
}

.goods .f-order .el-main {
  padding: 0 24px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}

.goods .f-order .main-card {
  height: 100%;
  display: flex;
  align-items: center;
}

.goods .f-order .mid {
  align-items: center;
}

.goods .f-order .bot-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
}

.goods .f-order .bot-price .new {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 14px;
  color: #ff0000;
  line-height: 1.1;
}

/* 参考站的「费用合计：」标签（模板无此节点，用伪元素补） */
.goods .f-order .bot-price .new::before {
  content: "费用合计：";
  font-size: 14px;
  font-weight: 400;
  color: #333;
  white-space: nowrap;
}

.goods .f-order .bot-price .new span {
  font-size: 28px;
  font-weight: 700;
  color: #ff0000;
  margin-left: 0;
}

.goods .f-order .bot-price .old {
  margin-top: 0;
  font-size: 12px;
  line-height: 1.2;
}

.goods .f-order .right .add-cart {
  width: 64px;
  height: 46px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
}

.goods .f-order .right .buy {
  width: auto;
  min-width: 132px;
  height: 46px;
  line-height: 44px;
  padding: 0 26px;
  margin-left: 12px;
  border-radius: 4px;
  font-size: 15px;
  color: #fff;
  transition: background-color .2s;
}

.goods .f-order .right .buy:hover {
  background: var(--color-primary-hover);
}

/* -------------------------------------------------- 加入购物车弹窗 */
.goods .cartDialog {
  border-radius: 8px;
}

.goods .cartDialog .tit {
  display: block;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 4px 0 12px;
}
