@import url('icons/icons.css');
.container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.card {
    background: #fff;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
/* 用户信息卡片 - 自适应排版优化 */
.user-info .info-top {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.user-info .avatar {
    width: 60px;
    height: 60px;
    background-color: #2F44DB;
    color: #fff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0; /* 防止头像压缩 */
}
.user-info .info-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 15px; /* 行列间距 */
    flex: 1; /* 占满剩余空间 */
}
.user-info .info-detail p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0; /* 重置margin，靠grid gap控制间距 */
}
.user-info .info-detail p span {
    color: #333;
    margin-left: 10px;
}
.info-detail .userInformation-to-text{
    cursor: pointer;
    color: #0958d9;
}
.user-info .btn-group {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap; /* 按钮自动换行 */
    gap: 8px; /* 按钮间距 */
}
/* 核心修改：按钮默认样式改为原hover样式，hover改为主题蓝底白字 */
.user-info .btn-group button {
    padding: 6px 12px;
    border: 1px solid #2F44DB;
    background-color: #fff;
    border-radius: 0;
    color: #2F44DB;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap; /* 按钮文字不换行 */
}
.user-info .btn-group button:hover {
    background-color: #2F44DB;
    color: #fff;
    border-color: #2F44DB;
}
.user-info .btn-group button i {
    margin-right: 5px;
    color: #2F44DB;
    transition: all 0.2s;
}
.user-info .btn-group button:hover i {
    color: #fff;
}
/* 数据统计卡片 */
.data-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 25px 0;
}
.data-stats button {
    padding: 6px 12px;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap; /* 按钮文字不换行 */
    border: none;
}
.data-stats .stat-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 5px;
}
.data-stats .stat-item p {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}
.data-stats .stat-item a {
    font-size: 14px;
    color: #2F44DB;
    text-decoration: none;
}
.data-stats .stat-item:nth-child(2) h3 {
    color: #00b42a;
}
.data-stats .stat-item:nth-child(3) h3 {
    color: #ff4d4f;
}

