/* 完整的用户中心样式 */
.user-center-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.user-info-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.user-basic-info {
    margin-left: 20px;
}

.user-nickname {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.user-id, .user-ucode {
    color: #666;
    font-size: 12px;
    margin-right: 15px;
}

.user-stat-item {
    text-align: center;
    padding: 10px 5px;
}

.stat-label {
    color: #999;
    font-size: 12px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 200px);
}

.menu-sidebar {
    width: 200px;
    background: white;
    border-radius: 10px;
    margin-right: 20px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}

.content-main {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    min-height: 500px;
}

.menu-btn {
    display: block;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-btn:hover {
    background-color: #f5f5f5;
    color: #409EFF;
}

.menu-btn.active {
    background-color: #ecf5ff;
    color: #409EFF;
    border-right: 3px solid #409EFF;
}

.content-placeholder {
    text-align: center;
    padding: 100px 20px;
    color: #999;
}

.content-placeholder i {
    font-size: 50px;
    margin-bottom: 20px;
    color: #409EFF;
}

.content-placeholder p {
    font-size: 16px;
}

/* 业务卡片样式 */
.business-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.business-card:hover {
    border-color: #409EFF;
    box-shadow: 0 2px 12px 0 rgba(64, 158, 255, 0.1);
    transform: translateY(-2px);
}

.business-card h3 {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

/* 记录统计样式 */
.record-stats .stat-item {
    text-align: center;
    padding: 10px;
}

.record-stats .stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.record-stats .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #409EFF;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status-pending { background: #fff7e6; color: #fa8c16; }
.status-processing { background: #e6f7ff; color: #1890ff; }
.status-approved { background: #f6ffed; color: #52c41a; }
.status-rejected { background: #fff1f0; color: #f5222d; }
.status-completed { background: #f6ffed; color: #52c41a; }
.status-cancelled { background: #fafafa; color: #8c8c8c; }

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .menu-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .user-info-header {
        padding: 15px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-nickname {
        font-size: 18px;
    }
    
    .user-center-container {
        padding: 10px;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 头像上传相关样式 */
.avatar-upload-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 3px solid #e6e6e6;
    transition: all 0.3s ease;
}

.avatar-wrapper:hover {
    border-color: #1E9FFF;
    box-shadow: 0 0 15px rgba(30, 159, 255, 0.3);
}

.avatar-wrapper .user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar-wrapper:hover .user-avatar {
    transform: scale(1.1);
    opacity: 0.7;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.avatar-overlay div {
    font-size: 12px;
    text-align: center;
}

.avatar-upload-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.upload-progress-content {
    background: white;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.upload-progress-content i {
    font-size: 36px;
    color: #1E9FFF;
    margin-bottom: 15px;
    display: block;
}

.upload-progress-content p {
    margin: 10px 0 0;
    color: #666;
}

/* 裁剪弹窗样式 */
.avatar-crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.crop-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.crop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.crop-header h3 {
    margin: 0;
    color: #333;
}

.crop-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.preview-label {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.preview-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e6e6e6;
}

.preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crop-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* 头像上传提示消息 */
.avatar-upload-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.avatar-upload-message.success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.avatar-upload-message.error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
}

.avatar-upload-message i {
    margin-right: 8px;
    font-size: 18px;
}

/*业务记录样式*/
/* 重置业务记录容器 */
#business-records {
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: visible !important;
}

/* 表格外层容器 */
#business-records .layui-card {
    margin: 0;
    width: 100%;
    box-shadow: none;
    border: none;
}

/* 表格容器内边距 */
#business-records .layui-card-body {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 确保表格容器不挤压菜单 */
#business-records .layui-fluid {
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* 表格外层包装，确保不溢出 */
#business-records .layui-table-view {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: auto;
    display: table;
}

/* 表格本身样式 */
#business-records .layui-table {
    width: 100% !important;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 0;
}

/* 确保列宽正确 */
#business-records .layui-table th,
#business-records .layui-table td {
    text-align: center;
    vertical-align: middle;
    padding: 8px 12px;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    border: 1px solid #e6e6e6;
}

#business-records .layui-table-cell{
    height: auto !important;
}

/* 操作列样式 */
#business-records .layui-table td:last-child {
    white-space: nowrap;
}

/* 按钮组样式 */
#business-records .layui-btn-container {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 确保滚动条正常工作 */
.content-main {
    overflow: auto;
    width: 100%;
}

/* 表格响应式设计 */
@media (max-width: 1200px) {
    #business-records .layui-table-view {
        min-width: 1000px;
    }
    
    #business-records .layui-inline {
        margin-bottom: 10px;
    }
}