/* ============================================================
 * jikuaiyun 主题 — 会员中心首页（用户中心仪表盘）
 * 方块化卡片布局 / 圆润 / 蓝白科技调
 *
 * 说明：
 * 1. 类名与 home.php / home.js 完全一致，未改动任何结构与逻辑。
 * 2. 尺寸统一用 px。该系统 html 字号按视口动态缩放
 *    （PC 视口/19.2、手机视口/7.5），用 rem 会导致尺寸不可控；
 *    仅在需要与外壳栅格对齐处（el-main 的 margin/padding）保留 rem。
 * 3. 配色全部取自会员中心主题变量，保持跨页一致。
 * ============================================================ */

.home-main {
  /* ---- 色板 ---- */
  --hm-blue: var(--color-primary, #1a56db);
  --hm-blue-hover: var(--color-primary-hover, #1e4fc4);
  --hm-blue-weak: var(--color-primary-lighter, #eaf1fe);
  --hm-blue-weak2: #f5f9ff;
  --hm-ink: var(--color-text-primary, #1f2937);
  --hm-ink-2: var(--color-text-regular, #374151);
  --hm-gray: var(--color-text-secondary, #6b7280);
  --hm-gray-2: var(--color-text-tips, #9aa4b2);
  --hm-line: #e3e9f4;
  --hm-line-2: #eef2f8;
  --hm-ok: var(--color-success, #10b981);
  --hm-warn: var(--color-warning, #f59e0b);
  --hm-danger: var(--color-danger, #ef4444);

  /* ---- 度量 ---- */
  --hm-r-card: 14px;
  --hm-r-inner: 12px;
  --hm-r-pill: 999px;
  --hm-gap: 16px;
  --hm-pad: 20px;
}

/* ------------------------------------------------------------------
 * 外壳：默认 el-main 是一张白卡片（见 element-comment.css）。
 * 仪表盘要的是「浅底 + 多张白色方块」的层次，所以这里把外层卡片
 * 的白底/描边/阴影取消，只留栅格间距，让内部卡片浮在页面底色上。
 *
 * 注意：不要覆盖 margin。避让固定顶栏靠的是原规则里的
 * margin-top: calc(var(--header-height) + 0.24rem)，移动端同样如此
 * （common.css 里 @750px 的 .el-main{padding-top:1.66rem} 权重只有
 * 0,1,0，被原 .el-container:nth-child(2)>.el-main 的 0,3,0 压掉，
 * 实际不生效）。所以清掉 padding 不会让内容钻到顶栏底下。
 * ------------------------------------------------------------------ */
.el-container:nth-child(2) > .el-main.home-main {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.home-main .main-card {
  font-size: 14px;
  line-height: 1.5;
  color: var(--hm-ink);
}

/* ==================== 总布局 ==================== */
.home-main .main-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--hm-gap);
  align-items: start;
  background: transparent;
}

.home-main .left-box,
.home-main .right-box {
  display: flex;
  flex-direction: column;
  gap: var(--hm-gap);
  min-width: 0;
}

/* 右栏不再是一张大白卡，改为各自独立的方块 */
.home-main .right-box {
  width: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  flex-shrink: 1;
}

/* ==================== 通用卡片外观 ==================== */
.home-main .info-box,
.home-main .money-box,
.home-main .statistics-bottom,
.home-main .product-list-box,
.home-main .no-product,
.home-main .recommend-box,
.home-main .recommend-box-open,
.home-main .WorkOrder-box,
.home-main .notice-box,
.home-main .order-box .order-item {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.home-main .info-box:hover,
.home-main .money-box:hover,
.home-main .statistics-bottom:hover,
.home-main .product-list-box:hover,
.home-main .recommend-box-open:hover,
.home-main .WorkOrder-box:hover,
.home-main .notice-box:hover {
  border-color: #dbe4f3;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.07);
}

/* 卡片小标题（带蓝色竖条） */
.home-main .title-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-ink);
  letter-spacing: 0.2px;
}

.home-main .title-text::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--hm-blue);
  flex: none;
}

/* ==================== 账户信息条 ==================== */
.home-main .info-box {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: var(--hm-pad);
}

.home-main .info-first {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  cursor: pointer;
  min-width: 0;
}

/* 头像底色由 home.js 内联设置（sessionStorage.headBgc），此处只管形状 */
.home-main .name-first {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--hm-r-inner);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  flex: none;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.18);
  text-transform: uppercase;
}

.home-main .name-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-left: 0;
  min-width: 0;
}

.home-main .hello {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  max-width: 260px;
  font-size: 16px;
  font-weight: 600;
  color: var(--hm-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 用户等级徽章：颜色由后台配置内联注入，这里只给外形 */
.home-main .hello .level-badge {
  padding: 1px 8px;
  border-radius: var(--hm-r-pill);
  background: var(--hm-blue-weak);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  flex: none;
}

.home-main .name {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--hm-gray);
}

.home-main .name .id-text {
  color: var(--hm-ink-2);
  font-family: var(--font-mono, monospace);
}

/* 分隔线 */
.home-main .info-box .divider-box {
  height: auto;
  align-self: stretch;
  margin: 0;
  background-color: var(--hm-line-2) !important;
}

/* 邮箱 / 手机 */
.home-main .info-second {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.home-main .email-box,
.home-main .phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--hm-gray);
}

.home-main .info-second > div img {
  width: 15px;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.75;
}

.home-main .email-box .phone-number,
.home-main .phone-box .phone-number {
  margin-left: 0;
  color: var(--hm-ink);
  font-weight: 500;
  word-break: break-all;
}

/* 实名 / 企业认证 */
.home-main .info-three {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.home-main .info-three .compny-box,
.home-main .info-three .person-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
}

.home-main .info-three .compny-box .left-icon,
.home-main .info-three .person-box .left-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hm-gray);
  flex: none;
}

.home-main .info-three .compny-box .left-icon img,
.home-main .info-three .person-box .left-icon img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
  opacity: 0.85;
}

