* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a0a3a 50%, #0a0a2a 100%);
    color: #fff;
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    /* 添加喜庆的背景装饰 */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 51, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.15) 0%, transparent 50%);
    background-size: 100% 100%;
    animation: backgroundMove 15s ease-in-out infinite;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto;
}

/* 背景动画 */
@keyframes backgroundMove {
    0%, 100% {
        background-position: 20% 30%, 80% 70%;
    }
    50% {
        background-position: 80% 70%, 20% 30%;
    }
}

/* 灯笼样式 */
.lantern {
    position: fixed;
    width: 60px;
    height: 80px;
    background: linear-gradient(180deg, #ff3366, #cc0033);
    border-radius: 50% 50% 30% 30%;
    z-index: 10;
    pointer-events: none;
    animation: lanternSwing 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

/* 灯笼顶部装饰 */
.lantern::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: linear-gradient(90deg, #ffcc00, #ff9933);
    border-radius: 5px;
}

/* 灯笼底部装饰 */
.lantern::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 15px;
    background: #ffcc00;
    border-radius: 0 0 5px 5px;
}

/* 灯笼文字或图案 */
.lantern .lantern-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

/* 灯笼摇摆动画 */
@keyframes lanternSwing {
    0%, 100% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

/* 鞭炮样式 */
.firecracker {
    position: fixed;
    width: 10px;
    height: 20px;
    background: linear-gradient(180deg, #cc0033, #990000);
    z-index: 10;
    pointer-events: none;
    animation: firecrackerPop 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
}

/* 鞭炮爆炸效果 */
@keyframes firecrackerPop {
    0%, 90%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    95% {
        opacity: 0.3;
        transform: scale(1.5);
        box-shadow: 0 0 30px rgba(255, 51, 102, 0.8);
    }
}

/* 烟花样式 */
.firework {
    position: fixed;
    width: 5px;
    height: 5px;
    background: #ffcc00;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    animation: fireworkExplode 2s ease-out infinite;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

/* 烟花爆炸动画 */
@keyframes fireworkExplode {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(-50px);
    }
    100% {
        opacity: 0;
        transform: scale(3) translateY(-100px);
        box-shadow: 0 0 40px rgba(255, 204, 0, 0);
    }
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
}

/* 头部区域 */
header {
    text-align: center;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
}

.title {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff3366, #ffcc00, #33ccff, #ff3366, #ff9933);
    background-size: 500% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientMove 6s linear infinite;
    text-shadow: 
        0 0 10px rgba(255, 51, 102, 0.5),
        0 0 20px rgba(255, 204, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

/* 标题装饰 */
.title::before,
.title::after {
    content: '✨';
    animation: twinkle 2s infinite;
    margin: 0 10px;
    font-size: 2.5rem;
    vertical-align: middle;
}

.title::before {
    animation-delay: 0s;
}

.title::after {
    animation-delay: 1s;
}

.subtitle {
    font-size: 1.8rem;
    color: #ffcc00;
    margin-bottom: 20px;
    font-family: 'Ma Shan Zheng', cursive;
    text-shadow: 
        0 0 10px rgba(255, 204, 0, 0.5),
        0 2px 5px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 1px;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    padding: 0 10px;
    align-items: flex-start;
    overflow: visible;
    width: 100%;
}

/* 列容器样式 */
.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 300px;
    /* 确保每一列高度相同 */
    height: 800px;
    align-items: stretch;
    /* 确保列内卡片宽度相同 */
    align-content: stretch;
}

/* 调整列的宽度比例 - 确保每列宽度相同 */
.column:nth-child(1),
.column:nth-child(2),
.column:nth-child(3) {
    flex: 1;
    width: calc(33.333% - 13.333px);
    /* 确保每列的最小宽度相同 */
    min-width: 300px;
}

.card {
    /* 调整背景渐变，使其与页面背景更加协调 */
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.75), rgba(15, 10, 40, 0.9));
    border-radius: 25px;
    /* 增加内边距，确保内容不会被边框遮挡 */
    padding: 25px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5), 
        0 0 30px rgba(255, 100, 100, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid transparent;
    /* 调整边框渐变，使其与背景的喜庆元素颜色更加协调 */
    border-image: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(255, 204, 0, 0.2), rgba(51, 204, 255, 0.2)) 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 添加与背景相似的纹理，增强融合感 */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 51, 102, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.08) 0%, transparent 50%);
    background-size: 100% 100%;
    /* 确保列内卡片宽度相同 */
    width: 100%;
    box-sizing: border-box;
    /* 基础高度设置 */
    min-height: 300px;
    height: auto;
    flex: 1;
    /* 确保内容不会溢出卡片 */
    overflow: hidden;
}

