:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color-gold: #FFD700;
    --accent-color-green: #28a745;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --white: #ffffff;
    --border-color: #dee2e6;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Header Styles */
.main-header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.header-top-left, .header-top-right {
    display: flex;
    align-items: center;
}

.header-top-left a, .header-top-right a, .header-top-right button {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.header-top-left a:hover, .header-top-right a:hover, .header-top-right button:hover {
    color: var(--accent-color-gold);
}

.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-selector select {
    background-color: transparent;
    color: var(--white);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 0.9em;
}

.lang-selector select option {
    background-color: var(--dark-bg);
    color: var(--white);
}

.logo a {
    display: block;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

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

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

.main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color-gold);
}

.main-nav ul li a:hover::after {
    transform: scaleX(1);
}

.user-profile {
    position: relative;
    margin-left: 20px;
}

.user-profile .dropdown-trigger {
    cursor: pointer;
    color: var(--white);
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.user-profile .dropdown-trigger:hover {
    color: var(--accent-color-gold);
}

.user-profile .dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--dark-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    right: 0;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.user-profile .dropdown-menu.show {
    display: block;
}

.user-profile .dropdown-menu a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
    margin-left: 0; /* Override default header-top-right a margin */
}

.user-profile .dropdown-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-color-gold);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 15px;
    top: 25px;
    z-index: 1001;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--accent-color-gold);
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color-gold);
}

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

.social-links a:hover {
    color: var(--accent-color-gold);
    transform: translateY(-3px);
}

.payment-methods img {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

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

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

.footer-bottom p {
    margin: 5px 0;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: var(--accent-color-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color-gold);
}

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

.marquee-container {
    display: flex;
    align-items: center;
    /* animation: marquee 30s linear infinite; */ /* Using JS for more control or CSS for simpler continuous loop */
}

.marquee-icon {
    font-size: 1.2em;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.marquee-content {
    display: inline-block;
    padding-right: 100%; /* Ensures continuous loop when JS isn't cloning */
    animation: marquee 30s linear infinite;
}

.marquee-content a {
    color: var(--dark-bg);
    text-decoration: none;
    font-weight: bold;
    margin-right: 50px;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: var(--accent-color-gold);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--dark-bg);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

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

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    .header-top-left, .header-top-right {
        margin-bottom: 10px;
    }
    .header-top-left a, .header-top-right a, .header-top-right button {
        margin: 0 10px;
    }
    .user-profile {
        margin-left: 0;
        margin-top: 10px;
    }
    .user-profile .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    .footer-columns {
        flex-direction: column;
        align-items: center;
    }
    .footer-column {
        text-align: center;
        width: 100%;
        max-width: 300px;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .payment-methods {
        text-align: center;
    }
    .marquee-content a {
        margin-right: 30px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
