/* Basic Reset & Body Styles */
:root {
    --primary-color: #00a878; /* Green */
    --secondary-color: #ffd700; /* Gold */
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --background-color: #ffffff;
    --dark-background: #1a1a1a;
    --border-color: #eee;
    --header-height: 80px;
    --topbar-height: 40px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

.btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-right: 10px;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

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

.btn-register:hover {
    background-color: #008a60; /* Darker green */
}

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

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

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

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

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
    color: var(--light-text-color);
    text-decoration: none;
    margin-right: 50px;
    padding: 5px 0;
    display: inline-block;
    transition: color 0.2s ease;
}

.marquee-item:hover {
    color: var(--secondary-color);
}

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

/* Header Section */
.site-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-topbar {
    background-color: var(--dark-background);
    color: var(--light-text-color);
    padding: 10px 0;
    font-size: 0.85em;
}

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

.topbar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.topbar-nav ul li {
    margin-right: 20px;
}

.topbar-nav ul li:last-child {
    margin-right: 0;
}

.topbar-nav a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar-nav a:hover {
    color: var(--secondary-color);
}

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

.topbar-actions select {
    background-color: #333;
    color: var(--light-text-color);
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 3px;
    margin-left: 15px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    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%2C114.3L154.5%2C18.3c-3.7-2.7-8.4-2.7-12.1%2C0L5.4%2C114.3c-3.7%2C2.7-3.7%2C7.3%2C0%2C10s8.4%2C2.7%2C12.1%2C0l124.9-91.8c1.8-1.3%2C4.5-1.3%2C6.3%2C0l124.9%2C91.8c3.7%2C2.7%2C8.4%2C2.7%2C12.1%2C0S290.7%2C117%2C287%2C114.3z%22%2F%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M5.4%2C178.1L137.9%2C274.1c3.7%2C2.7%2C8.4%2C2.7%2C12.1%2C0L287%2C178.1c3.7-2.7%2C3.7-7.3%2C0-10s-8.4-2.7-12.1%2C0l-124.9%2C91.8c-1.8%2C1.3-4.5%2C1.3-6.3%2C0L17.5%2C168.1c-3.7-2.7-8.4-2.7-12.1%2C0S1.7%2C175.4%2C5.4%2C178.1z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

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

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

.logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li {
    margin: 0 15px;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.2s ease;
}

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

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

.main-navigation a:hover::after,
.main-navigation a.active::after {
    width: 100%;
}

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

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--dark-background);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    padding-top: var(--header-height); /* Clear space for fixed header */
    overflow-y: auto;
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--light-text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.2s ease;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu .menu-separator {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin: 20px 0;
}

.mobile-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-actions .btn {
    width: 100%;
    text-align: center;
}

.language-selector-mobile, .currency-selector-mobile {
    width: 100%;
}

.language-selector-mobile select, .currency-selector-mobile select {
    width: 100%;
    box-sizing: border-box;
}

/* Footer Section */
.site-footer {
    background-color: var(--dark-background);
    color: var(--light-text-color);
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.site-footer a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

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

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

.widget-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: var(--light-text-color);
    font-size: 1.2em;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.footer-links ul, .footer-support ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-support ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

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

.widget-subtitle {
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.payment-icon {
    height: 25px; /* Adjust as needed */
    margin-right: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    margin-bottom: 15px;
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
}

.licensing-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
}

.licensing-logo {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    .user-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .header-main .container {
        justify-content: space-between;
    }
    .footer-widget {
        flex-basis: 48%;
    }
}

@media (max-width: 768px) {
    .header-topbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar-nav ul {
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    .topbar-nav ul li {
        margin-right: 15px;
        margin-bottom: 5px;
    }
    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    .topbar-actions select {
        margin-left: 0;
        width: 48%;
    }
    .marquee-container {
        padding: 0 10px;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        min-width: unset;
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .footer-widget:last-child {
        margin-bottom: 0;
    }
    .social-links {
        justify-content: center;
        display: flex;
    }
    .licensing-info {
        flex-direction: column;
    }
    .licensing-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
