/* 前面的基础样式保持不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.music-control.playing {
    animation: rotate 3s linear infinite;
}

.music-icon {
    color: #fff;
    font-size: 20px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body {
    background: #000;
    color: #fff;
    font-family: "Arial Black", Gadget, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 标题样式保持不变 */
#title-container {
    position: relative;
    height: 150px;
    margin: 40px 0;
    perspective: 1000px;
}

.title-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.title-char {
    font-size: 86px;
    font-weight: 900;
    color: #942323;
    opacity: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
}

/* 修改介绍框样式以匹配图片宽度 */
.intro-box {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #942323;
    border-radius: 15px;
    padding: 30px;
    margin: 40px auto;
    width: calc(270px * 4 + 90px); /* 4张图片的宽度(270px * 4)加上间隔(30px * 3) */
    box-shadow: 0 0 20px rgba(148, 35, 35, 0.3);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.intro-box:hover {
    box-shadow: 0 0 30px rgba(148, 35, 35, 0.5);
    transform: translateZ(10px);
}

.intro-box h2 {
    color: #942323;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(148, 35, 35, 0.5);
}

.intro-content {
    font-size: 18px;
    line-height: 1.6;
}

.intro-content p {
    margin-bottom: 20px;
    color: #e0e0e0;
}

.intro-content ul {
    list-style: none;
    margin: 20px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.intro-content li {
    margin: 10px 20px;
    padding-left: 25px;
    position: relative;
    color: #e0e0e0;
    flex: 0 0 calc(50% - 40px); /* 两列布局 */
}

.intro-content li::before {
    content: '►';
    color: #942323;
    position: absolute;
    left: 0;
    top: 0;
}

.intro-highlight {
    text-align: center;
    font-size: 24px;
    color: #942323;
    margin-top: 30px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(148, 35, 35, 0.3);
    animation: highlightPulse 2s ease-in-out infinite;
}

/* 动画和其他样式保持不变 */
@keyframes highlightPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(148, 35, 35, 0.3);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(148, 35, 35, 0.5);
    }
}

/* 保持其他动画和样式不变 */
@keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes charRotate {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes charScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes charGlow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(148, 35, 35, 0.8),
            0 0 40px rgba(148, 35, 35, 0.6),
            0 0 60px rgba(148, 35, 35, 0.4);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(148, 35, 35, 1),
            0 0 60px rgba(148, 35, 35, 0.8),
            0 0 90px rgba(148, 35, 35, 0.6);
    }
}

/* 其他布局样式保持不变 */
.links-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px 0;
    perspective: 1000px;
}

.link-item {
    position: relative;
    transform-style: preserve-3d;
}

.link-item img {
    max-width: 220px;
    filter: drop-shadow(0 0 15px rgba(148, 35, 35, 0.3));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover img {
    transform: translateZ(30px) scale(1.1);
    filter: drop-shadow(0 0 25px rgba(148, 35, 35, 0.6));
}

.image-grid {
    margin-bottom: 60px;
    perspective: 1000px;
}

.image-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.image-row:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.image-row img {
    width: 270px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.image-row img:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 15px 30px rgba(148, 35, 35, 0.3);
}

.gif-grid {
    margin-bottom: 60px;
}

.gif-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
}

.gif-row img {
    width: 325px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.6s;
}

.gif-row img:hover {
    transform: translateZ(30px) scale(1.05);
    box-shadow: 0 20px 40px rgba(148, 35, 35, 0.4);
}

/* 大型GIF样式 */
.large-gif {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
    perspective: 1000px;
}

.large-gif img {
    max-width: 1030px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.large-gif img:hover {
    transform: translateZ(40px);
    box-shadow: 0 25px 50px rgba(148, 35, 35, 0.5);
}
