/* 全局样式 */
body {
    background-color: rgba(255, 209, 220, 0.74); /* 柔和粉色背景 */
    color: #333; /* 文字深灰色 */
    font-family: Arial, sans-serif;
    text-align: center;
}

/* 图片通用样式 */
img {
    width: 350px; /* 主播图片更大一点 */
    max-width: 100%;
    height: auto;
}

/* 让内容不显示时隐藏 */
.d-none {
    display: none;
}

/* 霓虹灯发光效果 */
#startImage {
    animation: neonGlowYellow 1.5s infinite alternate;
    filter: drop-shadow(0 0 10px #ffff33) drop-shadow(0 0 20px #ffff33);
}

/* 霓虹灯动画 */
@keyframes neonGlowYellow {
    0% {
        filter: drop-shadow(0 0 5px #ffff33) drop-shadow(0 0 10px #ffff33);
    }
    50% {
        filter: drop-shadow(0 0 15px #ffcc00) drop-shadow(0 0 25px #ffcc00);
    }
    100% {
        filter: drop-shadow(0 0 10px #ffea00) drop-shadow(0 0 20px #ffea00);
    }
}

/* 介绍页面布局 */
#introPage {
    display: flex;
    flex-direction: column; /* 让内容垂直排列 */
    align-items: center; /* 让所有元素居中 */
    justify-content: center; /* 确保内容不会靠边 */
    text-align: center;
}

/* 介绍框 + 玫瑰边框 */
#introBox {
    background-image: url('img/rose_frame.png'); /* 玫瑰边框 */
    background-size: cover; /* 让玫瑰边框填充整个区域 */
    background-position: center;
    background-repeat: no-repeat;

    background-color: transparent; /* 透明背景，避免黑色背景 */
    padding: 40px;
    border-radius: 20px; /* 让边角更柔和 */
    color: #8B0000; /* 深红色文字 */
    font-size: 1.5rem;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

/* 文字高亮 */
.highlight {
    color: #FFD700;
    text-shadow: 2px 2px 5px rgba(255, 215, 0, 0.8);
}

/* 重点强调 */
.emphasize {
    color: #FF69B4;
    font-style: italic;
}

/* 结尾强调 */
.strong {
    color: #FF4500;
    font-weight: bold;
}

/* 让按钮更明显 */
#startQuizBtn {
    font-size: 1.3rem;
    padding: 10px 30px;
}

/* 让文字块不会太宽，避免溢出 */
#typingText {
    font-size: 1.5rem;
    line-height: 1.8;
    text-align: center;
    font-weight: bold;
    color: #fff3cd;
    text-shadow: 2px 2px 10px rgba(255, 215, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    max-width: 80%;
    margin: 20px auto;
}
/* 让 introBox 有玫瑰边框 */
#introBox {
    background-image: url('../img/rose_frame.png');
    background-size: 100% 100%; /* 让背景填充整个区域 */
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px; /* 适当增加内边距，确保文字不紧贴边框 */
    border-radius: 20px;
    color: #8B0000;
    font-size: 1.5rem;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}
#startImage {
    animation: floatUpDown 3s infinite alternate ease-in-out, neonGlow 1.5s infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

#startImage:hover {
    transform: scale(1.1); /* 鼠标悬停时放大 */
}

/* 让图片浮动 */
@keyframes floatUpDown {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(10px); }
}

/* 霓虹灯闪烁 */
@keyframes neonGlow {
    0% { filter: drop-shadow(0 0 5px #ea9ae9); }
    50% { filter: drop-shadow(0 0 15px #c1a4c7); }
    100% { filter: drop-shadow(0 0 5px #cca6ea); }
}

body {
    overflow-y: auto !important;  /* 允许滚动 */
    height: auto !important; /* 允许页面扩展 */
    min-height: 100vh; /* 确保有足够高度 */
}

#introPage {
    min-height: 150vh; /* 让介绍页至少占 150% 视口高度 */
    padding-bottom: 200px; /* 给底部留出空间，避免波浪遮挡 */
}

.waves {
    position: fixed; /* ✅ 固定背景 */
    bottom: 0;
    width: 100%;
    height: 150px;
    z-index: -1; /* 让它在所有内容的底层 */
    pointer-events: none; /* 避免波浪拦截鼠标事件 */
}

html {
    overflow-y: auto;
    height: auto;
}

#introGif {
    width: 450px; /* 调整为适合大小 */
    height: auto; /* 保持图片比例 */
    display: block;
    margin: 0 auto; /* 让图片居中 */
}
