/**
 * 尊享欢迎仪式样式
 * 根据套餐等级呈现差异化视觉体验
 */

/* 基础容器 */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-screen.welcome-visible {
    opacity: 1;
    visibility: visible;
}

.welcome-screen.welcome-hiding {
    opacity: 0;
    visibility: hidden;
}

/* 背景 */
.welcome-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

/* 内容区 */
.welcome-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    z-index: 1;
}

/* 徽章容器 */
.welcome-badge-container {
    position: relative;
    margin-bottom: 30px;
}

.welcome-badge {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: badge-float 3s ease-in-out infinite;
}

.welcome-badge-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 文字区域 */
.welcome-text {
    margin-bottom: 30px;
}

.welcome-greeting {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.welcome-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    animation: name-fade-in 0.8s ease-out 0.3s both;
}

.welcome-tier-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    animation: label-slide-up 0.6s ease-out 0.5s both;
}

@keyframes name-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes label-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 信息区域 */
.welcome-info {
    display: flex;
    gap: 30px;
    margin-bottom: 24px;
    animation: info-fade-in 0.6s ease-out 0.7s both;
}

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

.welcome-info-icon {
    font-size: 20px;
}

.welcome-info-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.welcome-info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes info-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 标语 */
.welcome-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    animation: tagline-fade 0.6s ease-out 0.9s both;
}

@keyframes tagline-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 进入按钮 */
.welcome-enter-btn {
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: btn-pop 0.5s ease-out 1s both;
}

.welcome-enter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.welcome-enter-btn:active {
    transform: scale(0.98);
}

@keyframes btn-pop {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 跳过提示 */
.welcome-skip {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
}

.welcome-skip:hover {
    color: rgba(255, 255, 255, 0.7);
}

.welcome-countdown {
    display: inline-block;
    min-width: 12px;
}

/* ============ 免费用户主题 ============ */
.welcome-free .welcome-backdrop {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3a4f 100%);
}

.welcome-free .welcome-badge {
    background: rgba(100, 116, 139, 0.3);
}

.welcome-free .welcome-tier-label {
    background: rgba(100, 116, 139, 0.3);
}

.welcome-free .welcome-enter-btn {
    background: linear-gradient(135deg, #64748b, #475569);
}

/* ============ 月卡会员主题（银色） ============ */
.welcome-basic .welcome-backdrop {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
}

.welcome-basic .welcome-badge {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(169, 169, 169, 0.2));
    box-shadow: 0 0 40px rgba(192, 192, 192, 0.3);
}

.welcome-basic .welcome-badge-ring {
    border-color: rgba(192, 192, 192, 0.4);
    animation: ring-pulse-silver 2s ease-in-out infinite;
}

.welcome-basic .welcome-tier-label {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.3), rgba(169, 169, 169, 0.2));
    color: #e2e8f0;
}

.welcome-basic .welcome-enter-btn {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

@keyframes ring-pulse-silver {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(192, 192, 192, 0.4);
    }
}

/* ============ 季卡会员主题（金色） ============ */
.welcome-standard .welcome-backdrop {
    background: linear-gradient(135deg, #1a1a0e 0%, #2d2a1e 50%, #1a180e 100%);
}

.welcome-standard .welcome-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.2));
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
}

.welcome-standard .welcome-badge-ring {
    border-color: rgba(255, 215, 0, 0.5);
    animation: ring-pulse-gold 2s ease-in-out infinite;
}

.welcome-standard .welcome-tier-label {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 193, 7, 0.2));
    color: #fef3c7;
}

.welcome-standard .welcome-name {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-standard .welcome-info-value {
    color: #fef3c7;
}

.welcome-standard .welcome-enter-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

@keyframes ring-pulse-gold {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

/* ============ 年卡至尊主题（紫金渐变） ============ */
.welcome-premium .welcome-backdrop {
    background: linear-gradient(135deg, #1e1033 0%, #2d1b4e 30%, #1a1033 70%, #2d1b3e 100%);
    overflow: hidden;
}

.welcome-premium .welcome-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: bg-shimmer 8s ease-in-out infinite;
}

@keyframes bg-shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.welcome-premium .welcome-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(255, 215, 0, 0.3));
    box-shadow:
        0 0 60px rgba(139, 92, 246, 0.5),
        0 0 100px rgba(255, 215, 0, 0.3);
    animation: badge-float 3s ease-in-out infinite, badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.5), 0 0 100px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 80px rgba(139, 92, 246, 0.7), 0 0 120px rgba(255, 215, 0, 0.5);
    }
}

.welcome-premium .welcome-badge-ring {
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(255, 215, 0, 0.5)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: ring-rotate 4s linear infinite;
}

@keyframes ring-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.welcome-premium .welcome-name {
    background: linear-gradient(135deg, #a78bfa, #fcd34d, #a78bfa);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.welcome-premium .welcome-tier-label {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(255, 215, 0, 0.3));
    color: #fef3c7;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.welcome-premium .welcome-info-value {
    color: #fcd34d;
}

.welcome-premium .welcome-enter-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #a855f7);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
}

.welcome-premium .welcome-enter-btn:hover {
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.6);
}

/* 粒子效果（仅年卡） */
.welcome-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.welcome-particles::before,
.welcome-particles::after {
    content: '✨';
    position: absolute;
    font-size: 16px;
    animation: particle-float 3s ease-in-out infinite;
}

.welcome-particles::before {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.welcome-particles::after {
    top: 10%;
    right: 15%;
    animation-delay: 0.5s;
}

@keyframes particle-float {

    0%,
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
}