/* ===== 会员中心首页：融合改版（三张统计块 = 白卡）2026-10-15 =====
   依据效果稿（_audit/domain-page/uc-fuse，选定的「白卡」那版）
   改了什么：
     1) 内容区底色：浅灰 → 阿里云工作台那种"浅蓝 → 淡紫 + 左下蓝晕"渐变
     2) 余额与三张统计块并成一张卡：统计块从"整块饱和色 + 白色图标"改成
        "描边小白卡 + 分类色圆点 + 灰标签 + 墨色数字"（104×108，和效果稿一致）
     3) 「本月消费金额 / 总消费金额」并进同一张卡的脚注行（去掉右侧装饰图和白占位）
     4) 首页卡片统一 10px 圆角 + 1px 描边、去掉投影（效果稿是平的）
   位置：home.php 里引用，选择器全部限定在 .ca-home 下，不影响其它页面
   回滚：node _build/uc-home/push.mjs --rollback
*/

/* ---------- 1. 内容区底色 ---------- */
html body .el-main.home-main {
  background-image:
    radial-gradient(130% 85% at 12% 104%,
      rgba(150, 205, 252, 0.58) 0%, rgba(198, 228, 253, 0.3) 42%, rgba(198, 228, 253, 0) 74%),
    radial-gradient(85% 95% at 102% 52%,
      rgba(212, 204, 255, 0.44) 0%, rgba(212, 204, 255, 0) 70%),
    radial-gradient(70% 60% at -4% 0%,
      rgba(214, 232, 253, 0.55) 0%, rgba(214, 232, 253, 0) 72%),
    linear-gradient(158deg, #f6f8fd 0%, #eef3fc 48%, #f2f1fd 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
html body .ca-home,
html body .ca-home .main-content {
  background: transparent;
}

/* ---------- 2. 卡片：10px 圆角 + 1px 描边，去投影 ---------- */
html body .ca-home .info-box,
html body .ca-home .product-list-box,
html body .ca-home .right-box {
  border: 1px solid var(--k8-border);
  border-radius: 0.1rem;
  box-shadow: none;
}

/* ---------- 3. 余额卡 = 一张卡装「余额 + 三张统计块 + 消费脚注」 ---------- */
html body .ca-home .statistics-box {
  border: 0;
  box-shadow: none;
}
html body .ca-home .statistics-content {
  align-items: flex-start;
  min-height: 1.92rem;
  padding: 0.16rem 0.16rem 0;
  border: 1px solid var(--k8-border);
  border-bottom: 0;
  border-radius: 0.1rem 0.1rem 0 0;
  background: #fff;
}
html body .ca-home .money-box {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

/* 余额：标签一行、金额与「充值」一行（原来是灰底块 + 右上角按钮） */
html body .ca-home .money-top {
  column-gap: 0.16rem;
}
html body .ca-home .money-top .money-credit {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: 0.1rem;
  row-gap: 0.1rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
html body .ca-home .money-top .money-credit .credit-title {
  flex: 0 0 100%;
  order: 0;
  color: #8b93a3;
  font-size: 0.125rem;
}
html body .ca-home .money-top .money-credit .credit-money {
  flex: 0 0 auto;
  order: 1;
  margin-top: 0;
}
html body .ca-home .money-top .money-credit .credit-money .credit-num {
  font-size: 0.24rem;
  font-weight: 500;
  color: #1f2430;
}
html body .ca-home .money-top .money-credit .credit-btn {
  position: static;
  flex: 0 0 auto;
  order: 2;
  height: 0.28rem;
  line-height: 0.28rem;
  padding: 0 0.12rem;
  border-radius: 0.06rem;
  font-size: 0.125rem;
}
html body .ca-home .money-top .money-credit .voucher-box,
html body .ca-home .money-top .money-credit .money-order {
  flex: 0 0 100%;
  order: 3;
  margin-top: 0.06rem;
}

/* 三张统计块：描边小白卡 + 分类色圆点（数字保持墨色） */
html body .ca-home .order-box {
  width: auto;
  margin-left: auto;
  column-gap: 0.08rem;
  align-items: flex-start;
}
html body .ca-home .order-box .order-item {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 1.04rem;
  width: 1.04rem;
  min-width: 1.04rem;
  min-height: 1.08rem;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.13rem 0.1rem 0.14rem;
  border: 1px solid var(--k8-border);
  border-radius: 0.1rem;
  background: #fff;
  transition: border-color 0.16s, box-shadow 0.16s;
}
html body .ca-home .order-box .order-item:hover {
  border-color: #ccd8ea;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
html body .ca-home .order-box .order-item::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.2rem;
  width: 0.05rem;
  height: 0.05rem;
  border-radius: 50%;
  background: #8692b0;
}
html body .ca-home .order-box .order-box-1::before { background: #7a5af8; }
html body .ca-home .order-box .order-box-2::before { background: #2f7cf6; }
html body .ca-home .order-box .order-box-3::before { background: #1a9e66; }
/* 原来的白色图标块不用了（圆点顶上） */
html body .ca-home .order-box .order-type-img {
  display: none;
}
html body .ca-home .order-box .order-title {
  margin: 0 0 0 0.1rem;
  color: #8b93a3;
  font-size: 0.12rem;
  font-weight: 400;
  line-height: 1.45;
}
html body .ca-home .order-box .order-nums {
  margin: 0.08rem 0 0;
  color: #1f2430;
  font-size: 0.22rem;
  font-weight: 500;
  line-height: 1.2;
}

/* ---------- 4. 消费脚注：并进同一张卡 ---------- */
html body .ca-home .statistics-bottom {
  margin-top: -0.24rem;
  padding: 0.14rem 0.16rem 0.16rem;
  border: 1px solid var(--k8-border);
  border-radius: 0 0 0.1rem 0.1rem;
  background: #fff;
  background-image: none;
  justify-content: flex-start;
  box-shadow: none;
}
html body .ca-home .statistics-bottom .statistics-item {
  flex: 0 0 auto;
  justify-content: flex-start;
  column-gap: 0.1rem;
}
html body .ca-home .statistics-bottom .statistics-item .statistics-item-name {
  color: #8b93a3;
}
html body .ca-home .statistics-bottom .statistics-item .statistics-item-value {
  color: #1f2430;
  font-weight: 500;
}
html body .ca-home .statistics-bottom .statistics-item-divider {
  height: 0.16rem;
  margin: 0 0.26rem;
  background: var(--k8-border);
}

/* ---------- 5. 产品列表 / 公告卡的小修 ---------- */
html body .ca-home .product-list-box .title-text {
  font-size: 0.145rem;
  font-weight: 500;
  color: #1f2430;
}
html body .ca-home .right-box .notice-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html body .ca-home .right-box .notice-type {
  display: inline-block;
  padding: 1px 0.06rem;
  border: 1px solid #e6ebf3;
  border-radius: 0.04rem;
  background: #f7f9fc;
  color: #6b7688;
  font-weight: 400;
}

/* ---------- 6. 手机端（≤750 时根字号是 宽度/7.5，rem 会变小，这里改回 px） ---------- */
@media screen and (max-width: 750px) {
  html body .ca-home .statistics-content {
    min-height: 0;
    padding: 12px 12px 0;
  }
  html body .ca-home .order-box {
    width: 100%;
    margin-left: 0;
    margin-top: 0.2rem;
  }
  html body .ca-home .order-box .order-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 86px;
    padding: 12px 10px 12px;
  }
  html body .ca-home .order-box .order-item::before {
    left: 10px;
    top: 18px;
    width: 5px;
    height: 5px;
  }
  html body .ca-home .order-box .order-title {
    margin-left: 10px;
    font-size: 12px;
  }
  html body .ca-home .order-box .order-nums {
    margin-top: 8px;
    font-size: 20px;
  }
  html body .ca-home .statistics-bottom {
    /* 手机端：两张卡分开（间距由 .left-box 的 row-gap 给） */
    margin-top: 0;
    padding: 12px 12px 14px;
    border-radius: 10px;
  }
  html body .ca-home .statistics-content {
    border-bottom: 1px solid var(--k8-border);
    border-radius: 10px;
  }
  html body .ca-home .statistics-bottom .statistics-item-divider {
    margin: 0 12px;
  }
}
