:root {
    --primary-color: #008000; /* Green */
    --secondary-color: #FFD700; /* Gold */
    --accent-color: #00C853; /* Brighter Green */
    --text-color: #333333;
    --text-color-light: #666666;
    --bg-light: #F8F8F8;
    --bg-dark: #222222;
    --border-color: #EEEEEE;
    --header-height: 80px;
    --mobile-header-height: 60px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF; /* Pure white background as requested for logo contrast */
}

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

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

ul {
    list-style: none;
}

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

.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-color 0.3s ease;
    border: none;
}

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

.btn-login:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

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

.btn-register:hover {
    background-color: #E6C200; /* Slightly darker gold */
}

/* Header Styles */
.main-header {
    background-color: var(--bg-dark); /* Dark header as per logo prompt */
    color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.lang-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-btn .flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn i {
    margin-left: 5px;
    font-size: 0.8em;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.lang-btn[aria-expanded="true"] + .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #FFFFFF;
    white-space: nowrap;
}

.lang-dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.lang-dropdown-menu li a img {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-buttons .btn {
    margin-left: 10px;
    font-size: 0.9em;
    padding: 8px 15px;
}

.header-main {
    padding: 15px 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo .logo-img {
    height: 50px; /* Adjust as needed */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glowing accents for gold */
}

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

.main-nav .nav-link {
    color: #FFFFFF;
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

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

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

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

.search-btn, .menu-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-btn:hover, .menu-toggle:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
}

.mobile-nav {
    display: none; /* Hidden by default, shown via JS */
    background-color: var(--bg-dark);
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    z-index: 999;
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: 15px;
}

.mobile-nav-list a {
    color: #FFFFFF;
    font-size: 1.1em;
    padding: 10px 0;
    display: block;
}

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

.btn-login-mobile, .btn-register-mobile {
    display: block;
    margin: 15px auto;
    width: 80%;
    max-width: 200px;
}

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

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

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

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.1em;
    position: relative;
}

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

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

.footer-col ul {
    list-style: none;
}

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

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

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

.footer-logo .logo-img {
    height: 40px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* White logo with gold glow */
}

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

.social-links a {
    color: #FFFFFF;
    font-size: 1.3em;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--secondary-color);
    font-size: 1.1em;
}

.contact-info p a {
    color: rgba(255, 255, 255, 0.7);
}

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

.payment-methods h3 {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--secondary-color);
}

.payment-icon {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .header-main {
        height: var(--mobile-header-height);
        padding: 10px 0;
    }
    .logo .logo-img {
        height: 40px;
    }
    .header-top-bar {
        padding: 8px 0;
    }
    .auth-buttons .btn {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    .lang-btn {
        padding: 4px 8px;
    }
    .mobile-nav {
        top: var(--mobile-header-height); /* Adjust based on new header height */
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .contact-info p {
        justify-content: center;
    }
    .payment-methods {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-top-bar .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .auth-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .auth-buttons .btn {
        flex: 1;
        margin: 0 5px;
    }
    .logo .logo-img {
        height: 35px;
    }
    .header-actions {
        gap: 10px;
    }
    .search-btn, .menu-toggle {
        font-size: 1.1em;
    }
    .mobile-nav-list a {
        font-size: 1em;
    }
}

/* Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