.home-main .info-three .right-text {
  min-width: 0;
}

.home-main .info-three .right-text .certify-id {
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.home-main .info-three .right-text .right-type {
  color: var(--hm-gray-2);
  font-size: 12px;
}

.home-main .info-three .right-text .company-name {
  display: inline-block;
  max-width: 200px;
  color: var(--hm-ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-main .info-three .right-text .certify-bottom {
  display: flex;
  align-items: center;
}

.home-main .info-three .right-text .certify-text {
  display: inline-block;
  max-width: 140px;
  color: var(--hm-ink-2);
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-main .info-three .right-text .certify-bottom .cpoy-btn {
  width: 13px;
  height: 13px;
  margin-left: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.home-main .info-three .right-text .certify-bottom .cpoy-btn:hover {
  opacity: 1;
}

.home-main .info-three .right-text .bule-text {
  color: var(--hm-blue);
  cursor: pointer;
  font-weight: 500;
}

.home-main .info-three .right-text .bule-text:hover {
  text-decoration: underline;
}

/* ==================== 余额 + 产品统计 ==================== */
.home-main .statistics-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--hm-gap);
  min-height: 0;
  flex-wrap: nowrap;
}

/* ---- 余额卡 ---- */
.home-main .money-box {
  flex: none;
  padding: var(--hm-pad);
  min-width: 0;
}

.home-main .money-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  column-gap: 12px;
  justify-content: initial;
}

.home-main .money-top .money-credit {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--hm-line-2);
  border-radius: var(--hm-r-inner);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  min-width: 0;
  overflow: hidden;
}

/* 充值按钮：右上角切角 */
.home-main .money-top .money-credit .credit-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 5px 14px;
  border-radius: 0 var(--hm-r-inner) 0 var(--hm-r-inner);
  background: var(--hm-blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.home-main .money-top .money-credit .credit-btn:hover {
  background: var(--hm-blue-hover);
}

.home-main .money-top .money-credit .credit-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hm-gray);
  font-size: 13px;
  min-width: 0;
}

.home-main .money-top .money-credit .credit-title.coin-title {
  justify-content: space-between;
}

