/* 用户个人页面专用样式 */

.profile-header {
    background: linear-gradient(135deg, rgba(61, 178, 255, 0.1) 0%, rgba(255, 189, 57, 0.1) 100%);
    padding: 40px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-content {
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 用户信息头部 */
.profile-info {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.avatar-container {
    position: relative;
}

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

.avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #3DB2FF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(61, 178, 255, 0.3);
}

.avatar-edit:hover {
    background: #2A9BFF;
    transform: scale(1.1);
}

.user-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge.verified {
    background: #4CAF50;
    color: white;
}

.badge.level {
    background: #FFBD39;
    color: white;
}

.user-details {
    flex: 1;
}

.username {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.user-bio {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.user-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

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

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3DB2FF;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2A9BFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 178, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    border: 1px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #3DB2FF;
    color: #3DB2FF;
}

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

.user-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 内容标签 */
.content-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e1e5e9;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: #3DB2FF;
    background: rgba(61, 178, 255, 0.05);
    border-bottom-color: #3DB2FF;
}

/* 标签内容 */
.tab-content {
    display: none;
    padding: 24px;
}

.tab-content.active {
    display: block;
}

/* 帖子网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-time {
    font-size: 12px;
    color: #999;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #333;
}

.post-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.post-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.post-images img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-images img:hover {
    transform: scale(1.05);
}

.post-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    background: rgba(61, 178, 255, 0.1);
    color: #3DB2FF;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.post-footer {
    border-top: 1px solid #e1e5e9;
    padding-top: 12px;
}

.post-stats {
    display: flex;
    gap: 16px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
}

.stat i {
    color: #999;
}

/* 行程网格 */
.itineraries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.itinerary-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.itinerary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.itinerary-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.itinerary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.itinerary-card:hover .itinerary-image img {
    transform: scale(1.05);
}

.itinerary-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.btn-favorite {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.btn-favorite:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.itinerary-content {
    padding: 16px;
}

.itinerary-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.itinerary-date {
    color: #666;
    font-size: 12px;
    margin-bottom: 12px;
}

.itinerary-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.itinerary-stats .stat {
    font-size: 12px;
    color: #666;
}

.itinerary-actions {
    display: flex;
    gap: 8px;
}

.itinerary-actions .btn-primary,
.itinerary-actions .btn-secondary {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    justify-content: center;
}

/* 收藏网格 */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.favorite-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 12px;
}

.favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.favorite-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-content {
    flex: 1;
    position: relative;
}

.favorite-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.favorite-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.favorite-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    color: #FFBD39;
    font-size: 12px;
}

.favorite-rating span {
    font-size: 12px;
    color: #666;
}

.btn-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #ff6b6b;
    color: white;
}

/* 成就网格 */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    align-items: center;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.achievement-card.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    background: #3DB2FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.achievement-card.completed .achievement-icon {
    background: #4CAF50;
}

.achievement-content {
    flex: 1;
}

.achievement-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.achievement-content p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3DB2FF;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.achievement-card.completed .progress-fill {
    background: #4CAF50;
}

.progress-text {
    font-size: 11px;
    color: #666;
    min-width: 30px;
    text-align: right;
}

.achievement-status {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4CAF50;
    font-size: 12px;
    font-weight: 500;
}

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

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* 足迹地图 */
.footprint-map {
    text-align: center;
}

.map-placeholder {
    background: #f8f9fa;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 40px 20px;
    margin-bottom: 16px;
    color: #999;
}

.map-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.footprint-stats {
    display: flex;
    justify-content: space-around;
}

.footprint-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footprint-stats .stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.footprint-stats .stat-label {
    font-size: 12px;
    color: #666;
}

/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
}

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

.activity-icon {
    width: 32px;
    height: 32px;
    background: rgba(61, 178, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3DB2FF;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* 设置列表 */
.settings-list {
    display: flex;
    flex-direction: column;
}

.setting-item {
    background: none;
    border: none;
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e1e5e9;
}

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

.setting-item:hover {
    background: rgba(61, 178, 255, 0.05);
    color: #3DB2FF;
}

.setting-item i:first-child {
    width: 16px;
    color: #666;
}

.setting-item i:last-child {
    margin-left: auto;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .user-actions {
        justify-content: center;
    }
    
    .content-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .posts-grid,
    .itineraries-grid,
    .favorites-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-card {
        flex-direction: column;
        text-align: center;
    }
    
    .favorite-item {
        flex-direction: column;
    }
    
    .favorite-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 20px 10px;
    }
    
    .profile-content {
        padding: 20px 10px;
    }
    
    .username {
        font-size: 2rem;
    }
    
    .user-stats {
        gap: 16px;
    }
    
    .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .sidebar-card {
        padding: 16px;
    }
}
