/* ==========================================================================
   订购产品页 · v10 主题视觉层
   设计基准：官网 v10 + 克隆站订购页（左产品目录 / 中配置 / 右价格栏）
   原则：只改视觉与布局容器，不碰插件注入的 Vue 绑定与业务逻辑
   ========================================================================== */

/* ---------- 页面主容器（克隆站式：全宽背景 + 1200 居中） ---------- */
.goods {
  background: #f5f7fb;
  min-height: 100vh;
}

.goods-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  box-sizing: border-box;
}

/* ---------- 三栏骨架 ---------- */
.config-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  min-height: 620px;
}

.config-main {
  flex: 1;
  min-width: 0;
  background: var(--v10-card);
  border: 1px solid var(--v10-line);
  border-radius: var(--v10-radius);
  box-shadow: var(--v10-shadow-sm);
}

.goods .config-box > .content,
.config-main > .content {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ---------- 中栏内部：配置 + 右侧结算栏（同属一个栅格） ---------- */
.config-main > .content > .template {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
  padding: 18px !important;
  box-sizing: border-box;
}

.config-main > .content > .template > .tit {
  display: none;
}

.config-main > .content > .template > .main-card {
  grid-column: 1;
  min-width: 0;
}

.config-main > .content > .template > .goods-cart-tip {
  grid-column: 1 / -1;
}

/* ---------- 左：产品目录 ---------- */
.pd-nav {
  flex: 0 0 200px;
  width: 200px;
  position: sticky;
  top: 84px;
  min-height: calc(100vh - 108px);
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  background: var(--v10-card);
  border: 1px solid var(--v10-line);
  border-radius: var(--v10-radius);
  box-shadow: var(--v10-shadow-sm);
  overflow: hidden;
}

.pd-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}

.pd-nav-title {
  font-size: 15px;
  font-weight: 650;
  color: #0b1a33;
  letter-spacing: -0.01em;
}

.pd-nav-head i {
  font-size: 16px;
  color: #a3aec1;
}

.pd-nav-search {
  padding: 0 12px 12px;
}

.pd-nav-search .el-input__inner {
  height: 32px;
  line-height: 32px;
  background: #f5f7fb;
  border-color: transparent;
  border-radius: 8px;
  font-size: 12.5px;
}

.pd-nav-search .el-input__inner:focus {
  background: #fff;
  border-color: var(--color-primary);
}

.pd-nav-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 14px;
}

.pd-nav-body::-webkit-scrollbar {
  width: 5px;
}

.pd-nav-body::-webkit-scrollbar-thumb {
  background: #dfe5f0;
  border-radius: 3px;
}

.pd-nav-group + .pd-nav-group {
  margin-top: 14px;
}

.pd-nav-gname {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: #a3aec1;
  letter-spacing: 0.02em;
}

.pd-nav-gcount {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef8f6;
  color: #8a97ab;
}

.pd-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  margin-bottom: 2px;
  border-radius: 9px;
  font-size: 13px;
  color: #3d4a5f;
  text-decoration: none;
  transition: background .16s, color .16s;
  position: relative;
}

.pd-nav-item:hover {
  background: #f6fdfc;
  color: var(--color-primary);
}

.pd-nav-item.on {
  background: #e6f7f5;
  color: var(--color-primary);
  font-weight: 600;
}

.pd-nav-item.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--color-primary);
}

.pd-nav-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #eef8f6;
  color: #8a97ab;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background .16s, color .16s;
}

.pd-nav-item.on .pd-nav-icon {
  background: #d5f2ee;
  color: var(--color-primary);
}

.pd-nav-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccd5e3;
  transition: background .16s;
}

.pd-nav-item.on .pd-nav-dot {
  background: var(--color-primary);
}

.pd-nav-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-nav-empty {
  padding: 40px 0;
  text-align: center;
  color: #a3aec1;
  font-size: 12.5px;
}

.pd-nav-empty i {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

/* ---------- 中：配置内容 ---------- */
.template {
  height: auto;
  background: transparent;
}

.template .tit {
  display: none;
}

.template .main-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto;
}

.template > .main-card.mf-cloud {
  padding: 6px 20px 26px !important;
}