.home-main .money-top .money-credit .credit-title .credit-name {
  min-width: 0;
}

.home-main .money-top .money-credit .credit-title .credit-detail {
  color: var(--hm-blue);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.home-main .money-top .money-credit .credit-title .credit-detail:hover {
  text-decoration: underline;
}

/* 余额提醒开关状态点 */
.home-main .money-top .money-credit .credit-title .create-notice {
  display: flex;
  align-items: center;
  gap: 2px;
}

.home-main .money-top .money-credit .credit-title .create-notice .notice-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c3cad6;
  flex: none;
}

.home-main
  .money-top
  .money-credit
  .credit-title
  .create-notice
  .notice-status.active {
  background-color: var(--hm-ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.home-main .money-top .money-credit .credit-title .create-notice .notice-btn {
  color: var(--hm-blue);
  font-size: 12px;
  cursor: pointer;
}

/* 余额数字 */
.home-main .money-top .money-credit .credit-money {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.home-main .money-top .money-credit .credit-money .credit-num {
  color: var(--hm-ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  flex-shrink: 1;
  min-width: 0;
  word-break: break-all;
  font-family: var(--font-mono, monospace);
}

.home-main .money-top .money-credit .credit-money .credit-num .s-24 {
  margin-right: 4px;
  font-size: 18px;
  font-weight: 500;
  color: var(--hm-gray);
}

.home-main .money-top .money-credit .credit-money .recharge-text {
  color: var(--hm-blue);
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-sans);
  margin-left: 0;
  cursor: pointer;
  white-space: nowrap;
}

.home-main .money-top .money-credit .credit-money .recharge-text:hover {
  text-decoration: underline;
}

.home-main .money-top .money-credit .credit-money .recharge-btn {
  padding: 0 12px;
  line-height: 24px;
  border-radius: var(--hm-r-pill);
  background: var(--hm-blue);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

/* 代金券提示 */
.home-main .voucher-box {
  color: var(--hm-gray);
  font-size: 12px;
}

.home-main .voucher-box .bule-text {
  margin-left: 4px;
  color: var(--hm-blue);
  cursor: pointer;
}

.home-main .voucher-box .bule-text:hover {
  text-decoration: underline;
}

/* ---- 授信额度 ---- */
.home-main .money-order {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hm-line-2);
}

.home-main .money-order .money-order-divider {
  width: 1px;
  height: 18px;
  margin: 0 16px;
  border-radius: 1px;
  background: var(--hm-line);
  flex: none;
}

.home-main .money-order .money-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-width: 150px;
}

.home-main .money-order .money-order-item .money-order-title {
  display: flex;
  align-items: center;
  color: var(--hm-gray);
  font-size: 13px;
}

.home-main .money-order .money-order-item .money-order-title .credit-tag {
  box-sizing: border-box;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-pill);
  background: var(--hm-blue-weak2);
  color: var(--hm-blue);
  font-size: 11px;
}

.home-main .money-order .money-order-item .money-order-value {
  color: var(--hm-ink);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.home-main .money-order .money-order-item .money-order-value .s-12 {
  margin-right: 3px;
  font-size: 12px;
  font-weight: 400;
  color: var(--hm-gray);
}

/* ---- 三个产品/订单统计方块 ---- */
.home-main .order-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: auto;
  margin-left: 0;
  min-width: 0;
}

.home-main .order-box .order-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 18px 16px;
  cursor: pointer;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.home-main .order-box .order-item:hover {
  transform: translateY(-2px);
  border-color: #cfddf7;
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.1);
}

.home-main .order-box .order-item::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--hm-blue-weak);
  opacity: 0.5;
  pointer-events: none;
}

/* 图标：浅蓝圆角方块托底，替换原来的整块高饱和色 */
.home-main .order-box .order-type-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 10px;
  background: var(--hm-blue-weak);
  flex: none;
  position: relative;
  z-index: 1;
}

