/*
 * home.css — Modernize 仪表盘（diff_report_layout 第二章落地 + 深化轮）
 * 纪律：根字号被 common.js 动态改写，本文件一律 px，禁 rem。
 * 深化轮：欢迎卡 welcome 化（大头像+认证 badge+垂直指标）、统计卡 hstack、
 *         余额卡 Monthly Earnings 重排（环移右侧）、右栏推介/公告紧凑化、空态图标块。
 */

/* ===== 页面骨架（2-2）===== */
.main-card {
  max-width: none;
  background: transparent;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.main-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
/* modernize-skin.css 对 .main-content > div 施加了卡片阴影，左右栏是透明容器需豁免 */
.main-content > .left-box,
.main-content > .right-box {
  background: transparent;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.left-box {
  flex: 1;
  min-width: 0;
}
.right-box {
  width: 380px;
  flex-shrink: 0;
  padding: 0;
}

/* ===== 欢迎卡（Modernize welcome 卡风格）===== */
.info-card {
  position: relative;
  overflow: hidden;
}
/* 右下淡色装饰圆（纯 CSS） */
.info-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #ecf2ff;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}
.info-box {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 16px;
}
.info-first {
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 0;
}
.name-first {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  background: #ecf2ff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  flex-shrink: 0;
}
.name-box {
  margin-left: 16px;
  min-width: 0;
}
.hello {
  font-weight: 700;
  font-size: 18px;
  color: #2a3547;
  margin: 0;
}
.name {
  color: #5a6a85;
  font-size: 13px;
  font-weight: 400;
  margin: 2px 0 0;
}
.name .id-text {
  color: #2a3547;
}
/* 认证状态 badge（已认证 success-subtle / 未认证 warning-subtle） */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 16px;
  max-width: 100%;
}
.cert-badge i {
  font-size: 14px;
  margin-right: 4px;
}
.cert-badge--ok {
  background: #e6fffa;
  color: #13deb9;
}
.cert-badge--warn {
  background: #fef5e5;
  color: #ffae1f;
}
.cert-badge .cert-value {
  margin-left: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cert-badge .cert-link {
  cursor: pointer;
  text-decoration: underline;
}
/* 右侧邮箱/电话垂直指标组 */
.info-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
}
.metric-item {
  display: flex;
  align-items: center;
}
.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
}
.metric-icon--primary {
  background: #ecf2ff;
  color: #5d87ff;
}
.metric-icon--success {
  background: #e6fffa;
  color: #13deb9;
}
.metric-label {
  font-size: 12px;
  color: #5a6a85;
  margin: 0;
}
.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: #2a3547;
  margin: 2px 0 0;
}
.bule-text {
  cursor: pointer;
  color: #5d87ff;
}
.info-metrics .divider-box {
  height: 40px;
  margin: 0;
  background-color: #e5eaef !important;
}

/* ===== 统计区（2-1 深化）：白卡 + 45px subtle 图标块 hstack ===== */
.home-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.stat-card {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  border: 0;
  border-radius: 7px;
  box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
  background: #fff;
  transition: box-shadow 0.2s ease-in;
}
.stat-card:hover {
  box-shadow: rgba(145, 158, 171, 0.3) 0px 0px 2px 0px, rgba(145, 158, 171, 0.24) 0px 16px 32px -4px;
}
.stat-card .card-body {
  padding: 20px;
  display: flex;
  align-items: center;
}
.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 12px;
  flex-shrink: 0;
}
.stat-icon--primary {
  background: #ecf2ff;
  color: #5d87ff;
}
.stat-icon--success {
  background: #e6fffa;
  color: #13deb9;
}
.stat-icon--warning {
  background: #fef5e5;
  color: #ffae1f;
}
.stat-info {
  min-width: 0;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #2a3547;
  margin: 0;
  line-height: 1.2;
}
.stat-label {
  font-size: 14px;
  color: #5a6a85;
  margin: 2px 0 0;
}

