/* HJSQ Main Styles - Copyright: mpozemni.com.cn 2025 - Template ID: HJSQ-ORIGINAL-2025 */

.hjsq-original-layout {
    --hjsq-primary-blue: #3b82f6;
    --hjsq-primary-purple: #8b5cf6;
    --hjsq-primary-indigo: #6366f1;
    --hjsq-accent-pink: #ec4899;
}

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

.hjsq-particle-canvas {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    background-size: 120px 120px, 150px 150px, 80px 80px;
    animation: hjsq-particle-float 30s linear infinite;
}

@keyframes hjsq-particle-float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(80px, 80px) rotate(360deg); }
}

.hjsq-floating-shapes::before,
.hjsq-floating-shapes::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
    border-radius: 50%;
    animation: hjsq-shape-drift 20s infinite linear;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
}

.hjsq-floating-shapes::before {
    top: 20%;
    left: 15%;
    animation-delay: -5s;
}

.hjsq-floating-shapes::after {
    top: 60%;
    right: 20%;
    animation-delay: -10s;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.8));
}

@keyframes hjsq-shape-drift {
    0% {
        transform: translateY(100vh) translateX(-30px) rotate(0deg) scale(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translateY(80vh) translateX(0px) rotate(45deg) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateY(-10vh) translateX(40px) rotate(315deg) scale(1.5);
    }
    100% {
        transform: translateY(-30vh) translateX(80px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

.hjsq-main-nav {
    backdrop-filter: blur(16px) saturate(180%);
}

.hjsq-brand-link:hover .hjsq-logo-main {
    animation: hjsq-logo-pulse 0.6s ease-in-out;
}

@keyframes hjsq-logo-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

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

.hjsq-card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    filter: brightness(1.1);
}

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

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

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

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

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

.hjsq-stat-number {
    animation: hjsq-count-up 2s ease-out;
}

@keyframes hjsq-count-up {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hjsq-review-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hjsq-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

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

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

#hjsq-back-to-top:hover {
    transform: translateY(-3px) rotate(720deg) scale(1.15);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.6);
}

.hjsq-footer-divider {
    animation: hjsq-divider-glow 3s ease-in-out infinite alternate;
}

@keyframes hjsq-divider-glow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.hjsq-social-link:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.hjsq-footer-link:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.hjsq-footer-stat {
    transition: all 0.3s ease;
}

.hjsq-footer-stat:hover {
    transform: translateY(-3px) scale(1.05);
}

.hjsq-footer-badges span {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hjsq-footer-badges span:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

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

.hjsq-main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .hjsq-floating-shapes::before,
    .hjsq-floating-shapes::after {
        width: 3px;
        height: 3px;
    }
    
    .hjsq-particle-canvas {
        background-size: 60px 60px, 80px 80px, 40px 40px;
    }

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

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

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

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

.hjsq-fade-in {
    animation: hjsq-fade-in 0.8s ease-out forwards;
}

.hjsq-glow {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
    animation: hjsq-glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes hjsq-glow-pulse {
    0% {
        box-shadow: 
            0 0 20px rgba(59, 130, 246, 0.5),
            0 0 40px rgba(139, 92, 246, 0.3),
            inset 0 0 20px rgba(99, 102, 241, 0.1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(59, 130, 246, 0.7),
            0 0 60px rgba(139, 92, 246, 0.5),
            inset 0 0 30px rgba(99, 102, 241, 0.2);
    }
}

.hjsq-text-glow {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 30px rgba(99, 102, 241, 0.2);
    animation: hjsq-text-pulse 3s ease-in-out infinite;
}

@keyframes hjsq-text-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(59, 130, 246, 0.5),
            0 0 20px rgba(139, 92, 246, 0.3),
            0 0 30px rgba(99, 102, 241, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(59, 130, 246, 0.7),
            0 0 30px rgba(139, 92, 246, 0.5),
            0 0 45px rgba(99, 102, 241, 0.4);
    }
}

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

.hjsq-smooth-transition:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

.hjsq-3d-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hjsq-3d-card:hover {
    transform: rotateY(15deg) rotateX(15deg) translateZ(30px);
}

.hjsq-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateZ(-1px);
    filter: blur(15px);
    opacity: 0.6;
}