.home-main .order-box .order-type-img img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.home-main .order-box .order-title {
  margin: 0;
  color: var(--hm-gray);
  font-size: 13px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.home-main .order-box .order-nums {
  margin-bottom: 0;
  color: var(--hm-ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  font-family: var(--font-mono, monospace);
  position: relative;
  z-index: 1;
}

/* 三块用同一蓝白基调，只在图标底色上做区分，避免撞色 */
.home-main .order-box .order-box-1 {
  background: #fff;
}

.home-main .order-box .order-box-1 .order-type-img {
  background: #e6f0ff;
}

.home-main .order-box .order-box-2 {
  background: #fff;
}

.home-main .order-box .order-box-2 .order-type-img {
  background: #e4f4fb;
}

.home-main .order-box .order-box-2::after {
  background: #e4f4fb;
}

.home-main .order-box .order-box-3 {
  background: #fff;
}

.home-main .order-box .order-box-3 .order-type-img {
  background: #eceafe;
}

.home-main .order-box .order-box-3::after {
  background: #eceafe;
}

/* ==================== 消费统计 ==================== */
.home-main .statistics-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* 原样式为放装饰图留了 5.32rem 右内边距（1920px 下约 532px），
     窄屏会把数字挤成一列。这里改为常规内边距。 */
  padding: 18px var(--hm-pad);
  margin-top: 0;
  background: #fff;
  background-image: none;
}

.home-main .statistics-bottom .statistics-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  min-width: 190px;
}

.home-main .statistics-bottom .statistics-item .statistics-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hm-gray);
  font-size: 13px;
}

.home-main .statistics-bottom .statistics-item .statistics-item-name .green-text,
.home-main .statistics-bottom .statistics-item .statistics-item-name .red-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: var(--hm-r-pill);
  font-size: 12px;
  font-weight: 500;
}

.home-main .statistics-bottom .statistics-item .statistics-item-name .green-text {
  color: #047857;
  background: #e7f8f1;
}

.home-main .statistics-bottom .statistics-item .statistics-item-name .red-text {
  color: #b91c1c;
  background: #fdecec;
}

.home-main .statistics-bottom .statistics-item .statistics-item-value {
  color: var(--hm-ink);
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.home-main .statistics-bottom .statistics-item .statistics-item-value .s-12 {
  margin-right: 3px;
  font-size: 13px;
  font-weight: 400;
  color: var(--hm-gray);
}

.home-main .statistics-bottom .statistics-item-divider {
  width: 1px;
  height: 20px;
  margin: 0 20px;
  border-radius: 1px;
  background: var(--hm-line);
  flex: none;
}

/* ==================== 即将到期产品 ==================== */
.home-main .product-list-box {
  flex: none;
  padding: var(--hm-pad);
  min-width: 0;
}

.home-main .product-list-box .product-name {
  color: var(--hm-blue);
  font-size: 14px;
  cursor: pointer;
}

.home-main .product-list-box .product-name:hover {
  text-decoration: underline;
}

.home-main .product-list-box .red-time {
  color: var(--hm-danger);
  font-weight: 500;
}

/* 表格：去掉重描边，走清爽的分隔线 */
.home-main .product-list-box .el-table::before {
  display: none;
}

.home-main .product-list-box .el-table th.el-table__cell {
  background: var(--hm-blue-weak2);
  color: var(--hm-gray);
  font-weight: 500;
  font-size: 13px;
}

.home-main .product-list-box .el-table th.el-table__cell,
.home-main .product-list-box .el-table td.el-table__cell {
  border-bottom: 1px solid var(--hm-line-2);
}

.home-main .product-list-box .el-table th.el-table__cell:first-child {
  border-top-left-radius: 10px;
}

.home-main .product-list-box .el-table th.el-table__cell:last-child {
  border-top-right-radius: 10px;
}

.home-main
  .product-list-box
  .el-table--enable-row-hover
  .el-table__body
  tr:hover
  > td.el-table__cell {
  background: var(--hm-blue-weak2);
}

/* 空态 */
.home-main .no-product {
  margin-top: 0;
  padding: 48px 20px 56px;
  text-align: center;
}

.home-main .no-product h2 {
  margin: 0;
  color: var(--hm-ink);
  font-size: 20px;
  font-weight: 600;
}

.home-main .no-product p {
  margin: 8px 0 20px;
  color: var(--hm-gray);
  font-size: 13px;
}

/* ==================== 推介计划 ==================== */
.home-main .recommend-box-open {
  padding: var(--hm-pad);
}

.home-main .recommend-box-open .recommend-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.home-main .recommend-box-open .recommend-top .left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-main .recommend-box-open .recommend-top .left .row1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.home-main .recommend-box-open .recommend-top .left .row1 .title-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-ink);
}