/* ===== 余额卡（2-4 深化：Monthly Earnings 风格，环移右侧）===== */
.money-card .card-body {
  padding: 30px;
}
.money-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.money-left {
  flex: 1;
  min-width: 0;
}
.credit-box {
  display: flex;
  align-items: center;
}
.statistics-credit {
  color: #2a3547;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  margin-right: 12px;
}
.recharge-btn {
  cursor: pointer;
  padding: 0 14px;
  height: 30px;
  line-height: 30px;
  color: #fff;
  font-size: 12px;
  border-radius: 7px;
  text-align: center;
  background: #5d87ff;
  flex-shrink: 0;
}
.recharge-btn:hover {
  background: #4f73d9;
}
.griy-12 {
  color: #5a6a85;
  font-size: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.griy-12 .to-voucher .bule-text {
  margin-left: 3px;
  cursor: pointer;
}
/* 本月/总消费两行列表：左小圆点+标签，右金额 600 */
.money-list {
  margin-top: 20px;
}
.money-month,
.money-total {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #5a6a85;
  font-size: 13px;
  padding: 6px 0;
}
.money-total {
  margin-top: 2px;
}
/* 图例点：8px 圆形，success 主色 / primary subtle */
.type-box {
  margin-right: 6px;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.green-bg {
  background-color: #13deb9;
}
.grey-bg {
  background-color: #ecf2ff;
}
.percent-box-green {
  display: inline-block;
  padding: 0 6px;
  background: #e6fffa;
  color: #13deb9;
  font-size: 12px;
  border-radius: 10px;
}
.percent-box-red {
  display: inline-block;
  padding: 0 6px;
  background: #fbf2ef;
  font-size: 12px;
  color: #fa896b;
  border-radius: 10px;
}
.money-num {
  color: #2a3547;
  font-weight: 600;
  font-size: 15px;
}
.money-right {
  flex-shrink: 0;
}
.progress-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 产品列表卡（2-5）：Modernize 表格色板 ===== */
.goods-box {
  background-color: transparent;
}
.goods-table {
  border-spacing: 0;
  width: 100%;
}
.product-item {
  cursor: pointer;
}
.product-item:hover {
  background-color: #f6f9fc;
  transition: background-color 0.25s ease;
}
.goods-table thead tr td {
  font-size: 14px;
  color: #2a3547;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid #e5eaef;
  width: 25%;
}
.goods-table tbody tr td {
  font-size: 14px;
  color: #5a6a85;
  padding: 16px 0;
  border-bottom: 1px solid #f0f4f8;
}
.time-box {
  width: 160px;
}
.goods-table tbody tr .red-time {
  color: #fa896b;
}
/* 空态（3-3 深化）：居中紧凑 + subtle 图标块，按钮走 el-button--primary 皮肤 */
.no-product {
  width: 100%;
  text-align: center;
  padding: 32px 0 40px;
}
.no-product-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecf2ff;
  color: #5d87ff;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.no-product h2 {
  font-weight: 600;
  color: #2a3547;
  font-size: 16px;
  margin: 0;
}
.no-product p {
  margin: 4px 0 16px;
  color: #5a6a85;
  font-size: 14px;
}
/* 全局皮肤把 .el-button 设为 flex（块级），text-align 失效，按钮需 margin 居中 */
.no-product .el-button {
  margin: 0 auto;
}

/* ===== 右栏（2-3/2-6）：卡内列表，无内框、无彩色左边线 ===== */
.WorkOrder-box {
  margin-top: 0;
}
.WorkOrder-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.WorkOrder-title .card-title {
  font-size: 16px;
}
.WorkOrder-content {
  padding: 0;
  border: 0;
}
.WorkOrder-item {
  display: flex;
  align-items: center;
  padding: 8px;
  margin: 0 -8px 8px;
  border-radius: 7px;
}
.WorkOrder-item:hover {
  cursor: pointer;
  background-color: #f6f9fc;
  transition: background-color 0.25s ease;
}
.replay-div {
  margin-right: 10px;
  font-weight: 500;
  font-size: 12px;
  padding: 0 10px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  background: rgba(93, 135, 255, 0.2);
  color: #fff;
  border-radius: 7px;
  flex-shrink: 0;
}
.replay-red {
  color: #fa896b;
  background: #fbf2ef;
}
.replay-green {
  background: #e6fffa;
  color: #13deb9;
}
.replay-box {
  flex: 1;
  min-width: 0;
}
.replay-title {
  font-size: 14px;
  color: #2a3547;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.replay-name {
  font-size: 13px;
  font-weight: 500;
  color: #5a6a85;
}
.notice-box {
  margin-top: 0;
}
.notice-item {
  display: flex;
  cursor: pointer;
  align-items: center;
  padding: 8px;
  margin: 0 -8px 8px;
  border-radius: 7px;
}
.notice-item:hover {
  background-color: #f6f9fc;
  transition: background-color 0.25s ease;
}
/* 公告项统一图标块：32px subtle 圆角 */
.notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #ecf2ff;
  color: #5d87ff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
}
.notice-item-left {
  flex: 1;
  min-width: 0;
}
.notice-time {
  font-size: 12px;
  font-weight: 400;
  color: #5a6a85;
  margin: 0;
}
.notice-title {
  font-weight: 500;
  font-size: 14px;
  color: #2a3547;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.notice-type {
  font-size: 12px;
  font-weight: 400;
  color: #5a6a85;
}
.notice-item-right {
  color: #5d87ff;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  background: #ecf2ff;
  border-radius: 7px;
  flex-shrink: 0;
}