/* 收紧插件内多层横向内边距，把宽度让给配置控件 */
.template .con {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.template .el-form.fast-form {
  padding-bottom: 0 !important;
}

.template .el-form-item {
  padding-left: 0 !important;
}

/* 顶部 快速配置 / 自定义配置 */
.template .top-tab > .el-tabs__header {
  margin: 0 0 4px;
}

.template .top-tab.el-tabs--top > .el-tabs__header .el-tabs__item {
  height: 52px;
  line-height: 52px;
  font-size: 14.5px;
  color: #5b6b82;
  font-weight: 500;
}

.template .top-tab.el-tabs--top > .el-tabs__header .el-tabs__item.is-active {
  color: #0b1a33;
  font-weight: 650;
}

.template .top-tab.el-tabs--top > .el-tabs__header .el-tabs__active-bar {
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--color-primary);
}

.template .el-tabs__nav-wrap::after {
  height: 1px;
  background: var(--v10-line);
}

/* 段标题 */
.template .com-tit {
  position: relative;
  margin: 26px 0 16px;
  padding-left: 10px;
  font-size: 14.5px;
  font-weight: 650;
  color: #0b1a33;
  line-height: 1.2;
}

.template .com-tit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* 表单项：克隆站式「标签在上、控件占满宽」 */
.template .con .el-form-item {
  margin-bottom: 18px;
  display: block;
}

.template .el-form-item__label,
.template .el-form-item--medium .el-form-item__label,
.template .el-form-item--small .el-form-item__label {
  float: none !important;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 0 6px 0 !important;
  text-align: left !important;
  color: #8896ab;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 18px;
}

.template .el-form-item__content {
  margin-left: 0 !important;
  line-height: 34px;
  font-size: 13px;
  color: #1f2937;
}

/* label-position="top" 的原生表单项同样收紧 */
.template .el-form-item--label-top .el-form-item__label {
  padding-bottom: 6px !important;
}

/* 小字说明 */
.template .s-tip {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #a3aec1;
}

.template .s-tip span {
  color: #8896ab;
}

/* 区域 / 周期 按钮组 */
.template .el-radio-button__inner {
  height: 34px;
  line-height: 32px;
  padding: 0 16px;
  border-radius: 9px !important;
  border-color: var(--v10-line);
  color: #3d4a5f;
  font-size: 13px;
  box-shadow: none !important;
}

.template .el-radio-button:not(:first-child) .el-radio-button__inner {
  margin-left: 8px;
  border-left: 1px solid var(--v10-line);
}

.template .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: #e6f7f5;
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: none !important;
}

.template .el-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 套餐卡片 */
.template .c-item {
  border: 1px solid var(--v10-line);
  border-radius: 12px;
  transition: border-color .16s, box-shadow .16s;
}

.template .c-item:hover {
  border-color: #b8e8e3;
  box-shadow: 0 4px 14px rgba(0, 172, 156, .08);
}

.template .c-item.active,
.template .c-item.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 172, 156, .12);
}

/* 镜像 / 系统 卡片 */
.template .item {
  border: 1px solid var(--v10-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s, box-shadow .16s;
}

.template .item:hover {
  border-color: #b8e8e3;
}

.template .item.active,
.template .item.is-active,
.template .item.on {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 172, 156, .12);
}

/* 输入框 */
.template .el-input__inner,
.template .el-textarea__inner {
  border-radius: 8px;
  border-color: var(--v10-line);
  font-size: 13px;
}

.template .el-input__inner:focus,
.template .el-textarea__inner:focus {
  border-color: var(--color-primary);
}

.template .el-input-number .el-input__inner {
  border-radius: 8px;
}

.template .el-select .el-input__inner {
  border-radius: 8px;
}

/* 滑块 */
.template .el-slider__runway {
  background: #eef8f6;
  height: 6px;
}

.template .el-slider__bar {
  height: 6px;
  background: var(--color-primary);
}

.template .el-slider__button {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(0, 172, 156, .28);
}

.template .el-slider__button-wrapper {
  top: -15px;
}

/* 复选框 */
.template .el-checkbox__inner {
  border-radius: 4px;
  border-color: #c8d2e0;
  width: 16px;
  height: 16px;
}

.template .el-checkbox__inner::after {
  left: 5px;
  top: 2px;
}

