/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 50%, #ff1744 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ff4757;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.desktop-nav a:hover {
    color: #ff4757;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff4757;
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.download-btn {
    background: linear-gradient(45deg, #ff4757, #ff6b6b) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* 移动端导航 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header h3 {
    color: #ff4757;
    font-size: 1.2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-menu a:hover {
    background: #f8f9fa;
    border-left-color: #ff4757;
    color: #ff4757;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    padding: 40px 0;
}

/* 游戏信息卡片 */
.game-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 245, 0.92) 50%, rgba(255, 255, 255, 0.90) 100%), 
                url('../images/cover-img-m9x2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 15px 50px rgba(255, 71, 87, 0.15), 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.game-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.05), rgba(255, 107, 107, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-info-card:hover::before {
    opacity: 1;
}

.game-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 71, 87, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.game-icon img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-title-section {
    flex: 1;
}

.game-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-subtitle {
    font-size: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    color: #ffa500;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    font-weight: 500;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #fff0e6);
    border-radius: 15px;
    border-left: 4px solid #ff4757;
}

/* 下载区域 */
.download-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    border-radius: 20px;
    color: white;
}

.download-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 25px 40px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.download-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-button i {
    font-size: 2rem;
}

.download-button small {
    font-size: 0.9rem;
    opacity: 0.9;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.info-item i {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 通用区域样式 */
.game-features,
.game-screenshots-section,
.game-story,
.game-guide,
.game-news,
.links-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ff4757;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff4757;
}

/* 游戏特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    background: linear-gradient(135deg, #fff5f5, #fff0e6);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.15);
    border-color: #ff4757;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #ff4757;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 故事背景 */
.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.story-text h3 {
    color: #ff4757;
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.story-text p {
    margin-bottom: 20px;
}

.character-intro {
    display: flex;
    gap: 25px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5, #fff0e6);
    border-radius: 15px;
    align-items: center;
}

.character-image {
    width: 220px;
    height: 280px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.character-info h4 {
    color: #ff4757;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.character-info p {
    color: #666;
    line-height: 1.6;
}

.game-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 游戏截图板块专用样式 */
.game-screenshots-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 245, 0.95));
}

.screenshots-intro {
    text-align: center;
    margin-bottom: 30px;
}

.screenshots-intro p {
    font-size: 1.1rem;
    color: #666;
    padding: 15px 30px;
    background: linear-gradient(135deg, #fff5f5, #fff0e6);
    border-radius: 25px;
    border-left: 4px solid #ff4757;
    display: inline-block;
}

.game-screenshots-section .game-screenshots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.game-screenshots-section .screenshot {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.game-screenshots-section .screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 71, 87, 0.1), rgba(255, 107, 107, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-screenshots-section .screenshot:hover::before {
    opacity: 1;
}

.game-screenshots-section .screenshot:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 71, 87, 0.2);
}

.screenshots-note {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border-radius: 15px;
    border-left: 4px solid #28a745;
}

.screenshots-note p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.screenshots-note i {
    color: #28a745;
    margin-right: 8px;
}

/* 攻略和资讯 */
.guide-intro,
.news-content {
    margin-bottom: 30px;
}

.guide-intro p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5, #fff0e6);
    border-radius: 15px;
}

.guide-articles,
.news-articles {
    display: grid;
    gap: 25px;
}

.guide-article,
.news-article {
    background: linear-gradient(135deg, #fff5f5, #fff0e6);
    padding: 25px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #ff4757;
}

.guide-article:hover,
.news-article:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.15);
}

.guide-article h3,
.news-article h3 {
    margin-bottom: 15px;
}

.guide-article h3 a,
.news-article h3 a {
    color: #ff4757;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.guide-article h3 a:hover,
.news-article h3 a:hover {
    color: #ff6b6b;
}

.guide-article p,
.news-article p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9rem;
    color: #999;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 友情链接 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.links-grid a {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.links-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #ff4757;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff4757;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav-overlay.active {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .game-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .game-icon img {
        width: 100px;
        height: 100px;
    }
    
    .game-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .character-intro {
        flex-direction: column;
        text-align: center;
    }
    
    .character-image {
        width: 180px;
        height: 240px;
        object-fit: cover;
        object-position: center;
    }
    
    .download-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-info-card,
    .game-features,
    .game-screenshots-section,
    .game-story,
    .game-guide,
    .game-news,
    .links-section {
        padding: 25px 20px;
    }
    
    .game-info-card {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        /* 确保背景图片在移动设备上正确显示 */
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
    }
    
    .game-screenshots-section .game-screenshots {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 15px;
    }
    
    .game-screenshots-section .screenshot {
        height: 200px;
    }
    
    .screenshots-intro p {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-screenshots {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .screenshot {
        height: 180px;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .download-button {
        padding: 20px 30px;
        font-size: 1.1rem;
    }
    
    .game-info-card,
    .game-features,
    .game-screenshots-section,
    .game-story,
    .game-guide,
    .game-news,
    .links-section {
        padding: 20px 15px;
    }
    
    .game-info-card {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        border-radius: 15px;
        /* 移动设备背景图片优化 */
        -webkit-background-size: cover !important;
        -moz-background-size: cover !important;
        -o-background-size: cover !important;
        /* 防止背景图片在滚动时消失 */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .game-screenshots-section .game-screenshots {
        grid-template-columns: 1fr !important;
        grid-template-rows: repeat(8, 1fr) !important;
        gap: 12px;
    }
    
    .game-screenshots-section .screenshot {
        height: 180px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
}

/* 图片通用样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Favicon和图标优化 */
link[rel="icon"],
link[rel="shortcut icon"],
link[rel="apple-touch-icon"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 确保所有游戏相关图片填充显示 */
.game-icon img,
.character-image,
.screenshot,
.logo-icon {
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 防止图片在移动设备上消失 */
.game-screenshots img,
.screenshot,
.character-image {
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}


/* 白帽资讯协议页面与下载确认弹窗 */
.news-page-main { padding: 110px 0 60px; min-height: 70vh; }
.news-page-heading { margin-bottom: 30px; }
.news-page-heading p { text-align: center; color: #555; margin-top: -16px; }
.news-article h2 { font-size: 1.25rem; margin-bottom: 10px; }
.news-article h2 a { color: #ff4757; text-decoration: none; transition: color 0.3s ease; }
.news-article h2 a:hover { color: #ff6b6b; }
.news-list-actions { margin-top: 28px; text-align: center; }
.news-list-actions .back-btn { display: inline-flex; }
.article-generated-content { white-space: normal; }
.download-confirm-overlay {
    position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center;
    padding: 20px; background: rgba(23, 13, 18, 0.72); backdrop-filter: blur(5px);
}
.download-confirm-overlay.active { display: flex; }
.download-confirm-dialog {
    width: min(460px, 100%); padding: 30px; border-radius: 20px; background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); text-align: center;
}
.download-confirm-dialog h2 { color: #ff4757; margin-bottom: 12px; }
.download-confirm-dialog p { color: #555; margin-bottom: 24px; }
.download-confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.download-confirm-actions button {
    border: 0; border-radius: 24px; padding: 11px 24px; font: inherit; font-weight: 700; cursor: pointer;
}
.download-confirm-cancel { background: #edf0f3; color: #444; }
.download-confirm-continue { background: linear-gradient(45deg, #ff4757, #ff6b6b); color: #fff; }
@media (max-width: 600px) {
    .news-page-main { padding-top: 88px; }
    .download-confirm-dialog { padding: 24px 18px; }
}
