/* Main Styles for W3W GAME */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Content Area */
.content-area {
    flex: 1;
    margin-left: 250px;
    margin-right: 300px;
    padding: 20px;
}

/* Right Sidebar */
.right-sidebar {
    width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    right: 0;
    top: 0;
    overflow-y: auto;
    z-index: 100;
}

.right-sidebar-ad {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    width: 250px;
    height: 193px;
}

.right-sidebar-ad img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.logo-container h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.slogan {
    font-size: 12px;
    color: #666;
}

/* Navigation Menu */
.main-nav ul li {
    margin-bottom: 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.main-nav ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
}

.main-nav ul li a img,
.main-nav ul li a i {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    text-align: center;
}

.main-nav ul li.active,
.main-nav ul li:hover {
    background-color: #e9ecef;
}

/* Donation QR Code */
.donation-container {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    background-color: #e9ecef;
}

.qr-code img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.donation-container p {
    font-size: 12px;
    color: #666;
}

/* Sidebar Advertisement */
.sidebar-ad {
    margin-top: 20px;
    text-align: center;
}

.sidebar-ad a {
    display: block;
    width: 193px;
    height: 192px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Email */
.contact-email {
    text-align: center;
    font-size: 12px;
    margin-top: auto;
    padding-top: 20px;
    position: sticky;
    bottom: 10px;
}

.contact-email a {
    color: #007bff;
}

/* Content Area */
/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 60%;
    background-color: #f1f3f5;
    border-radius: 20px;
    padding: 8px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #e9ecef;
}

.search-container i {
    margin-right: 10px;
    color: #666;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    padding: 5px 10px;
    font-size: 14px;
    background-color: transparent;
    cursor: text;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    background-color: #f1f3f5;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
    border-left: 1px solid #e9ecef;
    white-space: nowrap;
}

.language-selector i {
    margin-right: 10px;
    color: #666;
}

.language-selector select {
    border: none;
    outline: none;
    padding: 5px 10px;
    background-color: transparent;
    cursor: pointer;
}

/* Main Banner */
.main-banner {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    width: 100%;
    height: 600px;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    width: 100%;
    height: 100%;
    background-image: url('../img/广告banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-content {
    color: #fff;
    max-width: 50%;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #fff;
}

/* Section Headers */
.section-header {
    margin: 30px 0 20px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-left: 10px;
    color: #ff6b00;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.game-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.game-card-image {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

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

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: #fff;
}

.game-card-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

/* Game Tags */
.game-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.game-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.game-tag:hover {
    transform: scale(1.05);
}

.hot-tag {
    background-color: #ff6b00;
}

.popular-tag {
    background-color: #4CAF50;
}

.new-tag {
    background-color: #2196F3;
}

.game-card-info {
    padding: 15px;
}

.game-card-info p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Secondary Ad */
.secondary-ad {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.secondary-ad img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ad-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 5px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 30px 0;
}

.load-more-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #0056b3;
}

/* Footer */
.main-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 12px;
}

.copyright-divider {
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: #ddd;
    margin: 0 10px;
}

.footer-email {
    color: #007bff;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-email:hover {
    color: #0056b3;
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #333;
    color: #fff;
}

.modal-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    margin-left: 15px;
    cursor: pointer;
}

.modal-content {
    width: 100%;
    height: calc(100% - 60px);
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Show Modal */
.game-modal.show {
    display: block;
}

/* Fullscreen Mode */
.game-modal.fullscreen .modal-header {
    display: none;
}

.game-modal.fullscreen .modal-content {
    height: 100%;
}