/* ================================
   马年春节主题样式 - 可以随时注释掉恢复原样
   ================================ */

body {
    background: linear-gradient(135deg, #2c0404 0%, #5c1a1a 100%);
    color: #f5f5f5;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 0, 0, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

/* 马年祝福语 */
body::after {
    content: "🐴 马年大吉 龙马精神 🐴";
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #daa520;
    background: rgba(44, 4, 4, 0.8);
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid #daa520;
    z-index: 9999;
    font-weight: bold;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
}

/* ========== 改进版中国红灯笼样式 ========== */
.lanterns-container {
    position: fixed;
    top: 120px; /* 在tab栏下方 */
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 9997;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 单个灯笼 */
.lantern {
    width: 70px;
    height: 90px;
    position: relative;
    animation: lanternFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--lantern-index) * 0.5s);
}

/* 灯笼主体 */
.lantern-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ff0000, #cc0000);
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 -15px 20px rgba(0, 0, 0, 0.2),
        inset 0 15px 20px rgba(255, 255, 255, 0.1);
    border: 2px solid #8b0000;
}

/* 灯笼顶部和底部的金色装饰 */
.lantern-body::before,
.lantern-body::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #daa520, #ffd700, #daa520);
    border-radius: 5px;
    z-index: 2;
}

.lantern-body::before {
    top: -8px;
    width: 40px;
    height: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lantern-body::after {
    bottom: -8px;
    width: 35px;
    height: 10px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* 灯笼提手 */
.lantern-handle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 20px;
    background: linear-gradient(to bottom, #8b4513, #daa520);
    border-radius: 3px 3px 0 0;
}

/* 灯笼流苏 */
.lantern-tassel {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, #ffd700, #8b4513, #654321);
    border-radius: 0 0 2px 2px;
}

.lantern-tassel::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    background: linear-gradient(to bottom, #ffd700, #daa520);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 灯笼内部光效 */
.lantern-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(255, 200, 0, 0.4), transparent 70%);
    border-radius: 40%;
    filter: blur(5px);
    animation: lanternGlow 2s ease-in-out infinite alternate;
}

/* 灯笼漂浮动画 */
@keyframes lanternFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* 灯笼发光动画 */
@keyframes lanternGlow {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========== 双马从右向左奔腾效果 ========== */
.running-horses {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.horse {
    position: absolute;
    font-size: 40px;
    animation: horseRun 20s linear infinite;
    animation-delay: calc(var(--horse-index) * -10s);
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    bottom: 0;
}

/* 第一匹马 - 棕色马 */
.horse:nth-child(1) {
    --horse-index: 0;
    font-size: 50px;
    color: #8B4513; /* 棕色 */
    text-shadow: 
        0 0 5px #FFD700,
        0 0 10px #8B4513;
}

/* 第二匹马 - 金色马 */
.horse:nth-child(2) {
    --horse-index: 1;
    font-size: 45px;
    color: #FFD700; /* 金色 */
    text-shadow: 
        0 0 5px #FF4500,
        0 0 10px #FFD700;
}

/* 第三匹马 - 白色马 */
.horse:nth-child(3) {
    --horse-index: 2;
    font-size: 48px;
    color: #F8F8FF; /* 白色 */
    text-shadow: 
        0 0 5px #1E90FF,
        0 0 10px #F8F8FF;
}

/* 马奔跑动画 - 从右向左 */
@keyframes horseRun {
    0% {
        transform: translateX(calc(100vw + 100px)) scale(1.2);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateX(-150px) scale(0.8);
        opacity: 0;
    }
}

/* 马蹄特效 */
.horse::after {
    content: "";
    position: absolute;
    bottom: 5px;
    right: 15px;
    width: 20px;
    height: 8px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    filter: blur(3px);
    animation: horseDust 0.6s linear infinite;
}

@keyframes horseDust {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* 奔跑路径效果 */
.horse-track {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.3), transparent);
    z-index: -1;
}

/* 路径上的小草 */
.horse-track::before,
.horse-track::after {
    content: "🌱";
    position: absolute;
    bottom: 5px;
    font-size: 16px;
    opacity: 0.6;
}

.horse-track::before {
    left: 20%;
}

.horse-track::after {
    right: 20%;
}

/* ========== 烟花效果 ========== */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #daa520;
    box-shadow: 0 0 10px #ffd700;
    animation: fireworkLaunch 3s ease-out forwards;
}

@keyframes fireworkLaunch {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(var(--end-y)) translateX(var(--end-x)) scale(0);
        opacity: 0;
    }
}

