/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入外部字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;700&display=swap');

/* 色彩变量定义 */
:root {
    /* 主色调 */
    --primary-red: #E60012;
    --primary-gold: #D4AF37;
    
    /* 辅助色 */
    --secondary-blue: #0A2463;
    --secondary-white: #FFFFFF;
    
    /* 点缀色 */
    --accent-pink: #FFB6C1;
    --accent-light-gold: #F0E68C;
    
    /* 中性色 */
    --neutral-gray: #333333;
    --neutral-light-gray: #666666;
    
    /* 阴影和高光 */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.3);
    --highlight: rgba(255, 255, 255, 0.8);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--primary-gold));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-blue), var(--primary-gold));
    --gradient-accent: linear-gradient(135deg, var(--accent-pink), var(--accent-light-gold));
    --gradient-gold: linear-gradient(135deg, var(--primary-gold), var(--accent-light-gold));
    
    /* 烫金效果 */
    --gold-shine: linear-gradient(135deg, #D4AF37, #F0E68C, #D4AF37);
}

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    background: var(--secondary-white);
    color: var(--neutral-gray);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(230, 0, 18, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(10, 36, 99, 0.05) 0%, transparent 30%);
}

/* 容器样式 */
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* 幻灯片样式 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.98) translateY(20px);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 10;
    animation: slideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面切换动画 */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 节目页面样式 */
.program-slide {
    background-image: url('5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 首页（封面页）背景 */
#cover {
    background-image: url('1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* 偶数节目页面使用4.png背景 */
#program2, #program4, #program6, #group2 {
    background-image: url('4.png');
}

/* 奇数节目页面使用5.png背景 */
#program1, #program3, #group1, #ending {
    background-image: url('5.png');
}

/* 抽奖链接样式 */
.lottery-link {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Noto Sans SC', sans-serif;
}

/* 抽奖链接悬停效果 */
.lottery-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(230, 0, 18, 0.5);
    background: var(--gradient-secondary);
    letter-spacing: 3px;
}

/* 抽奖链接点击效果 */
.lottery-link:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

/* 内容样式 */
.content {
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 
        0 8px 32px var(--shadow-medium),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset,
        0 1px 0 var(--highlight) inset;
    max-width: 850px;
    width: 90%;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 内容悬停效果 */
.content:hover {
    box-shadow: 
        0 12px 40px var(--shadow-heavy),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 2px 0 var(--highlight) inset;
    transform: translateY(-4px);
    border-color: var(--primary-gold);
}

/* 节目页面内容特殊样式 */
.program-slide .content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 230, 140, 0.1));
    border: 3px solid var(--primary-gold);
}

/* 装饰性元素 */
.content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.content::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 0, 18, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: float 8s ease-in-out infinite reverse;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 标题样式 */
.title {
    font-size: 3.8rem;
    font-weight: 700;
    font-family: 'Noto Serif SC', 'SimHei', serif;
    background: var(--gold-shine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-shadow: 
        0 2px 4px var(--shadow-light),
        0 0 10px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.title:hover {
    text-shadow: 
        0 4px 8px var(--shadow-medium),
        0 0 20px rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
}

.subtitle {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: 600;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    text-shadow: 0 2px 4px var(--shadow-light);
    transition: all 0.3s ease;
}

.subtitle:hover {
    text-shadow: 0 4px 8px var(--shadow-medium);
    transform: translateY(-2px);
}

.location {
    font-size: 1.6rem;
    color: var(--secondary-blue);
    font-weight: 500;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.location:hover {
    text-shadow: 0 2px 4px var(--shadow-medium);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.8rem;
    font-family: 'Noto Serif SC', 'SimHei', serif;
    background: var(--gold-shine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 35px;
    text-shadow: 
        0 2px 4px var(--shadow-light),
        0 0 10px rgba(212, 175, 55, 0.3);
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.section-title:hover {
    text-shadow: 
        0 4px 8px var(--shadow-medium),
        0 0 20px rgba(212, 175, 55, 0.5);
    transform: scale(1.02);
}

/* 节目页面标题样式 */
.program-title {
    font-size: 3.2rem;
    font-family: 'Noto Serif SC', 'SimHei', serif;
    background: var(--gold-shine);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    text-shadow: 
        0 2px 4px var(--shadow-light),
        0 0 15px rgba(212, 175, 55, 0.4);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.program-title:hover {
    text-shadow: 
        0 4px 8px var(--shadow-medium),
        0 0 25px rgba(212, 175, 55, 0.6);
    transform: scale(1.03);
}

.program-name {
    font-size: 2.6rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Noto Serif SC', 'SimHei', serif;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    text-shadow: 0 2px 4px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.program-name:hover {
    text-shadow: 0 4px 8px var(--shadow-medium);
    transform: translateY(-3px);
    color: var(--primary-gold);
}

.program-actors {
    font-size: 1.9rem;
    color: var(--secondary-blue);
    font-weight: 500;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.program-actors:hover {
    text-shadow: 0 2px 4px var(--shadow-medium);
    transform: translateY(-2px);
}

/* 控制按钮样式 */
.controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 25px var(--shadow-medium),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.controls:hover {
    box-shadow: 
        0 12px 35px var(--shadow-heavy),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    border-color: var(--primary-gold);
}

.control-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-medium);
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans SC', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 按钮悬停效果 */
.control-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-heavy);
    background: var(--gradient-secondary);
    letter-spacing: 1px;
}

/* 按钮点击效果 */
.control-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.control-btn:disabled {
    background: var(--neutral-light-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* 页码指示器 */
.page-indicator {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'DIN Alternate', sans-serif;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
}

/* 页码指示器悬停效果 */
.page-indicator:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

/* 页码指示器金色边框 */
.page-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-indicator:hover::before {
    opacity: 1;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1.6rem;
    }
    
    .location {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .content {
        padding: 35px 25px;
    }
    
    .program-title {
        font-size: 2.4rem;
    }
    
    .program-name {
        font-size: 2rem;
    }
    
    .program-actors {
        font-size: 1.5rem;
    }
    
    .control-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .page-indicator {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 25px;
        width: 90%;
    }
    
    .control-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .program-title {
        font-size: 2rem;
    }
    
    .program-name {
        font-size: 1.8rem;
    }
    
    .program-actors {
        font-size: 1.3rem;
    }
}

/* 装饰性雪花效果 */
@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 页面装饰元素 */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(230, 0, 18, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 40% 80%, rgba(10, 36, 99, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 60% 20%, rgba(255, 182, 193, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

/* 添加一些节日氛围的动态元素 */
@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 为内容添加一些微妙的闪烁效果 */
.content .program-title::after,
.content .title::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -30px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
    opacity: 0.7;
}

.content .program-title::before,
.content .title::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -30px;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite reverse;
    opacity: 0.7;
}