/* 动漫风格的CSS样式 */
@font-face {
    font-family: 'XiangJiao';
    src: url('http://sx75jru2m.hd-bkt.clouddn.com/fonts/XiangJiaoKuanMaoShuaLingGanTi-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'XinDi';
    src: url('http://sx75jru2m.hd-bkt.clouddn.com/fonts/XinDiPaoTi-1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SanJiPoMo';
    src: url('http://sx75jru2m.hd-bkt.clouddn.com/fonts/SanJiPoMoTi-2.ttf') format('truetype');
    font-display: swap;
}

/* 使用Google Fonts替代失效的CDN链接 */
@import url('https://fonts.googleapis.com/css2?family=Literata:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap');

@font-face {
    font-family: 'FiraSansBlack';
    /* 使用Inter作为FiraSans的替代字体 */
    src: local('Inter Black'), local('Inter-Black');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'LiterataBlack';
    /* 使用Google Fonts的Literata */
    src: local('Literata Black'), local('Literata-Black');
    font-weight: 900;
    font-display: swap;
}

/* 添加缺失的字体别名定义 */
@font-face {
    font-family: 'XiangJiaoKuanMao';
    src: url('http://sx75jru2m.hd-bkt.clouddn.com/fonts/XiangJiaoKuanMaoShuaLingGanTi-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'XinDiPao';
    src: url('http://sx75jru2m.hd-bkt.clouddn.com/fonts/XinDiPaoTi-1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 备用字体方案 - 如果自定义字体加载失败，使用系统字体 */
@font-face {
    font-family: 'XiangJiao-Fallback';
    src: local('Microsoft YaHei'), local('PingFang SC'), local('Hiragino Sans GB');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'XinDi-Fallback';
    src: local('Microsoft YaHei'), local('PingFang SC'), local('Hiragino Sans GB');
    font-weight: normal;
    font-style: normal;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F0F8FF; /* 更淡的蓝色背景 */
    font-family: 'XinDi', 'XinDi-Fallback', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif; /* 修复字体引用 */
    color: #6A5ACD; /* 更深的紫色文字 */
    overflow-x: hidden;
    font-size: 18px; /* 增大基础字体大小 */
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="3" fill="%23B0C4DE" opacity="0.3"/></svg>');
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    font-size: 2rem;
    color: #9370DB; /* 中等紫色 */
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #E6E6FA; /* 淡紫色阴影 */
    position: relative;
    display: inline-block;
    font-family: 'XiangJiao', 'XiangJiao-Fallback', 'Microsoft YaHei', sans-serif; /* 标题使用香蕉字体 */
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #B0C4DE, #9370DB, #B0C4DE);
    border-radius: 5px;
    z-index: -1;
}

.header p {
    font-size: 1.1rem;
    color: #f181bd; /* 亮色 */
    font-family: 'XinDi', 'XinDi-Fallback', 'Microsoft YaHei', sans-serif; /* 更换为更清晰的字体 */
    font-weight: bold; /* 加粗以提高可读性 */
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.7); /* 添加文字阴影提高对比度 */
    margin-bottom: 5px; /* 添加底部间距，使分行的文本看起来更协调 */
    line-height: 1.5; /* 调整行高 */
}

.content-box {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(106, 90, 205, 0.2);
    position: relative;
    overflow: hidden;
    border: 3px solid #B0C4DE; /* 淡钢蓝色边框 */
}

.content-box::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    background-color: #E6E6FA; /* 淡紫色 */
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.intro {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    font-family: 'XinDi', 'XinDi-Fallback', 'Microsoft YaHei', sans-serif; /* 更换为更清晰的字体 */
    overflow: hidden; /* 确保浮动元素被包含 */
}

.intro-content {
    margin-top: 10px;
}

.intro-video {
    float: right;
    width: 45%;
    margin: 0 0 15px 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 43, 220, 0.3);
    border: 3px solid #FFB6C1;
    position: relative;
    z-index: 10; /* 确保视频在其他元素之上 */
}



/* 移动设备响应式样式 */
@media (max-width: 768px) {
    .intro-video {
        float: none;
        width: 100%;
        margin: 0 0 15px 0;
    }
    

}

.intro-video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer; /* 添加手型光标 */
    position: relative;
    z-index: 11; /* 确保视频控件可以被点击 */
    pointer-events: auto; /* 确保鼠标事件可以触发 */
    min-height: 200px;
}

/* 确保视频控件样式 */
.intro-video video::-webkit-media-controls {
    z-index: 12;
}

.intro-video video::-webkit-media-controls-panel {
    z-index: 12;
}



.intro p {
    margin-bottom: 15px;
    position: relative;
    padding-left: 0; /* 移除左侧padding，因为不再使用图标 */
    color: #5D4777; /* 更深的紫色，提高对比度 */
    font-weight: 500; /* 稍微加粗以提高可读性 */
}

/* 移除原有的图标 */
.intro p::before {
    content: '';
}

/* 动漫展示区域 */
.anime-showcase {
    margin: 30px 0;
    background-color: rgba(255, 192, 203, 0.2);
    padding: 20px;
    border-radius: 15px;
    border: 2px dashed #FFB6C1;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

/* 游戏板块样式 */
.game-showcase {
    margin-top: 30px;
    background-color: rgba(255, 192, 203, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
}

.game-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ffa1a1);
}

.game-moments-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #F0F8FF;
    border-radius: 15px;
    border: 2px solid #B0C4DE;
}

.game-moments-section h4 {
    color: #9370DB;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.game-moments-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(106, 90, 205, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(106, 90, 205, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    background-color: rgba(106, 90, 205, 0.9);
}

/* 图片弹窗样式 */
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-popup.active {
    opacity: 1;
    visibility: visible;
}

.image-popup img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100000;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: #9370DB;
    transform: scale(1.1);
}

