/* 基础容器样式 */
.user-profile-container {
    width: 800px;
    min-height: 700px;
    padding: 20px;
    background: #f5f7fa;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
    margin: 0 auto;
    float: left;
}

/* 标题区域 */
.profile-header {
    margin-bottom: 25px;
    /*padding-bottom: 15px;*/
    padding-top: 8px;
    border-bottom: 1px solid #e0e3e7;
}

.profile-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.profile-subtitle {
    
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 10px;
}

/* 统一内容区块样式 */
.profile-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /*border: 1px solid #e0e3e7;*/
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.section-content {
    padding: 5px 0;
}

/* 详情项样式 */
.detail-item {
    display: flex;
    margin-bottom: 12px;
    align-items: center;
}

.detail-label {
    width: 120px;
    font-weight: 500;
    color: #555;
}

.detail-value {
    flex: 1;
    color: #333;
}

/* 账户级别 */
.account-level {
    margin-bottom: 15px;
}

.account-level .label {
    font-weight: 500;
    color: #555;
}

.account-level .value {
    color: #333;
}

/* 账户描述 */
.account-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 通知区域 */
.account-notice {
    background: #fff8f8;
    border-left: 4px solid #e74c3c;
    padding: 12px 15px;
    color: #e74c3c;
    font-weight: 500;
    margin: 20px 0 0;
    border-radius: 0 4px 4px 0;
}

/* 链接样式 */
.profile-link {
    display: inline-block;
    padding: 8px 16px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s;
    background: rgba(52, 152, 219, 0.1);
}

.profile-link:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

/* 编辑按钮样式 */
.edit-button {
    background: #f0f2f5;
    border: 1px solid #d0d3d6;
    color: #555;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-button:hover {
    background: #e0e3e7;
    color: #333;
}

/* 昵称编辑表单样式 */
.nickname-edit-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /*margin-left: 10px;*/
}

.nickname-input {
    padding: 4px 8px;
    border: 1px solid #d0d3d6;
    border-radius: 3px;
    font-size: 14px;
    width: 150px;
}

.save-button, .cancel-button {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-button {
    background: #3498db;
    color: white;
    border: 1px solid #2980b9;
}

.save-button:hover {
    background: #2980b9;
}

.cancel-button {
    background: #f0f2f5;
    border: 1px solid #d0d3d6;
    color: #555;
}

.cancel-button:hover {
    background: #e0e3e7;
}

/* 响应式设计 */
@media (max-width: 850px) {
    .user-profile-container {
        width: 100%;
        padding: 15px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nickname-edit-form {
        margin-left: 0;
        margin-top: 5px;
    }
}

.nickname-edit-form {
    display: inline-flex;
    flex-direction: column;
}

.nickname-input {
    padding: 4px 8px;
    border: 1px solid #d0d3d6;
    border-radius: 3px;
    font-size: 14px;
    width: 150px;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
    display: none; /* 默认隐藏 */
}

.save-button, .cancel-button {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.save-button {
    background: #3498db;
    color: white;
    border: 1px solid #2980b9;
}

.save-button:hover {
    background: #2980b9;
}

.cancel-button {
    background: #f0f2f5;
    border: 1px solid #d0d3d6;
    color: #555;
}

.cancel-button:hover {
    background: #e0e3e7;
}