/* 拉高元旦祝福卡片 */
.card.card-1 {
    /* 增加最小高度，确保所有预设祝福内容都能完整显示 */
    min-height: 750px;
    /* 确保卡片内容能够完全显示 */
    height: auto;
    flex: 1;
}

/* 卡片装饰光效 - 增强与背景的融合 */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* 调整光效颜色，使其与背景装饰更加协调 */
    background: radial-gradient(circle, rgba(255, 51, 102, 0.1) 0%, rgba(255, 204, 0, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* 卡片悬停效果 - 更加柔和自然 */
.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.6), 
        0 0 40px rgba(255, 51, 102, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    border-image: linear-gradient(135deg, rgba(255, 51, 102, 0.3), rgba(255, 204, 0, 0.3), rgba(51, 204, 255, 0.3)) 1;
    /* 悬停时增强背景纹理 */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 51, 102, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.12) 0%, transparent 50%);
}

.card:hover::before {
    opacity: 0.7;
}

/* 卡片内容层级 */
.card > * {
    position: relative;
    z-index: 2;
}

/* 倒计时卡片特殊样式 */
.card.card-2 {
    /* 设置固定高度，与成绩预测卡片保持一致 */
    height: 390px;
    min-height: 390px;
    flex: none;
}

/* 成绩预测卡片特殊样式 */
.card.card-3 {
    /* 设置固定高度，与倒计时卡片保持一致 */
    height: 390px;
    min-height: 390px;
    flex: none;
}

/* 名字分析卡片特殊样式 */
.card.card-4 {
    /* 名字分析卡片宽度占所在列的100%，与其他卡片保持一致 */
    width: 100%;
    margin: 0 auto;
    /* 名字分析占更多高度 */
    height: auto;
    min-height: 450px;
    max-height: none;
    /* 使用flex-grow分配高度 */
    flex: 7;
    align-self: stretch;
}

/* 彩蛋卡片特殊样式 */
.card.card-5 {
    /* 拉宽彩蛋卡片 */
    min-width: 350px;
    max-width: 100%;
    width: 100%;
    padding: 25px;
    /* 彩蛋占较少高度 */
    height: auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 确保卡片在列中正确排列 */
    align-self: stretch;
    /* 确保彩蛋卡片与其他卡片有相同的背景和边框样式 */
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.75), rgba(15, 10, 40, 0.9));
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 51, 102, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.08) 0%, transparent 50%);
    border-image: linear-gradient(135deg, rgba(255, 51, 102, 0.2), rgba(255, 204, 0, 0.2), rgba(51, 204, 255, 0.2)) 1;
    /* 使用flex-grow分配高度 */
    flex: 3;
}

