* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #2a1f0d;
    color: #fff;
}

.header {
    background: #1a1407;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #ffd700;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 2px 2px #1a1407;
}

.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://agent17.cc/images/bg.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em;
    color: #ffe8a3;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.download-container {
    margin-top: 30px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(135deg, #ffd700 0%, #FFA500 100%);
    color: #1a1407;
    padding: 18px 50px;
    font-size: 1.8em;
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 25%,
        rgba(255,255,255,0.1) 50%,
        transparent 75%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

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

.main-text {
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.version-text {
    font-size: 0.7em;
    background: rgba(0,0,0,0.1);
    padding: 3px 10px;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.version-details {
    margin-top: 12px;
    font-size: 0.9em;
    color: #ffd700;
    display: flex;
    gap: 8px;
    justify-content: center;
}

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

.feature-card {
    background: #2a1f0d;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #ffd70033;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.video-container {
    max-width: 1200px;
    margin: 50px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    padding-top: 56.25%;
}

.gameplay-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 新增模块样式 */
.characters,
.media-gallery,
.reviews,
.news {
    padding: 50px 20px;
    background: #1a1407;
    border-top: 1px solid #ffd70033;
}

.characters h2,
.media-gallery h2,
.reviews h2,
.news h2 {
    text-align: center;
    font-size: 2.2em;
    color: #ffd700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.character-card {
    background: #2a1f0d;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #ffd70033;
    transition: transform 0.3s;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 2px solid #ffd70033;
}

.character-card h3 {
    color: #ffd700;
    margin-bottom: 10px;
}

.character-card p {
    color: #ffe8a3;
    font-size: 0.95em;
    line-height: 1.5;
}

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

.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
    border: 2px solid #ffd70033;
}

.gallery-item:hover {
    transform: scale(1.03);
}

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

.review-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #2a1f0d;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ffd70033;
}

.rating {
    color: #ffd700;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.review-card p {
    color: #ffe8a3;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.user {
    color: #ffd700;
    font-size: 0.9em;
}

.news-article {
    background: #2a1f0d;
    padding: 25px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 8px;
    border: 1px solid #ffd70033;
}

.news-article time {
    display: block;
    color: #ffd700;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.news-article h3 {
    color: #fff;
    margin-bottom: 12px;
}

.news-article p {
    color: #ffe8a3;
    line-height: 1.6;
}

/* 新增版本记录样式 */
.version-history {
    padding: 50px 20px;
    background: #1a1407;
    border-top: 1px solid #ffd70033;
}

.version-history h2 {
    text-align: center;
    font-size: 2.2em;
    color: #ffd700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.version-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 120px;
    gap: 15px;
    padding: 15px 25px;
    background: #3a2e1a;
    color: #ffd700;
    max-width: 800px;
    margin: 0 auto 15px;
    border-radius: 8px;
}

.version-card {
    background: #2a1f0d;
    padding: 25px;
    margin: 15px auto;
    max-width: 800px;
    border-radius: 8px;
    border: 1px solid #ffd70033;
    display: grid;
    grid-template-columns: repeat(4, 1fr) 120px;
    gap: 15px;
    align-items: center;
}

.version-card .version-tag {
    background: #ffd700;
    color: #1a1407;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.version-card .download-btn.small {
    padding: 8px 20px;
    font-size: 1em;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #ffd700 0%, #FFA500 100%);
    color: #1a1407;
    text-decoration: none;
    transition: all 0.3s ease;
}

.version-card .download-btn.small:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
}

/* 友情链接样式 */
.friend-links {
    padding: 50px 20px;
    background: #1a1407;
    border-top: 1px solid #ffd70033;
}

.friend-links h2 {
    text-align: center;
    font-size: 2.2em;
    color: #ffd700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.links-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.links-container a {
    background: #2a1f0d;
    color: #ffd700;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    border: 1px solid #ffd70033;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.links-container a:hover {
    background: #ffd70022;
    transform: translateY(-2px);
}

