/* Basic Reset & Global Styles */
:root {
    --primary-color: #00a854; /* Vibrant Green */
    --secondary-color: #ffd700; /* Gold */
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --background-dark: #1a1a1a;
    --background-light: #ffffff;
    --border-color: #eee;
    --button-hover: #008f47;
    --button-secondary-bg: #555;
    --button-secondary-hover: #777;
    --font-family-sans: 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-family-heading: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--background-dark);
    margin-bottom: 0.5em;
}

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

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

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

ul {
    list-style: none;
}

button, .btn {
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: var(--font-family-sans);
}

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

.btn-primary:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--light-text-color);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover);
    transform: translateY(-2px);
}

/* Marquee Section */
.marquee-section {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    padding: 10px 0;
    overflow: hidden;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    padding-left: 100%; /* Start off-screen */
}

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

.marquee-icon-emoji {
    color: var(--secondary-color);
}

.marquee-content p {
    margin: 0;
    display: inline-block; /* Ensure it stays on one line */
    padding-right: 50px; /* Space between repeated messages */
}

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

/* Header Styles */
.main-header {
    background-color: var(--background-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
}

.header-top-bar {
    background-color: var(--background-dark);
    color: var(--light-text-color);
    font-size: 0.85em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.top-bar-content select {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--light-text-color);
    padding: 5px 10px;
    border-radius: 3px;
    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%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 12px auto;
    padding-right: 30px; /* space for the arrow */
}

.top-bar-content select option {
    background-color: var(--background-dark);
    color: var(--light-text-color);
}

.top-bar-content .support-link a {
    color: var(--light-text-color);
    font-weight: 600;
}

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

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

.brand-logo img {
    height: 50px; /* Adjust as needed */
    vertical-align: middle;
    max-width: 100%;
}

.main-navigation .nav-list {
    display: flex;
    gap: 25px;
}

.main-navigation .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    font-size: 0.95em;
}

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

.main-navigation .nav-link:hover::after {
    width: 100%;
}

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

.search-button {
    background: none;
    color: var(--text-color);
    font-size: 1.2em;
    padding: 5px;
    min-width: unset;
    width: auto;
}

.search-button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    color: var(--text-color);
    font-size: 1.5em;
    padding: 0;
    min-width: unset;
    width: auto;
}

.mobile-menu-overlay {
    display: flex; /* Changed from none to flex for JS control */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background-color: var(--background-dark);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-mobile-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    color: var(--light-text-color);
    font-size: 2em;
    padding: 0;
    min-width: unset;
    width: auto;
}

.mobile-navigation .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-navigation .mobile-nav-item a {
    color: var(--light-text-color);
    font-size: 1.2em;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation .mobile-nav-item a:last-child {
    border-bottom: none;
}

.mobile-navigation .mobile-nav-item .mobile-btn-secondary,
.mobile-navigation .mobile-nav-item .mobile-btn-primary {
    display: block;
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

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

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

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

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    font-family: var(--font-family-heading);
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
    padding: 0;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

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

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

.payment-methods h3 {
    margin-bottom: 15px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-icons img {
    height: 30px;
    filter: grayscale(100%) brightness(150%); /* Makes them white/light grey */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-icons img:hover {
    opacity: 1;
}

.footer-bottom-bar {
    padding: 20px 0;
    text-align: center;
    font-size: 0.8em;
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bottom-bar-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.licenses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.licenses img {
    height: 25px;
    filter: grayscale(100%) brightness(150%);
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none;
    }
    .header-actions {
        gap: 5px;
    }
    .header-actions .btn {
        padding: 8px 15px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-col.about-us {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .header-main-nav .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .brand-logo {
        width: 100%;
        text-align: center;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col.about-us {
        grid-column: span 1;
    }
    .bottom-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .licenses img {
        margin: 5px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
