﻿@charset "utf-8";
/* ==================== profile.css - 个人中心样式 ==================== */
.btn{padding:10px 18px;}
@media (max-width: 576px) {
    .btn {
        padding: 8px 16px;
    }
}

/* 个人中心头部样式 - 集成账号管理按钮 */
.profile-header {
    /* 优化点1: 使用背景图替代单调的渐变色，并添加半透明黑色遮罩以保证文字清晰度 */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/31107719_8.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden; /* 确保背景不溢出圆角 */
}

.profile-main {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
	
	overflow: hidden;
	position:relative;
}
.profile-avatar img {
	position:absolute;
	left:0;right:0;top:0;bottom:0;margin:auto;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* 默认保持左对齐，若需桌面端也居中可在此添加 justify-content: center */
}

.profile-info h2 .user-type {
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
}

.profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 账号管理按钮区域 */
.account-actions-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.account-actions-header .btn {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.account-actions-header .btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.account-actions-header .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.account-actions-header .btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
    border: none;
}

.account-actions-header .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 功能卡片样式 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.function-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.function-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    height: 60px;
    width: 60px;
    line-height: 60px;
    background-color: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.function-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.function-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

.function-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 5px;
}

/* 基本信息卡片样式 */
.info-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 登录提示样式 */
#loginPrompt {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

#loginPrompt .icon {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

#loginPrompt h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

#loginPrompt p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    /* 优化点2: 移动端下 h2 居中显示 */
    .profile-info h2 {
        justify-content: center; 
        text-align: center;
    }
    
    .profile-contact {
        justify-content: center;
    }
    
    .account-actions-header {
        justify-content: center;
    }
    
    .function-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .function-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 20px 15px;
    }
    
    .account-actions-header {
        flex-direction: column;
    }
    
    .account-actions-header .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width:1007px){
	.account-actions-header{display:none!important;}
}