/* 用户个人资料页面样式 */

/* 面包屑导航 */
.breadcrumb {
    background: #f9f9f9;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb ol {
    display: flex;
    gap: 10px;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0066cc;
}

/* 用户基本信息 */
.user-header {
    margin-bottom: 40px;
}

.user-banner {
    background: linear-gradient(135deg, #0066cc, #004c99);
    padding: 40px 0;
    color: #fff;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.user-info-main {
    flex: 1;
}

.user-info-main h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.user-level {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.user-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.user-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #0066cc;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* 用户统计信息 */
.user-stats {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 内容导航 */
.content-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.nav-tabs {
    display: flex;
    gap: 20px;
}

.tab {
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.tab:hover {
    color: #0066cc;
}

.tab.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* 用户活动内容 */
.user-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.activity-section h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.activity-avatar {
    flex-shrink: 0;
}

.activity-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content {
    flex: 1;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-type {
    font-size: 0.9rem;
    color: #0066cc;
    font-weight: 500;
}

.activity-time {
    font-size: 0.85rem;
    color: #999;
}

.activity-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.activity-body h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.activity-body h3 a:hover {
    color: #0066cc;
}

.activity-body p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.activity-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #e0e0e0;
    color: #0066cc;
}

.page-btn.active {
    background: #0066cc;
    color: #fff;
}

.page-ellipsis {
    padding: 8px 16px;
    color: #999;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* 个人简介 */
.user-bio p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.user-interests h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tags .tag {
    background: #e0e0e0;
    color: #666;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 常用游戏 */
.user-games {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-games li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.user-games img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.game-info {
    flex: 1;
}

.game-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 3px;
}

.game-info a:hover {
    color: #0066cc;
}

.play-time {
    font-size: 0.8rem;
    color: #999;
}

/* 获得成就 */
.achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievements li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.achievement-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.achievement-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.achievement-desc {
    font-size: 0.8rem;
    color: #999;
}

/* 最近访客 */
.recent-visitors {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-visitors li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recent-visitors img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.visitor-info {
    flex: 1;
}

.visitor-info a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 3px;
}

.visitor-info a:hover {
    color: #0066cc;
}

.visit-time {
    font-size: 0.8rem;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .nav-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .activity-avatar {
        align-self: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}