/* 隐藏滚动条但保持滚动功能 */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 我的页面容器 */
.profile-container {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding-bottom: 80px;
}

/* 用户信息头部 */
.user-header {
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    padding: 20px 16px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

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

.user-detail {
    color: #ffffff;
}

.nickname {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-id {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 400;
}

.settings-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: rotate(30deg);
}

/* VIP会员卡片 */
.vip-card {
    margin: -22px 12px 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 24px rgba(26, 26, 46, 0.35);
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.vip-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.vip-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.25);
}

.vip-icon svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.vip-text h3 {
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.vip-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 400;
}

.vip-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.vip-btn:active {
    transform: translateY(0);
}

/* 数据统计 */
.stats-bar {
    background-color: #ffffff;
    margin: 0 12px 10px;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 6px 20px;
    border-radius: 10px;
    text-decoration: none;
}

.stat-item:hover {
    transform: translateY(-2px);
    background-color: #fafafa;
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* 最近观看 */
.recent-section {
    background-color: #ffffff;
    margin: 0 12px 12px;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.section-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-left: 12px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ff3366 0%, #ff6b9d 100%);
    border-radius: 2px;
}

.view-all {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
    font-weight: 500;
}

.view-all:hover {
    color: #ff3366;
}

.recent-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 20px 8px 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.recent-list::-webkit-scrollbar {
    display: none;
}

.recent-item {
    flex-shrink: 0;
    width: calc((100% - 24px) / 3);
    max-width: 110px;
    cursor: pointer;
    transition: transform 0.3s;
}

.recent-item:hover {
    transform: translateY(-4px);
}

.recent-cover {
    position: relative;
    width: 100%;
    padding-top: 140%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.recent-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.recent-item:hover .recent-cover img {
    transform: scale(1.05);
}

.episode-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    font-weight: 500;
}

.recent-title {
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    line-height: 1.4;
}

/* 功能列表 */
.menu-list {
    background-color: #ffffff;
    margin: 0 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.menu-item:hover {
    background-color: #fafafa;
    padding-left: 24px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
}

.menu-item:nth-child(1) .menu-icon {
    background: linear-gradient(135deg, #fff0f3 0%, #ffe4e9 100%);
}

.menu-item:nth-child(2) .menu-icon {
    background: linear-gradient(135deg, #f0f7ff 0%, #e4f1ff 100%);
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.menu-arrow {
    flex-shrink: 0;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 375px) {
    .user-header {
        padding: 40px 16px 60px;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .nickname {
        font-size: 19px;
    }

    .vip-card {
        margin: -35px 12px 16px;
        padding: 20px 16px;
    }

    .vip-icon {
        width: 46px;
        height: 46px;
    }

    .vip-text h3 {
        font-size: 15px;
    }

    .vip-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .stats-bar,
    .recent-section,
    .menu-list {
        margin-left: 12px;
        margin-right: 12px;
    }

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

    .stat-item {
        padding: 6px 16px;
    }
}