/* ===== 推介计划（右栏，深化：插画 140px、文案按钮紧凑、卡 padding 20px）===== */
.recommend-box {
  text-align: center;
}
.recommend-box .card-body {
  padding: 20px;
}
.recommend-box h2 {
  text-align: center;
  color: #2a3547;
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 0;
}
.recommend-box p {
  margin-top: 8px;
  text-align: center;
  color: #5a6a85;
  font-size: 13px;
}
.recommend-box img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 140px;
  height: auto;
  margin: 0 auto;
}
.no-recommend {
  margin: 16px auto 0;
  color: #fff;
  font-size: 13px;
  background: #5d87ff;
  height: 34px;
  line-height: 34px;
  width: 140px;
  border-radius: 7px;
  cursor: pointer;
}
.no-recommend:hover {
  background: #4f73d9;
}
.recommend-text {
  margin: 16px auto 0;
  color: #5a6a85;
  font-size: 13px;
  background: #ecf2ff;
  height: 34px;
  line-height: 34px;
  border-radius: 7px;
}
.recommend-box-open .card-body {
  padding: 20px;
}
.recommend-box-open .recommend-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.recommend-box-open .recommend-top .left {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
}
.recommend-box-open .recommend-top .left .row1 {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.recommend-box-open .recommend-top .left .row1 .title-text {
  font-size: 18px;
  font-weight: 600;
  color: #2a3547;
  margin-right: 16px;
  margin-bottom: 0;
}
.recommend-box-open .recommend-top .left .row1 .reword {
  background: linear-gradient(180deg, #F74C4B 0%, #EF7575 100%);
  border-radius: 7px;
  color: #fff;
  position: relative;
  padding: 1px 6px 1px 20px;
  font-size: 13px;
  cursor: pointer;
}
.recommend-box-open .recommend-top .left .row1 .reword img {
  width: 36px;
  height: 35px;
  position: absolute;
  left: -18px;
  top: -4px;
}
.recommend-box-open .recommend-top .left .row2 {
  font-size: 16px;
  font-weight: 600;
  color: #2a3547;
  margin-top: 20px;
  margin-bottom: 10px;
}
.recommend-box-open .recommend-top .left .row3,
.recommend-box-open .recommend-top .left .row4 {
  font-size: 14px;
  color: #5a6a85;
}
.recommend-box-open .recommend-top .right {
  width: 120px;
  height: auto;
  align-self: flex-start;
}
.recommend-box-open .url {
  width: 100%;
  height: 42px;
  border: 1px solid #e5eaef;
  border-radius: 7px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  overflow: hidden;
}
.recommend-box-open .url .url-text {
  width: 100%;
  font-size: 14px;
  color: #5a6a85;
  margin-left: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recommend-box-open .url .copy-btn {
  width: 96px;
  height: 100%;
  background: #ecf2ff;
  border-left: 1px solid #e5eaef;
  border-radius: 0 7px 7px 0;
  font-size: 14px;
  color: #5d87ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recommend-box-open .top-statistic {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.recommend-box-open .top-statistic .top-item {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  box-shadow: rgba(145, 158, 171, 0.2) 0px 0px 2px 0px, rgba(145, 158, 171, 0.12) 0px 12px 24px -4px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0;
}
.recommend-box-open .top-statistic .top-item .item-top {
  margin-top: 12px;
  margin-left: 16px;
}
.recommend-box-open .top-statistic .top-item .item-top .top-money {
  font-size: 22px;
  font-weight: 600;
  color: #2a3547;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.recommend-box-open .top-statistic .top-item .item-top .top-money .icon-help {
  width: 14px;
  height: 14px;
  border: 1px solid #5d87ff;
  border-radius: 50%;
  margin-left: 5px;
  cursor: help;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d87ff;
}
.recommend-box-open .top-statistic .top-item .item-top .top-text {
  font-size: 12px;
  color: #5a6a85;
}
.recommend-box-open .top-statistic .top-item .top-img {
  width: 100%;
  align-self: flex-end;
}

/* ===== 弹窗 ===== */
.tx-dialog .el-dialog__body,
.cz-dialog .el-dialog__body {
  padding: 30px 40px;
}
.dialog-form {
  display: flex;
  flex-direction: column;
}
.cz-input {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.cz-input > .btn-ok {
  margin-left: 10px;
  height: 40px;
  background: #5d87ff;
  border-radius: 7px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cz-input > .btn-ok:hover {
  background: #4f73d9;
  color: #fff;
}
.pay-html {
  display: flex;
  justify-content: center;
}
.pay-html > img {
  width: 250px;
  height: 250px;
}
.ty-select {
  width: 100%;
}
.open-dialog {
  font-size: 16px;
}
.open-dialog .dialog-footer {
  font-size: 16px;
}
.open-dialog .dialog-footer .btn-ok {
  width: 112px;
  height: 40px;
  background: #5d87ff;
  border-radius: 7px;
  color: #fff;
}
.open-dialog .dialog-footer .btn-no {
  width: 112px;
  height: 40px;
  background: #f6f9fc;
  border-radius: 7px;
  color: #2a3547;
}

/* ===== 微信公众号悬浮码 ===== */
.wx-code {
  width: 60px;
  height: 60px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  position: fixed;
  right: 0;
  top: 50%;
  margin-top: -30px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5eaef;
}
.wx-code .wx-img {
  max-width: 40px;
}
.wx-box {
  text-align: center;
}
.wx-box .img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}
.wx-box .img img {
  width: 100%;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 750px) {
  .main-content {
    display: block;
    padding-bottom: 80px;
  }
  .replay-div {
    flex-shrink: 0;
  }
  .info-box .divider-box {
    display: none;
  }
  .info-metrics {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }
  .home-stats {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
  }
  .home-stats .stat-card {
    flex: 1 1 calc(50% - 8px);
  }
  .money-box {
    flex-wrap: wrap;
  }
  .money-right {
    width: 100%;
  }
  .right-box {
    width: auto;
    margin: 24px 0 0;
  }
}
