/*
 * XSDZ Tech 用户中心首页增量样式
 * 说明：只在 .xsdz-tech-home 范围内覆盖默认主题，方便与旧主题并行和快速回滚。
 */
.xsdz-tech-home {
  --xsdz-blue: #176bff;
  --xsdz-blue-deep: #0d49b8;
  --xsdz-blue-soft: #eaf3ff;
  --xsdz-ink: #172b4d;
  --xsdz-muted: #71839a;
  --xsdz-border: #e5edf7;
  --xsdz-bg: #f4f8fd;
  --xsdz-success: #16a46b;
  --xsdz-warning: #f3a531;
  color: var(--xsdz-ink);
}

/* 页面底色和细网格，营造克制的科技感 */
.xsdz-tech-home .home-main {
  background:
    linear-gradient(rgba(23, 107, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 107, 255, 0.018) 1px, transparent 1px),
    var(--xsdz-bg);
  background-size: 28px 28px;
}
.xsdz-tech-home .main-card,
.xsdz-tech-home .main-content {
  background: transparent;
}
.xsdz-tech-home .main-content {
  column-gap: 0.18rem;
}
.xsdz-tech-home .left-box {
  row-gap: 0.16rem;
}

/* 顶部账户概览卡 */
.xsdz-tech-home .info-box,
.xsdz-tech-home .statistics-box,
.xsdz-tech-home .product-list-box,
.xsdz-tech-home .right-box {
  border: 1px solid var(--xsdz-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 83, 145, 0.055);
}
.xsdz-tech-home .info-box {
  position: relative;
  overflow: hidden;
  padding: 0.22rem 0.24rem;
  background: rgba(255, 255, 255, 0.96);
}
.xsdz-tech-home .info-box::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--xsdz-blue), #65c8ff);
  content: "";
}
.xsdz-tech-home .name-first {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--xsdz-blue), #55b8ff) !important;
  box-shadow: 0 7px 16px rgba(23, 107, 255, 0.22);
}
.xsdz-tech-home .hello,
.xsdz-tech-home .name,
.xsdz-tech-home .info-three .compny-box .right-text .company-name,
.xsdz-tech-home .info-three .person-box .right-text .company-name {
  color: var(--xsdz-ink);
}
.xsdz-tech-home .name,
.xsdz-tech-home .email-box,
.xsdz-tech-home .phone-box,
.xsdz-tech-home .info-three .compny-box .left-icon,
.xsdz-tech-home .info-three .person-box .left-icon {
  color: var(--xsdz-muted);
}
.xsdz-tech-home .info-box .divider-box {
  background-color: var(--xsdz-border) !important;
}

