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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 视频背景 */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#bgVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    position: absolute;
    top: 0;
    left: 0;
}

.video-controls-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.video-controls {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.video-controls:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.control-tooltip {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 10px;
}

.video-controls-wrapper:hover .control-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* 添加音量指示器 */
.volume-indicator {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-controls:hover .volume-indicator {
    opacity: 1;
}

/* 主要内容区域 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 特色介绍部分 */
.feature-section {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.feature-image {
    flex: 0 0 55%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.5s ease;
    display: block;
    object-fit: cover;
}

.feature-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.feature-text {
    flex: 1;
    padding: 20px;
    color: #333;
}

.feature-text h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-text > p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

/* 对话界面 */
.chat-container {
    background: linear-gradient(
        rgba(255, 255, 255, 0.65),
        rgba(255, 255, 255, 0.65)
    ),
    url('https://images.unsplash.com/photo-1485470733090-0aae1788d5af?q=80') center/cover no-repeat;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1000;
    scroll-margin-top: 80px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column; /* 确保消息垂直排列 */
}

/* 清除浮动 */
.chat-messages::after {
    content: '';
    display: table;
    clear: both;
}

/* 消息气泡样式 */
.message {
    max-width: 70%;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.4;
    width: fit-content; /* 让宽度适应内容 */
    display: inline-block; /* 使宽度由内容决定 */
}

/* 用户消息样式 */
.user-message {
    background: rgba(149, 236, 105, 0.98);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* AI消息样式 */
.ai-message {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* 输入框样式 */
.chat-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
    align-items: center; /* 确保垂直居中 */
}

.chat-input textarea {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    resize: none;
    height: 40px;
    min-height: 40px; /* 确保最小高度 */
    font-size: 14px;
    background: transparent;
    outline: none;
    line-height: 20px; /* 添加行高 */
    margin: 0; /* 移除可能的外边距 */
}

.chat-input button {
    width: 40px;
    height: 40px;
    min-width: 40px; /* 确保最小宽度 */
    border: none;
    border-radius: 50%;
    background: #07C160;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* 移除内边距 */
    margin: 0; /* 移除外边距 */
}

.chat-input button:hover {
    background: #06AE56;
}

.chat-input button i {
    font-size: 16px;
}

/* 滚动条样式 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.5);
    backdrop-filter: blur(4px);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 社交媒体链接 */
.social-links {
    text-align: center;
    padding: 20px;
}

.social-icon {
    font-size: 24px;
    margin: 0 10px;
    color: #333;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

/* 页眉样式 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
}

.logo {
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
}

.logo img {
    height: 150%;
    width: 150%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin-right: auto;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 调整主要内容区域，为页眉留出空间 */
.content {
    margin-top: 80px;
}

/* 页脚样式 */
.main-footer {
    background: rgba(51, 51, 51, 0.95);
    color: #fff;
    padding: 40px 0 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    width: 100%;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.footer-section.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.footer-section.social-links h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
}

.social-icons-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.footer-section .social-icon {
    color: #fff;
    font-size: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* 为不同的社交媒体设置独特的悬停颜色 */
.footer-section .social-icon.fa-weixin:hover {
    color: #07C160;
    background: rgba(7, 193, 96, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.3);
}

.footer-section .social-icon.fa-weibo:hover {
    color: #E6162D;
    background: rgba(230, 22, 45, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 22, 45, 0.3);
}

.footer-section .social-icon.fa-github:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
    margin: 5px 0;
}

.footer-bottom a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在动端可以改为汉堡单 */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .footer-section p {
        text-align: center;
    }

    .social-icons-container {
        justify-content: center;
    }
}

/* 更新右铭样式，除引号相关样式 */
.motto {
    margin-top: 40px;
    padding: 30px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.motto p {
    font-size: 1.6em;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 3px;
    color: #34495e;
    font-family: "华文行楷", "行楷", "楷体", "STKaiti", "FZKai-Z03", serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0 30px; /* 添加左右内边距 */
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .feature-section {
        padding: 30px;
        gap: 30px;
    }

    .feature-text h1 {
        font-size: 2em;
    }

    .motto p {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .feature-section {
        flex-direction: column;
        padding: 20px;
    }
    
    .feature-image {
        flex: 0 0 100%;
        transform: none;
        margin-bottom: 30px;
    }

    .feature-text {
        text-align: center;
    }

    .motto p {
        font-size: 1.2em;
        letter-spacing: 2px;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 更新联系方式样式 */
.contact-item {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-item p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 1.2em;
    color: #007bff;
}

/* 添加联系方式高亮动画 */
@keyframes highlight {
    0% {
        background: rgba(255, 255, 255, 0.05);
    }
    50% {
        background: rgba(0, 123, 255, 0.2);
    }
    100% {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* 当通过接跳转到联系方式时的高亮效果 */
.contact-item:target {
    animation: highlight 2s ease;
}

/* 添加制提示样式 */
.copy-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* 确联方容器有相对定位 */
.contact-item {
    position: relative;
}

/* 更新社交媒体图标的悬停效果 */
.footer-section .social-icon.fa-weixin:hover {
    color: #07C160;
    background: rgba(7, 193, 96, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.3);
}

.footer-section .social-icon .fa-tiktok:hover,
.footer-section .social-icon.video-account:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-section .social-icon .fa-qq:hover {
    color: #12B7F5;
    background: rgba(18, 183, 245, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 183, 245, 0.3);
}

/* 视频号特殊样式 */
.footer-section .social-icon.video-account {
    position: relative;
}

.footer-section .social-icon.video-account::after {
    content: '视频号';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section .social-icon.video-account:hover::after {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 900px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
}

/* 更新原神图标的悬停效果 */
.footer-section .social-icon.genshin:hover {
    color: #4FD2FF; /* 原神的题蓝色 */
    background: rgba(79, 210, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 210, 255, 0.3);
}

/* 添加原神标识 */
.footer-section .social-icon.genshin {
    position: relative;
}

.footer-section .social-icon.genshin::after {
    content: '原神';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section .social-icon.genshin:hover::after {
    opacity: 1;
}

/* 添加二维码弹窗样式 */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

#qrImage {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 10px 0;
}

#qrTitle {
    margin-top: 10px;
    color: #333;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 添加到有的CSS文件中 */
/* 加载指示器样式 */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 5px 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #90949c;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.3s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

/* 禁用状态样式 */
.chat-input textarea:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 消息状态样式 */
.message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #d32f2f;
}

/* 添加顶部锚点样式 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* 防止内容被固定导航栏遮挡 */
}

body {
    scroll-behavior: smooth;
}

/* 确保内容会被固定导航栏遮 */
.content {
    padding-top: 60px; /* 与导航栏高度相 */
}

/* 添加音乐控制样式 */
.music-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 15px; /* 减小垂直内边距 */
    border-radius: 20px; /* 减小圆角 */
    transition: all 0.3s ease;
    height: 32px; /* 固定高度 */
}

.music-controls:hover {
    background: rgba(0, 0, 0, 0.1);
}

#toggleMusic {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    width: 28px; /* 减小宽度 */
    height: 28px; /* 减小高度 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* 减小图标大小 */
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

#toggleMusic::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

#toggleMusic:hover::before {
    transform: scale(1);
}

#toggleMusic i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

#toggleMusic:hover i {
    transform: scale(1.1);
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative;
    height: 20px; /* 减小高度 */
}

.music-controls:hover .volume-slider-container {
    width: 60px; /* 减小滑块宽度 */
    opacity: 1;
}

#volumeSlider {
    width: 60px;
    height: 3px; /* 减小滑块高度 */
    -webkit-appearance: none;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 1.5px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; /* 减小滑块按钮小 */
    height: 10px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.volume-tooltip {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

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

/* 添加下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown > a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding-left: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding-left: 20px;
    }
}

/* 添加二级下拉菜单样式 */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 24px;
}

.dropdown-submenu > a i {
    font-size: 10px;
    position: absolute;
    right: 10px;
}

.dropdown-submenu-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.dropdown-submenu:hover > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 优化一级下拉菜单样式 */
.dropdown-menu {
    min-width: 180px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-submenu-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        padding-left: 20px;
        transform: none;
        min-width: auto;
    }

    .dropdown-submenu > a i {
        transform: rotate(90deg);
    }
}

/* 添加三级菜单样式 */
.dropdown-submenu .dropdown-submenu-menu .dropdown-submenu-menu {
    left: 100%;
    top: 0;
}

/* 确保三级菜单在适的位显示 */
.dropdown-submenu:hover > .dropdown-submenu-menu .dropdown-submenu:hover > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dropdown-submenu .dropdown-submenu-menu .dropdown-submenu-menu {
        position: static;
        padding-left: 20px;
    }
}

/* 修改响应式导航样式 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 10px;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 10px 20px;
        display: block;
        width: 100%;
    }

    /* 下拉菜单样式调整 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        width: 100%;
        display: none;
    }

    .dropdown-submenu-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        width: 100%;
        display: none;
    }

    .dropdown-menu.show,
    .dropdown-submenu-menu.show {
        display: block;
    }

    /* 音乐控制样式调整 */
    .music-controls {
        margin-left: auto;
    }
}

/* 修改移动端下��菜单样式 */
@media (max-width: 768px) {
    /* ... 其他移端样持不变 ... */

    /* 默认隐藏所有下拉菜单 */
    .dropdown-menu,
    .dropdown-submenu-menu {
        display: none;
        padding-left: 20px;
    }

    /* 显示激活的下拉菜单 */
    .dropdown-menu.show,
    .dropdown-submenu-menu.show {
        display: block;
    }

    /* 移除hover效果 */
    .dropdown:hover .dropdown-menu,
    .dropdown-submenu:hover .dropdown-submenu-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* 名局讲解分样式 */
.famous-games-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.famous-games-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.game-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.game-info h3 {
    margin: 0;
    font-size: 1.2em;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr); /* 移动端改为3列 */
        gap: 10px;
        padding: 8px;
    }

    .game-card {
        height: 120px; /* 减小卡片高度 */
        border-radius: 10px;
    }

    .game-info {
        padding: 10px;
    }

    .game-info h3 {
        font-size: 0.9em; /* 减小标题字号 */
        margin: 0;
        text-align: center;
    }
}

/* 超小屏幕的样式调整 */
@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr); /* 超小屏幕改为2列 */
        gap: 8px;
    }

    .game-card {
        height: 100px;
    }

    .game-info h3 {
        font-size: 0.85em;
    }
}

