/* 标题基础样式 */
.category-title {
    text-align: center;
    margin: 0 0 40px;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.category-title h3 {
    font-size: 36px;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0 60px;
    font-family: "FangSong", "STFangsong", serif;
    letter-spacing: 5px;
    /* 古风渐变色 */
    background: linear-gradient(120deg, #8B4513, #DAA520, #CD853F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.3);
}

/* 水墨效果动画 */
.category-title h3.fade-enter {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    filter: blur(10px);
}

.category-title h3.fade-enter-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
    animation: inkSpread 0.8s cubic-bezier(0.4, 0, 0.2, 1),
             digitalGlow 2s ease-in-out infinite;
}

@keyframes inkSpread {
    0% {
        transform: translateX(-50px) scale(0.95);
        opacity: 0;
        filter: blur(10px);
        letter-spacing: 10px;
    }
    50% {
        filter: blur(5px);
        letter-spacing: 8px;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: blur(0);
        letter-spacing: 5px;
    }
}

/* 装饰线条 - 仿古书卷轴 */
.category-title h3::before,
.category-title h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #8B4513, transparent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.category-title h3::before {
    left: 0;
    transform: translateY(-50%) translateX(-10px) rotate(-5deg);
}

.category-title h3::after {
    right: 0;
    transform: translateY(-50%) translateX(10px) rotate(5deg);
}

/* 激活时的装饰效果 */
.category-title h3.fade-enter-active::before {
    transform: translateY(-50%) translateX(0) rotate(0);
    width: 50px;
    opacity: 1;
}

.category-title h3.fade-enter-active::after {
    transform: translateY(-50%) translateX(0) rotate(0);
    width: 50px;
    opacity: 1;
}

/* 数字科技感光效 */
@keyframes digitalGlow {
    0%, 100% {
        text-shadow: 
            0 0 2px rgba(139, 69, 19, 0.5),
            0 0 4px rgba(139, 69, 19, 0.3),
            0 0 6px rgba(218, 165, 32, 0.3),
            0 0 8px rgba(205, 133, 63, 0.3),
            0 0 2px #8B4513,
            0 0 10px rgba(139, 69, 19, 0.3);
    }
    50% {
        text-shadow: 
            0 0 4px rgba(139, 69, 19, 0.6),
            0 0 8px rgba(139, 69, 19, 0.4),
            0 0 12px rgba(218, 165, 32, 0.4),
            0 0 16px rgba(205, 133, 63, 0.4),
            0 0 4px #8B4513,
            0 0 20px rgba(139, 69, 19, 0.4);
    }
}

/* 添加水墨晕染效果 */
.category-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 2px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.2), transparent);
    transform: translate(-50%, -50%);
    animation: inkBlot 1.5s ease-out forwards;
}

@keyframes inkBlot {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        width: 80%;
        opacity: 0.5;
    }
    100% {
        width: 100%;
        opacity: 0.2;
    }
} 