.card.card-5 .card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card.card-5 .interactive-card {
    margin-top: 15px;
    width: 100%;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card.card-5 .message-btn {
    font-size: 0.6rem;
    padding: 2px 5px;
    margin: 5px 0;
    border-radius: 50px;
    /* 确保按钮能够被正确点击 */
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.card.card-5 .message-display {
    font-size: 1rem;
    min-height: 40px;
    max-height: 100px;
    padding: 5px;
    margin-top: 5px;
}

.card-title {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #ff3366;
    padding-bottom: 10px;
}

/* 倒计时区域 */
.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.countdown-item {
    /* 简化倒计时项样式，使其更清晰 */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px 10px;
    text-align: center;
    min-width: 70px;
    /* 添加微妙的阴影效果 */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2);
    /* 添加轻微的动画效果 */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 倒计时项悬停效果 */
.countdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 51, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 倒计时数字样式 */
.countdown-number {
    font-size: 1.5rem;
    font-weight: 900;
    /* 使用固定的高对比度颜色，使其更清晰 */
    color: #ffcc00;
    /* 增强文字阴影效果 */
    text-shadow: 
        0 0 15px rgba(255, 204, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    /* 确保数字不会超出容器 */
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

/* 倒计时标签样式 */
.countdown-label {
    font-size: 1rem;
    margin-top: 8px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

/* 倒计时项装饰光效 */
.countdown-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* 光效动画 */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 祝福语区域 */
.blessings {
    margin-top: 15px;
    flex: 1;
    /* 移除滚动条，让祝福内容完整显示 */
    overflow-y: visible;
    /* 移除最大高度限制，允许祝福语区域扩展 */
    max-height: none;
    min-height: 250px;
    /* 确保内容能够完整显示 */
    height: auto;
    /* 确保祝福语区域不会超出卡片边界 */
    width: 100%;
    box-sizing: border-box;
    /* 添加适当的内边距，确保内容不会靠近边缘 */
    padding: 0 5px;
    margin: 0;
}

.blessing-item {
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 5px solid #33ccff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* 确保内容不会超出卡片边界 */
    width: 100%;
    box-sizing: border-box;
    /* 确保文本不会溢出 */
    overflow-wrap: break-word;
    word-break: break-word;
    /* 调整位置，确保不会被边框遮挡 */
    position: relative;
    z-index: 2;
}

.blessing-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blessing-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

/* 交互式祝福卡片 */
.interactive-card {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 100, 100, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 100, 100, 0.5);
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    justify-content: center;
    align-items: center;
}

.message-btn {
    background: linear-gradient(45deg, #ff3366, #ff9933, #ffcc00, #33ccff);
    background-size: 300% 100%;
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 15px 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(255, 51, 102, 0.5),
        0 0 20px rgba(255, 204, 0, 0.3);
    animation: buttonPulse 3s ease-in-out infinite;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    align-self: center;
    flex-shrink: 0;
    /* 确保按钮文本不会换行 */
    white-space: nowrap;
    /* 确保按钮有足够的宽度显示完整文本 */
    min-width: 150px;
    /* 确保按钮文本居中 */
    text-align: center;
}

/* 按钮内部光效 */
.message-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: buttonShine 3s ease-in-out infinite;
}

.message-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 12px 35px rgba(255, 51, 102, 0.7),
        0 0 30px rgba(255, 204, 0, 0.5);
    background-position: 100% 0;
}

/* 按钮动画 */
@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes buttonShine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.message-display {
    margin-top: 20px;
    min-height: 150px;
    max-height: 300px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 1rem;
    color: #ffcc00;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.5s ease;
    overflow-y: auto;
    line-height: 1.6;
    text-align: center;
    word-break: break-word;
    width: 100%;
}

/* 优化markdown渲染样式 */
.message-display h1,
.message-display h2,
.message-display h3,
.message-display h4,
.message-display h5,
.message-display h6 {
    color: #ffcc00;
    margin: 10px 0;
    font-size: 1.2em;
}

.message-display p {
    margin: 8px 0;
    color: #ffffff;
}

.message-display strong {
    color: #33ccff;
}

.message-display em {
    color: #ff9933;
}

.message-display ul,
.message-display ol {
    padding-left: 20px;
    margin: 10px 0;
}

.message-display li {
    margin: 5px 0;
    color: #ffffff;
}

/* 优化滚动条样式 */
.message-display::-webkit-scrollbar {
    width: 8px;
}

.message-display::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.message-display::-webkit-scrollbar-thumb {
    background: rgba(255, 204, 0, 0.5);
    border-radius: 4px;
}

.message-display::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 204, 0, 0.8);
}

/* 底部区域 */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #aaa;
}

.class-info {
    font-size: 1.2rem;
    color: #ffcc00;
    margin-top: 10px;
}

