/* 特效样式 */
/* 粒子背景 */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* 云动画 */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(20px);
    animation: cloud-drift 60s infinite linear;
}

.cloud:nth-child(1) {
    width: 300px;
    height: 100px;
    top: 10%;
    left: -300px;
    animation-delay: 0s;
}

.cloud:nth-child(2) {
    width: 200px;
    height: 70px;
    top: 30%;
    left: -200px;
    animation-delay: 10s;
}

.cloud:nth-child(3) {
    width: 250px;
    height: 80px;
    top: 60%;
    left: -250px;
    animation-delay: 20s;
}

@keyframes cloud-drift {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 500px));
    }
}

/* 剑光特效 */
.sword-light {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #d4af37, transparent);
    filter: blur(1px);
    opacity: 0;
    animation: sword-slash 0.5s ease-out;
}

@keyframes sword-slash {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(45deg);
        opacity: 0;
    }
}

/* 脉冲动画 */
.pulse {
    display: inline-block;
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* 水墨晕染效果 */
.ink-blot {
    position: absolute;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.1;
    z-index: -1;
}

/* 标题下划线动画 */
.underline-animation {
    position: relative;
    display: inline-block;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* 滚动显示动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3D翻转卡片 */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front {
    background: rgba(30, 25, 20, 0.85);
    border: 2px solid #4a3a2a;
}

.flip-card-back {
    background: rgba(58, 44, 26, 0.95);
    transform: rotateY(180deg);
    border: 2px solid #d4af37;
}

/* 流光文字 */
.shimmer-text {
    background: linear-gradient(90deg, #d4af37, #ffed9e, #d4af37);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}