/* 次元雷达板块样式 */
.news-showcase {
    margin-top: 30px;
    background-color: rgba(255, 228, 225, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    border: 2px solid #FFB6C1;
}

.news-subtitle {
    text-align: center;
    color: #FF69B4;
    font-size: 1rem;
    margin-bottom: 20px;
    font-style: italic;
    font-family: 'XinDiPao', sans-serif;
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #FFE4E1;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.2);
    border-color: #FF69B4;
    background-color: rgba(255, 240, 245, 0.9);
}

.news-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
}

.news-content {
    flex: 1;
    padding-right: 10px;
}

.news-content h4 {
    color: #9370DB;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-family: 'XiangJiaoKuanMao', sans-serif;
    line-height: 1.3;
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 5px;
    font-family: 'XinDiPao', sans-serif;
}

.news-time {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

.news-arrow {
    color: #FF69B4;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.news-item:hover .news-arrow {
    transform: translateX(5px);
}

.news-more {
    text-align: center;
    margin-top: 15px;
}

.news-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-family: 'XinDiPao', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
}

.news-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    background: linear-gradient(135deg, #FF1493, #FF69B4);
}

/* 更美观的次元情报按钮样式 */
.more-news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, #9370DB, #6A5ACD);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'XinDiPao', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.more-news-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.more-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.6);
    background: linear-gradient(135deg, #8A2BE2, #9370DB);
}

.more-news-btn:hover::before {
    left: 100%;
}

.more-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    animation: pulse 1.5s infinite;
}

