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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(44, 44, 44, 0.1) 0%, rgba(15, 15, 15, 0.1) 90%),
        linear-gradient(to bottom, #0a0a0a, #1a1a1a, #0a0a0a);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.logo{
     background-image: url('/templates/19/default/_files/images/logo.png');
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 span {
    color: #b22222;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #f0f0f0;
    background-color: rgba(178, 34, 34, 0.2);
}

nav ul li a.active {
    color: #b22222;
    font-weight: 700;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #b22222;
}

.mobile-menu {
    display: none;
}

#menu-toggle {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section Styles */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

/* 首页特定的hero布局 */
.home-hero {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.home-hero .trailer {
    flex: 3;
    min-width: 0;
}

.home-hero .related-games {
    flex: 1;
    min-width: 250px;
}

/* 增加iframe高度 */
.trailer iframe {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 调整相关游戏区域的样式 */
.related-games {
    display: flex;
    flex-direction: column;
}

.related-games h3 {
    font-size: 1.25rem; /* 调小一个字号 */
    margin-bottom: 20px;
}

.related-games-grid {
    display: grid;
    grid-template-columns: 1fr; /* PC端每行放置一个图片 */
    gap: 15px;
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: rgba(26, 26, 26, 0.8);
    transition: transform 0.3s ease;
}

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

.game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.game-card p {
    padding: 8px;
    margin: 0;
    font-size: 0.8rem; /* 调小一个字号 */
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero {
        width: 90%;
        margin: 0 auto;
        padding: 30px 0;
    }
    
    .home-hero {
        flex-direction: column;
    }
    
    .trailer iframe {
        height: 300px;
    }
    
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr); /* 移动端每行放置2个图片链接 */
    }
}

/* 修改hero部分的伪元素样式 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 降低透明度从0.8到0.3 */
    z-index: 1;
}

/* 为hero部分的子元素设置更高的z-index */
.hero .trailer,
.hero .related-games {
    position: relative;
    z-index: 3; /* 确保内容在覆盖层之上 */
}

/* 首页hero布局 - 移除背景图片或保持一致性 */
.home-hero {
    /* 如果不需要背景图片，可以注释掉 */
    background-image: url('https://via.placeholder.com/1920x1080?text=No+I%27m+Not+a+Human');
}

/* 确保iframe和游戏卡片清晰可见 */
.trailer iframe {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 4; /* 确保iframe在最上层 */
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: rgba(26, 26, 26, 0.9); /* 增加不透明度 */
    transition: transform 0.3s ease;
    z-index: 3;
}

/* 调整首页hero布局比例为8:2 */
.home-hero .trailer {
    flex: 8;
    min-width: 0;
}

.home-hero .related-games {
    flex: 2;
    min-width: 200px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .home-hero {
        flex-direction: column;
    }
    
    .trailer iframe {
        height: 300px;
    }
}

 
.games-hero {
    background-image: url('https://via.placeholder.com/1920x1080?text=Related+Games');
}

.wiki-hero {
    background-image: url('https://via.placeholder.com/1920x1080?text=Game+Wiki');
}

.visitors-hero {
    background-image: url('https://via.placeholder.com/1920x1080?text=Visitors+%26+Characters');
}

.photo-hero {
    background-image: url('https://via.placeholder.com/1920x1080?text=Photo+Gallery');
}

.privacy-hero {
    background-image: url('https://via.placeholder.com/1920x1080?text=Privacy+Policy');
}

.terms-hero {
    background-image: url('https://via.placeholder.com/1920x1080?text=Terms+of+Service');
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-in-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-in-out;
}

/* Section Styles */
section {
    padding: 60px 0;
}

section:nth-child(odd) {
    background-color: rgba(10, 10, 10, 0.8);
}

section:nth-child(even) {
    background-color: rgba(26, 26, 26, 0.8);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #b22222;
}

/* Introduction Sections */
.home-intro, .games-intro, .wiki-intro, .visitors-intro, .gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.home-intro p, .games-intro p, .wiki-intro p, .visitors-intro p, .gallery-intro p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Card Styles */
.game-cards, .wiki-cards, .visitor-types, .gallery, .character-cards, .feature-cards, .gameplay-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card, .wiki-card, .visitor-card, .character-card, .feature-card, .tip-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.game-card:hover, .wiki-card:hover, .visitor-card:hover, .character-card:hover, .feature-card:hover, .tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: #555;
}

