/* 个人主页样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 100;
}

.header-left, .header-right {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-center {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: white;
}

.icon-back, .icon-more {
    color: white;
    cursor: pointer;
}

/* 用户信息卡片 */
.user-info {
    margin-top: 50px;
    background: #000;
    color: white;
    padding: 20px 15px 25px;
}

/* 顶部区域：头像+统计 */
.user-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar-wrapper {
    flex-shrink: 0;
}

.user-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

/* 统计数据 */
.user-stats {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* 用户信息 */
.user-details {
    text-align: left;
    padding: 0;
    margin-bottom: 15px;
}

.username {
    font-size: 19px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.user-id {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.user-bio {
    font-size: 14px;
    color: #4a9eff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ip-location {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 15px;
}

/* 功能标签 */
.feature-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tag {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.feature-tag:active {
    background: rgba(255,255,255,0.15);
}

.tag-title {
    font-size: 12px;
    color: white;
    margin-bottom: 3px;
    font-weight: 500;
}

.tag-highlight {
    color: #ff4d4f;
}

.tag-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

/* 操作按钮 */
.user-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-follow, .btn-message, .btn-more {
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-follow {
    flex: 1;
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-follow.followed {
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-message {
    flex: 1;
    background: rgba(255,255,255,0.15);
    color: white;
}

.btn-more {
    width: 44px;
    padding: 10px;
    background: rgba(255,255,255,0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-follow:active, .btn-message:active, .btn-more:active {
    opacity: 0.8;
}

/* 标签栏 */
.tabs {
    display: flex;
    background: #000;
    position: sticky;
    top: 50px;
    z-index: 90;
    padding: 0 15px;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 15px 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-item:first-child {
    justify-content: flex-start;
}

.tab-item.active {
    color: white;
    font-weight: 500;
}

.tab-text {
    font-size: 15px;
}

.tab-arrow {
    margin-left: 2px;
    opacity: 0.6;
}

/* 视频网格 */
.video-grid {
    padding: 2px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #000;
    min-height: calc(100vh - 300px);
}

.video-item {
    aspect-ratio: 9 / 16;
    background: #1a1a1a;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-item:active {
    transform: scale(0.98);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 12px;
}

.video-overlay svg {
    width: 14px;
    height: 14px;
}

/* 加载状态 */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: rgba(255,255,255,0.5);
}

.no-videos .icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 底部提示 */
.end-tip {
    background: #000;
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* 响应式适配 */
@media (min-width: 768px) {
    .header, .user-info, .tabs, .video-grid, .end-tip {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    body {
        background: #000;
    }
}

/* 骨架屏动画 */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton {
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 100px;
    animation: shimmer 1.5s infinite linear;
}

