/* ==========================================================================
   v_clean 会员中心专属暗黑黑曜石美学样式库
   ========================================================================== */

/* 1. 独立认证页居中容器 (登录、注册、找回密码) */
.user-auth-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at 50% 30%, rgba(229, 9, 20, 0.08) 0%, rgba(15, 17, 23, 0) 70%);
}

.user-auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(22, 25, 35, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.user-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.user-auth-subtitle {
    font-size: 14px;
    color: #8a8f9d;
}

.user-auth-subtitle a {
    color: var(--accent-primary, #e50914);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.user-auth-subtitle a:hover {
    text-decoration: underline;
}

/* 表单组件 */
.user-form-group {
    margin-bottom: 20px;
    position: relative;
}

.user-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #b3b7c2;
    margin-bottom: 8px;
}

.user-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.user-input {
    width: 100%;
    height: 48px;
    background: rgba(14, 16, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.user-input::placeholder {
    color: #606677;
    font-size: 14px;
}

.user-input:focus {
    border-color: var(--accent-primary, #e50914);
    background: rgba(18, 21, 30, 0.95);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.18);
}

/* 验证码行 */
.user-verify-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-verify-row .user-input {
    flex: 1;
}

.user-verify-img {
    height: 48px;
    width: 130px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    background: #1c1f2b;
    object-fit: cover;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.user-verify-img:hover {
    opacity: 0.85;
}

.user-btn-sms {
    height: 48px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
    outline: none;
}

.user-btn-sms:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* 提交主按钮 */
.btn-user-submit {
    width: 100%;
    height: 50px;
    background: var(--accent-primary, #e50914);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 8px;
    outline: none;
}

.btn-user-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.45);
}

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

/* 底部辅助链接 */
.user-auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #8a8f9d;
}

.user-auth-footer a {
    color: #a0a5b5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-auth-footer a:hover {
    color: #ffffff;
}

.user-auth-footer .primary-link {
    color: var(--accent-primary, #e50914);
}

/* ==========================================================================
   2. 会员中心主布局 (个人资料、我的追剧、观看历史等)
   ========================================================================== */
.user-center-wrap {
    padding: 30px 0 60px;
}

.user-hero-card {
    background: linear-gradient(135deg, rgba(28, 32, 45, 0.9) 0%, rgba(19, 21, 30, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.user-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary, #e50914);
    overflow: hidden;
    background: #1e2230;
    flex-shrink: 0;
}

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

.user-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-group-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-primary, #e50914);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.user-profile-sub {
    font-size: 13px;
    color: #8c92a4;
    display: flex;
    gap: 16px;
}

.user-hero-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.user-stat-box {
    text-align: center;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.user-stat-box:last-child {
    border-right: none;
    padding-right: 0;
}

.user-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.user-stat-val.highlight {
    color: var(--accent-primary, #e50914);
}

.user-stat-lbl {
    font-size: 12px;
    color: #818798;
    margin-top: 4px;
}

/* 主内容两栏栅格 */
.user-main-grid {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* 左侧垂直导航栏 */
.user-sidebar {
    background: rgba(22, 25, 35, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    width: 100%;
}

.user-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.user-menu-item a {
    display: block;
    padding: 11px 16px;
    border-radius: 8px;
    color: #9ea4b5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
    box-sizing: border-box;
}

.user-menu-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.user-menu-item.active a {
    color: #ffffff;
    background: var(--accent-primary, #e50914);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.25);
}

.user-menu-item.logout a {
    color: #ff5252;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    border-radius: 0 0 8px 8px;
}

.user-menu-item.logout a:hover {
    background: rgba(255, 82, 82, 0.12);
    color: #ff7676;
}

/* 右侧内容面板卡片 */
.user-content-panel {
    background: rgba(22, 25, 35, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    min-height: 480px;
    box-sizing: border-box;
    width: 100%;
}

.user-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-panel-title .title-actions a {
    font-size: 13px;
    color: #8c92a4;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}

.user-panel-title .title-actions a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* 工具栏 (全选、反选、批量删除、清空) */
.user-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-tool {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #d1d5e2;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-tool:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-tool.danger {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.2);
}

.btn-tool.danger:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff8787;
}

/* 列表行样式 (收藏/观看历史) */
.user-records-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-record-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(14, 16, 23, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s, border-color 0.2s;
}

.user-record-row:hover {
    background: rgba(25, 28, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.user-record-check {
    margin-right: 14px;
    cursor: pointer;
    accent-color: var(--accent-primary, #e50914);
    width: 16px;
    height: 16px;
}

.user-record-info {
    flex: 1;
    min-width: 0;
}

.user-record-title {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.user-record-title:hover {
    color: var(--accent-primary, #e50914);
}

.user-record-meta {
    font-size: 12px;
    color: #7b8192;
    display: flex;
    gap: 12px;
}

.user-record-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
    flex-shrink: 0;
}

.user-record-actions a {
    font-size: 13px;
    color: var(--accent-primary, #e50914);
    text-decoration: none;
}

.user-record-actions a:hover {
    text-decoration: underline;
}

/* 空状态 */
.user-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c7285;
}

.user-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.user-empty-state p {
    font-size: 14px;
    margin-bottom: 18px;
}

/* 信息属性表单/表格 */
.user-info-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.user-info-row:last-child {
    border-bottom: none;
}

.user-info-label {
    width: 120px;
    color: #8c92a4;
    flex-shrink: 0;
}

.user-info-value {
    color: #ffffff;
    flex: 1;
}

/* 套餐升级卡片列表 */
.vip-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.vip-package-card {
    background: rgba(14, 16, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.vip-package-card:hover {
    border-color: var(--accent-primary, #e50914);
    background: rgba(22, 25, 38, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.vip-package-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.vip-package-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-primary, #e50914);
    margin-bottom: 6px;
}

.vip-package-unit {
    font-size: 12px;
    font-weight: normal;
    color: #8c92a4;
}

.vip-package-desc {
    font-size: 13px;
    color: #7b8192;
    margin-bottom: 18px;
}

.btn-vip-buy {
    width: 100%;
    padding: 10px 0;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent-primary, #e50914);
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vip-package-card:hover .btn-vip-buy {
    background: var(--accent-primary, #e50914);
    color: #ffffff;
}

/* 响应式断点 */
@media (max-width: 720px) {
    .user-main-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    .user-sidebar {
        width: 100%;
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
    
    .user-sidebar::-webkit-scrollbar {
        display: none;
    }
    
    .user-menu-list {
        display: flex;
        flex-direction: row;
        gap: 6px;
        white-space: nowrap;
    }
    
    .user-menu-item a {
        padding: 7px 13px;
        font-size: 13px;
        border-radius: 6px;
        text-align: center;
        white-space: nowrap;
    }
    
    .user-menu-item.logout a {
        margin-top: 0;
        border-top: none;
        padding-top: 7px;
    }
    
    .user-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 14px;
    }
    
    .user-hero-stats {
        width: 100%;
        justify-content: space-between;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .user-stat-box {
        padding: 0;
        border-right: none;
    }
    
    .user-content-panel {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .user-auth-card {
        padding: 24px 18px;
    }
}
