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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a0a0a"/><path d="M0 0L100 100M100 0L0 100" stroke="%231a1a1a" stroke-width="0.5"/></svg>');
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #ffa500;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

/* 视频背景样式 */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    /* 优化视频加载性能 */
    will-change: transform;
    backface-visibility: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

/* 响应式视频背景 */
@media (max-width: 768px) {
    .video-background video {
        /* 在移动设备上优化视频性能 */
        object-position: center;
    }
    
    /* 为移动设备添加备选背景，以防视频加载失败 */
    .video-background {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x1080?text=热血传奇') center/cover no-repeat;
    }
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #ffa500;
    color: #000;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

/* 游戏特色样式 */
.features {
    background-color: #111;
    padding: 6rem 0;
    color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffa500;
}

/* 武器系统样式 */
.weapons {
    background-color: #0a0a0a;
    padding: 6rem 0;
    color: #fff;
}

.weapons h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.weapon-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-btn {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid rgba(255, 165, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tab-btn:hover {
    background-color: #ffa500;
    color: #000;
}

.tab-btn.active {
    background-color: #ffa500;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.weapon-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

.weapon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
}

.weapon-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weapon-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 首饰系统样式 */
.jewelry {
    background-color: #111;
    padding: 6rem 0;
    color: #fff;
}

.jewelry h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.jewelry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.jewelry-item {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

.jewelry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
}

.jewelry-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.jewelry-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* 下载中心样式 */
.download {
    background-color: #0a0a0a;
    padding: 6rem 0;
    color: #fff;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: block;
    background-color: #1a1a1a;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 250px;
}

.download-btn:hover {
    background-color: #ffa500;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.4);
}

.download-btn span {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* 游戏介绍详情样式 */
.download.game-intro-detail {
    background-color: #1a1a1a;
    padding: 4rem 0;
    text-align: left;
}

.download.game-intro-detail h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffa500;
    text-align: center;
}

.intro-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #2c2c2c;
    border-radius: 8px;
    border: 1px solid #333;
}

.intro-section h3 {
    font-size: 1.8rem;
    color: #ffa500;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

.intro-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #ddd;
}

/* 游戏截图网格 */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.screenshot-item {
    position: relative;
    height: 200px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* 图片加载失败时显示的默认内容 */
.screenshot-item::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #d4af37;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.screenshot-item:hover {
    background-color: #444;
    border-color: #ffa500;
    color: #ffa500;
}

/* 游戏介绍样式 */
.game-intro {
    background-color: #111;
    padding: 6rem 0;
    color: #fff;
}

.game-intro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ddd;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.intro-feature {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
}

.intro-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.3);
    border-color: #ffa500;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.intro-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-feature p {
    font-size: 0.95rem;
    color: #ddd;
}

/* 页脚样式 */
.footer {
    background-color: #111;
    color: #fff;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.footer .container {
    max-width: 1000px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffa500;
    text-transform: uppercase;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 调整游戏介绍部分 */
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* 游戏介绍详情 */
    .gameplay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端菜单 */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    /* 调整字体大小 */
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .game-intro h2,
    .features h2,
    .weapons h2,
    .jewelry h2,
    .download h2 {
        font-size: 2rem;
    }
    
    /* 调整网格布局 */
    .weapon-grid,
    .jewelry-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
    }
    
    /* 调整武器标签 */
    .weapon-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    /* 调整下载按钮 */
    .download-links {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 调整页脚 */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* 游戏介绍详情 */
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* 进一步调整字体大小 */
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .game-intro h2,
    .features h2,
    .weapons h2,
    .jewelry h2,
    .download h2 {
        font-size: 1.8rem;
    }
    
    /* 调整按钮大小 */
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* 调整容器宽度 */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* 调整武器和首饰卡片 */
    .weapon-item,
    .jewelry-item {
        padding: 1.2rem;
    }
    
    /* 调整特色卡片 */
    .feature-item,
    .intro-feature {
        padding: 1.2rem;
    }
    
    /* 游戏介绍详情 */
    .intro-section {
        padding: 1rem;
    }
    
    .intro-section h3 {
        font-size: 1.5rem;
    }
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffa500;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #ff8c00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.5);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ffa500;
    border-radius: 4px;
}

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

/* 文本选中样式 */
::selection {
    background: #ffa500;
    color: #000;
}

::-moz-selection {
    background: #ffa500;
    color: #000;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 减少动画延迟，提升性能 */
.feature-item,
.intro-feature,
.weapon-item,
.jewelry-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 优化字体渲染 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}