/* 动画定义 */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .column {
        width: 100%;
    }
    
    .card {
        max-width: 100%;
        width: 100%;
    }
    
    /* 名字分析卡片在中等屏幕上恢复正常宽度 */
    .card.card-4 {
        width: 100%;
    }
    
    /* 彩蛋卡片在中等屏幕上恢复正常大小 */
    .card.card-5 {
        max-width: 100%;
        width: 100%;
        flex: 1 1 250px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .card {
        max-width: 100%;
        min-width: 100%;
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* 名字分析卡片在小屏幕上恢复正常宽度 */
    .card.card-4 {
        width: 100%;
    }
    
    /* 彩蛋卡片在小屏幕上恢复正常大小 */
    .card.card-5 {
        max-width: 100%;
        min-width: 100%;
        flex: 1 1 250px;
        width: 100%;
    }
}

/* 左侧音乐播放控件 */
.music-player {
    position: fixed;
    left: 0;
    top: 20%;
    z-index: 100;
    background: rgba(20, 20, 60, 0.95);
    border-radius: 0 20px 20px 0;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    transform: translateX(0);
    height: 100px;
    width: 200px;
}

/* 折叠状态 */
.music-player.collapsed {
    transform: translateX(-170px);
}

/* 折叠按钮 */
.music-toggle-btn {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: rgba(20, 20, 60, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #ffcc00;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
}

.music-toggle-btn:hover {
    background: rgba(30, 30, 80, 0.95);
    color: #fff;
}

/* 折叠状态下的按钮方向 */
.music-player.collapsed .music-toggle-btn i {
    transform: rotate(0deg);
}

.music-toggle-btn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.music-player-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    width: 100%;
}

/* 旋转唱片 */
.music-disc-container {
    width: 70px;
    height: 70px;
    position: relative;
}

.music-disc {
    width: 100%;
    height: 100%;
    background-image: url('cover.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
    box-shadow: 0 5px 15px rgba(255, 100, 100, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 唱片中心 */
.music-disc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: rgba(20, 20, 60, 0.95);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 唱片暂停旋转动画 */
.music-disc.paused {
    animation-play-state: paused;
}

/* 旋转动画 */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 控制按钮 */
.music-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.music-control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff3366, #ff9933);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
}

.music-control-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.6);
}

/* 灯光装饰 */
.light {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.8);
    z-index: 2;
    animation: twinkle 2s infinite;
}

/* 彩蛋消息框样式 */
.egg-message-box {
    position: fixed;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(20, 20, 60, 0.95), rgba(30, 30, 80, 0.98));
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, #ff3366, #ffcc00, #33ccff, #ff9933) 1;
    border-radius: 20px;
    box-shadow: 
        0 10px 35px rgba(255, 204, 0, 0.5),
        0 0 25px rgba(255, 51, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    z-index: 1000;
    animation: float 4s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
    min-width: 150px;
    max-width: 300px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    transform: translateZ(0);
}

/* 消息框内部光效 */
.egg-message-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: messageBoxLight 5s ease-in-out infinite;
}

/* 消息框内容样式 */
.egg-message-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffcc00;
    text-shadow: 
        0 0 10px rgba(255, 204, 0, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1001;
    animation: messageTextPulse 2s ease-in-out infinite;
    flex-wrap: wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.egg-message-content span {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 200px;
}

/* 消息框星星样式 */
.egg-message-content i {
    color: #ff3366;
    animation: twinkle 1.2s infinite, starRotate 3s linear infinite;
    font-size: 1.5rem;
}

/* 消息框星星旋转动画 */
@keyframes starRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 消息框浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotate-angle, 0deg));
    }
    50% {
        transform: translateY(-15px) rotate(var(--rotate-angle, 0deg));
    }
}

/* 消息框淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(var(--rotate-angle, 0deg));
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotate-angle, 0deg));
    }
}

/* 消息框光效动画 */
@keyframes messageBoxShine {
    0%, 100% {
        box-shadow: 
            0 10px 35px rgba(255, 204, 0, 0.5),
            0 0 25px rgba(255, 51, 102, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 12px 40px rgba(255, 204, 0, 0.7),
            0 0 35px rgba(255, 51, 102, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* 消息框内部光流动画 */
@keyframes messageBoxLight {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* 消息文字脉冲动画 */
@keyframes messageTextPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}