:root {
    --primary-color: #00a86b; /* Vibrant Green */
    --secondary-color: #ffd700; /* Gold */
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --link-color: #00c47b;
    --link-hover-color: #00e08c;
    --border-color: #333333;
    --button-bg-primary: var(--primary-color);
    --button-text-primary: #ffffff;
    --button-bg-secondary: var(--secondary-color);
    --button-text-secondary: #1a1a1a;
    --font-family: 'Arial', sans-serif;
    --max-width: 1200px;
}

/* General Body Styling */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--dark-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 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, color 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

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

.btn-signup {
    background-color: var(--primary-color);
    color: var(--button-text-primary);
}

.btn-signup:hover {
    background-color: var(--link-hover-color);
}

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

.header-topbar {
    background-color: #111111;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.topbar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.language-selector, .currency-selector {
    position: relative;
    display: inline-block;
}

.lang-btn, .currency-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.lang-btn:hover, .currency-btn:hover {
    color: var(--link-color);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.arrow-down {
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    margin-left: 5px;
}

.lang-dropdown, .currency-dropdown {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    left: 0;
    top: 100%;
}

.lang-dropdown li a, .currency-dropdown li a {
    color: var(--text-color);
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.lang-dropdown li a:hover, .currency-dropdown li a:hover {
    background-color: var(--primary-color);
    color: var(--button-text-primary);
}

.language-selector:hover .lang-dropdown,
.currency-selector:hover .currency-dropdown {
    display: block;
}

.account-links {
    display: flex;
    gap: 10px;
}

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

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

.navbar-brand .logo-img {
    height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

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

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--heading-color);
    font-weight: bold;
    padding: 10px 0;
    position: relative;
    font-size: 1rem;
}

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

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

/* Marquee Section */
.marquee-section {
    background-color: #222;
    color: var(--text-color);
    padding: 8px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.marquee-icon svg {
    width: 24px;
    height: 24px;
}

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

.marquee-content {
    display: flex;
    animation: marquee-scroll 30s linear infinite; /* Adjust speed as needed */
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    align-items: center;
}

.marquee-content span {
    padding-right: 50px; /* Space between messages */
    display: inline-block;
    font-size: 0.95rem;
}

.marquee-link {
    color: var(--secondary-color);
    font-weight: 500;
}

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

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

/* Footer Styling */
.main-footer {
    background-color: #111111;
    color: var(--text-color);
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-top {
    padding-bottom: 30px;
}

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

.footer-col {
    padding: 10px 0;
}

.footer-heading {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

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

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.7;
}

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

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

.footer-links a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--link-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.payment-icons, .security-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.payment-icon, .security-icon {
    height: 40px;
    width: auto;
    background-color: #333;
    border-radius: 5px;
    padding: 5px 10px;
    object-fit: contain;
}

.security-heading {
    margin-top: 25px;
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    margin: 0;
    color: #999;
    font-size: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-list {
        gap: 15px;
    }
    .header-main .container {
        flex-direction: column;
        gap: 15px;
    }
    .navbar-brand {
        width: 100%;
        text-align: center;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    .topbar-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 20px; /* Adjust based on header-topbar height */
        z-index: 101;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-end;
    }

    .nav-list {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 0; /* Adjust this to be below header-topbar and main-header */
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
        z-index: 100;
        text-align: center;
        height: 100vh; /* Full viewport height */
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-list.active {
        transform: translateX(0%);
        display: flex; /* Show when active */
    }

    .nav-list .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
    }

    .header-main {
        padding: 10px 0;
        position: relative; /* For menu toggle positioning */
    }

    .topbar-content {
        flex-direction: column;
        gap: 10px;
    }
    .account-links {
        width: 100%;
        justify-content: center;
    }
    .btn-login, .btn-signup {
        width: 45%;
    }

    .marquee-section {
        padding: 5px 0;
    }
    .marquee-icon {
        margin-right: 10px;
    }
    .marquee-content span {
        padding-right: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links, .payment-icons, .security-icons {
        justify-content: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