/* 奖励角标：原为红色渐变，改为琥珀色描边胶囊，和蓝白基调不冲突 */
.home-main .recommend-box-open .recommend-top .left .row1 .reword {
  position: relative;
  padding: 2px 10px 2px 22px;
  border: 1px solid #f6dfae;
  border-radius: var(--hm-r-pill);
  background: #fff8ea;
  color: #b45309;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.home-main .recommend-box-open .recommend-top .left .row1 .reword img {
  position: absolute;
  left: -8px;
  top: -6px;
  width: 26px;
  height: 26px;
}

.home-main .recommend-box-open .recommend-top .left .row2 {
  margin: 14px 0 6px;
  color: var(--hm-ink);
  font-size: 14px;
  font-weight: 600;
}

.home-main .recommend-box-open .recommend-top .left .row3,
.home-main .recommend-box-open .recommend-top .left .row4 {
  color: var(--hm-gray);
  font-size: 13px;
  line-height: 1.6;
}

.home-main .recommend-box-open .recommend-top .right {
  width: 92px;
  height: 94px;
  flex: none;
  object-fit: contain;
}

/* 推广链接 */
.home-main .recommend-box-open .url {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  margin-top: 16px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r-inner);
  background: var(--hm-blue-weak2);
  overflow: hidden;
}

.home-main .recommend-box-open .url .url-text {
  width: 100%;
  margin-left: 12px;
  color: var(--hm-gray);
  font-size: 12px;
  font-family: var(--font-mono, monospace);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-main .recommend-box-open .url .copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 100%;
  border-left: 1px solid var(--hm-line);
  background: var(--hm-blue-weak);
  color: var(--hm-blue);
  font-size: 13px;
  cursor: pointer;
  flex: none;
  transition: all 0.15s ease;
}

.home-main .recommend-box-open .url .copy-btn:hover {
  background: var(--hm-blue);
  color: #fff;
}

/* 收益统计两块 */
.home-main .recommend-box-open .top-statistic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
  flex-wrap: nowrap;
}

.home-main .recommend-box-open .top-statistic .top-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--hm-line-2);
  border-radius: var(--hm-r-inner);
  box-shadow: none;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
  min-width: 0;
}

/* 覆盖原有的装饰底图 */
.home-main .recommend-box-open .top-statistic .top-item:nth-of-type(1),
.home-main .recommend-box-open .top-statistic .top-item:nth-of-type(2) {
  background-image: none;
}

.home-main .recommend-box-open .top-statistic .top-item .top-money {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--hm-ink);
  font-size: 20px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}

.home-main .recommend-box-open .top-statistic .top-item .top-text {
  color: var(--hm-gray);
  font-size: 12px;
}

/* 未开通推介计划 */
.home-main .recommend-box {
  width: auto;
  margin: 0;
  padding: var(--hm-pad);
  text-align: center;
}