.data-stats .stat-btn-1 {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
}
.data-stats .stat-btn-1:hover{
    border: 1px solid #333;
    background-color: #fff;
    color: #333;
}
.data-stats .stat-btn-2 {
    background-color: #00b42a;
    color: #fff;
    border: 1px solid #00b42a;
}
.data-stats .stat-btn-2:hover {
    border: 1px solid #00b42a;
    background-color: #fff;
    color: #00b42a;
}
.data-stats .stat-btn-3 {
    background-color: #ff4d4f;
    color: #fff;
    border: 1px solid #ff4d4f;
}
.data-stats .stat-btn-3:hover {
    border: 1px solid #ff4d4f;
    background-color: #fff;
    color: #ff4d4f;
}
/* 产品列表卡片 - 空状态样式 */
.product-list {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}
.product-list .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
.product-list .empty-icon {
    width: 80px;
    height: 80px;
    background: url('../img/CurrentlyUnavailable.svg');
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}
.product-list .empty-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}
.product-list .empty-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}
.product-list .empty-btn {
    padding: 8px 16px;
    border: 1px solid #2F44DB;
    background-color: #fff;
    color: #2F44DB;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.product-list .empty-btn:hover {
    background-color: #2F44DB;
    color: #fff;
}
/* 产品列表卡片 - 表格样式（来自1.html） */
.product-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.product-list th, .product-list td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    color: #666;
}
.product-list th {
    color: #333;
    font-weight: normal;
}
.product-list tbody tr:hover {
    background-color: #f9fafb;
}
.product-list .plan-title{
    color: #333;
    font-size: 16px;
    font-weight: 500;
}
/* 公告通知卡片 */
.notice {
    padding: 20px;
}
.notice .notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.notice .notice-header h4 {
    color: #333;
    font-size: 16px;
    font-weight: 500;
}
.notice .notice-header a {
    font-size: 14px;
    color: #2F44DB;
    text-decoration: none;
}
.notice .notice-list {
    list-style: none;
}
.notice .notice-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
}
.notice .notice-list li:last-child {
    border-bottom: none;
}
.notice .notice-list li i {
    margin-right: 8px;
    color: #ffb020;
    font-size: 16px;
}
.notice .notice-list li .notice-text {
    flex: 1;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    cursor: pointer;
    transition: 0.5s;
}
.notice .notice-list li .notice-text:hover {
    color: #2b4ce0;
}
.notice .notice-list li time {
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}
.notice-list:nth-child(-n+3) span:before {
            content: "";
            width: 24px;
            height: 24px;
            margin-right: 6px;
            display: inline-block;
            vertical-align: top;
            background-size: contain;
            background-repeat: no-repeat;
        }

        .notice-list .list_item:nth-child(1) span:before {
            background-image: url("../img/sort1.svg");
        }

        .notice-list .list_item:nth-child(2) span:before {
            background-image: url("../img/sort2.svg");
        }

        .notice-list .list_item:nth-child(3) span:before {
            background-image: url("../img/sort3.svg");
        }

        .notice-list .list_item:last-child span {
            border-bottom: none;
        }

        .notice-list .list_item:nth-child(n+4) span:before {
            content: attr(data-index);
            width: 22px;
            height: 22px;
            margin-right: 6px;
            display: inline-block;
            vertical-align: top;
            border: 2px solid #fff;
            background: linear-gradient(1turn, #fff, #f3f5f8);
            box-shadow: 8px 8px 20px rgba(55, 99, 170, 0.06);
            border-radius: 50%;
            text-align: center;
            line-height: 22px;
            color: var(--txtcolor);
            font-size: 14px;
            font-weight: 500;
            margin-top: 7px;
        }
.notice-list .list_item a{
    margin-right: 2%;
    color: #999;
    font-size: 13px;
    white-space: nowrap;
}
/* 联系我们卡片样式 - 左右结构 */
.contact-us {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    min-height: 200px;
}
.contact-us .qrcode-wrap {
    flex: 0 0 120px; /* 固定二维码宽度 */
    text-align: center;
}
.contact-us .qrcode-img {
    width: 120px;
    height: 120px;
    background-color: #f5f7fa;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.contact-us .qrcode-desc {
    font-size: 12px;
    color: #999;
}
.contact-us .contact-info {
    flex: 1; /* 占满剩余空间 */
}
.contact-us .contact-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
}
.contact-us .contact-list {
    list-style: none;
}
.contact-us .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.contact-us .contact-item:last-child {
    margin-bottom: 0;
}
.contact-us .contact-icon {
    width: 24px;
    height: 24px;
    color: #2F44DB;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}
.contact-us .contact-icon i {
    font-size: 16px;
    color: #2F44DB;
}
.contact-us .contact-text {
    color: #666;
}
.contact-us .contact-text strong {
    color: #333;
    font-weight: normal;
    margin-right: 5px;
}
/* 费用信息卡片 - 充值按钮样式 */
.cost-info .balance-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.cost-info .balance-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.cost-info .balance {
    font-size: 28px;
    color: #ff4d4f;
    font-weight: 500;
}
.cost-info .recharge-btn {
    padding: 8px 16px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}
.cost-info .recharge-btn:hover {
    background-color: #1a2c9e;
}
.cost-info .recharge-btn i {
    margin-right: 5px;
}
.cost-info .btn-group {
    display: flex;
    gap: 10px;
}
.cost-info .btn-group button {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 0;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}
/* 最近工单卡片样式 */
.recent-workorder {
    padding: 20px;
}
.recent-workorder .workorder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.recent-workorder .workorder-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
.recent-workorder .workorder-more {
    font-size: 14px;
    color: #1677ff;
    text-decoration: none;
}
.recent-workorder .workorder-more:hover {
    text-decoration: underline;
}
.recent-workorder .workorder-list {
    list-style: none;
}
.recent-workorder .workorder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 14px;
    cursor: pointer;
}
.recent-workorder .workorder-item:last-child {
    border-bottom: none;
}
.recent-workorder .workorder-info {
    display: flex;
    flex-direction: column;
}
.recent-workorder .workorder-id {
    color: #333;
    margin-bottom: 4px;
}
.recent-workorder .workorder-desc {
    color: #999;
    font-size: 13px;
}
.recent-workorder .workorder-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.recent-workorder .status-processing {
    background-color: #fff7e6;
    color: #ff9a2e;
    border: 1px solid #ffd591;
}
.recent-workorder .status-completed {
    background-color: #e6fffb;
    color: #13c2c2;
    border: 1px solid #87e8de;
}
/* 推介计划卡片 - 奖励展示样式 */
.promote-plan {
    padding: 20px;
}
.promote-plan .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.promote-plan .plan-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}
.promote-plan .reward-link {
    font-size: 14px;
    color: #2F44DB;
    text-decoration: none;
}
.promote-plan .reward-link:hover {
    text-decoration: underline;
}
.promote-plan .reward-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.promote-plan .reward-item {
    flex: 1;
    background-color: #f9fafb;
    border-radius: 0;
    padding: 15px;
}
.promote-plan .reward-item .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}
.promote-plan .reward-item .amount {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}
.promote-plan .recommend-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}
.promote-plan .link-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}
.promote-plan .link-input {
    /* 替换flex:1为固定宽度360px */
    width: 360px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    /* 新增以下3行，实现超出截断 */
    white-space: nowrap; /* 强制单行显示，不换行 */
    overflow: hidden;    /* 超出宽度的内容隐藏 */
    text-overflow: ellipsis; /* （可选）超出部分显示省略号，不需要可以去掉 */
}
.promote-plan .link-input:focus {
    border-color: #2F44DB;
}
.promote-plan .copy-btn {
    padding: 8px 20px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.promote-plan .copy-btn:hover {
    background-color: #1a2c9e;
}
/* 推介计划卡片 - 简单样式（来自1.html） */
.promote-plan.simple {
    text-align: center;
    padding: 30px 0;
}
.promote-plan.simple .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path fill='%23e6f0ff' d='M20,80 L80,80 L80,40 L20,40 Z M30,30 L70,30 L70,10 L30,10 Z'/></svg>") no-repeat center;
    background-size: contain;
    position: relative;
}
.promote-plan.simple .icon::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 25px;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231677ff' d='M12,4 L10,4 L10,2 L14,2 L14,4 L12,4 Z M18,6 L6,6 L6,22 L18,22 L18,6 Z M8,8 L16,8 L16,20 L8,20 L8,8 Z'/></svg>") no-repeat center;
    background-size: contain;
}
.promote-plan.simple p {
    color: #999;
    font-size: 14px;
}
.promote-plan .icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
    background: url("../img/recommend-img.png") no-repeat center;
    background-size: contain;
    position: relative;
}
.promote-plan.no-promote {
    text-align: center;
    font-size: 14px;
}
/* 推介计划卡片 - 空状态样式（来自2.html） */
.promote-plan.empty {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.promote-plan.empty .plan-title {
    margin-bottom: 30px;
    align-self: flex-start;
}
.promote-plan.empty .plan-empty-icon {
    width: 100px;
    height: 80px;
    background: url("../img/recommend-img.png") no-repeat center;
    background-size: contain;
    margin-bottom: 15px;
}
.promote-plan.empty .plan-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}
.promote-plan.empty .plan-btn {
    padding: 8px 24px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.promote-plan.empty .plan-btn:hover {
    background-color: #1a2c9e;
}
/* 响应式适配 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .user-info .info-top {
        flex-direction: column;
    }
    .user-info .avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .user-info .info-detail {
        grid-template-columns: 1fr; /* 移动端单列显示 */
    }
    .data-stats {
        flex-direction: column;
        gap: 15px;
    }
    .promote-plan .reward-stats {
        flex-direction: column;
    }
    .promote-plan .link-wrap {
        flex-direction: column;
    }
    .promote-plan .link-input {
        width: 100%;
    }
    .promote-plan .copy-btn {
        width: 100%;
    }
    /* 联系我们移动端改为上下结构 */
    .contact-us {
        flex-direction: column;
        text-align: center;
    }
    .contact-us .contact-item {
        justify-content: center;
    }
}