/* 添加高中数知识点展示样式 */
.math-topics-section {
    padding: 30px 20px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.math-topics-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.math-topics-section .topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* 增加卡片间距 */
    padding: 15px; /* 增加内边距 */
}

.math-topics-section .topic-card {
    aspect-ratio: 1;
    width: 100%;
    padding: 15px; /* 增加卡片内边距 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px; /* 增加内部元素间距 */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.math-topics-section .topic-card i {
    font-size: 3em; /* 增大图标大小 */
    color: #007bff;
    margin-bottom: 10px;
}

.math-topics-section .topic-card h3 {
    font-size: 1.2em; /* 增大标题字号 */
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.math-topics-section .topic-card p {
    font-size: 0.95em; /* 增大描述文字字号 */
    line-height: 1.3;
    margin: 0;
    padding: 0 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .math-topics-section .topics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .math-topics-section .topic-card {
        min-height: 140px; /* 恢复原来的高度 */
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .math-topics-section .topic-card i {
        font-size: 2.2em; /* 恢复图标大小 */
        margin-bottom: 8px;
    }

    .math-topics-section .topic-card h3 {
        font-size: 1em; /* 恢复标题字号 */
        margin: 0;
        text-align: center;
        line-height: 1.3;
    }

    .math-topics-section .topic-card p {
        display: none; /* 保持隐藏描述文字 */
    }
}

/* 超小屏幕的样式调整 */
@media (max-width: 480px) {
    .math-topics-section .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .math-topics-section .topic-card {
        min-height: 130px;
    }

    .math-topics-section .topic-card i {
        font-size: 2em;
    }

    .math-topics-section .topic-card h3 {
        font-size: 0.95em;
    }
}

/* 添加数学奥赛部分样式 */
.math-olympiad-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.math-olympiad-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.olympiad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.olympiad-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    scroll-margin-top: 80px;
    backdrop-filter: blur(3px);
    height: 300px;
}

.olympiad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.olympiad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.olympiad-card:hover img {
    transform: scale(1.05);
}

.olympiad-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.olympiad-info h3 {
    margin: 0;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.olympiad-info p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .olympiad-grid {
        grid-template-columns: repeat(3, 1fr); /* 移动端改为3列 */
        gap: 10px;
        padding: 8px;
    }

    .olympiad-card {
        height: 120px; /* 减小卡片高度 */
        border-radius: 10px;
    }

    .olympiad-info {
        padding: 10px;
    }

    .olympiad-info h3 {
        font-size: 0.9em; /* 减小标题字号 */
        margin: 0;
        text-align: center;
    }

    .olympiad-info p {
        display: none; /* 隐藏描述文字 */
    }
}

/* 超小屏幕的样式调整 */
@media (max-width: 480px) {
    .olympiad-grid {
        grid-template-columns: repeat(2, 1fr); /* 超小屏幕改为2列 */
        gap: 8px;
    }

    .olympiad-card {
        height: 100px;
    }

    .olympiad-info h3 {
        font-size: 0.85em;
    }
}

/* 添加欢迎语样式 */
.chat-welcome {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.chat-welcome p {
    color: #333;
    font-size: 1.2em;
    font-family: "楷体", KaiTi, serif;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 添加专题精讲课程部分样式 */
.special-topics-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.special-topics-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.topic-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    scroll-margin-top: 80px;
    backdrop-filter: blur(3px);
    height: 300px;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.topic-card:hover img {
    transform: scale(1.05);
}

.topic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
}

.topic-info h3 {
    margin: 0;
    font-size: 1.2em;
    margin-bottom: 6px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    line-height: 1.3;
}

.topic-info p {
    margin: 0;
    font-size: 0.95em;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    line-height: 1.3;
    padding: 0 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 10px;
    }

    .topic-card {
        height: 250px;
    }
}

/* 更新高中数学知识体系部分的卡片样式 */
.math-topics-section .topic-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.math-topics-section .topic-card i {
    font-size: 4.5em;
    color: #007bff;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.math-topics-section .topic-card h3 {
    color: #333;
    font-size: 1.6em;
    margin: 10px 0;
    font-weight: 600;
}

.math-topics-section .topic-card p {
    color: #666;
    font-size: 1.2em;
    line-height: 1.4;
    margin: 0;
    padding: 0 10px;
}

/* 更新专题精讲课程部分的文字样式 */
.special-topics-section .topic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
}

.special-topics-section .topic-info h3 {
    margin: 0;
    font-size: 1.2em;
    margin-bottom: 6px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    line-height: 1.3;
}

.special-topics-section .topic-info p {
    margin: 0;
    font-size: 0.95em;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    line-height: 1.3;
    padding: 0 5px;
}

/* 在桌端隐藏汉堡菜单按钮 */
.menu-toggle {
    display: none; /* 默认隐藏 */
}

/* 只在移动端显示汉堡菜单按钮 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 10px;
    }

    .nav-container {
        justify-content: space-between; /* 在移动端调整布局 */
    }
}