.home-main .recommend-box img {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.home-main .recommend-box h2 {
  margin: 12px 0 0;
  color: var(--hm-ink);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.home-main .recommend-box p {
  margin: 8px 0 0;
  color: var(--hm-gray);
  font-size: 13px;
  text-align: center;
}

.home-main .no-recommend {
  width: 140px;
  height: 34px;
  line-height: 34px;
  margin: 16px auto 0;
  border-radius: var(--hm-r-pill);
  background: var(--hm-blue);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.home-main .no-recommend:hover {
  background: var(--hm-blue-hover);
}

.home-main .recommend-text {
  margin: 16px auto 0;
  height: 34px;
  line-height: 34px;
  border-radius: var(--hm-r-inner);
  background: var(--hm-blue-weak2);
  color: var(--hm-gray);
  font-size: 13px;
}

/* ==================== 工单 / 公告 列表卡 ==================== */
.home-main .WorkOrder-box,
.home-main .notice-box {
  margin-top: 0;
  padding: var(--hm-pad);
}

.home-main .WorkOrder-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hm-ink);
}

/* 标题左侧蓝条（WorkOrder-title 同时带 title-text 类，
   这里把竖条加在它的第一个子元素上，避免出现两条） */
.home-main .WorkOrder-title::before {
  display: none;
}

.home-main .WorkOrder-title > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-main .WorkOrder-title > div:first-child::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--hm-blue);
  flex: none;
}

/* 「···」更多按钮 */
.home-main .more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border-radius: var(--hm-r-pill);
  background: var(--hm-blue-weak);
  color: var(--hm-blue);
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-main .more:hover {
  background: var(--hm-blue);
  color: #fff;
}

.home-main .WorkOrder-content {
  padding: 0;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 工单条目 */
.home-main .WorkOrder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid var(--hm-line-2);
  border-radius: var(--hm-r-inner);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.home-main .WorkOrder-item:hover {
  background-color: var(--hm-blue-weak2);
  border-color: #d9e4f7;
}

/* 状态徽章：底色由 home.php 内联注入 item.color */
.home-main .replay-div {
  flex: none;
  margin-right: 0;
  padding: 0 10px;
  height: 22px;
  line-height: 22px;
  border-radius: var(--hm-r-pill);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.home-main .replay-box {
  width: auto;
  flex: 1;
  min-width: 0;
}

.home-main .replay-title {
  color: var(--hm-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.home-main .replay-name {
  margin-top: 2px;
  color: var(--hm-gray-2);
  font-size: 12px;
  font-weight: 400;
}

/* 公告条目 */
.home-main .notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hm-line-2);
  border-left-width: 3px;
  border-radius: var(--hm-r-inner);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.home-main .notice-item:hover {
  background-color: var(--hm-blue-weak2);
}

/* 左侧色条：统一蓝色系深浅，取代原来的绿/蓝/橙三色 */
.home-main .notice-item:nth-of-type(1) {
  border-left-color: var(--hm-blue);
  margin-bottom: 0;
}

.home-main .notice-item:nth-of-type(2) {
  border-left-color: #5b8def;
  margin-bottom: 0;
}

.home-main .notice-item:nth-of-type(3) {
  border-left-color: #9dbcf7;
  margin-bottom: 0;
}

.home-main .notice-item-left {
  min-width: 0;
}

.home-main .notice-time {
  margin: 0;
  color: var(--hm-gray-2);
  font-size: 12px;
  font-weight: 400;
}

.home-main .notice-title {
  margin: 2px 0;
  color: var(--hm-ink);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.home-main .notice-type {
  margin: 0;
  color: var(--hm-gray-2);
  font-size: 12px;
  font-weight: 400;
}

.home-main .notice-item-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hm-blue-weak);
  color: var(--hm-blue);
  line-height: 1;
  flex: none;
}

/* ==================== 微信浮标 ==================== */
.home-main .wx-code {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--hm-line);
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.12);
  cursor: pointer;
  z-index: 100;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.home-main .wx-code:hover {
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.2);
}

.home-main .wx-code .wx-img {
  width: 26px;
  height: 26px;
  background: url("../img/wx.svg") no-repeat;
  background-size: 100% 100%;
}

.home-main .wx-code:hover .wx-img {
  background: url("../img/wx_hover.svg") no-repeat;
  background-size: 100% 100%;
}

.wx-box {
  text-align: center;
}

.wx-box .tit {
  margin: 0 0 8px;
  color: var(--color-text-regular, #374151);
  font-size: 13px;
}

.wx-box .img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
}

.wx-box .img img {
  width: 100%;
  border-radius: 8px;
}

/* ==================== 弹窗 ==================== */
.dialog-form {
  display: flex;
  flex-direction: column;
}

