/* ==============================================
   海角网原创导航系统样式表 V2.0.1
   Template Name: HaiJiao Navigation Pro
   Author: HaiJiao Tech Team
   Copyright: zhongyuetl.com 2025
   Template ID: HJ-NAV-ORIGINAL-2025
   Last Update: 2025-01-15
   ============================================== */

/* 海角网专属基础样式 */
.hj-original-body {
    --hj-primary-blue: #0ea5e9;
    --hj-primary-green: #22c55e;
    --hj-primary-yellow: #f59e0b;
    --hj-primary-purple: #8b5cf6;
}

/* 海角网原创六边形网格背景系统 */
.hj-tech-grid {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        linear-gradient(30deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(120deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 40px 40px, 40px 40px;
    animation: hj-hexGrid-animation 25s linear infinite;
}

@keyframes hj-hexGrid-animation {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(60px, 60px) rotate(360deg); }
}

/* 海角网原创星空粒子系统 */
.hj-particle-system {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hj-particle-system::before,
.hj-particle-system::after {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.8), rgba(34, 197, 94, 0.8));
    border-radius: 50%;
    animation: hj-starFloat-animation 18s infinite linear;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6), 0 0 30px rgba(34, 197, 94, 0.4);
}

.hj-particle-system::before {
    top: 30%;
    left: 20%;
    animation-delay: -7s;
}

.hj-particle-system::after {
    top: 70%;
    right: 25%;
    animation-delay: -12s;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(245, 158, 11, 0.8));
}

@keyframes hj-starFloat-animation {
    0% {
        transform: translateY(120vh) translateX(-50px) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(100vh) translateX(0px) rotate(36deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-20vh) translateX(50px) rotate(324deg) scale(1.2);
    }
    100% {
        transform: translateY(-40vh) translateX(100px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* 原创浮动几何图形 */
.floating-comic, .floating-element {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid;
    border-image: linear-gradient(45deg, rgba(14, 165, 233, 0.4), rgba(34, 197, 94, 0.4)) 1;
    animation: geometricFloat 8s ease-in-out infinite;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.floating-comic-1, .floating-element-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    border-image: linear-gradient(45deg, rgba(14, 165, 233, 0.4), rgba(245, 158, 11, 0.4)) 1;
}

.floating-comic-2, .floating-element-2 {
    top: 45%;
    right: 12%;
    animation-delay: 3s;
    border-image: linear-gradient(135deg, rgba(34, 197, 94, 0.4), rgba(236, 72, 153, 0.4)) 1;
    clip-path: polygon(20% 0%, 80% 0%, 100% 60%, 80% 100%, 20% 100%, 0% 60%);
}

.floating-comic-3, .floating-element-3 {
    bottom: 25%;
    left: 65%;
    animation-delay: 6s;
    width: 80px;
    height: 80px;
    border-image: linear-gradient(225deg, rgba(245, 158, 11, 0.4), rgba(168, 85, 247, 0.4)) 1;
    clip-path: circle(50% at 50% 50%);
}

@keyframes geometricFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
        filter: hue-rotate(120deg);
    }
    66% {
        transform: translateY(-15px) rotate(240deg) scale(0.9);
        filter: hue-rotate(240deg);
    }
}

/* 原创分类按钮设计 */
.category-btn {
    padding: 14px 28px;
    border: 2px solid transparent;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)) padding-box,
        linear-gradient(135deg, #0ea5e9, #22c55e, #f59e0b) border-box;
    color: #0ea5e9;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0ea5e9, #22c55e, #f59e0b);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.category-btn:hover::before,
.category-btn.active::before {
    left: 0;
}

.category-btn:hover::after {
    width: 100px;
    height: 100px;
}

.category-btn:hover,
.category-btn.active {
    color: black;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(14, 165, 233, 0.4),
        0 5px 15px rgba(34, 197, 94, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 原创返回顶部按钮 */
#back-to-top {
    transform: translateY(100px) rotate(0deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

#back-to-top:hover {
    transform: translateY(-5px) rotate(720deg) scale(1.2);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.6);
}

/* 原创自定义滚动条 */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #22c55e, #f59e0b);
    border-radius: 6px;
    border: 2px solid #111827;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0284c7, #16a34a, #d97706);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

/* 原创响应式设计 */
@media (max-width: 768px) {
    .floating-element, .floating-comic {
        width: 70px;
        height: 70px;
    }
    
    .tech-grid {
        background-size: 25px 25px, 35px 35px, 20px 20px, 20px 20px;
    }

    .category-btn {
        padding: 12px 20px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .floating-element, .floating-comic {
        width: 50px;
        height: 50px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* 原创加载动画 */
@keyframes morphPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.1) rotate(90deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.05) rotate(270deg);
    }
}

/* 原创发光效果增强 */
.glow {
    box-shadow: 
        0 0 20px rgba(14, 165, 233, 0.5),
        0 0 40px rgba(34, 197, 94, 0.3),
        inset 0 0 20px rgba(245, 158, 11, 0.1);
    animation: morphGlow 2s ease-in-out infinite alternate;
}

@keyframes morphGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(14, 165, 233, 0.5),
            0 0 40px rgba(34, 197, 94, 0.3),
            inset 0 0 20px rgba(245, 158, 11, 0.1);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(14, 165, 233, 0.7),
            0 0 60px rgba(34, 197, 94, 0.5),
            inset 0 0 30px rgba(245, 158, 11, 0.2);
    }
}

