@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

:root {
    --primary-color: #006400; /* Dark Green */
    --secondary-color: #FFD700; /* Gold */
    --text-color: #333;
    --light-bg: #f8f8f8;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --black: #000000;
}

/* Global Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004d00; /* Darker green */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #e6c200; /* Darker gold */
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Header Specifics */
.main-header {
    background-color: var(--dark-bg);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top-bar {
    background-color: #0d0d0d;
    padding: 10px 0;
    font-size: 14px;
}

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

.language-selector {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    display: none; /* Controlled by JS */
    position: absolute;
    background-color: #222;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin-top: 5px;
    right: 0; /* Align dropdown to the right */
}

.lang-dropdown.active { /* Class added by JS */
    display: block;
}

.lang-dropdown li a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.lang-dropdown li a:hover {
    background-color: #333;
}

.auth-links {
    margin-left: 20px;
}

.btn-login, .btn-register {
    padding: 8px 15px;
    margin-left: 10px;
}

.btn-login {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--white);
}

.header-main-nav {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.primary-navigation ul {
    list-style: none;
    display: flex;
}

.primary-navigation ul li {
    position: relative;
    margin-left: 30px;
}

.primary-navigation ul li a {
    color: var(--white);
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.primary-navigation ul li a:hover,
.primary-navigation ul li a.active {
    color: var(--secondary-color);
}

.dropdown-menu {
    display: none; /* Controlled by JS/Hover */
    position: absolute;
    background-color: #222;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-menu { /* Desktop hover */
    display: block;
}

.dropdown.open .dropdown-menu { /* Mobile JS toggle */
    display: block;
}

.dropdown-menu li a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: #333;
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

/* Footer Specifics */
.main-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 14px;
}

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

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

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

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-logo img {
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    color: var(--white);
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.age-restriction {
    display: flex;
    align-items: center;
    margin-top: 20px;
    color: #999;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.payment-methods img {
    margin: 0 5px 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-methods img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.copyright {
    color: #999;
}

/* Marquee Section */
.marquee-section {
    background-color: #f0f0f0;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 20px;
    color: var(--primary-color);
}

.marquee-wrapper {
    overflow: hidden;
    flex-grow: 1;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee-scroll 20s linear infinite;
    font-size: 15px;
    color: var(--text-color);
}

.marquee-content a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.marquee-content a:hover {
    text-decoration: underline;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    display: none; /* Hidden by default, controlled by JS */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.scroll-to-top-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .primary-navigation {
        display: none; /* Hidden by default, shown with JS .active class */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the main header nav */
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    .primary-navigation.active { /* JS toggles this class */
        display: flex;
    }
    .primary-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    .primary-navigation ul li {
        margin: 0;
        border-bottom: 1px solid #333;
    }
    .primary-navigation ul li:last-child {
        border-bottom: none;
    }
    .primary-navigation ul li a {
        padding: 15px 20px;
        width: 100%;
    }
    .primary-navigation .dropdown-menu {
        position: static; /* Remove absolute positioning for mobile dropdown */
        display: none;
        background-color: #333;
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 0; /* Reset margin */
    }
    .primary-navigation .dropdown.open .dropdown-menu { /* JS toggles .open on parent li */
        display: block;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1001; /* Ensure it's above the menu */
        flex-shrink: 0; /* Prevent shrinking */
    }
    .mobile-menu-toggle .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--white);
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    .mobile-menu-toggle.active .icon-bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-toggle.active .icon-bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .icon-bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding: 0;
    }
    .social-links {
        margin-top: 15px;
    }
    .social-links a {
        margin: 0 10px;
    }
    .top-bar-content {
        justify-content: center;
        flex-wrap: wrap;
    }
    .language-selector, .auth-links {
        margin: 5px 10px;
    }
    .header-main-nav .logo {
        margin-right: auto;
    }
    .age-restriction {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .logo img {
        height: 35px;
    }
    .marquee-content {
        font-size: 14px;
    }
    .scroll-to-top-btn {
        padding: 12px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