.cz-input {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cz-input > .btn-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-left: 10px;
  border-radius: var(--radius-md, 8px);
  background: var(--color-primary, #1a56db);
  color: #fff;
}

.pay-html {
  display: flex;
  justify-content: center;
}

.pay-html > img {
  width: 220px;
  height: 220px;
  border-radius: 8px;
}

.ty-select {
  width: 100%;
}

.open-dialog {
  font-size: 14px;
  border-radius: var(--radius-lg, 14px);
}

.open-dialog .dialog-footer {
  font-size: 14px;
}

.open-dialog .dialog-footer .btn-ok,
.open-dialog .dialog-footer .btn-no {
  width: 104px;
  height: 40px;
  border-radius: var(--radius-md, 8px);
}

.open-dialog .dialog-footer .btn-ok {
  background: var(--color-primary, #1a56db);
  color: #fff;
}

.open-dialog .dialog-footer .btn-no {
  background: #f1f3f7;
  border-color: #e5e7eb;
  color: var(--color-text-regular, #374151);
}

/* ============================================================
 * 自适应
 * ============================================================ */

/* 大屏偏窄：右栏收窄 */
@media screen and (max-width: 1500px) {
  .home-main .main-content {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* 平板横向：余额与统计块改上下排列 */
@media screen and (max-width: 1280px) {
  .home-main .main-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-main .statistics-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 平板 */
@media screen and (max-width: 1000px) {
  .home-main .info-box .divider-box {
    display: none;
  }

  .home-main .info-box {
    gap: 16px;
  }
}

/* 手机 */
@media screen and (max-width: 750px) {
  .home-main {
    --hm-pad: 16px;
    --hm-gap: 12px;
  }

  .home-main .main-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 24px;
  }

  .home-main .info-box,
  .home-main .money-box,
  .home-main .statistics-bottom,
  .home-main .product-list-box,
  .home-main .recommend-box,
  .home-main .recommend-box-open,
  .home-main .WorkOrder-box,
  .home-main .notice-box {
    border-radius: 12px;
  }

  .home-main .info-box {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .home-main .info-three {
    width: 100%;
    margin-top: 0;
    align-items: stretch;
  }

  .home-main .money-top {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 三个统计块窄屏保持一行，压缩内部尺寸 */
  .home-main .order-box {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
    gap: 8px;
  }

  .home-main .order-box .order-item {
    padding: 14px 10px;
    gap: 8px;
  }

  .home-main .order-box .order-type-img {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .home-main .order-box .order-type-img img {
    width: 19px;
    height: 19px;
  }

  .home-main .order-box .order-nums {
    font-size: 20px;
  }

  .home-main .order-box .order-title {
    font-size: 12px;
  }

  .home-main .order-box .order-item::after {
    display: none;
  }

  .home-main .statistics-bottom {
    padding: 16px;
    margin-top: 0;
  }

  .home-main .statistics-bottom .statistics-item {
    min-width: 0;
    flex: 1 1 100%;
  }

  .home-main .statistics-bottom .statistics-item-divider {
    display: none;
  }

  .home-main .statistics-bottom .statistics-item + .statistics-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--hm-line-2);
  }

  .home-main .money-order .money-order-item {
    min-width: 0;
    flex: 1 1 100%;
  }

  .home-main .money-order .money-order-divider {
    display: none;
  }

  .home-main .money-order .money-order-item + .money-order-item {
    margin-top: 10px;
  }

  .home-main .recommend-box-open .recommend-top .right {
    width: 72px;
    height: 74px;
  }

  .home-main .recommend-box-open .url .copy-btn {
    width: 64px;
  }

  .home-main .right-box {
    width: auto;
    margin-top: 0;
  }

  .home-main .wx-code {
    right: 8px;
    width: 38px;
    height: 38px;
  }
}

/* 超窄屏：统计块换两列 + 一列 */
@media screen and (max-width: 420px) {
  .home-main .order-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-main .order-box .order-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .home-main .hello {
    max-width: 100%;
  }

  .home-main .info-three .right-text .company-name {
    max-width: 150px;
  }
}
