/* HaiJiao Forum Main Styles - Copyright: 15999918887.com.cn 2025 - Template ID: HJFORUM-ORIGINAL-2025 */

.hjforum-home-layout, .hjforum-topics-layout, .hjforum-chat-layout, .hjforum-member-layout, .hjforum-guide-layout {
    --hjforum-primary-indigo: #6366f1;
    --hjforum-primary-purple: #8b5cf6;
    --hjforum-primary-pink: #ec4899;
    --hjforum-accent-orange: #f59e0b;
}

.hjforum-bg-wrapper {
    background-attachment: fixed;
}

.hjforum-particle-system {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    background-size: 140px 140px, 180px 180px, 90px 90px;
    animation: hjforum-particle-drift 35s linear infinite;
}

@keyframes hjforum-particle-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(90px, 90px) rotate(360deg); }
}

.hjforum-floating-elements::before,
.hjforum-floating-elements::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    border-radius: 50%;
    animation: hjforum-element-float 25s infinite linear;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6), 0 0 50px rgba(139, 92, 246, 0.4);
}

.hjforum-floating-elements::before {
    top: 30%;
    left: 20%;
    animation-delay: -8s;
}

.hjforum-floating-elements::after {
    top: 70%;
    right: 15%;
    animation-delay: -15s;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8));
}

@keyframes hjforum-element-float {
    0% {
        transform: translateY(120vh) translateX(-40px) rotate(0deg) scale(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateY(90vh) translateX(0px) rotate(60deg) scale(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-20vh) translateX(50px) rotate(300deg) scale(1.8);
    }
    100% {
        transform: translateY(-40vh) translateX(100px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

.hjforum-main-nav {
    backdrop-filter: blur(18px) saturate(200%);
}

.hjforum-brand-link:hover .hjforum-logo-main {
    animation: hjforum-logo-bounce 0.7s ease-in-out;
}

@keyframes hjforum-logo-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(8deg); }
}

.hjforum-card-interactive {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hjforum-card-interactive:hover {
    transform: translateY(-10px) scale(1.03);
    filter: brightness(1.15);
}

.hjforum-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hjforum-card-interactive:hover::before {
    opacity: 1;
}

.hjforum-btn-primary,
.hjforum-btn-secondary {
    position: relative;
    overflow: hidden;
}

.hjforum-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.hjforum-btn-primary:hover::before {
    left: 100%;
}

.hjforum-stat-number {
    animation: hjforum-count-pulse 2.5s ease-out;
}

@keyframes hjforum-count-pulse {
    0% { opacity: 0; transform: translateY(25px) scale(0.7); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hjforum-review-card {
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
}

.hjforum-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
}

#hjforum-back-to-top {
    transform: translateY(120px) rotate(0deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#hjforum-back-to-top.hjforum-show {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
}

#hjforum-back-to-top:hover {
    transform: translateY(-4px) rotate(720deg) scale(1.2);
    box-shadow: 0 18px 35px rgba(99, 102, 241, 0.7);
}

.hjforum-footer-divider {
    animation: hjforum-divider-pulse 4s ease-in-out infinite alternate;
}

@keyframes hjforum-divider-pulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.9; }
}

.hjforum-social-link:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.5);
}

.hjforum-footer-link:hover i {
    transform: scale(1.2);
    transition: transform 0.4s ease;
}

.hjforum-footer-stat {
    transition: all 0.4s ease;
}

.hjforum-footer-stat:hover {
    transform: translateY(-4px) scale(1.08);
}

.hjforum-footer-badges span {
    transition: all 0.4s ease;
    cursor: pointer;
}

.hjforum-footer-badges span:hover {
    transform: scale(1.08);
    filter: brightness(1.3);
}

.hjforum-main-footer {
    position: relative;
    overflow: hidden;
}

.hjforum-main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1f2937, #111827);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    border: 2px solid #111827;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5, #7c3aed);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

@media (max-width: 768px) {
    .hjforum-floating-elements::before,
    .hjforum-floating-elements::after {
        width: 3px;
        height: 3px;
    }
    
    .hjforum-particle-system {
        background-size: 70px 70px, 90px 90px, 45px 45px;
    }

    .hjforum-hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hjforum-card-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hjforum-hero-title {
        font-size: 2rem;
    }
    
    .hjforum-stat-number {
        font-size: 1.5rem;
    }
}

@keyframes hjforum-fade-in {
    0% { opacity: 0; transform: translateY(35px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hjforum-fade-in {
    animation: hjforum-fade-in 0.9s ease-out forwards;
}

.hjforum-glow {
    box-shadow: 
        0 0 25px rgba(99, 102, 241, 0.6),
        0 0 50px rgba(139, 92, 246, 0.4),
        inset 0 0 25px rgba(236, 72, 153, 0.15);
    animation: hjforum-glow-pulse 2.5s ease-in-out infinite alternate;
}

@keyframes hjforum-glow-pulse {
    0% {
        box-shadow: 
            0 0 25px rgba(99, 102, 241, 0.6),
            0 0 50px rgba(139, 92, 246, 0.4),
            inset 0 0 25px rgba(236, 72, 153, 0.15);
    }
    100% {
        box-shadow: 
            0 0 35px rgba(99, 102, 241, 0.8),
            0 0 70px rgba(139, 92, 246, 0.6),
            inset 0 0 35px rgba(236, 72, 153, 0.25);
    }
}

.hjforum-text-glow {
    text-shadow: 
        0 0 12px rgba(99, 102, 241, 0.6),
        0 0 25px rgba(139, 92, 246, 0.4),
        0 0 35px rgba(236, 72, 153, 0.3);
    animation: hjforum-text-pulse 3.5s ease-in-out infinite;
}

@keyframes hjforum-text-pulse {
    0%, 100% {
        text-shadow: 
            0 0 12px rgba(99, 102, 241, 0.6),
            0 0 25px rgba(139, 92, 246, 0.4),
            0 0 35px rgba(236, 72, 153, 0.3);
    }
    50% {
        text-shadow: 
            0 0 18px rgba(99, 102, 241, 0.8),
            0 0 35px rgba(139, 92, 246, 0.6),
            0 0 50px rgba(236, 72, 153, 0.5);
    }
}

.hjforum-smooth-transition {
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hjforum-smooth-transition:hover {
    transform: perspective(1200px) rotateX(12deg) rotateY(12deg) scale(1.08);
}

.hjforum-3d-card {
    transform-style: preserve-3d;
    perspective: 1200px;
}

.hjforum-3d-card:hover {
    transform: rotateY(18deg) rotateX(18deg) translateZ(35px);
}

.hjforum-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateZ(-2px);
    filter: blur(20px);
    opacity: 0.7;
}