.more-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.more-arrow {
    margin-left: 10px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.more-news-btn:hover .more-arrow {
    transform: translateX(5px);
}

/* 我最爱的他/她/它板块样式 */
.favorite-showcase {
    margin-top: 30px;
    background-color: rgba(173, 216, 230, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(100, 149, 237, 0.2);
}

.favorite-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.favorite-category {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.favorite-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.favorite-category h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #ff69b4;
    font-size: 1.6rem;
    text-shadow: 1px 1px 2px rgba(255, 105, 180, 0.3);
    font-family: 'XiangJiao', 'XiangJiao-Fallback', 'Microsoft YaHei', sans-serif; /* 标题使用香蕉字体 */
}

.anime-showcase h3 {
    color: #9370DB;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5rem;
    font-family: 'XiangJiao', 'XiangJiao-Fallback', 'Microsoft YaHei', sans-serif; /* 标题使用香蕉字体 */
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.anime-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #E6E6FA;
}

.anime-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(106, 90, 205, 0.2);
    border-color: #9370DB;
}

.anime-icon {
    width: 40px;
    height: 40px;
    background-color: #9370DB;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
}

.anime-info h4 {
    color: #6A5ACD;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-family: 'XiangJiao', 'XiangJiao-Fallback', 'Microsoft YaHei', sans-serif; /* 标题使用香蕉字体 */
}

.anime-info p {
    color: #8A8AFF;
    font-size: 1.1rem;
    font-family: 'XinDiPao', sans-serif; /* 说明类使用新蒂跑字体 */
}

.contact {
    font-family: 'XinDiPao', sans-serif;
    background-color: #F5F5FF;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    border: 2px dashed #B0C4DE;
}

.contact h2 {
    color: #9370DB;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
    display: inline-block;
    font-family: 'XiangJiao', 'XiangJiao-Fallback', 'Microsoft YaHei', sans-serif; /* 标题使用香蕉字体 */
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9370DB, transparent);
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background-color: #E6E6FA;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(106, 90, 205, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: #8A8AFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    color: white;
    font-size: 1.2rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #9370DB;
}

.contact-info p {
    font-size: 1.1rem;
    color: #8A8AFF;
}

.audio-player {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #F0F8FF;
    border-radius: 15px;
    border: 2px solid #B0C4DE;
}

.audio-player h3 {
    margin-bottom: 10px;
    color: #9370DB;
}

.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.play-btn {
    background-color: #9370DB;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background-color: #6A5ACD;
    transform: scale(1.1);
}

.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1003;
    overflow: visible;
    display: none; /* 隐藏浮动元素 */
}

.floating-element {
    position: fixed;
    opacity: 0.6;
    /* 移除无限动画以提升性能 */
    z-index: 1003;
    /* 只在hover时显示动画 */
    transition: opacity 0.3s ease;
}

.floating-element:hover {
    opacity: 1;
    animation: float 3s ease-in-out;
}

.floating-element:nth-child(1) {
    top: 15%;
    right: 15%;
    animation-delay: 0s;
    font-size: 1.5rem;
}

.floating-element:nth-child(2) {
    top: 35%;
    left: 20%;
    animation-delay: 2s;
    font-size: 1.3rem;
}

.floating-element:nth-child(3) {
    top: 65%;
    right: 25%;
    animation-delay: 4s;
    font-size: 1.4rem;
}

.floating-element:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 6s;
    font-size: 1.2rem;
}



.footer {
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    position: relative;
}

/* 箭头按钮样式 */
.arrow-btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 15px;
    animation: pulse 2s infinite;
}

.arrow-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(255, 105, 180, 0.5);
}

.heart-counter {
    display: block;
    font-size: 1rem;
    margin-top: 5px;
}

/* 弹窗遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.936);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.overlay.active,
.overlay.welcome-active {
    opacity: 1;
    visibility: visible;
}

/* 当图片弹窗显示时强制隐藏overlay */
.overlay.force-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
}

/* 弹窗样式 - 重新设计 */
.popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0) !important;
    background: linear-gradient(135deg, #FFFACD, #FFF8DC, #FFFFE0);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4), 0 0 20px rgba(240, 230, 140, 0.3);
    z-index: 1002;
    transition: all 0.3s ease;
    max-width: 90vw;
    max-height: 80vh;
    width: 320px;
    min-width: 280px;
    text-align: center;
    border: 3px solid #F0E68C;
    overflow-y: auto;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    /* 强制居中，防止被其他样式覆盖 */
    margin: 0 !important;
    right: auto !important;
    bottom: auto !important;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: all;
    opacity: 1;
    visibility: visible;
}

