/* General Body and Typography */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #006400; /* Deep Emerald Green */
    --accent-color: #DC143C; /* Crimson Red for highlights */
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --medium-gray: #888;
    --border-color: #333;
    --header-height: 70px;
    --top-bar-height: 40px;
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-login {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 1px solid var(--secondary-color);
}

.btn-login:hover {
    background-color: darken(var(--secondary-color), 10%);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 1px solid var(--primary-color);
}

.btn-register:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Header Styling */
.main-header {
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-top-bar {
    background-color: #222;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector {
    display: flex;
    align-items: center;
    color: var(--medium-gray);
}

.language-selector i {
    margin-right: 5px;
    color: var(--primary-color);
}

.language-selector select {
    background-color: transparent;
    border: none;
    color: var(--light-text);
    padding: 5px;
    appearance: none; /* Remove default arrow */
    cursor: pointer;
    font-size: 0.9em;
}

.language-selector select:focus {
    outline: none;
    border-bottom: 1px solid var(--primary-color);
}

.auth-buttons .btn {
    margin-left: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
}

.main-nav {
    padding: 10px 0;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}

.logo-img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links .nav-item {
    padding: 10px 0;
    color: var(--light-text);
    font-weight: 500;
    position: relative;
}

.nav-links .nav-item:hover,
.nav-links .nav-item.active {
    color: var(--primary-color);
}

.nav-links .nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links .nav-item:hover::after,
.nav-links .nav-item.active::after {
    width: 100%;
}

.nav-links .nav-item i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: var(--light-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Footer Styling */
.main-footer {
    background-color: #0d0d0d;
    color: var(--medium-gray);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.footer-logo .logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
}

.footer-about p {
    font-size: 0.9em;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-links h3, .footer-contact h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

.footer-links ul li a {
    color: var(--medium-gray);
    font-size: 0.95em;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods h4 {
    color: var(--light-text);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.payment-methods img {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-methods img:hover {
    opacity: 1;
    filter: none; /* Show original color on hover */
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.age-restriction {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.age-restriction img {
    height: 25px;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none; /* Hide top bar on small screens for simplicity */
    }

    .main-nav .container {
        flex-wrap: wrap;
    }

    .logo {
        flex-grow: 1;
        justify-content: flex-start;
    }

    .hamburger-menu {
        display: block;
        color: var(--primary-color);
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none; /* Hidden by default on mobile */
        background-color: #222;
        position: absolute;
        top: calc(var(--header-height) + var(--top-bar-height) - 10px); /* Adjust based on top bar visibility */
        left: 0;
        right: 0;
        padding: 20px 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links .nav-item {
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: #333;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none; /* Override desktop hover behavior */
    }

    .dropdown.active .dropdown-menu {
        display: block; /* Show when parent dropdown is active */
    }

    .dropdown-menu a {
        padding-left: 40px; /* Indent dropdown items */
        background-color: #333;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about, .footer-links, .footer-contact {
        align-items: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    .footer-contact p {
        justify-content: center;
    }

    .payment-methods {
        text-align: center;
    }

    .payment-methods img {
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4em;
    }
    .logo-img {
        height: 35px;
    }
    .auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .auth-buttons .btn {
        margin-left: 0;
        width: 100%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
