@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1c40f;
    --dark-bg: #0a0a0a;
    --light-text: #f1faee;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .game-title {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
}

.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/49a943aae04b49f5b2e831bf5e154798~tplv-a9rns2rl98-image.image?lk3s=8e244e95&rcl=20260121125336DC78EFAA0523C7324AE2&rrcfp=f06b921b&x-expires=1771563249&x-signature=hIrUTCaqd6Mi3SNkmG0VwANBNPM%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 2rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.download-btn {
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
    z-index: 1;
    background: linear-gradient(135deg, #e63946, #c1121f);
    border: 2px solid #f1c40f;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.8);
    background: linear-gradient(135deg, #d62828, #b90710);
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.card {
    transition: all 0.3s ease;
    background: rgba(29, 53, 87, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.version-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.version-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.version-card.active {
    border-color: var(--accent-color);
    background: rgba(241, 196, 15, 0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.news-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.news-card img {
    transition: transform 0.5s ease;
}

.system-req-card {
    background: rgba(10, 10, 10, 0.8);
    border-left: 4px solid var(--primary-color);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
}

.glow-text {
    text-shadow: 0 0 10px rgba(230, 57, 70, 0.7);
}

.alert-badge {
    position: relative;
    animation: pulse 2s infinite;
}

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

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -31px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 基础样式调整 */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* 英雄区域优化 */
    .hero-section {
        height: 60vh;
        min-height: 400px;
        padding: 0.5rem 0;
        background-attachment: scroll;
        display: flex;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem;
    }
    
    /* 按钮样式优化 */
    .download-btn {
        font-size: 0.9rem !important;
        padding: 0.875rem 1.5rem !important;
        min-height: auto;
    }
    
    .hero-content .flex {
        gap: 1rem;
    }
    
    /* 导航栏整体优化 */
    nav {
        padding: 0 !important;
        min-height: auto;
    }
    
    nav .container {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Logo区域精确优化 */
    nav .flex.items-center:first-child {
        align-items: center;
        height: 40px;
    }
    
    nav img {
        height: 32px !important;
        margin-right: 0.5rem !important;
    }
    
    .game-title {
        font-size: 1.1rem !important;
        line-height: 1;
        margin: 0;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* 桌面端导航链接优化 */
    .hidden.md\\:flex .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        margin: 0 0.5rem;
    }
    
    /* 移动端菜单按钮精确优化 */
    #mobile-menu-button {
        padding: 0.4rem;
        margin: 0;
        min-height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #mobile-menu-button i {
        font-size: 1.2rem !important;
        margin: 0;
    }
    
    /* 移动端菜单容器优化 */
    #mobile-menu {
        padding: 0 !important;
        margin: 0 !important;
        background-color: rgba(0, 0, 0, 0.98);
        border-top: 1px solid rgba(255, 0, 0, 0.3);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* 移动端菜单项精确优化 */
    #mobile-menu a {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin: 0 !important;
        line-height: 1.4;
    }
    
    #mobile-menu a:last-child {
        border-bottom: none;
    }
    
    /* 确保导航栏在滚动时的样式 */
    nav.py-2, nav.py-3 {
        padding: 0 !important;
    }
    
    /* 修复可能的间距冲突 */
    nav > div > div {
        margin: 0 !important;
    }
    
    /* 确保移动端菜单正确显示 */
    @media (max-width: 767px) {
        nav .container > div:first-child {
            height: 40px;
        }
    }
    
    /* 标题大小调整 */
    h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        text-align: center;
    }
    
    h3 {
        font-size: 1.35rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    /* 卡片样式优化 */
    .version-card,
    .feature-card,
    .news-card,
    .system-req-card {
        margin-bottom: 1.5rem;
        padding: 1rem !important;
    }
    
    /* 网格布局优化 */
    .grid {
        gap: 1rem !important;
    }
    
    /* 图片优化 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 间距优化 */
    section {
        padding-top: 10rem !important;
        padding-bottom: 10rem !important;
    }
    
    /* 时间线优化 */
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
    
    /* 游戏资源下载区域优化 */
    .bg-gray-700 {
        padding: 0.75rem !important;
    }
    
    .bg-gray-700 h4 {
        font-size: 0.95rem !important;
    }
    
    .bg-gray-700 p {
        font-size: 0.8rem !important;
    }
    
    /* 页脚优化 */
    footer {
        padding: 2rem 0 !important;
    }
    
    .footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* 输入框优化 */
    input[type="email"] {
        font-size: 0.9rem !important;
        padding: 0.75rem !important;
    }
    
    /* 图标大小调整 */
    .fas, .fab {
        font-size: 1rem !important;
    }
    
    .feature-icon {
        font-size: 2.5rem !important;
    }
    
    /* 文本间距优化 */
    p {
        margin-bottom: 1rem !important;
    }
    
    /* 列表样式优化 */
    ul, ol {
        padding-left: 1.2rem;
    }
    
    li {
        margin-bottom: 0.5rem;
    }
    
    /* 统计数字优化 */
    #download-count,
    #online-count {
        font-size: 1.75rem !important;
    }
    
    /* 按钮和输入框大小 */
    button, input {
        font-size: 0.9rem !important;
    }
    
    /* 滚动条样式 */
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d62828;
}

/* 加载动画 */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* AI聊天窗口样式已移除 */