/* 欢迎弹窗特殊样式 */
.popup.welcome-popup {
    z-index: 1001;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 15px 30px rgba(255, 215, 0, 0.4), 0 0 20px rgba(240, 230, 140, 0.3);
    animation: pulse 2s infinite alternate;
    width: 450px !important; /* PC端增加宽度，避免文字换行 */
    min-width: 400px !important;
}

/* 移动端欢迎弹窗样式 */
@media (max-width: 768px) {
    .popup.welcome-popup {
        width: 90vw !important;
        min-width: 280px !important;
        max-width: 400px !important;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3), 0 15px 30px rgba(255, 215, 0, 0.4), 0 0 20px rgba(240, 230, 140, 0.3);
    }
    100% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 15px 35px rgba(255, 215, 0, 0.6), 0 0 30px rgba(240, 230, 140, 0.5);
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

.popup-close:hover {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    transform: scale(1.1);
}

.popup h2 {
    color: #9370DB;
    margin-bottom: 20px;
    font-family: 'XiangJiaoKuanMao', sans-serif;
    font-size: 1.5rem;
}

.popup p {
    margin-bottom: 25px;
    color: #6A5ACD;
    font-size: 1.1rem;
    line-height: 1.6;
}

.popup-btn {
    background: linear-gradient(135deg, #9370DB, #6A5ACD);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'XiangJiaoKuanMao', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.3);
}

.popup-btn:hover {
    background: linear-gradient(135deg, #8A2BE2, #9370DB);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
}


/* 移动设备优化 */
@media (max-width: 768px) {
    .popup {
        width: 85vw !important;
        max-width: 85vw !important;
        min-width: 280px !important;
        padding: 20px !important;
        margin: 0 !important;
        /* 强制在移动设备上正确居中 */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0) !important;
        /* 强制居中保证 */
        right: auto !important;
        bottom: auto !important;
    }
    
    .popup.active {
        transform: translate(-50%, -50%) scale(1) !important;
    }
    
    .popup h2 {
        font-size: 1.3rem;
    }
    
    .popup p {
        font-size: 1rem;
    }
    
    .popup-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .popup-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
}

/* 音乐播放器 */
.music-player {
    position: fixed;
    right: 150px; /* 再左移一些，靠近中间边框但与视频保持距离 */
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    background: linear-gradient(135deg, #FFFACD, #E0F6FF, #F0E6FF, #FFF8DC);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.3), 0 0 15px rgba(221, 160, 221, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    z-index: 900;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #87CEEB;
    backdrop-filter: blur(8px);
}

.music-player .music-player-content {
    max-height: 500px;
}

.music-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, #E0F6FF, #F0E6FF, #FFFACD);
    color: #4682B4;
    position: relative;
    overflow: hidden;
}

.music-player-header::before {
    content: '🎵✨🎀';
    position: absolute;
    left: -100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    animation: sparkleMove 3s linear infinite;
    opacity: 0.6;
}

@keyframes sparkleMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

.music-player-title {
    margin: 0;
    font-size: 1rem;
    font-family: 'XiangJiaoKuanMao', sans-serif;
}

.music-player-toggle {
    background: linear-gradient(135deg, #E0F6FF, #F0E6FF);
    border: 2px solid #87CEEB;
    border-radius: 50%;
    color: #4682B4;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(135, 206, 235, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.music-player-toggle:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #87CEEB, #DDA0DD);
    color: white;
    box-shadow: 0 3px 8px rgba(135, 206, 235, 0.4), 0 0 10px rgba(221, 160, 221, 0.3);
}

.music-player-content {
    padding: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(180deg, rgba(255, 250, 205, 0.9), rgba(224, 246, 255, 0.8));
    border-radius: 0 0 18px 18px;
}

.music-player.expanded .music-player-content {
    max-height: 500px;
}

/* 最小化状态：只显示旋转图标 */
.music-player.minimized {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.music-player.minimized .music-player-header,
.music-player.minimized .music-player-content {
    display: none;
}



.song-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.song-cover {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    background: linear-gradient(135deg, #E0F6FF, #F0E6FF);
    border: 2px solid #87CEEB;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.6);
    animation: simpleRotate 6s linear infinite;
    will-change: transform;
}

.song-cover-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4682B4;
    font-size: 1.2rem;
}

/* 播放时的旋转动画已删除 */

.song-cover-inner::after {
    content: '🎵';
    font-size: 1.2rem;
    color: #4682B4;
}

/* rotate动画已删除 */

/* 音乐播放器装饰元素 */
.music-player::before {
    content: '🎵';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    opacity: 0.7;
    /* 移除无限旋转动画以提升性能 */
    /* transition已删除 */
}

.music-player::after {
    content: '🎶';
    position: absolute;
    bottom: -10px;
    left: -10px;
    font-size: 1.2rem;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* 只在hover时显示旋转动画 */
.music-player:hover::before {
    animation: rotate 2s linear infinite;
}

.song-details {
    flex: 1;
}

.song-name {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #4682B4;
    font-size: 0.85rem;
}

.song-artist {
    margin: 0;
    color: #9370DB;
    font-size: 0.75rem;
}

.track-artist {
    margin: 0;
    color: #9370DB;
    font-size: 0.75rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(135deg, #E0F6FF, #F0E6FF);
    border: 2px solid #ba8becc3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4682B4;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 6px;
    box-shadow: 0 3px 8px rgba(135, 206, 235, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.control-btn svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(70, 130, 180, 0.3));
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    background: linear-gradient(135deg, #87CEEB, #DDA0DD);
    color: white;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4), 0 0 10px rgba(221, 160, 221, 0.3);
}

.control-btn:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.5));
}

.play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    border: 2px solid #dda4f4;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.volume-icon {
    font-size: 1.1rem;
    color: #87CEEB;
    margin-right: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.volume-icon svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(135, 206, 235, 0.3));
}

