@import url('icons/icons.css');

/* ======== 实名认证提示条 ======== */
.alert-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FFF7E6 0%, #FFF3D6 100%);
    border: 1px solid #FFD591;
    border-radius: 0;
    margin-bottom: 20px;
    gap: 20px;
}
.alert-bar .alert-text {
    font-size: 14px;
    color: #AD6800;
    line-height: 1.6;
    flex: 1;
}
.alert-bar .alert-text::before {
    content: '⚠';
    margin-right: 8px;
    font-size: 16px;
}
.alert-bar .auth-btn {
    padding: 8px 24px;
    background: #ED7B2F;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.alert-bar .auth-btn:hover {
    background: #d4691f;
}

.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 {
    padding: 20px;
}
.user-info .info-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.user-info .avatar {
    width: 60px;
    height: 60px;
    background-color: #e8eaf0;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}
.user-info .info-right {
    flex: 1;
}
.user-info .user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.user-info .user-name {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}
.user-info .user-name-row .ti-copy {
    font-size: 14px;
    color: #999;
    cursor: pointer;
}
.user-info .user-name-row .ti-copy:hover {
    color: #2F44DB;
}
.user-info .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}
.user-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    min-width: 0;
}
.user-info .info-item .label {
    color: #999;
    flex-shrink: 0;
}
.user-info .info-item .label i {
    margin-right: 4px;
    font-size: 12px;
}
.user-info .info-item .value {
    color: #333;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-info .info-item .ti-copy {
    flex-shrink: 0;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
}
.user-info .info-item .ti-copy:hover {
    color: #2F44DB;
}

/* 财务信息卡片 */
.cost-info {
    padding: 20px;
}
.cost-info .cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.cost-info .cost-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}
.cost-info .cost-links {
    display: flex;
    gap: 12px;
}
.cost-info .cost-links a {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.cost-info .cost-links a:hover {
    color: #2F44DB;
}
.cost-info .balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}
.cost-info .balance-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cost-info .balance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.cost-info .balance-label i {
    color: #999;
    font-size: 14px;
}
.cost-info .balance-num {
    font-size: 28px;
    color: #333;
    font-weight: 500;
}
.cost-info .recharge-btn {
    padding: 8px 24px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
}
.cost-info .recharge-btn:hover {
    background-color: #1a2c9e;
}
.cost-info .cost-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.cost-info .detail-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 0;
}
.cost-info .detail-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}
.cost-info .detail-label i {
    font-size: 12px;
    color: #999;
    margin-left: 4px;
}
.cost-info .detail-value {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}
.cost-info .detail-sub {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}
.cost-info .detail-sub:last-child {
    margin-bottom: 0;
}

/* 产品统计卡片 */
.product-stats {
    padding: 0;
}
.product-stats .stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background-color 0.2s;
}
.product-stats .stats-item:last-child {
    border-bottom: none;
}
.product-stats .stats-item:hover {
    background-color: #f9fafb;
}
.product-stats .stats-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}
.product-stats .stats-name {
    color: #666;
}
.product-stats .stats-num {
    color: #333;
}
.product-stats .stats-action {
    font-size: 13px;
    color: #999;
}
.product-stats .stats-item:hover .stats-action {
    color: #2F44DB;
}

/* 新闻中心 */
.news-center {
    padding: 20px;
}
.news-center .news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.news-center .news-tabs {
    display: flex;
    gap: 15px;
}
.news-center .news-tabs .tab {
    font-size: 15px;
    color: #999;
    cursor: pointer;
    padding-bottom: 4px;
}
.news-center .news-tabs .tab.active {
    color: #333;
    font-weight: 500;
    border-bottom: 2px solid #2F44DB;
}
.news-center .news-header a {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.news-center .news-header a i {
    font-size: 12px;
}
.news-center .news-list {
    list-style: none;
}
.news-center .news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    cursor: pointer;
}
.news-center .news-item:last-child {
    border-bottom: none;
}
.news-center .news-tag {
    padding: 2px 6px;
    background: #e6f0ff;
    color: #2F44DB;
    font-size: 12px;
    border-radius: 0;
    margin-right: 8px;
    white-space: nowrap;
}
.news-center .news-title {
    flex: 1;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}
.news-center .news-title:hover {
    color: #2F44DB;
}
.news-center .news-date {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}
.news-center .news-item.empty {
    justify-content: center;
    cursor: default;
}
.news-center .news-empty-text {
    color: #999;
    font-size: 13px;
}

/* 产品列表 */
.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;
}
.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;
    margin-bottom: 15px;
}

/* 我的工单 */
.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-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-item.empty {
    justify-content: center;
    cursor: default;
}
.recent-workorder .workorder-empty {
    color: #999;
    font-size: 14px;
}
.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: 0;
    font-size: 12px;
    white-space: nowrap;
}

/* 推介计划（已开启） */
.promote-plan {
    padding: 24px;
}
.promote-plan .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.promote-plan .plan-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}
.promote-plan .reward-link {
    font-size: 13px;
    color: #2F44DB;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.promote-plan .reward-link:hover {
    opacity: 0.8;
}
.promote-plan .reward-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.promote-plan .reward-item {
    flex: 1;
    background-color: #f9fafb;
    border-radius: 0;
    padding: 16px;
}
.promote-plan .reward-item .label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.promote-plan .reward-item .amount {
    font-size: 22px;
    color: #2F44DB;
    font-weight: 600;
}
.promote-plan .recommend-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    line-height: 1.6;
    padding: 10px 14px;
    background: #FAFBFC;
    border-radius: 0;
    border-left: 3px solid #2F44DB;
}
.promote-plan .link-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}
.promote-plan .link-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e3e8;
    border-radius: 0;
    font-size: 13px;
    color: #333;
    background: #F9FAFB;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color 0.2s;
}
.promote-plan .link-input:hover {
    border-color: #2F44DB;
}
.promote-plan .copy-btn {
    padding: 10px 22px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}
.promote-plan .copy-btn:hover {
    background-color: #1a2c9e;
}

/* 推介计划未开启 */
.promote-plan-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #E5E7EB;
}
.promote-plan-1 .icon {
    width: 100px;
    height: 100px;
    background: url("../img/recommend-img.png") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    border-radius: 0;
}
.promote-plan-1 .plan-content {
    flex: 1;
}
.promote-plan-1 .plan-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
}
.promote-plan-1 .plan-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    line-height: 1.6;
}
.promote-plan-1 .plan-btn {
    padding: 9px 28px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.promote-plan-1 .plan-btn:hover {
    background-color: #1a2c9e;
}
.promote-plan-1 .no-promote {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* 联系方式 */
.contact-us {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.contact-us .qrcode-wrap {
    flex: 0 0 140px;
    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: 10px;
    margin: 0 auto 10px;
}
.contact-us .qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.contact-us .qrcode-btn {
    padding: 6px 12px;
    background-color: #2F44DB;
    color: #fff;
    font-size: 12px;
    border-radius: 0;
    margin-bottom: 6px;
    display: inline-block;
}
.contact-us .qrcode-desc {
    font-size: 12px;
    color: #999;
}
.contact-us .contact-info {
    flex: 1;
}
.contact-us .contact-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}
.contact-us .contact-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}
.contact-us .service-promise {
    margin-top: 10px;
}
.contact-us .promise-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
}
.contact-us .promise-title .quote {
    color: #2F44DB;
}
.contact-us .promise-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .user-info .info-grid {
        grid-template-columns: 1fr;
    }
    .cost-info .cost-detail {
        grid-template-columns: 1fr;
    }
    .contact-us {
        flex-direction: column;
        text-align: center;
    }
}
