/* 春节主题样式 - 中国风 */

/* 飘落灯笼动画 */
.lantern {
    position: fixed;
    top: -50px;
    z-index: 9999;
    font-size: 2em;
    animation: lanternFall linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
}

@keyframes lanternFall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 烟花粒子效果 */
.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
}

/* 春节装饰灯笼 */
.spring-festival-ornament {
    position: absolute;
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #ff0000 100%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.6), inset -3px -3px 8px rgba(0,0,0,0.3);
    animation: swing 4s ease-in-out infinite;
}

.spring-festival-ornament::before {
    content: '福';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.spring-festival-ornament::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
}

@keyframes swing {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
}

/* 春节主题导航栏 */
.colorlib-nav {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%) !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    border-bottom: 3px solid #FFD700;
}

.colorlib-nav .top-menu {
    background: transparent !important;
}

.colorlib-nav a {
    color: #FFD700 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    font-weight: 500;
}

.colorlib-nav a:hover {
    color: #FFF !important;
    text-shadow: 0 0 15px #FFD700, 0 0 25px #FFD700;
    transform: scale(1.05);
}

#colorlib-logo a {
    font-weight: 700;
    font-size: 22px !important;
    background: linear-gradient(45deg, #FFD700, #FFF, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: inline-block;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero区域春节风格 */
.video-hero {
    background: linear-gradient(135deg, #1a0000 0%, #8B0000 50%, #DC143C 100%) !important;
    position: relative;
    overflow: hidden;
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    animation: festiveGlow 5s ease-in-out infinite;
}

@keyframes festiveGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.video-hero .overlay {
    background: linear-gradient(
        to bottom,
        rgba(139, 0, 0, 0.4) 0%,
        rgba(220, 20, 60, 0.6) 100%
    ) !important;
}

.video-hero h2 {
    color: #FFD700 !important;
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8), 
        0 0 40px rgba(255, 0, 0, 0.6),
        0 2px 8px rgba(0,0,0,0.8);
    font-weight: 800;
    letter-spacing: 3px;
}

.video-hero p {
    color: #FFF !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 2px 6px rgba(0,0,0,0.6);
    font-size: 20px;
    font-weight: 600;
}

/* 春节按钮样式 */
.btn-custom {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 50%, #ff0000 100%) !important;
    border: 3px solid #FFD700 !important;
    color: #FFD700 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    box-shadow: 
        0 5px 25px rgba(255, 0, 0, 0.5), 
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 10px 35px rgba(255, 0, 0, 0.7), 
        0 0 50px rgba(255, 215, 0, 0.6);
    color: #FFF !important;
}

/* 服务卡片春节风格 */
.colorlib-services {
    background: linear-gradient(to bottom, #FFF5E6 0%, #FFE4B5 100%) !important;
}

.services {
    background: linear-gradient(135deg, #FFF 0%, #FFF8DC 100%);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(255, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 3px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.services:hover::before {
    opacity: 1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.services:hover {
    transform: translateY(-15px);
    border-color: #ff0000;
    box-shadow: 
        0 20px 50px rgba(255, 0, 0, 0.3), 
        0 0 40px rgba(255, 215, 0, 0.4);
}

.services .icon {
    display: inline-block;
    width: 90px;
    height: 90px;
    line-height: 90px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #FFD700;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    transition: all 0.4s ease;
    border: 3px solid #FFD700;
}

.services:hover .icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}

.services h3 {
    color: #8B0000;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.services p {
    color: #333;
}

/* 页脚春节风格 */
#colorlib-footer {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    color: #FFD700;
    position: relative;
}

#colorlib-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #ff0000, #FFD700, #ff0000, #FFD700);
    background-size: 200% 100%;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

#colorlib-footer h4 {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

#colorlib-footer a {
    color: #FFD700 !important;
    transition: all 0.3s ease;
}

#colorlib-footer a:hover {
    color: #FFF !important;
    text-shadow: 0 0 15px #FFD700;
}

#colorlib-footer p {
    color: #FFF;
}

#colorlib-footer .admin {
    color: #FFE4B5;
}

/* 轮播图增强效果 */
.colorlib-featured {
    background: linear-gradient(to bottom, #FFF 0%, #FFF5E6 100%);
    padding: 50px 0;
}

.featured-entry img {
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(255, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 4px solid #FFD700;
}

.featured-entry:hover img {
    transform: scale(1.08);
    box-shadow: 0 25px 60px rgba(255, 0, 0, 0.35);
}

/* 加载动画春节风格 */
.colorlib-loader {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%) !important;
}

.colorlib-loader::after {
    border: 4px solid rgba(255, 215, 0, 0.3) !important;
    border-top-color: #FFD700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* 返回顶部按钮 */
.gototop {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
    border: 3px solid #FFD700;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.gototop:hover {
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%) !important;
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
}

/* 金元宝效果 */
.gold-ingot {
    position: fixed;
    font-size: 24px;
    z-index: 9997;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 对联装饰 */
.couplet {
    position: fixed;
    writing-mode: vertical-rl;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #FFD700;
    padding: 30px 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
    border: 3px solid #FFD700;
    z-index: 9996;
    letter-spacing: 8px;
}

.couplet-left {
    top: 100px;
    left: 20px;
}

.couplet-right {
    top: 100px;
    right: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .spring-festival-ornament {
        width: 35px;
        height: 42px;
    }
    
    .spring-festival-ornament::before {
        font-size: 16px;
    }
    
    .btn-custom {
        padding: 12px 30px !important;
        font-size: 14px;
    }
    
    .couplet {
        display: none;
    }
}

/* 中国风纹样背景 */
.chinese-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255, 215, 0, 0.02) 100px, rgba(255, 215, 0, 0.02) 200px);
    pointer-events: none;
    z-index: -1;
}