/* 原创文字发光效果 */
.text-glow {
    text-shadow: 
        0 0 10px rgba(14, 165, 233, 0.5),
        0 0 20px rgba(34, 197, 94, 0.3),
        0 0 30px rgba(245, 158, 11, 0.2);
    animation: textGlowPulse 3s ease-in-out infinite;
}

@keyframes textGlowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(14, 165, 233, 0.5),
            0 0 20px rgba(34, 197, 94, 0.3),
            0 0 30px rgba(245, 158, 11, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(14, 165, 233, 0.7),
            0 0 30px rgba(34, 197, 94, 0.5),
            0 0 45px rgba(245, 158, 11, 0.4);
    }
}

/* 原创悬停发光增强 */
.hover-glow:hover {
    box-shadow: 
        0 0 40px rgba(14, 165, 233, 0.7),
        0 10px 50px rgba(34, 197, 94, 0.4),
        inset 0 0 25px rgba(245, 158, 11, 0.2);
    transform: translateY(-5px) scale(1.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 原创卡片发光效果 */
.card-glow {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glow:hover {
    box-shadow: 
        0 20px 60px rgba(14, 165, 233, 0.4),
        0 10px 30px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-10px) scale(1.03) rotateX(5deg);
}

/* 原创动态动画类 */
.animate-glow {
    animation: morphGlow 2.5s ease-in-out infinite alternate;
}

/* 原创涟漪效果 */
@keyframes uniqueRipple {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5) rotate(360deg);
        opacity: 0;
    }
}

/* 原创星光闪烁效果 */
@keyframes uniqueSparkle {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-20px) scale(1.5) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) scale(1) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-60px) scale(1.8) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-80px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* 原创访问效果 */
@keyframes uniqueVisit {
    0% { 
        transform: translateY(0) scale(0) rotate(0deg); 
        opacity: 1; 
    }
    33% { 
        transform: translateY(-15px) scale(1.3) rotate(120deg); 
        opacity: 1; 
    }
    66% { 
        transform: translateY(-25px) scale(0.8) rotate(240deg); 
        opacity: 0.7; 
    }
    100% { 
        transform: translateY(-40px) scale(0) rotate(360deg); 
        opacity: 0; 
    }
}

/* 原创联系效果 */
@keyframes uniqueContact {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(0deg); 
        opacity: 1; 
    }
    40% { 
        transform: translate(-50%, -50%) scale(1.8) rotate(144deg); 
        opacity: 1; 
    }
    70% { 
        transform: translate(-50%, -50%) scale(1.2) rotate(252deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(0) rotate(360deg); 
        opacity: 0; 
    }
}

/* 原创服务效果 */
@keyframes uniqueService {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(0deg) skewX(0deg); 
        opacity: 1; 
    }
    30% { 
        transform: translate(-50%, -50%) scale(2) rotate(108deg) skewX(15deg); 
        opacity: 1; 
    }
    60% { 
        transform: translate(-50%, -50%) scale(1.5) rotate(216deg) skewX(-10deg); 
        opacity: 0.7; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(0) rotate(360deg) skewX(0deg); 
        opacity: 0; 
    }
}

/* 原创链接效果 */
@keyframes uniqueLink {
    0% { 
        transform: translateY(-50%) scale(0) rotate(0deg); 
        opacity: 1; 
    }
    40% { 
        transform: translateY(-50%) translateX(15px) scale(1.5) rotate(144deg); 
        opacity: 1; 
    }
    70% { 
        transform: translateY(-50%) translateX(25px) scale(1) rotate(252deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(-50%) translateX(40px) scale(1.3) rotate(360deg); 
        opacity: 0; 
    }
}

/* 原创特殊过渡效果 */
.morphic-transition {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* 原创背景渐变动画 */
@keyframes backgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-shift {
    background: linear-gradient(270deg, #0ea5e9, #22c55e, #f59e0b, #8b5cf6);
    background-size: 400% 400%;
    animation: backgroundShift 8s ease infinite;
}

/* 原创3D卡片效果 */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg) translateZ(20px);
}

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