/* 个人中心页面特定样式 */
.profile-content {
    background-color: var(--background-color);
    min-height: calc(100vh - 44px);
    position: relative;
}

/* 用户信息卡片 */
.profile-header {
    background-color: var(--primary-color);
    padding: 20px 20px 20px;
    color: white;
    position: relative;
    min-height: 180px;
}

.profile-avatar-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-container .avatar-default {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.profile-user-info {
    text-align: center;
    margin-top: 90px;
}

.profile-username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-bio {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-stat-item {
    text-align: center;
}

.profile-stat-value {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.profile-stat-label {
    font-size: 12px;
    opacity: 0.8;
}

/* 功能菜单 */
.profile-menu {
    background-color: var(--card-color);
    margin: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.menu-section {
    border-bottom: 1px solid var(--border-color);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: var(--background-color);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 15px;
}

.menu-arrow {
    font-size: 16px;
    color: var(--text-secondary-color);
}

.menu-badge {
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* 设置按钮 */
.settings-button {
    margin: 0 16px 16px;
    padding: 14px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-button:hover {
    background-color: var(--background-color);
}

/* 退出登录按钮 */
.logout-button {
    margin: 0 16px 20px;
    padding: 14px;
    background-color: var(--card-color);
    border: 1px solid var(--danger-color);
    border-radius: 8px;
    color: var(--danger-color);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logout-button:hover {
    background-color: rgba(255, 59, 48, 0.1);
}

/* 登录注册按钮 */
.auth-buttons {
    display: flex;
    gap: 12px;
    margin: 16px;
}

.auth-button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.auth-button.login {
    background-color: var(--primary-color);
    color: white;
}

.auth-button.register {
    background-color: var(--card-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.auth-button:hover {
    opacity: 0.9;
}

/* 适配暗黑模式 */
@media (prefers-color-scheme: dark) {
    .profile-menu,
    .settings-button,
    .logout-button {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* 响应式调整 */
@media (max-width: 320px) {
    .profile-header {
        padding: 50px 16px 16px;
        min-height: 160px;
    }
    
    .profile-avatar-container {
        top: 15px;
        width: 67px;
        height: 67px;
    }
    
    .profile-avatar-container img {
        width: 100%;
        height: 100%;
    }
    
    .profile-user-info {
        margin-top: 20px;
    }
    
    .profile-username {
        font-size: 16px;
    }
    
    .profile-bio {
        font-size: 13px;
    }
    
    .menu-item {
        padding: 14px 16px;
    }
    
    .settings-button,
    .logout-button {
        margin: 16px;
        padding: 12px;
        font-size: 14px;
    }
}