/* 添加专题精讲课程新布局样式 */
.special-topics-container {
    display: flex;
    gap: 40px;
    padding: 30px;
    align-items: flex-start;
}

.sidebar-video {
    flex: 0 0 350px; /* 增加视频宽度 */
    height: 700px; /* 增加视频高度 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 80px;
    transition: all 0.3s ease;
}

.sidebar-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* 调整课程网格布局 */
.special-topics-section .topics-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固3列 */
    gap: 25px;
    max-width: calc(100% - 390px); /* 考虑侧边视频的宽度和间距 */
}

.special-topics-section .topic-card {
    height: 320px; /* 统一卡片高度 */
    border-radius: 20px;
    transition: all 0.3s ease;
}

.special-topics-section .topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* 响应式调整 */
@media (max-width: 1440px) {
    .special-topics-section .topics-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕2列 */
    }
}

@media (max-width: 1024px) {
    .special-topics-container {
        flex-direction: column;
    }

    .sidebar-video {
        width: 100%;
        height: 600px;
        position: relative;
        top: 0;
    }

    .special-topics-section .topics-grid {
        max-width: 100%;
        grid-template-columns: repeat(3, 1fr); /* 恢复3列 */
    }
}

@media (max-width: 768px) {
    .special-topics-section .topics-grid {
        grid-template-columns: repeat(2, 1fr); /* 小屏幕2列 */
    }

    .sidebar-video {
        height: 500px;
    }

    .special-topics-section .topic-card {
        height: 280px;
    }

    .special-topics-section .topic-info {
        padding: 8px;
    }

    .special-topics-section .topic-info h3 {
        font-size: 0.9em;
        margin-bottom: 4px;
    }

    .special-topics-section .topic-info p {
        display: none; /* 隐藏描述文字 */
    }
}

