body {
    background-image: image-set(url('/images/background-1920.avif') type('image/avif'), url('/images/background-1920.webp') type('image/webp'), url('/images/background.jpg') type('image/jpeg')) !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.page-container {
    padding: 25px 95px;
}

/* 平板适配 */
@media (max-width: 992px) {
    .page-container {
        padding: 20px 50px;
    }
    
    .game-title-main {
        font-size: 22px;
    }
}

/* 手机适配 - 现代化移动端设计 */
@media (max-width: 768px) {
    .page-container {
        padding: 16px !important;
        margin: 8px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    /* 游戏标题区域 */
    .game-title-main {
        font-size: 22px;
        line-height: 1.3;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 12px;
    }
    
    /* 游戏元信息 */
    .game-meta-info {
        font-size: 13px;
        line-height: 1.6;
        color: #4a5568;
        margin-bottom: 16px;
        padding: 12px;
        background: #f7fafc;
        border-radius: 12px;
        border-left: 4px solid #FF6B35;
    }
    
    .game-meta-info span.game-meta-item {
        margin-right: 12px;
        margin-bottom: 6px;
        display: inline-block;
        font-weight: 500;
    }
    
    /* 游戏描述 */
    .game-description-lead {
        font-size: 16px;
        line-height: 1.7;
        padding: 16px;
        background: linear-gradient(135deg, #f0f4ff 0%, #e6f3ff 100%);
        border-radius: 12px;
        color: #2d3748;
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
    }
    
    /* 游戏内容区域 */
    .game-content-section {
        background: #ffffff;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
    }
    
    .game-content-section img {
        border-radius: 12px !important;
        margin: 20px 0 !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        transition: transform 0.3s ease;
    }
    
    .game-content-section img:hover {
        transform: scale(1.02);
    }
    
    .game-content-section p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 16px;
        color: #2d3748;
        text-align: justify;
    }
    
    /* 标题样式增强 */
    .game-content-section h1,
    .game-content-section h2,
    .game-content-section h3 {
        font-size: 20px;
        margin: 24px 0 16px 0;
        color: #1a202c;
        font-weight: 700;
        position: relative;
        padding: 12px 0 12px 20px;
        background: linear-gradient(135deg, #f8fafc 0%, #e6fffa 100%);
        border-radius: 8px;
        border-left: 5px solid #FF6B35;
    }
    
    .game-content-section h4,
    .game-content-section h5,
    .game-content-section h6 {
        font-size: 18px;
        margin: 20px 0 12px 0;
        color: #2d3748;
        font-weight: 600;
        padding-left: 12px;
        border-left: 3px solid #a0aec0;
    }

    /* 评测卡片优化 */
    .review-card {
        display: flex !important;
        align-items: center !important;
        background: linear-gradient(135deg, #FF6B35 0%, #E8425A 100%);
        border-radius: 20px;
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
        position: relative;
        overflow: hidden;
    }

    .review-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="%23ffffff" opacity="0.08"/><circle cx="40" cy="80" r="1.5" fill="%23ffffff" opacity="0.12"/></svg>');
        pointer-events: none;
    }

    .game-detail-page .review-card-title {
        font-size: 24px !important;
        line-height: 1.3;
        margin-bottom: 16px;
        color: #ffffff;
        font-weight: 800;
        position: relative;
        z-index: 1;
    }

    .review-card-meta {
        gap: 12px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.95);
        position: relative;
        z-index: 1;
    }
}

/* 小屏手机适配 */
@media (max-width: 576px) {
    .page-container {
        padding: 15px !important;
        margin: 5px;
    }
    
    .game-article-header {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .game-title-main {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .game-meta-info {
        font-size: 12px;
    }
    
    .game-meta-info span.game-meta-item {
        margin-right: 8px;
        margin-bottom: 3px;
    }
    
    .game-description-lead {
        font-size: 15px;
        padding: 12px 0;
    }
    
    .game-main-image-section {
        margin-bottom: 20px;
    }
    
    .game-content-section p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .game-content-section h1,
    .game-content-section h2,
    .game-content-section h3 {
        font-size: 17px;
    }
    
    .game-content-section h4,
    .game-content-section h5,
    .game-content-section h6 {
        font-size: 15px;
    }
}

/* 游戏详情页面样式 */
/* .game-detail-container is now handled by .page-container in detail-page.css */

.game-article-header {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.game-title-main {
    font-size: 24px;
    font-weight: 600;
    color: #1c1c1c;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.game-meta-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.game-meta-info span.game-meta-item {
    margin-right: 15px;
}

.game-description-lead {
    font-size: 15px;
    color: #444;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px 0px;
    background-color: transparent;
    line-height: 1.6;
}

.game-main-image-section {
    margin-bottom: 25px;
}

.game-main-image-section img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.game-content-section>* {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.2em !important;
}

.game-content-section p {
    text-align: left;
}

.game-content-section img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.game-content-section h1,
.game-content-section h2,
.game-content-section h3,
.game-content-section h4,
.game-content-section h5,
.game-content-section h6 {
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.game-content-section h2 {
    font-size: 1.8em;
    margin-top: 0.6em;
    margin-bottom: 0.6em;
}

.game-content-section h3 {
    font-size: 1.5em;
}

/* text-align: left and width: 100% are inherited now */
.game-content-section a,
.game-content-section a:link,
.game-content-section a:visited {
    color: #007bff !important;
    text-decoration: underline !important;
}

.game-content-section a:hover,
.game-content-section a:active {
    color: #0056b3 !important;
    text-decoration: none !important;
}

.game-pros-cons {
    margin-top: 20px;
    margin-bottom: 20px;
}

.game-pros-cons h4 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 8px;
}

.game-pros-cons ul {
    list-style-type: none;
    padding-left: 0;
}

.game-pros-cons ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.game-pros-cons .pros li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
}

.game-pros-cons .cons li::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #dc3545;
    position: absolute;
    left: 0;
}

/* 游戏头部信息 - 更新为类似图2的样式 */
.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 25px;
    color: #fff;
}

.game-cover {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 0;
    /* Remove previous padding, handled by .game-header */
    flex-grow: 1;
}

.game-info h1 {
    margin-top: 0;
    margin-bottom: 10px;
    /* Adjusted margin */
    font-size: 32px;
    /* Keep font size or adjust as needed */
    color: #fff;
    /* Title color against dark background */
}

.game-meta {
    display: flex;
    flex-direction: column;
    /* Stack meta items vertically */
    margin-bottom: 0;
    /* Remove bottom margin as items are stacked */
    color: #ccc;
    /* Lighter meta text color */
}

.game-meta span {
    margin-right: 0;
    /* Remove right margin */
    margin-bottom: 5px;
    /* Keep bottom margin for spacing between stacked items */
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    /* Add some space above tags */
}

.game-tag {
    background-color: #555;
    /* Darker tag background */
    color: #fff;
    /* Tag text color */
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    /* Slightly smaller tags */
}

/* 游戏内容区域 */
.game-content {
    margin-bottom: 40px;
}

.review-summary,
.game-media,
.full-review,
.game-specs {
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.review-summary h2,
.game-media h2,
.full-review h2,
.game-specs h2,
.related-games h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.review-summary p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    max-width: 100%;
    /* Adjusted for better readability */
    margin-bottom: 15px;
    /* Center the text and add bottom margin */
}

/* 游戏截图画廊 */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.screenshot {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.screenshot:hover {
    transform: scale(1.03);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Ensure image fits within its container while maintaining aspect ratio */
}

/* 详细评测内容 */
.full-review p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2em;
    /* Limit line length and center for better readability */
    max-width: 100%;
    /* Adjusted for better readability */
    /* Limit line length for better readability */
}

/* Ensure images within the full-review content align with text width */
.full-review #reviewContent img {
    max-width: 100%;
    /* 合并margin属性，设置上下间距为30px并居中显示 */
    margin: 30px auto;
    height: auto;
    display: block;
    /* Ensure images align with text content width */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.full-review h3 {
    font-size: 20px;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* 游戏信息表格 */
.game-specs table {
    width: 100%;
    border-collapse: collapse;
}

.game-specs th,
.game-specs td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.game-specs th {
    width: 120px;
    color: #666;
    font-weight: 600;
}

/* 相关游戏推荐 */
.related-games {
    margin-bottom: 40px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.related-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-game-info {
    padding: 12px;
}

.related-game-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-game-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Add specific rules for content within .game-content-section */
.game-content-section p {
    max-width: 100%;
    /* Ensure paragraphs within the main content section are constrained */
}

.game-content-section img {
    max-width: 100%;
    /* Ensure images within the main content section are constrained */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Comment form actions are now handled by detail-page.css */

/* 响应式设计 */
@media (max-width: 768px) {
    .game-detail-container {
        padding: 0 !important;
        margin: 0 !important;
        /* Reset margin for full width */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Ensure it takes full width */
    }

    .game-header {
        flex-direction: column;
        padding: 15px 0 !important;
        /* Ensures left/right padding are 0 and important */
        /* Reduced padding for mobile, removed side padding */
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Adjusted margin */
    }

    .game-info {
        padding-top: 15px;
        /* Add some space above title when stacked */
        text-align: center;
        /* Center info text on mobile */
    }

    .game-info h1 {
        font-size: 24px;
        /* Reduced font size for mobile */
        margin-bottom: 8px;
    }

    .game-meta span {
        font-size: 13px;
        /* Slightly smaller meta text */
        margin-bottom: 4px;
    }

    .game-tags {
        justify-content: center;
        /* Center tags on mobile */
        margin-top: 10px;
    }

    .review-summary,
    .game-media,
    .full-review,
    .game-specs,
    .related-games {
        /* Added .related-games */
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Adjust max-width for smaller screens */
    .game-content-section p,
    .game-content-section img,
    .review-summary p,
    .full-review p,
    .full-review img {
        max-width: 100% !important;
        /* Changed from 95% for full width */
        /* Use a percentage for responsiveness */
    }

    .game-cover {
        width: 100%;
        max-width: 300px;
        /* Max width for the cover image on mobile */
        height: 200px;
        /* Reduced height for mobile */
        margin-right: 0;
        /* Remove right margin as it's stacked */
        margin-bottom: 15px;
        /* Add bottom margin when stacked */
    }

    .screenshot-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
