/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #0a0a0a;
    color: #f0f0f0;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(34, 139, 34, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(34, 139, 34, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
}
 

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

/* Header & Navigation */
header {
    background-color: #000;
    border-bottom: 2px solid #228b22;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.menu-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #228b22;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: 0;
}

.menu-icon span {
    top: 8px;
}

.menu-icon::after {
    bottom: 0;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #228b22;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: #228b22;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show mobile menu button */
    .mobile-menu-button {
        display: block;
    }
    
    /* Hide main navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #000;
        border-left: 2px solid #228b22;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    /* Show navigation when active */
    .main-nav.active {
        right: 0;
    }
    
    /* Change menu icon to close icon when menu is active */
    .mobile-menu-button.active .menu-icon::before {
        transform: rotate(45deg);
        top: 8px;
    }
    
    .mobile-menu-button.active .menu-icon::after {
        transform: rotate(-45deg);
        bottom: 8px;
    }
    
    .mobile-menu-button.active .menu-icon span {
        opacity: 0;
    }
    
    /* Change navigation to vertical layout on mobile */
    .main-nav ul {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .main-nav ul li {
        margin: 0 0 20px 0;
        border-bottom: 1px solid rgba(34, 139, 34, 0.3);
        padding-bottom: 15px;
    }
    
    .main-nav ul li a {
        font-size: 1.3rem;
        display: block;
    }
    
    /* Add a semi-transparent overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 99;
        display: none;
    }
    
    .nav-overlay.active {
        display: block;
    }
}
.logo img {
    max-height: 60px;
    filter: drop-shadow(0 0 5px rgba(34, 139, 34, 0.7));
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #228b22;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover {
    color: #228b22;
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: calc(100vh - 230px);
}

section {
    margin-bottom: 10px;
}

h1, h2, h3, h4 {
    color: #228b22;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 1.9rem;
    border-bottom: 1px solid #228b22;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 40px;
}

h3 {
    font-size: 1.2rem;
    color: #32cd32;
}
h4 {
    font-size: 0.8rem;
    color: #32cd32;
}
p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

a {
    color: #32cd32;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #228b22;
    text-decoration: underline;
}

/* Fullscreen Button Container */
.fullscreen-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Ensure the hero section can handle fullscreen properly */
.hero {
    position: relative;
    overflow: hidden;
}

/* Game Introduction Section Text Color */
.game-intro {
    color: #ffffff;
}

.game-intro p,
.game-intro h2,
.game-intro h3,
.game-intro h4,
.game-intro a {
    color: #ffffff;
}

.game-intro a:hover {
    color: #ffffff;
    text-decoration: underline;
 
margin-bottom: 60px;
    border: 2px solid #228b22;
}

/* Adjust hero image for iframe content */
.hero-image {
    width: 100%;
     height: 380px;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.hero-content h1 {
    color: #fff;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(34, 139, 34, 0.8);
    border: none;
}

.cta-button {
    display: inline-block;
    background-color: #228b22;
    color: #000;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #32cd32;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(34, 139, 34, 0.7);
    color: #000;
    text-decoration: none;
}

/* Game Info Section */
.game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .game-info {
        grid-template-columns: 1fr;
    }
}

.game-description {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 30px;
    border-left: 3px solid #228b22;
}

.game-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.game-screenshot {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #228b22;
    transition: transform 0.3s ease;
}

.game-screenshot:hover {
    transform: scale(1.03);
    filter: brightness(1.2);
}

/* News & Reviews Sections */
.news-list, .reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-item, .review-item {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 20px;
    border: 1px solid #228b22;
    transition: all 0.3s ease;
}

.news-item:hover, .review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(34, 139, 34, 0.2);
}

.news-date, .review-author {
    color: #32cd32;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-source {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

.review-rating {
    color: #228b22;
    margin-bottom: 10px;
}

/* Wiki Styles */
.wiki-toc {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid #228b22;
}

.wiki-toc ul {
    list-style: none;
}

.wiki-toc li {
    margin-bottom: 10px;
}

.wiki-section {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #228b22;
}

.character, .enemy, .location {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #228b22;
}

.character:last-child, .enemy:last-child, .location:last-child {
    border-bottom: none;
}

/* News Page */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-full-item {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 20px;
    border-left: 3px solid #228b22;
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .news-full-item {
        flex-direction: column;
    }
}

.news-full-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .news-full-image {
        width: 100%;
        height: 200px;
    }
}

/* Form Styles */
form {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 30px;
    border: 1px solid #228b22;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #32cd32;
}

input, textarea {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #228b22;
    color: #f0f0f0;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #32cd32;
    box-shadow: 0 0 5px rgba(34, 139, 34, 0.5);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #000;
    border-top: 2px solid #228b22;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: #228b22;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #228b22;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #228b22;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.highlight {
    color: #32cd32;
    font-weight: bold;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #228b22;
}

.faq-question {
    background-color: rgba(34, 139, 34, 0.1);
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.faq-answer {
    background-color: rgba(10, 10, 10, 0.5);
    padding: 15px;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    color: #228b22;
    font-size: 1.5rem;
}

/* Similar Games Section */
.similar-games {
    margin-bottom: 60px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: rgba(10, 10, 10, 0.8);
    border: 1px solid #228b22;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(34, 139, 34, 0.2);
}

.game-card-image-big {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid #228b22;
    transition: transform 0.3s ease;
}

.game-card-image {
    width: 90%;
    height: 100px;
    object-fit: cover;
    border-bottom: 1px solid #228b22;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.game-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
}
.game-card-content h4 {
    margin-top: 0;
    margin-bottom: 5px;
}
.game-rating {
    color: #228b22;
    margin: 5px 0;
    font-size: 1.0rem;
}

.game-card-content .cta-button {
    margin-top: auto;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .games-list {
        grid-template-columns: 1fr;
    }
}

/* Form Styles */
form {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 30px;
    border: 1px solid #228b22;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #32cd32;
}

input, textarea {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #228b22;
    color: #f0f0f0;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #32cd32;
    box-shadow: 0 0 5px rgba(34, 139, 34, 0.5);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #000;
    border-top: 2px solid #228b22;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: #228b22;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #228b22;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #228b22;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.highlight {
    color: #32cd32;
    font-weight: bold;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 20px;
    border: 1px solid #228b22;
}

.faq-question {
    background-color: rgba(34, 139, 34, 0.1);
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.faq-answer {
    background-color: rgba(10, 10, 10, 0.5);
    padding: 15px;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    color: #228b22;
    font-size: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #228b22;
    color: #000;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    text-decoration: none;
    z-index: 99;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.5);
}

.back-to-top:hover {
    background-color: #32cd32;
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(34, 139, 34, 0.7);
    color: #000;
    text-decoration: none;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2rem;
    }
}
/* Static Gallery Styles */
.static-gallery {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 主显示区域 */
.gallery-main {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.gallery-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-video.active,
.main-image.active {
    opacity: 1;
}

.gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    display: block;
    opacity: 1 !important;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer;
}

/* Ensure video controls are always visible and clickable */
.gallery-video video::-webkit-media-controls {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.gallery-video video::-webkit-media-controls-panel {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
    pointer-events: auto !important;
}

.gallery-video video::-webkit-media-controls-play-button,
.gallery-video video::-webkit-media-controls-volume-slider,
.gallery-video video::-webkit-media-controls-timeline,
.gallery-video video::-webkit-media-controls-current-time-display,
.gallery-video video::-webkit-media-controls-time-remaining-display,
.gallery-video video::-webkit-media-controls-fullscreen-button {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure parent elements don't block video controls */
.gallery-main {
    pointer-events: none !important;
}

.gallery-video.active {
    pointer-events: auto !important;
}

.gallery-video.active video {
    pointer-events: auto !important;
}

/* 小预览图区域 */
.gallery-thumbnails {
    display: flex;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #228b22 rgba(0, 0, 0, 0.3);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: #228b22;
    border-radius: 3px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.thumbnail-item.active {
    border-color: #228b22;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.5);
}

.thumbnail-item:hover {
    border-color: #32cd32;
    transform: scale(1.08);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频缩略图样式 */
.video-thumbnail {
    position: relative;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(34, 139, 34, 0.8);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .gallery-main {
        height: 300px;
    }
    
    .thumbnail-item {
        width: 70px;
        height: 50px;
    }
    
    .gallery-thumbnails {
        padding: 8px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-main {
        height: 250px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
    
    .gallery-thumbnails {
        padding: 6px;
        gap: 6px;
    }
}