/* 新年主题样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&display=swap');

/* 新年配色方案 */
:root {
    --newyear-red: #DC143C;
    --newyear-gold: #FFD700;
    --newyear-dark-red: #B22222;
    --newyear-light-red: #FF6B6B;
    --newyear-bg-red: #FFF5F5;
    --newyear-border-gold: #FFA500;
    --newyear-text-dark: #8B0000;
    --newyear-shadow: rgba(220, 20, 60, 0.3);
}

/* 基础字体设置 */
.newyear-font {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

/* 新年头部装饰 */
.newyear-header-decoration {
    background: linear-gradient(45deg, var(--newyear-red), var(--newyear-dark-red));
    position: relative;
    overflow: hidden;
}

.newyear-header-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--newyear-gold) 2px, transparent 2px),
        radial-gradient(circle at 40% 20%, var(--newyear-gold) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, var(--newyear-gold) 1.5px, transparent 1.5px);
    background-size: 50px 50px, 30px 30px, 40px 40px;
    opacity: 0.3;
    animation: sparkle 3s linear infinite;
}

/* 闪烁动画 */
@keyframes sparkle {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20px) rotate(360deg); opacity: 0.3; }
}

/* 新年按钮样式 */
.newyear-btn {
    background: linear-gradient(135deg, var(--newyear-red), var(--newyear-dark-red));
    color: white;
    border: 2px solid var(--newyear-gold);
    box-shadow: 0 4px 15px var(--newyear-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newyear-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.newyear-btn:hover::before {
    animation: shine 1.5s ease-in-out;
}

.newyear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--newyear-shadow);
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

/* 新年卡片样式 */
.newyear-card {
    background: linear-gradient(135deg, #ffffff, #fff8f0);
    border: 2px solid var(--newyear-border-gold);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
    position: relative;
    overflow: hidden;
}

.newyear-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--newyear-gold), var(--newyear-red), var(--newyear-gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newyear-card:hover::before {
    opacity: 0.7;
}

/* 新年文字效果 */
.newyear-text {
    background: linear-gradient(135deg, var(--newyear-red), var(--newyear-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.newyear-text-shadow {
    text-shadow: 2px 2px 4px var(--newyear-shadow);
}

/* 新年背景 */
.newyear-bg {
    background: linear-gradient(135deg, var(--newyear-bg-red), #ffffff);
    position: relative;
}

.newyear-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23DC143C' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='10' r='1'/%3E%3Ccircle cx='10' cy='50' r='1'/%3E%3Ccircle cx='50' cy='50' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* 雪花动画 */
.snowflake {
    position: fixed;
    top: -10px;
    color: var(--newyear-gold);
    font-size: 1em;
    animation: fall linear infinite;
    z-index: 1000;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 新年导航样式 */
.newyear-nav {
    background: linear-gradient(135deg, var(--newyear-red), var(--newyear-dark-red));
    box-shadow: 0 4px 20px var(--newyear-shadow);
}

.newyear-nav a {
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
}

.newyear-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--newyear-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.newyear-nav a:hover::after {
    width: 100%;
}

/* 新年英雄区域 */
.newyear-hero {
    background: linear-gradient(135deg, var(--newyear-bg-red), #ffffff);
    position: relative;
    overflow: hidden;
}

.newyear-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--newyear-gold) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--newyear-red) 1px, transparent 1px);
    background-size: 100px 100px, 80px 80px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(90deg); }
    50% { transform: translate(-5px, 10px) rotate(180deg); }
    75% { transform: translate(-10px, -5px) rotate(270deg); }
}

/* 新年标题动画 */
.newyear-title {
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 新年响应式调整 */
@media (max-width: 768px) {
    .newyear-card {
        margin: 0 10px;
    }
    
    .snowflake {
        font-size: 0.8em;
    }
}

/* 新年表单项 */
.newyear-input {
    border: 2px solid var(--newyear-border-gold);
    background: #ffffff;
    transition: all 0.3s ease;
}

.newyear-input:focus {
    border-color: var(--newyear-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
    outline: none;
}

/* 新年徽章 */
.newyear-badge {
    background: linear-gradient(135deg, var(--newyear-gold), #FFA500);
    color: var(--newyear-text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* 新年进度条 */
.newyear-progress {
    background: linear-gradient(90deg, var(--newyear-red), var(--newyear-gold));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.newyear-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}