.firework::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    box-shadow: 
        0 0 10px 2px #ff4500,
        0 0 20px 4px #ffd700,
        0 0 30px 6px #ff6347;
    animation: fireworkExplode 0.8s ease-out 0.8s forwards;
}

@keyframes fireworkExplode {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* ========== 界面元素样式 ========== */
.tab-btn {
    background: linear-gradient(to bottom, #5c1a1a, #2c0404);
    color: #daa520;
    border: 1px solid #8b4513;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.tab-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.2), transparent);
    transition: left 0.5s;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    background: linear-gradient(to bottom, #daa520, #8b4513);
    color: #2c0404;
    border-color: #daa520;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.5);
}

.main-site-link {
    background: linear-gradient(to bottom, #5c1a1a, #2c0404);
    color: #daa520;
    border: 1px solid #8b4513;
    transition: all 0.3s;
}

.main-site-link:hover {
    background: linear-gradient(to bottom, #8b4513, #5c1a1a);
    color: #ffd700;
    border-color: #daa520;
    transform: translateY(-2px);
}



.card {
    background: linear-gradient(135deg, #2c0404 0%, #5c1a1a 100%);
    border: 1px solid #8b4513;
    color: #f5f5f5;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(218, 165, 32, 0.3);
}



.card .code {
    font-weight: bold;
}

.card .timer {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.card .details {
    color: #d3d3d3;
}

.category-box {
    background: rgba(44, 4, 4, 0.8);
    border: 1px solid #8b4513;
}

.category-header {
    background: rgba(139, 0, 0, 0.3);
    border-bottom: 1px solid #8b4513;
}

.category-title {
    color: #daa520;
}

.arrow {
    border-top-color: #daa520;
}

.resources-box {
    background: rgba(44, 4, 4, 0.8);
    border: 1px solid #8b4513;
    color: #f5f5f5;
}

.resources-title {
    color: #daa520;
    border-bottom: 1px solid #8b4513;
}

.resources-item {
    background: rgba(139, 0, 0, 0.2);
    border-left: 3px solid #daa520;
}

.resources-item:hover {
    background: rgba(218, 165, 32, 0.2);
    border-left-color: #ff4500;
}

.resource-link {
    color: #ffd700;
}

.website {
    background: rgba(218, 165, 32, 0.2);
    border: 1px solid #daa520;
    color: #daa520 !important;
}

.website:hover {
    background: rgba(218, 165, 32, 0.4);
    color: #ffd700 !important;
}

.sun-icon {
    color: #ffa500;
}

.moon-icon {
    color: #87ceeb;
}

footer {
    background: rgba(44, 4, 4, 0.9);
    border-top: 2px solid #8b4513;
    color: #daa520;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

footer a {
    color: #daa520 !important;
}

footer a:hover {
    color: #ffd700 !important;
    text-decoration: underline;
}

/* 春节主题启用提示 */
.theme-notice {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: rgba(44, 4, 4, 0.9);
    border: 1px solid #daa520;
    color: #daa520;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 0.3s;
}

.theme-notice:hover {
    opacity: 0.7;
}

/* 春节元素装饰 */
.chinese-character {
    position: fixed;
    font-family: "SimSun", "STKaiti", "KaiTi", serif;
    font-size: 60px;
    color: rgba(218, 165, 32, 0.2);
    pointer-events: none;
    z-index: 9995;
}

.chinese-character:nth-child(1) {
    top: 200px;
    left: 5%;
    transform: rotate(15deg);
}

.chinese-character:nth-child(2) {
    top: 300px;
    right: 8%;
    transform: rotate(-10deg);
}

.chinese-character:nth-child(3) {
    bottom: 150px;
    left: 12%;
    transform: rotate(5deg);
}



/* ================================
   马年春节主题样式结束
   ================================ */