.game-card img, .wiki-card img, .character-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #333;
}

.game-card-content, .wiki-card-content, .visitor-info, .character-info, .feature-content, .tip-content {
    padding: 20px;
}

.game-card-content h3, .wiki-card-content h3, .visitor-info h4, .character-info h3, .feature-content h3, .tip-content h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.game-card-content p, .wiki-card-content p, .visitor-info p, .character-info p, .feature-content p, .tip-content p {
    color: #d0d0d0;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Specific Sections */
.steam-info {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    border: 1px solid #333;
}

.steam-info h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.steam-info p {
    margin-bottom: 15px;
}

.steam-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.steam-button {
    background-color: #1b2838;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.steam-button:hover {
    background-color: #2a475e;
    transform: translateY(-2px);
}

.gameplay-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.guide-section {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #333;
}

.guide-section h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid #b22222;
    padding-bottom: 10px;
}

.guide-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.guide-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.guide-section ul li {
    margin-bottom: 8px;
}

.faq-section {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.faq-item h3 {
    color: #f0f0f0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #d0d0d0;
    line-height: 1.6;
}

/* Footer Styles */
footer {
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    padding: 40px 0 20px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.link-group h4 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.link-group ul li a:hover {
    color: #b22222;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 8px;
}

/* Privacy and Terms Pages */
.privacy-content, .terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section, .terms-section {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.privacy-section h3, .terms-section h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: 2px solid #b22222;
    padding-bottom: 10px;
}

.privacy-section h4, .terms-section h4 {
    color: #e0e0e0;
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

.privacy-section p, .terms-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.privacy-section ul, .terms-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.privacy-section ul li, .terms-section ul li {
    margin-bottom: 8px;
}

/* Gallery Specific Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-container {
    height: 200px;
    overflow: hidden;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.photo-description {
    padding: 15px;
    color: #e0e0e0;
}

.photo-description h3 {
    margin-top: 0;
    color: #f0f0f0;
    margin-bottom: 10px;
}

.photo-description p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #bbb;
}

/* Game list styling */
.game-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.game-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.3);
}

.game-list-item a {
    display: block;
    width: 100%;
    margin-bottom: 8px;
}

.game-list-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

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

.game-list-item h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-list-item {
        padding: 8px;
    }
    
    .game-list-item img {
        height: 120px;
    }
    
    .game-list-item h4 {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .game-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Visitor Specific Styles */
.visitor-category {
    margin-bottom: 40px;
}

.visitor-category h3 {
    color: #f0f0f0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #b22222;
    padding-bottom: 10px;
}

/* 紧凑的访客介绍样式 */
.visitors-intro-compact {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.visitors-intro-compact p {
    margin: 0;
    line-height: 1.6;
}

.identification-tips {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.identification-tips strong {
    color: #f0f0f0;
}

.identification-tips ul {
    padding-left: 20px;
    margin-top: 10px;
}

.identification-tips ul li {
    margin-bottom: 5px;
}

.behavior-patterns, .tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pattern, .tip {
    background-color: rgba(26, 26, 26, 0.8);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.pattern h3, .tip h3 {
    color: #f0f0f0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.pattern p, .tip p {
    color: #d0d0d0;
    line-height: 1.6;
}

/* 图片和内容区域优化 */
.featured-image,
.game-loop-image,
.endings-image {
    margin: 20px 0;
    text-align: center;
}

.featured-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.featured-image img:hover {
    transform: scale(1.02);
}

.ending-card {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.ending-card:hover {
    background-color: rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .featured-image img {
        border-radius: 4px;
    }
}

.achievement-badge,
.platform-info {
    background-color: rgba(40, 40, 40, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.game-rules,
.tips-list,
.endings-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.game-rules li,
.tips-list li,
.endings-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq-item {
    margin-bottom: 15px;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 15px;
    border-radius: 6px;
}

.faq-item h4 {
    color: #e0e0e0;
    margin-top: 0;
    margin-bottom: 10px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .achievement-badge,
    .platform-info {
        flex-direction: column;
        text-align: center;
    }
    
    .platform-info img {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(178, 34, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(178, 34, 34, 0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .gameplay-guide, .behavior-patterns, .tips-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .steam-buttons {
        flex-direction: column;
    }
    
    .steam-button {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    nav {
        width: 100%;
        display: none;
    }
    
    nav.mobile-open {
        display: block;
        margin-top: 15px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .copyright p {
        font-size: 0.8rem;
    }
    
    .privacy-section, .terms-section {
        padding: 20px 15px;
    }
    
    .privacy-section h3, .terms-section h3 {
        font-size: 1.3rem;
    }
    
    .privacy-section h4, .terms-section h4 {
        font-size: 1.1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #050505;
    }
    
    section:nth-child(odd) {
        background-color: rgba(5, 5, 5, 0.8);
    }
    
    section:nth-child(even) {
        background-color: rgba(20, 20, 20, 0.8);
    }
}

/* Print Styles */
@media print {
    header, footer, .hero, .steam-buttons {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    section {
        background: white;
        padding: 20px 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    body {
        color: white;
        background-color: black;
    }
    
    header, footer {
        border-color: white;
    }
    
    .section-title::after, .guide-section h3, .privacy-section h3, .terms-section h3 {
        background-color: white;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Keyboard Navigation */
button:focus, a:focus {
    outline: 2px solid #b22222;
    outline-offset: 2px;
}

/* 将元素缩放至75% */
.scaled-75 {
    transform: scale(0.9);
    transform-origin: top left;
}

/* 调整缩放后内部元素的文字大小 */
.scaled-75 h3 {
    font-size: 1.0rem; /* 原始的1.25rem × 0.75 = 0.9375rem */
    margin-bottom: 15px; /* 原始的20px × 0.75 = 15px */
}

/* 调整缩放后图片卡片的文字大小 */
.scaled-75 .game-card p {
    font-size: 0.6rem; /* 原始的0.8rem × 0.75 = 0.6rem */
    padding: 6px; /* 原始的8px × 0.75 = 6px */
}

/* 调整缩放后图片的高度 */
.scaled-75 .game-card img {
    height: 112.5px; /* 原始的150px × 0.75 = 112.5px */
}

/* 新的主容器样式 */
.new-main-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px); /* 减去header的高度 */
}

/* 固定的左侧边栏样式 - 确保在最左边 */
.fixed-sidebar {
    position: fixed;
    left: 0;
    top: 80px; /* 位于header下方 */
    width: 15%; /* 原先是20%，现在改为20% × 0.75 = 15% */
    min-width: 187.5px; /* 原先是250px，现在改为250px × 0.75 = 187.5px */
    max-width: 225px; /* 原先是300px，现在改为300px × 0.75 = 225px */
    height: calc(100vh - 80px);
    background-color: rgba(10, 10, 10, 0.95);
    border-right: 1px solid #333;
    padding: 20px;
    overflow-y: auto;
    z-index: 50;
}

/* Main content area with sidebar margin */
.content-with-sidebar {
    width: 100%;
    margin-left: 2%;
    min-width: calc(100% - 187.5px);
}

/* 分页容器样式 */
.pagination-container {
    margin-bottom: 15px;
}

/* 分页控件样式 */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 分页按钮样式 */
.pagination-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.pagination-btn:hover {
    background-color: rgba(178, 34, 34, 0.2);
    border-color: #b22222;
}

.pagination-btn.active {
    background-color: #b22222;
    border-color: #b22222;
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 调整container样式 */
.content-with-sidebar .container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 确保在移动端也保持一行一个图片的布局 */
@media (max-width: 768px) {
    .new-main-container {
        flex-direction: column;
    }
    
    .fixed-sidebar {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        min-width: auto;
        max-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #333;
    }
    
    .content-with-sidebar {
        width: 100%;
        margin-left: 0;
    }
    
    /* 确保在移动端related-games-grid也是一行一个图片 */
    .related-games-grid {
        grid-template-columns: 1fr !important;
    }
}