/* ============================================
   HHpoker 德扑圈 — 渐变紫罗兰风 自定义样式
   ============================================ */

/* === 浮动装饰圆形动画 === */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-15px, -50px) scale(0.95); }
    75% { transform: translate(-30px, -15px) scale(1.02); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 20px) scale(1.08); }
    66% { transform: translate(20px, -35px) scale(0.92); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -25px) scale(1.1); }
}

.floating-slow { animation: float-slow 12s ease-in-out infinite; }
.floating-medium { animation: float-medium 8s ease-in-out infinite; }
.floating-fast { animation: float-fast 6s ease-in-out infinite; }

/* === 柔和发光阴影 === */
.glow-violet {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.25),
                0 0 80px rgba(124, 58, 237, 0.1);
}

.glow-violet-sm {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.glow-indigo {
    box-shadow: 0 0 40px rgba(67, 56, 202, 0.25),
                0 0 80px rgba(67, 56, 202, 0.1);
}

.glow-text {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5),
                 0 0 40px rgba(124, 58, 237, 0.3);
}

/* === 玻璃拟态效果 === */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 1.5rem;
}

.glass-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

/* === 渐变边框卡片 === */
.gradient-border {
    position: relative;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 1.5rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(67, 56, 202, 0.5), rgba(139, 92, 246, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* === 按钮样式 === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, #8b5cf6, #818cf8);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #c4b5fd;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #ddd6fe;
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.2);
}

/* === 脉冲光晕 === */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
    50% { box-shadow: 0 0 50px rgba(124, 58, 237, 0.6); }
}

.pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* === 进入动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* === 数字跳动 === */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animate {
    animation: countUp 0.6s ease-out forwards;
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #4338ca);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
}

/* === 选中文字颜色 === */
::selection {
    background: rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* === 图标容器 === */
.icon-circle {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(67, 56, 202, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    font-size: 1.5rem;
}

/* === 分割线渐变 === */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    border: none;
}

/* === 星级评分 === */
.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

/* === 页面过渡 === */
.page-enter {
    animation: fadeIn 0.4s ease-out;
}

/* === 卡片悬浮效果 === */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

/* === 背景网格纹理 === */
.bg-grid {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === 响应式调整 === */
@media (max-width: 768px) {
    .btn-primary, .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .glass-card {
        border-radius: 1rem;
    }

    .gradient-border {
        border-radius: 1rem;
    }
}