.template .el-checkbox__input.is-checked .el-checkbox__inner {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---------- 右：价格栏（把插件底部条改成右侧固定卡） ---------- */
.content .f-order {
  /* 克隆站式：右栏是三栏栅格里的普通列，滚动时吸附，不再 fixed 覆盖视口 */
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  top: 88px !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  max-height: calc(100vh - 108px);
  display: block !important;
  background: transparent !important;
  z-index: 3;
}

.content .f-order .l-empty {
  display: none !important;
}

.content .f-order .el-main {
  height: auto;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.content .f-order .el-main::-webkit-scrollbar {
  width: 5px;
}

.content .f-order .el-main::-webkit-scrollbar-thumb {
  background: #dfe5f0;
  border-radius: 3px;
}

.content .f-order .main-card {
  display: flex !important;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 110px);
  box-sizing: border-box;
  /* 抵消 .template .main-card 的 !important 去卡片化 */
  margin: 0 !important;
  padding: 22px 22px 20px !important;
  border: 1px solid var(--v10-line) !important;
  border-radius: var(--v10-radius) !important;
  box-shadow: var(--v10-shadow-sm) !important;
  background: #fff !important;
}

/* 栏目标题 */
.content .f-order .main-card::before {
  content: "配置费用";
  display: block;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 650;
  color: #0b1a33;
}

/* 订购时长 / 数量 */
.content .f-order .main-card .left {
  display: block !important;
  width: 100%;
}

.content .f-order .time {
  margin: 0 0 14px !important;
}

.content .f-order .l-txt {
  display: block;
  margin: 0 0 7px !important;
  font-size: 12.5px;
  color: #8896ab;
  line-height: 1.3;
}

.content .f-order .duration-select,
.content .f-order .el-input-number {
  width: 100% !important;
}

.content .f-order .duration-select .el-input__inner,
.content .f-order .el-input-number .el-input__inner {
  height: 38px;
  line-height: 38px;
  border-radius: 9px;
  border-color: var(--v10-line);
  font-size: 13px;
}

/* 细分隔线（原生用于分隔左右两段，这里由 .left 的下边框代替） */
.content .f-order .line-empty {
  display: none;
}

.content .f-order .main-card .left {
  display: block !important;
  width: 100%;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--v10-line);
  margin-bottom: 12px;
}

/* "当前配置 / 费用明细" 两个 hover 链接 */
.content .f-order .link {
  display: inline-block;
  margin: 0 14px 10px 0;
  border: 0 !important;
  font-size: 11.5px;
  color: #8a97ab !important;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #dfe5f0;
}

.content .f-order .link:hover {
  color: var(--color-primary) !important;
  text-decoration-color: var(--color-primary);
}

/* 价格块 + 配置摘要：中段吃掉剩余高度 */
.content .f-order .main-card .mid {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: 4px;
}

/* ---------- 常驻配置摘要（插件模板 cart/pc/v10/goods.html） ---------- */
.content .f-order .v10-cfg {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -3px 14px 0;
  padding-right: 5px;
}

.content .f-order .v10-cfg::-webkit-scrollbar {
  width: 5px;
}

.content .f-order .v10-cfg::-webkit-scrollbar-thumb {
  background: #e2e8f2;
  border-radius: 3px;
}

.content .f-order .v10-cfg::-webkit-scrollbar-thumb:hover {
  background: #cfd8e6;
}

.content .f-order .v10-cfg .content {
  margin: 0;
}

.content .f-order .v10-cfg .tit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: #0b1a33;
  line-height: 1.4;
}

.content .f-order .v10-cfg .tit::before {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--color-primary);
}

.content .f-order .v10-cfg .con {
  display: block;
  padding: 0;
  border: 0;
}

.content .f-order .v10-cfg .c-item {
  display: grid !important;
  grid-template-columns: minmax(0, 45%) minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
  box-sizing: border-box;
  width: 100% !important;
  margin: 0;
  padding: 2.5px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 12px;
  line-height: 1.55;
  color: #45536b;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: right;
  word-break: break-word;
}

.content .f-order .v10-cfg .c-item .l-txt {
  display: inline;
  margin: 0 !important;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.55;
  color: #8896ab;
  text-align: left;
  white-space: nowrap;
  overflow: visible;
}

.content .f-order .v10-cfg .c-item .price {
  flex: 0 0 auto;
  font-weight: 500;
  color: #0b1a33;
  white-space: nowrap;
}

/* 配置值：右对齐 + 单行省略 */
.content .f-order .v10-cfg .c-item .val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-weight: 500;
  color: #0b1a33;
}

/* 优惠码入口：原生是橙色块，这里改成低调的文字链 */
.content .f-order .discount-text {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #e9f9f7;
  font-size: 11.5px;
  color: var(--color-primary);
  cursor: pointer;
  transition: background .16s;
}

