:root {
    --primary-color: #e0b04a; /* Warm Gold */
    --secondary-color: #cc0000; /* Red */
    --text-color: #333333;
    --light-text-color: #ffffff;
    --dark-bg: #222222;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --font-family: 'Arial', sans-serif;
    --header-height: 80px;
    --footer-height: auto;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff; /* Pure white background as per logo prompt */
}

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

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

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

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

.header-top-bar {
    background-color: #1a1a1a;
    padding: 10px 0;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

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

.social-links a {
    color: var(--light-text-color);
    margin-left: 15px;
    font-size: 1.1em;
}

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

.header-main-nav {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand .site-logo {
    height: 50px; /* Adjust as needed */
    max-width: 200px;
    vertical-align: middle;
}

.main-navigation {
    flex-grow: 1;
    text-align: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.nav-menu .menu-item {
    margin: 0 15px;
}

.nav-menu .menu-item a {
    color: var(--light-text-color);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu .menu-item a:hover,
.nav-menu .menu-item.current-menu-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.auth-buttons .btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

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

.btn-login:hover {
    background-color: #c79f3c; /* Slightly darker gold */
    border-color: #c79f3c;
}

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

.btn-register:hover {
    background-color: #b30000; /* Slightly darker red */
    border-color: #b30000;
}

.language-selector select {
    background-color: #333;
    color: var(--light-text-color);
    border: 1px solid #555;
    padding: 8px 10px;
    border-radius: 5px;
    margin-left: 15px;
    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%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.9%2011.6-3.1%2017.9l132.8%20132.8c4.6%204.6%2011.5%207.2%2018.5%207.2s13.9-2.6%2018.5-7.2L289.1%2094c3.2-6.5%202.2-14-2.1-19.6z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Make space for the arrow */
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text-color);
    margin: 5px 0;
}

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

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

.marquee-icon {
    font-size: 1.5em;
    margin-right: 15px;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 24px; /* Adjust height based on content line-height */
}

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee-scroll 30s linear infinite;
    font-size: 0.95em;
    line-height: 24px;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    color: var(--light-text-color);
    margin-right: 50px;
    text-decoration: none;
    display: inline-block;
}

.marquee-item:hover {
    text-decoration: underline;
}

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

/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: #cccccc;
    padding-top: 50px;
    font-size: 0.9em;
}

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

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-widget:last-child {
    padding-right: 0;
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.widget-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 5px;
}

.footer-widget p {
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-widget ul li a {
    color: #cccccc;
    transition: color 0.3s ease;
}

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

.footer-widget .social-icons a {
    color: #cccccc;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-widget .social-icons a:hover {
    color: var(--primary-color);
}

.payment-icons img,
.license-logo {
    height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(150%); /* Make payment icons fit theme */
}

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

.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.copyright, .disclaimer {
    margin: 5px 0;
    color: #888888;
    font-size: 0.85em;
}

.disclaimer {
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--dark-bg);
        position: absolute;
        top: var(--header-height); /* Adjust based on actual header height */
        left: 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .menu-item {
        margin: 0;
        border-bottom: 1px solid #333;
    }

    .nav-menu .menu-item:last-child {
        border-bottom: none;
    }

    .nav-menu .menu-item a {
        padding: 15px 20px;
        text-align: left;
    }

    .menu-toggle {
        display: block;
        order: 1; /* Place toggle before logo/actions */
    }

    .header-main-nav .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navbar-brand {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }

    .header-actions {
        order: 3;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-widget {
        padding-right: 0;
        margin-bottom: 20px;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .contact-info span {
        margin: 5px 0;
        display: block;
    }
    .social-links {
        margin-top: 10px;
    }
    .header-actions {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }
    .auth-buttons, .language-selector {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }
    .auth-buttons .btn {
        width: 45%;
        margin: 0 2%;
        display: inline-block;
    }
    .language-selector select {
        width: 90%;
        margin: 0 auto;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