/* 底部样式 */
footer {
    background: #1a1407;
    padding: 30px 20px;
    border-top: 3px solid #ffd700;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

footer p {
    color: #ffe8a3;
    margin: 10px 0;
    font-size: 0.9em;
}

footer a {
    color: #FFA500;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #FFA500 100%);
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
    color: #1a1407;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* 最新动态优化样式 */
.news {
    padding: 60px 20px;
    background: #1a1407;
    border-top: 1px solid #ffd70033;
}

.news h2 {
    text-align: center;
    font-size: 2.5em;
    color: #ffd700;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    padding-bottom: 15px;
}

.news h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-article {
    background: #2a1f0d;
    border-radius: 12px;
    border: 1px solid #ffd70033;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.news-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.1);
    border-color: #ffd70066;
}

.news-article time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.news-article time i {
    font-size: 1.1em;
}

.news-article h3 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: 3.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-left: 3px solid #ffd700;
    padding-left: 12px;
}

.news-article p {
    color: #ffe8a3;
    line-height: 1.6;
    font-size: 0.95em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-article .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 15px;
    border: 1px solid #ffd70033;
    border-radius: 20px;
}

.news-article .read-more:hover {
    background: #ffd70015;
    gap: 12px;
}

.news-article .read-more i {
    transition: transform 0.3s;
}

.news-article .read-more:hover i {
    transform: translateX(3px);
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    /* 功能卡片布局 */
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }

    /* hero部分调整 */
    .hero {
        height: 60vh;
    }

    /* 角色网格调整 */
    .character-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .character-card img {
        height: 250px;
    }

    /* 图库布局 */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* 评价滑块 */
    .review-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 新闻文章 */
    .news-article {
        margin: 15px;
        padding: 20px;
    }

    /* 版本历史表格改为响应式布局 */
    .version-header {
        display: none;
    }
    
    .version-card {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 15px;
    }
    
    .version-card > div {
        position: relative;
        padding-left: 120px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    .version-card > div:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .version-card > div::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ffd700;
        position: absolute;
        left: 0;
    }

    /* 友情链接 */
    .links-container {
        gap: 15px;
        padding: 0 15px;
    }

    .links-container a {
        width: 100%;
        text-align: center;
    }

    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.8em;
    }
    
    .news {
        padding: 40px 15px;
    }

    .news h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .news-grid {
        gap: 20px;
    }

    .news-article {
        padding: 20px;
    }

    .news-article h3 {
        font-size: 1.2em;
        min-height: auto;
        -webkit-line-clamp: 3;
        padding-left: 10px;
    }

    .version-history h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .logo {
        font-size: 1.5em;
    }

    .hero {
        height: 50vh;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .download-btn {
        font-size: 1.1em;
        flex-direction: column;
        gap: 8px;
    }

    .version-details {
        flex-wrap: wrap;
        row-gap: 5px;
    }

    /* 角色卡片图片优化 */
    .character-card img {
        height: 200px;
    }

    /* 游戏视频容器 */
    .video-container {
        margin: 30px auto;
        border-radius: 8px;
    }

    /* 底部文字换行保护 */
    .footer-content p {
        line-height: 1.5;
        word-break: break-word;
    }

    /* 优化移动端表格显示 */
    .version-card > div::before {
        min-width: 80px;
        display: inline-block;
        text-align: left;
        font-size: 0.9em;
    }
    
    .version-card {
        padding: 12px;
        margin: 10px auto;
    }
    
    .version-card > div {
        padding-left: 100px;
        margin-bottom: 8px;
        font-size: 0.9em;
    }
    
    .version-card .download-btn.small {
        width: 100%;
        padding: 10px;
        margin-left: 0;
    }
    
    .news-article time {
        font-size: 0.85em;
    }

    .news-article h3 {
        font-size: 1.1em;
    }

    .news-article p {
        font-size: 0.9em;
    }

    .read-more {
        font-size: 0.9em;
    }

    .version-history h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
} 