/* ============================================
   用户中心样式
   ============================================ */

.user-banner {
    margin-top: var(--header-height);
    background: linear-gradient(135deg, var(--bili-pink) 0%, var(--bili-blue) 100%);
    padding: 60px 0;
}

.banner-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.profile-info {
    color: white;
}

.profile-name {
    font-size: 28px;
    margin-bottom: 10px;
}

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

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stats a,
.profile-stats span {
    color: white;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 500;
}

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

/* 导航标签 */
.space-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.space-nav .nav-item {
    padding: 15px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    z-index: 10;
}

.space-nav .nav-item:hover,
.space-nav .nav-item.active {
    color: var(--bili-blue);
}

.space-nav .nav-item.active {
    border-bottom-color: var(--bili-blue);
}

/* 主内容区 */
.space-main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px 80px;
    min-height: 400px;
}

.tab-content {
    display: none;
}

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

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

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background: var(--bili-blue);
    color: white;
    border-color: var(--bili-blue);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 设置表单 */
.settings-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.settings-form h3 {
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-upload img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.avatar-upload button {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-upload button:hover {
    background: var(--bili-blue);
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .user-profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .nav-inner {
        gap: 15px;
        overflow-x: auto;
    }
}

/* ============================================
   用户中心移动端UI组件优化
   ============================================ */

@media (max-width: 768px) {
    .user-banner {
        padding: 40px 0;
    }

    .banner-inner {
        padding: 0 16px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .profile-name {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .profile-bio {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .profile-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .space-nav {
        position: sticky;
        top: var(--header-height);
        z-index: 100;
        background: white;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-inner {
        padding: 0 16px;
        gap: 0;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

    .space-nav .nav-item {
        padding: 14px 20px;
        font-size: 14px;
        white-space: nowrap;
        color: var(--text-secondary);
        border-bottom: 2px solid transparent;
        transition: all 0.3s;
        display: inline-block;
        min-width: fit-content;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        text-decoration: none;
    }

    .space-nav .nav-item:active {
        opacity: 0.7;
    }

    .space-nav .nav-item.active {
        color: var(--bili-blue);
        border-bottom-color: var(--bili-blue);
        font-weight: 600;
    }

    .space-main {
        padding: 16px;
        margin: 16px auto;
    }

    .settings-form {
        padding: 20px;
        border-radius: 10px;
    }

    .settings-form h3 {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .form-row .form-group {
        margin-bottom: 16px;
    }

    .form-row .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-row .form-group input,
    .form-row .form-group textarea,
    .form-row .form-group select {
        padding: 12px;
        font-size: 15px;
    }

    .avatar-upload {
        gap: 16px;
    }

    .avatar-upload img {
        width: 64px;
        height: 64px;
    }

    .avatar-upload button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pagination {
        gap: 6px;
        margin-top: 20px;
    }

    .pagination button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 32px;
    }

    .video-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-card {
        border-radius: 8px;
    }

    .video-info {
        padding: 8px 10px;
    }

    .video-title {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .video-meta {
        font-size: 11px;
        gap: 8px;
    }

    .video-author {
        font-size: 11px;
        margin-top: 6px;
    }

    .video-author img {
        width: 18px;
        height: 18px;
    }
}