.volume-icon:hover {
    color: #DDA0DD;
    transform: scale(1.1);
}

.volume-icon:hover svg {
    filter: drop-shadow(0 2px 4px rgba(221, 160, 221, 0.4));
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    background: #ffa5f9;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d097f9;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e49bff;
    cursor: pointer;
}

.progress-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.current-time, .total-time {
    font-size: 0.7rem;
    color: #4682B4;
    min-width: 35px;
    font-weight: bold;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background-color: #E0F6FF;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    border: 1px solid #87CEEB;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #87CEEB, #9370DB);
    border-radius: 3px;
    width: 0%;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #ff276b;
    border-radius: 50%;
    display: none;
    box-shadow: 0 0 6px rgba(219, 155, 112, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.progress-bar:hover .progress::after {
    display: block;
}

.playlist-container {
    max-height: 150px;
    overflow-y: auto;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* 确保播放列表容器内容居中对齐 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 隐藏webkit浏览器的滚动条 */
.playlist-container::-webkit-scrollbar {
    display: none;
}

.playlist-header {
    text-align: center;
    padding: 6px 8px; /* 与播放列表项保持一致的内边距 */
    background: linear-gradient(135deg, #ffffff, #eec9d5);
    border-radius: 10px; /* 与播放列表项保持一致的圆角 */
    margin: 0 auto 12px auto; /* 居中显示 */
    font-size: 0.8rem;
    color: #4682B4;
    font-weight: bold;
    border: 2px solid #87CEEB;
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px; /* 与播放列表保持同样宽度 */
    width: 100%;
}

.playlist-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4), 0 0 8px rgba(221, 160, 221, 0.3);
}

.playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    /* 减小播放列表宽度 */
    max-width: 200px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 6px 8px; /* 减少左右内边距 */
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 250, 205, 0.7), rgba(224, 246, 255, 0.6));
    max-width: 200px; /* 与播放列表标题保持一致的宽度 */
    width: 100%; /* 确保占满容器宽度 */
    overflow: hidden; /* 防止内容溢出 */
}