@media (max-width: 480px) {
    .sidebar-video {
        width: 90%;
        height: 250px;
    }
}

/* 添加视频控制样式 */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 12px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.sidebar-video:hover .video-controls {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}

#toggleVideo {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

#toggleVideo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

#toggleVideo:hover::before {
    transform: scale(1);
}

#toggleVideo i {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#toggleVideo:hover i {
    transform: scale(1.1);
}

.video-controls:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* 更新侧边栏视频样式 */
.sidebar-video {
    flex: 0 0 350px;
    height: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 80px;
    transition: all 0.3s ease;
}

.vertical-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为 contain 以保持视频比例 */
    background: #000; /* 添加黑色背景 */
    border-radius: 20px;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .sidebar-video {
        width: 100%;
        height: 600px;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .sidebar-video {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .sidebar-video {
        height: 400px;
    }
}

/* 更新游戏图标的样式 */
.footer-section .social-icon.play-together:hover {
    color: #4FD2FF;
    background: rgba(79, 210, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 210, 255, 0.3);
}

/* 添加"和我一起玩"标识 */
.footer-section .social-icon.play-together {
    position: relative;
}

.footer-section .social-icon.play-together::after {
    content: '和我一起玩';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section .social-icon.play-together:hover::after {
    opacity: 1;
}

/* 添加语言切换按钮样式 */
.language-switch {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px; /* 增加水平内边距 */
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
    min-width: 65px; /* 设置最小宽度 */
}

#langToggle {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    width: 100%; /* 让按钮填满容器 */
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 0 6px;
    gap: 4px; /* 增加文字间距 */
}

#langToggle .current-lang {
    font-weight: 600;
    color: #007bff;
    font-size: 13px;
}