/* 余额和产品状态卡 */
.xsdz-tech-home .statistics-box {
  background: #fff;
}
.xsdz-tech-home .money-box {
  background: transparent;
}
.xsdz-tech-home .money-top .money-credit {
  border: 1px solid #edf3fb;
  border-radius: 9px;
  background: linear-gradient(135deg, #f8fbff, #f1f7ff);
}
.xsdz-tech-home .money-top .money-credit .credit-btn,
.xsdz-tech-home .order-box .order-item,
.xsdz-tech-home .no-recommend {
  background: var(--xsdz-blue);
}
.xsdz-tech-home .money-top .money-credit .credit-btn:hover,
.xsdz-tech-home .no-recommend:hover {
  background: var(--xsdz-blue-deep);
}
.xsdz-tech-home .order-box {
  gap: 0.08rem;
}
.xsdz-tech-home .order-box .order-item {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: linear-gradient(145deg, #176bff, #4aa7ff);
  box-shadow: 0 8px 18px rgba(23, 107, 255, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xsdz-tech-home .order-box .order-item:nth-child(2) {
  background: linear-gradient(145deg, #1579d8, #57c3ef);
}
.xsdz-tech-home .order-box .order-item:nth-child(3) {
  background: linear-gradient(145deg, #128c9f, #43c9bd);
}
.xsdz-tech-home .order-box .order-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(23, 107, 255, 0.22);
}
.xsdz-tech-home .statistics-bottom {
  margin-top: 0;
  border-top: 1px solid var(--xsdz-border);
  border-radius: 0 0 9px 9px;
  background: #fbfdff;
  background-image: none;
}
.xsdz-tech-home .statistics-bottom .statistics-item-name,
.xsdz-tech-home .product-list-box .title-text,
.xsdz-tech-home .WorkOrder-title {
  color: var(--xsdz-muted);
}
.xsdz-tech-home .statistics-bottom .statistics-item-value {
  color: var(--xsdz-ink);
}

/* 图表卡片 */
.xsdz-tech-home .xsdz-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
  margin-top: 0.16rem;
}
.xsdz-tech-home .xsdz-chart-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--xsdz-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(31, 83, 145, 0.055);
}
.xsdz-tech-home .xsdz-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 0.72rem;
  padding: 0.18rem 0.22rem 0.08rem;
  border-bottom: 1px solid #f0f4f9;
}
.xsdz-tech-home .xsdz-chart-head h3 {
  margin: 0.03rem 0 0;
  color: var(--xsdz-ink);
  font-size: 0.17rem;
  font-weight: 600;
}
.xsdz-tech-home .xsdz-chart-kicker {
  color: #8ba1bd;
  font-size: 0.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.xsdz-tech-home .xsdz-chart-caption {
  padding: 0.04rem 0.08rem;
  border: 1px solid #d7e8ff;
  border-radius: 4px;
  color: var(--xsdz-blue);
  background: var(--xsdz-blue-soft);
  font-size: 0.11rem;
}
.xsdz-tech-home .xsdz-chart-body {
  position: relative;
  height: 2.42rem;
}
.xsdz-tech-home .xsdz-chart {
  width: 100%;
  height: 100%;
}
.xsdz-tech-home .xsdz-chart-empty {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  color: #9aabbe;
  font-size: 0.13rem;
}
.xsdz-tech-home .xsdz-chart-empty i {
  color: #9bc2f3;
  font-size: 0.28rem;
}

/* 产品表格和右侧信息 */
.xsdz-tech-home .product-list-box,
.xsdz-tech-home .right-box {
  background: rgba(255, 255, 255, 0.98);
}
.xsdz-tech-home .product-list-box {
  margin-top: 0.16rem;
}
.xsdz-tech-home .product-list-box .el-table th {
  background: #f8fbff;
  color: #788da7;
}
.xsdz-tech-home .product-list-box .el-table td,
.xsdz-tech-home .product-list-box .el-table th {
  border-bottom-color: #edf3f9;
}
.xsdz-tech-home .product-list-box .product-name {
  color: var(--xsdz-blue);
}
.xsdz-tech-home .right-box {
  width: 4.2rem;
  padding: 0.2rem;
}
.xsdz-tech-home .recommend-box-open,
.xsdz-tech-home .recommend-box {
  border-radius: 9px;
  background: linear-gradient(145deg, #f0f7ff, #fbfdff);
}
.xsdz-tech-home .WorkOrder-content,
.xsdz-tech-home .notice-box .WorkOrder-content {
  border-color: var(--xsdz-border);
  background: #fcfdff;
}
.xsdz-tech-home .replay-div {
  color: var(--xsdz-blue);
  background: var(--xsdz-blue-soft);
}
.xsdz-tech-home .notice-item:nth-of-type(1) {
  border-left-color: var(--xsdz-blue);
}

/* 可访问性：键盘聚焦和较小屏幕上的可操作区域 */
.xsdz-tech-home a:focus-visible,
.xsdz-tech-home button:focus-visible,
.xsdz-tech-home .el-button:focus-visible,
.xsdz-tech-home .order-item:focus-visible {
  outline: 2px solid #70b4ff;
  outline-offset: 2px;
}
@media screen and (max-width: 1180px) {
  .xsdz-tech-home .right-box {
    width: 3.6rem;
  }
  .xsdz-tech-home .statistics-bottom {
    padding-right: 0.24rem;
  }
}
@media screen and (max-width: 960px) {
  .xsdz-tech-home .main-content {
    display: block;
  }
  .xsdz-tech-home .right-box {
    width: auto;
    margin-top: 0.16rem;
  }
}
@media screen and (max-width: 750px) {
  .xsdz-tech-home .xsdz-chart-grid {
    grid-template-columns: 1fr;
  }
  .xsdz-tech-home .xsdz-chart-body {
    height: 2.36rem;
  }
  .xsdz-tech-home .info-box {
    padding: 0.18rem;
  }
  .xsdz-tech-home .money-box,
  .xsdz-tech-home .product-list-box,
  .xsdz-tech-home .right-box {
    padding: 0.18rem;
  }
}