.content .f-order .discount-text:hover {
  background: #e0ebff;
}

/* 费用明细：左标签 + 右价格，单行省略 */
.content .f-order .v10-cfg-free .c-item {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.content .f-order .v10-cfg-free .c-item .l-txt {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 68%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 第二段：费用明细 */
.content .f-order .v10-cfg-sec + .v10-cfg-sec {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--v10-line);
}

.content .f-order .v10-cfg .bot {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--v10-line);
}

.content .f-order .v10-cfg .bot .c-item .l-txt {
  color: #0b1a33;
  font-weight: 600;
}

.content .f-order .v10-cfg .bot .c-item .price {
  color: var(--color-price-text, #f04438);
  font-weight: 650;
}

.content .f-order .demand-box {
  flex: 0 0 auto;
  width: 100%;
}

/* 价格（沉到卡片底部，紧邻按钮） */
.content .f-order .bot-price {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  column-gap: 10px;
  margin: auto 0 16px !important;
  padding-top: 16px;
  border-top: 1px dashed var(--v10-line);
}

.content .f-order .bot-price .old {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  min-width: 0;
}

.content .f-order .bot-price .new .price {
  font-size: 27px !important;
  font-weight: 700;
  color: var(--color-price-text, #f04438);
  letter-spacing: -0.02em;
}

.content .f-order .bot-price .old .show {
  font-size: 12.5px;
  color: #a3aec1;
}

/* 按钮区 */
.content .f-order .right {
  display: flex !important;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

.content .f-order .right .buy {
  flex: 1;
  height: 44px;
  line-height: 44px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
  box-shadow: 0 6px 16px rgba(0, 172, 156, .24);
}

.content .f-order .right .buy:hover {
  background: var(--v10-primary-hover, #008a7d);
}

.content .f-order .right .add-cart {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--v10-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}

.content .f-order .right .add-cart:hover {
  border-color: #b8e8e3;
  background: #f6fdfc;
}

/* 原生占位类（无样式定义），此处不干预 */

/* ---------- 商品切换 popover（旧入口保留但隐藏） ---------- */
.goods-item-name {
  display: none !important;
}

.goods-change-box {
  max-width: 100%;
}

.goods-change-box .goods-item-box {
  max-height: 500px;
  overflow-y: auto;
  padding: 12px;
}

.goods-change-box .goods-item-box .goods-group-name {
  font-weight: 650;
  font-size: 13px;
  color: #0b1a33;
  margin-bottom: 8px;
}

.goods-change-box .goods-item-box .goods-group-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 10px;
  row-gap: 4px;
}

.goods-change-box .goods-item-box .goods-group-info .option-name {
  cursor: pointer;
  font-size: 12.5px;
  color: #3d4a5f;
  padding: 5px 6px;
  border-radius: 6px;
}

.goods-change-box .goods-item-box .goods-group-info .option-name:hover {
  color: var(--color-primary);
  background: #f6fdfc;
}

/* 无左侧目录时的兜底 */
.config-box:not(.has-nav) .config-main {
  width: 100%;
}

/* ---------- 镜像 / 系统 四列栅格 ---------- */
.template .image-box {
  width: 100% !important;
  max-width: none !important;
}

.template .image-ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
}

.template .image-ul .image-item {
  width: auto !important;
  margin: 0 !important;
  padding: 12px 10px !important;
  border: 1px solid var(--v10-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px;
  transition: border-color .16s, box-shadow .16s;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.template .image-ul .image-item:hover {
  border-color: #b8e8e3 !important;
  box-shadow: 0 4px 14px rgba(0, 172, 156, .08);
}

.template .image-ul .image-item.active,
.template .image-ul .image-item.hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 14px rgba(0, 172, 156, .12);
}

.template .image-item .icon {
  width: 26px !important;
  height: 26px !important;
  margin-bottom: 8px !important;
}

.template .image-item .name {
  font-size: 12.5px !important;
  font-weight: 600;
  color: #0b1a33;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 镜像 / 系统卡片等高，名称单行 */
.template .image-ul .image-item {
  min-height: 92px;
  justify-content: flex-start;
}

/* 机型表格撑满中栏 */
.content .template .el-table,
.content .template .el-table__body-wrapper,
.content .template .el-table__header-wrapper {
  width: 100% !important;
}

.content .template .el-table table {
  width: 100% !important;
}

.template .image-item .version,
.template .image-item .versi {
  font-size: 11px !important;
  color: #a3aec1 !important;
}

/* ---------- 套餐卡片：克隆站式机型行（自适应两列） ---------- */
.content .template .cloud-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  margin: 0 !important;
  width: 100% !important;
}

.content .template .cloud-box .cloud-item {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.content .template .cloud-item .info {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px 18px !important;
}

.content .template .cloud-item .info p {
  display: block !important;
  margin: 0 !important;
  font-size: 12px;
  line-height: 21px;
  color: #0b1a33;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content .template .cloud-item .info p .name {
  color: #8896ab;
  font-size: 12px;
}

/* ---------- 套餐卡片 ---------- */
.template .c-item {
  padding: 12px 14px !important;
  background: #fff !important;
}

.template .c-item .l-txt,
.template .c-item span {
  font-size: 12.5px;
  color: #3d4a5f;
}

.template .c-item .price {
  color: var(--color-primary);
  font-weight: 600;
}

/* 单选圆圈 */
.template .el-radio__inner {
  width: 16px;
  height: 16px;
  border-color: #c8d2e0;
}

.template .el-radio__input.is-checked .el-radio__inner {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* 表单内的小标题（如"套餐 示例"） */
.template .c-item .tit {
  font-size: 11.5px;
  color: #a3aec1;
}

/* ==========================================================================
   通用商品（idcsmart_common，如商标注册 / 人工服务）：右栏原生就是 .order-right
   ========================================================================== */
.template.common-config {
  background: transparent;
}

.template.common-config > .main-card {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 4px 20px 26px !important;
  height: auto !important;
}

.template.common-config .pro-tit {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 650;
  color: #0b1a33;
  letter-spacing: -0.01em;
}

.template.common-config .config-tit {
  position: relative;
  margin: 22px 0 14px;
  padding-left: 10px;
  font-size: 14.5px;
  font-weight: 650;
  color: #0b1a33;
}

.template.common-config .config-tit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--color-primary);
}

.template.common-config .config-item {
  border-bottom: 1px solid #f1faf8;
  padding-bottom: 4px;
}

.template.common-config .config-item:last-child {
  border-bottom: 0;
}

.template.common-config .description {
  font-size: 13px;
  line-height: 1.8;
  color: #5b6b82;
}

/* 中栏内部：配置 + 右栏（插件把右栏放在 .common-box 里，用 flex 分列） */
.template.common-config .common-box {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start !important;
  gap: 20px;
  width: 100%;
}

/* 右栏固定 300px，左栏吃掉剩余宽度（原生 margin-right:auto 会把右栏顶出去，需清零） */
.template.common-config .common-box > .l-config {
  flex: 0 0 auto;
  width: calc(100% - 320px) !important;
  max-width: calc(100% - 320px);
  min-width: 0;
  margin: 0 !important;
}

/* 右栏 */
.template.common-config .order-right {
  flex: 0 0 300px;
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  top: 88px !important;
  width: 300px !important;
  min-width: 300px !important;
  height: auto !important;
  max-height: calc(100vh - 110px) !important;
  box-sizing: border-box !important;
  padding: 22px 20px 18px !important;
  border: 1px solid var(--v10-line) !important;
  border-radius: var(--v10-radius) !important;
  box-shadow: var(--v10-shadow-sm) !important;
  background: #fff !important;
  overflow-y: auto !important;
}

.template.common-config .order-right .right-title {
  font-size: 15px !important;
  font-weight: 650 !important;
  color: #0b1a33 !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 14px;
}

.template.common-config .order-right .info .des {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #5b6b82;
  line-height: 1.9;
}

.template.common-config .order-right .info .des .price {
  color: #1f2937;
  font-weight: 500;
}

.template.common-config .order-right .subtotal {
  border-bottom: 1px dashed var(--v10-line) !important;
  border-top: 1px dashed var(--v10-line);
  font-size: 13px;
  color: #5b6b82;
  padding: 14px 0 !important;
}

.template.common-config .order-right .subtotal span:last-child {
  color: var(--color-price-text, #f04438);
  font-weight: 600;
  font-size: 15px;
}

/* 右栏底部操作区 */
.template.common-config .f-box {
  margin-top: auto;
}

.template.common-config .order-right-item .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #5b6b82;
  margin-bottom: 12px;
}

.template.common-config .order-right-item .del-add {
  display: flex;
  align-items: center;
  border: 1px solid var(--v10-line);
  border-radius: 9px;
  overflow: hidden;
  height: 36px;
}

.template.common-config .order-right-item .del-add .del,
.template.common-config .order-right-item .del-add .add {
  width: 32px;
  text-align: center;
  line-height: 34px;
  cursor: pointer;
  color: #5b6b82;
  user-select: none;
}

.template.common-config .order-right-item .del-add .del:hover,
.template.common-config .order-right-item .del-add .add:hover {
  color: var(--color-primary);
}

.template.common-config .order-right-item .num .el-input__inner {
  border: 0 !important;
  height: 34px;
  line-height: 34px;
  text-align: center;
  font-size: 13px;
}

.template.common-config .footer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
}

.template.common-config .footer-total .left {
  font-size: 12.5px;
  color: #8896ab;
}

.template.common-config .footer-total .price,
.template.common-config .footer-total .new-price {
  color: var(--color-price-text, #f04438);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 按钮 */
.template.common-config .buy-btn,
.template.common-config .add-cart-btn {
  height: 44px;
  line-height: 42px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
}

.template.common-config .buy-btn {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(0, 172, 156, .24);
}

.template.common-config .buy-btn:hover {
  background: var(--v10-primary-hover, #008a7d);
}

.template.common-config .el-button--primary {
  height: 44px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

/* 窄屏兜底 */
@media (max-width: 1360px) {
  .goods-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .config-main > .content > .template {
    grid-template-columns: minmax(0, 1fr) 296px;
    padding: 16px !important;
  }

  .pd-nav {
    flex: 0 0 190px;
    width: 190px;
  }
}

/* 全局提示条：右上角浮出，不遮挡正文 */
body > .el-message,
.goods ~ .el-message {
  top: 84px !important;
  left: auto !important;
  right: 24px !important;
  transform: none !important;
  min-width: 0 !important;
}

/* 顶栏存在时，锚点/弹层定位基准微调 */
.goods .el-dropdown-menu {
  font-size: 13px;
}

/* ===== 付款周期四宫格（对齐克隆站） ===== */
.template.common-config .cycle {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.template.common-config .cycle .item {
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px 8px !important;
  border: 1px solid #e5eaf3 !important;
  border-radius: 8px !important;
  background: #fff;
  font-size: 14px !important;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s, background .16s;
}

.template.common-config .cycle .item:hover {
  border-color: #b8e8e3 !important;
}

.template.common-config .cycle .item.com-active {
  border-color: #00ac9c !important;
  background: #f2fbfa !important;
}

.template.common-config .cycle .item .name {
  margin-bottom: 6px;
  font-size: 14px;
  color: #1f2937;
}

.template.common-config .cycle .item .price {
  font-size: 13px;
  color: #00ac9c;
}

@media (max-width: 900px) {
  .template.common-config .cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   云主机 / 魔方云：付款周期四宫格（配置区底部，对齐克隆站）
   注：周期控件已从右栏下拉移到此处，右栏只保留数量
   ========================================================================== */
.template .v10-cycle {
  margin: 6px 0 10px;
  padding: 20px 0 4px;
  border: 0;
  border-top: 1px dashed #e5eaf3;
  border-radius: 0;
  background: transparent;
}

.template .v10-cycle-tit {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 650;
  color: #0b1a33;
}

.template .v10-cycle-hint {
  font-size: 12px;
  font-weight: 400;
  color: #8896ab;
}

.template .v10-cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.template .v10-cycle-item {
  position: relative;
  padding: 14px 10px;
  border: 1px solid #e5eaf3;
  border-radius: 9px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.template .v10-cycle-item:hover {
  border-color: #b8e8e3;
}

.template .v10-cycle-item.is-on {
  border-color: #00ac9c;
  background: #f2fbfa;
  box-shadow: 0 0 0 1px #00ac9c inset;
}

.template .v10-cycle-item .c-name {
  font-size: 14px;
  line-height: 1.4;
  color: #1f2937;
}

.template .v10-cycle-item.is-on .c-name {
  font-weight: 650;
  color: #00ac9c;
}

.template .v10-cycle-item .c-trial {
  font-size: 12px;
  color: #8896ab;
}

.template .v10-cycle-item .c-price {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #00ac9c;
}

.template .v10-cycle-item .c-badge {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: #e67700;
}

/* 右栏不再显示周期下拉，只留数量 */
.content .f-order .main-card .left .time {
  display: none !important;
}

.content .f-order .main-card .left {
  padding-bottom: 14px;
}

@media (max-width: 1100px) {
  .template .v10-cycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
