/* Basic Reset & Global Styles */
:root {
    --primary-color: #ffd700; /* Warm Gold */
    --secondary-color: #2e8b57; /* Sea Green */
    --accent-color: #ff4500; /* Orange Red for highlights */
    --dark-bg: #1a1a1a;
    --light-bg: #f8f8f8;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #eee;
    --transition-speed: 0.3s;
}

* {
    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);
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

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

.btn-login:hover {
    background-color: #256d43;
    border-color: #256d43;
}

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

.btn-register:hover {
    background-color: #e0b800;
    border-color: #e0b800;
}

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

.header-topbar {
    background-color: #222;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #333;
}

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

.topbar-info span {
    margin-right: 20px;
}

.topbar-info i, .topbar-social i {
    margin-right: 5px;
    color: var(--primary-color);
}

.topbar-social a {
    color: var(--light-text);
    margin-left: 15px;
}

.topbar-social a:hover {
    color: var(--primary-color);
}

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

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

.navbar-brand .site-logo {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.main-navigation .nav-menu {
    display: flex;
}

.nav-item {
    position: relative;
    margin-left: 30px;
}

.nav-item > a {
    display: block;
    padding: 10px 0;
    color: var(--light-text);
    font-weight: 500;
}

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

.nav-item.has-submenu:hover > .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-top: 3px solid var(--primary-color);
}

.submenu li a {
    padding: 12px 20px;
    display: block;
    color: var(--light-text);
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #3a3a3a;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.auth-buttons {
    margin-right: 20px;
}

.auth-buttons .btn {
    margin-left: 10px;
}

.language-selector select {
    background-color: #333;
    color: var(--light-text);
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffd700%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%01-13%205.7H18.4c-5%200-9.3-3.1-11.1-7.8-1.8-4.7-.2-10.3%204-13.3L139.7%202.9c4.5-3.4%2010.8-3.4%2015.3%200L283%2056.1c4.2%203%205.8%208.6%204%2013.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffd700%22%20d%3D%22M287%20223.8a17.6%2017.6%200%200%01-13%205.7H18.4c-5%200-9.3-3.1-11.1-7.8-1.8-4.7-.2-10.3%204-13.3L139.7%20167.3c4.5-3.4%2010.8-3.4%2015.3%200L283%20200.5c4.2%203%205.8%208.6%204%2013.3z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px; /* Space for the custom arrow */
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 101;
}

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

.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99;
    overflow-y: auto;
    padding-top: 80px; /* Space for fixed header */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-navigation {
    padding: 20px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu li a {
    color: var(--light-text);
    font-size: 1.2em;
    padding: 10px 0;
    display: block;
}

.mobile-nav-menu li a:hover {
    color: var(--primary-color);
}

.mobile-nav-item.has-submenu .mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    display: none;
    padding-left: 20px;
    background-color: #2a2a2a;
    margin-top: 10px;
    border-left: 3px solid var(--secondary-color);
}

.mobile-submenu li a {
    font-size: 1em;
    padding: 8px 0;
}

.mobile-nav-item.separator {
    border-top: 1px solid #555;
    margin-top: 20px;
    padding-top: 20px;
}

.mobile-submenu-toggle i.rotate {
    transform: rotate(180deg);
}

/* Marquee Section Styles */
.marquee-section {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Animation controlled by JS for better pause/play handling */
}

.marquee-icon .icon-speaker {
    font-size: 1.5em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.marquee-text {
    display: inline-block;
    padding-right: 50px; /* Space between repeated text */
    font-size: 0.95em;
}

.marquee-text .highlight {
    color: var(--primary-color);
    font-weight: bold;
}

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

/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-widgets {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

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

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col .site-logo-footer {
    height: 40px;
    margin-bottom: 15px;
}

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

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

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

.footer-col ul li a {
    color: #ccc;
    transition: color var(--transition-speed) ease;
}

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

.footer-col i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.payment-methods h4, .social-media h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1em;
}

.payment-icon {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%); /* Make icons blend with dark theme */
    transition: filter var(--transition-speed) ease;
}

.payment-icon:hover {
    filter: grayscale(0%) brightness(100%);
}

.social-media a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.social-media a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.copyright {
    flex-grow: 1;
    text-align: left;
    color: #999;
}

.copyright .license-info {
    margin-top: 10px;
    font-size: 0.8em;
}

.age-restriction {
    flex-shrink: 0;
    margin-left: 20px;
}

.age-icon {
    height: 40px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation, .auth-buttons, .language-selector {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-main .container {
        justify-content: space-between;
    }
    .header-actions {
        order: 2; /* Move actions to the right */
    }
    .navbar-brand {
        order: 1; /* Keep logo on the left */
    }
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .copyright {
        text-align: center;
        margin-bottom: 15px;
    }
    .age-restriction {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .topbar-info {
        display: none;
    }
    .topbar-content {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .payment-methods, .social-media {
        text-align: center;
    }
    .payment-icon, .social-media a {
        display: inline-block;
    }
}

/* Placeholder for custom icons (e.g., Font Awesome) */
.icon-phone::before { content: "📞"; }
.icon-mail::before { content: "📧"; }
.icon-facebook::before { content: "📘"; } /* Using emojis as placeholders */
.icon-twitter::before { content: "🐦"; }
.icon-instagram::before { content: "📸"; }
.icon-telegram::before { content: "✈️"; }
.icon-speaker::before { content: "📢"; }
.icon-arrow-down::before { content: "⬇️"; }
.icon-location::before { content: "📍"; }
.icon-clock::before { content: "⏰"; }
.icon-youtube::before { content: "▶️"; }
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