/* 推介计划卡片 - 新样式 */
        .promote-plan-1 {
            min-height: 200px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
        }
        .promote-plan-1 .plan-title {
            font-size: 16px;
            color: #333;
            margin-bottom: 30px;
            align-self: flex-start;
            font-weight: 500;
        }
        .promote-plan-1 .plan-empty-icon {
            width: 180px;
            height: 180px;
            background: url("../img/recommend-img.png") no-repeat center;
            background-size: contain;
            margin-bottom: 15px;
        }
        .promote-plan-1 .plan-desc {
            font-size: 14px;
            color: #999;
            margin-bottom: 20px;
        }
        .promote-plan-1 .plan-btn {
            padding: 8px 24px;
            background-color: #2F44DB;
            color: #fff;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: background-color 0.2s;
        }
        .promote-plan-1 .plan-btn:hover {
            background-color: #0958d9;
        }

        /* 全局样式重置（可选，优化移动端基础显示） */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 移动端适配：屏幕宽度 ≤ 768px 时生效（手机、小平板） */
@media (max-width: 768px) {
  /* 1. 表格容器：允许横向滚动，避免内容溢出屏幕 */
  .mobile-adaptive-table {
    width: 100%;
    overflow-x: auto;
    /* 优化滚动体验：隐藏滚动条（可选） */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-adaptive-table::-webkit-scrollbar {
    display: none;
  }

  /* 2. 表格单元格：统一内边距，缩小字体，避免内容挤压 */
  .mobile-adaptive-table .el-table__cell {
    padding: 8px 6px !important; /* 比桌面端更小的内边距 */
    font-size: 12px !important; /* 适配移动端的小字体 */
    white-space: nowrap; /* 强制单行显示，避免单元格高度过高 */
  }

  /* 3. 表格列头：与单元格样式统一，保证视觉一致性 */
  .mobile-adaptive-table .el-table__header-wrapper .el-table__cell {
    padding: 10px 6px !important;
    font-size: 13px !important;
    font-weight: 500;
  }

  /* 4. 产品名称链接：适配移动端字体，去除下划线（可选，优化视觉） */
  .mobile-adaptive-table .product-name {
    font-size: 12px !important;
    text-decoration: none;
  }
  .mobile-adaptive-table .product-name:hover {
    text-decoration: underline;
  }

  /* 5. 逾期时间样式：保证红色醒目，同时适配小字体 */
  .mobile-adaptive-table .red-time {
    color: #f56c6c !important;
    font-weight: 500;
    font-size: 12px !important;
  }

  /* 6. 备注列：限制最大宽度，避免挤压其他列（因开启了show-overflow-tooltip，溢出会显示悬浮提示） */
  .mobile-adaptive-table .el-table-column[prop="client_notes"] .el-table__cell {
    max-width: 120px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 桌面端样式（可选，保证大屏显示正常） */
@media (min-width: 769px) {
  .mobile-adaptive-table .el-table__cell {
    padding: 12px 15px;
    font-size: 14px;
  }
  .product-name {
    font-size: 14px;
  }
}