.playlist-item:hover {
    background: linear-gradient(135deg, #E0F6FF, #F0E6FF);
    border-color: #a4e2ed;
    transform: translateX(3px); /* 减少悬停时的移动距离 */
    box-shadow: 0 3px 10px rgba(135, 206, 235, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.playlist-item.active {
    background: linear-gradient(135deg, #f9cde2, #aa86f3);
    border-color: #fdc3c3;
    color: rgb(236, 139, 172);
    transform: translateX(5px); /* 减少激活状态的移动距离 */
    box-shadow: 0 4px 15px rgba(254, 145, 205, 0.6), 0 0 10px rgba(255, 104, 159, 0.836);
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-title {
    margin: 0;
    font-size: 0.7rem;
    color: #4682B4;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.playlist-item-artist {
    display: inline;
    font-size: 0.65rem;
    color: #9370DB;
    margin-left: 8px;
    transition: color 0.3s ease;
}

/* 播放当前音乐时的滚动效果 */
.playlist-item.active .playlist-item-title {
    animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(0); }
    25% { transform: translateX(0); }
    75% { transform: translateX(-50%); }
    100% { transform: translateX(-50%); }
}

.playlist-item.active .playlist-item-title,
.playlist-item.active .playlist-item-artist {
    color: white;
}

/* 左侧悬浮链接区域 */
.side-links {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 10px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    border: 2px solid #FFB6C1;
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 150px;
}

.side-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #6A5ACD;
    background-color: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(106, 90, 205, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    border: 2px solid transparent;
    font-family: 'XiangJiaoKuanMao', sans-serif;
    font-size: 1rem;
}

.side-link:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
    border-color: #FFB6C1;
    background-color: #FFF0F5;
}

.side-link:hover .side-link-icon {
    transform: rotate(10deg) scale(1.2);
    background: linear-gradient(135deg, #F0E6FF, #E0F6FF);
    border-color: #DDA0DD;
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.side-link:hover .side-link-icon svg {
    color: #9370DB;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(147, 112, 219, 0.4));
}

.side-link:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 182, 193, 0.2), transparent);
    animation: shine 1.5s ease-in-out;
}

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

.side-link-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: linear-gradient(135deg, #FFF0F5, #F0E6FF);
    border: 2px solid #FFB6C1;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.side-link-icon svg {
    width: 20px;
    height: 20px;
    color: #6A5ACD;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(106, 90, 205, 0.3));
}

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

.side-link:hover .side-link-icon::before {
    opacity: 1;
    animation: sparkle 1.5s ease-in-out;
}

@keyframes sparkle {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}



/* 播放器隐藏状态 */
.music-player.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(100px);
}

/* 显示播放器的悬浮按钮 */
.show-player-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #E0F6FF, #F0E6FF);
    border: 2px solid #87CEEB;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #4682B4;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1003;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.6);
    animation: simpleRotate 6s linear infinite;
    will-change: transform;
}

.show-player-btn:hover {
    background: linear-gradient(135deg, #87CEEB, #9370DB);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.4), 0 0 12px rgba(147, 112, 219, 0.3);
}

.show-player-btn.visible {
    display: flex;
}

/* 悬浮按钮的简单旋转动画 */
@keyframes simpleRotate {
    0% { 
        transform: translateY(-50%) rotate(0deg);
    }
    100% { 
        transform: translateY(-50%) rotate(360deg);
    }
}
    
/* 移动端导航栏自适应 */
@media (max-width: 768px) {
    .side-links {
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 8px 12px;
        max-width: 90vw;
        width: auto;
        justify-content: center;
        gap: 10px;
    }
    
    .side-link {
        font-size: 12px;
        padding: 8px 12px;
        margin: 0;
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .side-link-icon {
        font-size: 14px;
        padding: 4px;
        width: 28px;
        height: 28px;
    }
    
    .side-link-icon svg {
        width: 16px;
        height: 16px;
    }
}