/* 个人中心容器 */
.profile-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-container h2 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #333;
    border-left: 4px solid #1890ff;
    padding-left: 15px;
}

/* 个人资料卡片 */
.profile-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.avatar {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1890ff;
    background-color: #f0f0f0;
}

.profile-info {
    flex: 1;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    font-size: 16px;
}

.info-row label {
    font-weight: bold;
    width: 100px;
    color: #666;
}

.info-row span {
    color: #333;
}

/* 统计卡片 */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-row {
        justify-content: center;
    }
}

/* 头像悬停效果 */
#avatarContainer:hover .avatar-overlay {
    opacity: 1 !important;
}

/* 裁剪模态框 */
.crop-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.crop-container {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.crop-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.crop-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.crop-btn:hover {
    opacity: 0.9;
}

.crop-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.crop-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.crop-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* 表单样式 */
.form-input,
.form-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s;
    width: 200px;
}

.form-input:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-select {
    cursor: pointer;
    background-color: #fff;
}

.save-row {
    margin-top: 30px;
    justify-content: center;
}

.btn-save {
    padding: 10px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-save:active {
    transform: translateY(0);
}

.info-row label {
    min-width: 80px;
    text-align: right;
}