/* 用户端 · 账号管理 */

#right .user-info-card {
    width: calc(100% - 60px);
    background: transparent;
    border-radius: 0;
    margin: 15px 0 0;
    box-shadow: none;
}

.uc-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 顶部资料区 */
.uc-profile {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.uc-avatar-wrap {
    flex-shrink: 0;
}

.uc-avatar-wrap .avatar-wrapper {
    width: 88px;
    height: 88px;
    margin: 0;
    border: 3px solid #eef1f6;
    border-radius: 50%;
    overflow: hidden;
}

.uc-profile-main {
    flex: 1;
    min-width: 0;
}

.uc-name {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.uc-email {
    margin: 0 0 14px;
    font-size: 14px;
    color: #64748b;
}

.uc-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.uc-btn-primary {
    background: #3461ff;
    color: #fff;
}

.uc-btn-primary:hover {
    background: #2850e6;
    color: #fff;
    text-decoration: none;
}

.uc-btn-outline {
    background: #fff;
    color: #3461ff;
    border: 1px solid rgba(52, 97, 255, 0.25);
}

.uc-btn-outline:hover {
    background: #f5f8ff;
    color: #2850e6;
}

/* 摘要条 */
.uc-summary-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.uc-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 18px;
    position: relative;
}

.uc-summary-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: #eef1f6;
}

.uc-summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f4f6fa;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.uc-summary-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 500;
}

.uc-summary-value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    word-break: break-all;
}

.uc-summary-value-sm {
    font-size: 13px;
    font-weight: 600;
}

.uc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.uc-badge.ok {
    color: #0d9e1f;
    background: rgba(13, 158, 31, 0.08);
    border: 1px solid rgba(13, 158, 31, 0.15);
}

.uc-badge.warn {
    color: #d94820;
    background: rgba(217, 72, 32, 0.08);
    border: 1px solid rgba(217, 72, 32, 0.15);
}

.uc-badge.muted {
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* 快捷操作 */
.uc-quick-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.uc-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.uc-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: rgba(52, 97, 255, 0.2);
    text-decoration: none;
    color: inherit;
}

.uc-quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f5f8ff;
    color: #3461ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.uc-quick-text strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 3px;
}

.uc-quick-text span {
    font-size: 12px;
    color: #94a3b8;
}

/* 信息面板 */
.uc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.uc-panel {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.uc-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uc-panel-title .bi {
    color: #3461ff;
}

.uc-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.uc-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.uc-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.uc-info-row:first-child {
    padding-top: 0;
}

.uc-info-label {
    color: #94a3b8;
    flex-shrink: 0;
}

.uc-info-value {
    color: #334155;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

/* 用量表格 */
.uc-usage-wrap {
    overflow-x: auto;
}

.uc-usage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 480px;
}

.uc-usage-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #eef1f6;
}

.uc-usage-table tbody td {
    padding: 11px 14px;
    text-align: center;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.uc-usage-table tbody tr:last-child td {
    border-bottom: none;
}

.uc-usage-empty {
    color: #94a3b8;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

@media (max-width: 1100px) {
    .uc-summary-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .uc-summary-item:nth-child(2)::after {
        display: none;
    }

    .uc-summary-item:nth-child(1),
    .uc-summary-item:nth-child(3) {
        border-bottom: 1px solid #eef1f6;
    }
}

@media (max-width: 768px) {
    .uc-profile {
        flex-direction: column;
        text-align: center;
    }

    .uc-profile-actions {
        justify-content: center;
    }

    .uc-summary-panel,
    .uc-quick-row,
    .uc-grid-2 {
        grid-template-columns: 1fr;
    }

    .uc-summary-item::after {
        display: none;
    }

    .uc-summary-item:not(:last-child) {
        border-bottom: 1px solid #eef1f6;
    }
}
