/* ========================================
   Dream Theme - 女皇专属紫色梦幻主题
   ======================================== */

/* 紫色主题变量覆盖 */
body.dream-theme {
    /* 背景色系 - 深紫到粉紫渐变感 */
    --bg-primary: #1a1225;
    --bg-secondary: #251a35;
    --bg-tertiary: #322242;
    --bg-hover: #3d2b52;

    /* 主题紫色系 */
    --accent-purple: #c084fc;
    --accent-purple-hover: #a855f7;
    --accent-pink: #f472b6;
    --accent-pink-hover: #ec4899;
    --accent-blue: #a78bfa;
    --accent-cyan: #c084fc;

    /* 边框颜色 */
    --border-color: #4a306d;

    /* 文字颜色 */
    --text-primary: #fae8ff;
    --text-secondary: #d8b4fe;
    --text-muted: #a855f7;

    /* 发光阴影 */
    --shadow-glow-purple: 0 0 20px rgba(192, 132, 252, 0.4);
    --shadow-glow-pink: 0 0 20px rgba(244, 114, 182, 0.4);
}

/* 整体背景动画 - 星空粒子效果 */
body.dream-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #c084fc, transparent),
        radial-gradient(2px 2px at 40px 70px, #f472b6, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, #c084fc, transparent),
        radial-gradient(1px 1px at 230px 80px, #f472b6, transparent),
        radial-gradient(2px 2px at 300px 150px, #fff, transparent),
        radial-gradient(1px 1px at 350px 50px, #c084fc, transparent),
        radial-gradient(2px 2px at 420px 180px, #f472b6, transparent),
        radial-gradient(1px 1px at 500px 100px, #fff, transparent),
        radial-gradient(2px 2px at 580px 60px, #c084fc, transparent);
    background-repeat: repeat;
    background-size: 600px 200px;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* 女皇皇冠Logo */
.dream-theme .logo svg {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
    animation: crownGlow 2s ease-in-out infinite alternate;
}

@keyframes crownGlow {
    from { filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4)); }
    to { filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8)); }
}

/* 导航栏紫色高亮 */
.dream-theme .nav-item.active {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    box-shadow: var(--shadow-glow-purple);
}

.dream-theme .nav-item:hover {
    background: var(--bg-hover);
    color: #fae8ff;
}

/* 按钮紫色风格 */
.dream-theme .btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.dream-theme .btn-primary:hover {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

/* 统计卡片紫色边框发光 */
.dream-theme .stat-card {
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.dream-theme .stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(192, 132, 252, 0.05) 50%,
        transparent 60%
    );
    animation: cardShimmer 3s linear infinite;
    pointer-events: none;
}

@keyframes cardShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.dream-theme .stat-card:hover {
    border-color: #a855f7;
    box-shadow: var(--shadow-glow-purple);
}

/* 信号卡片紫色风格 */
.dream-theme .signal-card.LONG::before {
    background: linear-gradient(180deg, #a855f7, #c084fc);
}

.dream-theme .signal-card.SHORT::before {
    background: linear-gradient(180deg, #f472b6, #ec4899);
}

.dream-theme .signal-card.LONG:hover {
    box-shadow: var(--shadow-glow-purple);
}

.dream-theme .signal-card.SHORT:hover {
    box-shadow: var(--shadow-glow-pink);
}

.dream-theme .badge-long {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.dream-theme .badge-short {
    background: rgba(244, 114, 182, 0.2);
    color: #f472b6;
}

/* 女皇欢迎语样式 */
.queen-welcome {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(37, 26, 53, 0.95) 0%, rgba(74, 48, 109, 0.95) 100%);
    border: 2px solid #c084fc;
    border-radius: 20px;
    padding: 3rem 4rem;
    text-align: center;
    z-index: 9999;
    box-shadow:
        0 0 60px rgba(192, 132, 252, 0.4),
        inset 0 0 60px rgba(192, 132, 252, 0.1);
    animation: welcomeAppear 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes welcomeAppear {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.queen-welcome.fade-out {
    animation: welcomeFadeOut 0.5s ease forwards;
}

@keyframes welcomeFadeOut {
    to {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.queen-welcome__crown {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: crownBounce 1s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
}

@keyframes crownBounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-10px) scale(1.1); }
}

.queen-welcome__text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f472b6 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: textShine 2s linear infinite;
    background-size: 200% auto;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.queen-welcome__sub {
    font-size: 1rem;
    color: #d8b4fe;
    opacity: 0.8;
}

.queen-welcome__sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.queen-welcome__sparkles::before,
.queen-welcome__sparkles::after {
    content: '✨';
    position: absolute;
    font-size: 1.5rem;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.queen-welcome__sparkles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.queen-welcome__sparkles::after {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* 爱心飘浮动画 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: heartFloat 4s ease-in-out infinite;
    opacity: 0;
}

@keyframes heartFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg) scale(1.2);
        opacity: 0;
    }
}

/* 登录页紫色主题 */
body.dream-login {
    background: linear-gradient(135deg, #1a1225 0%, #251a35 50%, #1a1225 100%);
    position: relative;
    overflow: hidden;
}

body.dream-login::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(192, 132, 252, 0.1) 0%, transparent 40%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

.dream-login .login-container {
    background: rgba(37, 26, 53, 0.9);
    border: 1px solid #4a306d;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(168, 85, 247, 0.2);
    position: relative;
    z-index: 1;
}

.dream-login .login-logo svg {
    color: #fbbf24;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
    animation: crownSpin 3s ease-in-out infinite;
}

@keyframes crownSpin {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.dream-login .login-title {
    background: linear-gradient(135deg, #fbbf24 0%, #f472b6 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dream-login .form-input:focus {
    border-color: #c084fc;
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

.dream-login .btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
}

/* 输入框聚焦时的闪光效果 */
.dream-login .form-input:focus {
    animation: inputGlow 1.5s ease-in-out infinite alternate;
}

@keyframes inputGlow {
    from { box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2); }
    to { box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.4), 0 0 20px rgba(192, 132, 252, 0.2); }
}

/* 加载动画紫色 */
.dream-theme .spinner {
    border-top-color: #c084fc;
}

/* Toast通知紫色风格 */
.dream-theme .toast.success {
    border-left-color: #a855f7;
}

.dream-theme .toast.info {
    border-left-color: #c084fc;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .queen-welcome {
        padding: 2rem 2.5rem;
    }

    .queen-welcome__text {
        font-size: 1.5rem;
    }

    .queen-welcome__crown {
        font-size: 3rem;
    }
}