#langToggle .divider {
    color: #666;
    opacity: 0.5;
    margin: 0 2px; /* 增加分隔符两侧间距 */
    font-size: 13px;
}

#langToggle .other-lang {
    opacity: 0.6;
    font-size: 13px;
}

/* 悬停效果 */
.language-switch:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

#langToggle:hover .other-lang {
    opacity: 0.8;
}

/* 更新社交媒体图标的统一样式 */
.footer-section .social-icons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-section .social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 移除文字提示 */
.footer-section .social-icon.video-account::after,
.footer-section .social-icon.play-together::after {
    content: none;
}

/* 统一悬停效果 */
.footer-section .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.footer-section .social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.footer-section .social-icon:hover i {
    transform: scale(1.2);
}

/* 更新名局讲解部分的图片样式 */
.game-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 300px;
}

/* 特别调整滴血之名局、杀棋之名局、镰仓十番棋和石佛一子解双征的图片位置 */
#blood-drop img,
#killing-game img,
#kamakura-ten img,
#stone-buddha img {
    object-position: center 30%; /* 调整图片显示位置，向上移动 */
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
}

.game-info h3 {
    margin: 0;
    font-size: 1.2em;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* 更新高中数学知识体系部分的移动端样式 */
@media (max-width: 768px) {
    .math-topics-section .topics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 10px;
    }

    .math-topics-section .topic-card {
        min-height: 140px; /* 恢复原来的高度 */
        padding: 15px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .math-topics-section .topic-card i {
        font-size: 2.2em; /* 恢复图标大小 */
        margin-bottom: 8px;
    }

    .math-topics-section .topic-card h3 {
        font-size: 1em; /* 恢复标题字号 */
        margin: 0;
        text-align: center;
        line-height: 1.3;
    }

    .math-topics-section .topic-card p {
        display: none; /* 保持隐藏描述文字 */
    }
}

/* 超小屏幕的样式调整 */
@media (max-width: 480px) {
    .math-topics-section .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .math-topics-section .topic-card {
        min-height: 130px;
    }

    .math-topics-section .topic-card i {
        font-size: 2em;
    }

    .math-topics-section .topic-card h3 {
        font-size: 0.95em;
    }
}

/* 更新专题精讲课程部分的移动端视频样式 */
@media (max-width: 768px) {
    .special-topics-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .sidebar-video {
        width: 80%;
        margin: 0 auto;
        height: 300px;
        position: sticky;
        top: 70px;
        z-index: 5;
        margin-bottom: 10px;
        border-radius: 15px;
        overflow: hidden;
        background: #000;
    }

    .vertical-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        transform: scale(0.99);
    }

    .video-controls {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        padding: 12px;
        border-radius: 50%;
        opacity: 1;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(5px);
        z-index: 6;
    }
}

/* 超小屏幕的样式调整 */
@media (max-width: 480px) {
    .sidebar-video {
        width: 90%;
        height: 250px;
    }
}
