:root {
    --primary-color: #e74c3c; /* Red */
    --secondary-color: #f1c40f; /* Gold/Yellow */
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-color-dark: #333333;
    --text-color-light: #f0f0f0;
    --border-color: #333;
    --font-family-primary: 'Montserrat', sans-serif;
    --font-family-secondary: 'Roboto', sans-serif;
}

/* General Body & Typography */
body {
    margin: 0;
    font-family: var(--font-family-secondary);
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: #f4f4f4;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    color: var(--dark-bg);
    margin-top: 1em;
    margin-bottom: 0.5em;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

/* 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;
}

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

.btn-primary:hover {
    background-color: #c0392b; /* Darker red */
    color: var(--light-bg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #e6b800; /* Darker gold */
    color: var(--dark-bg);
}

/* Header Specifics */
.site-header {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-top-bar {
    background-color: #000;
    padding: 5px 0;
    font-size: 0.9em;
}

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

.language-selector a {
    color: var(--text-color-light);
    margin-left: 10px;
    opacity: 0.7;
}

.language-selector a.active, .language-selector a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.navbar-brand .logo {
    height: 50px; /* Adjust as needed */
}

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

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

.main-navigation .nav-item {
    position: relative;
    margin-left: 25px;
}

.main-navigation .nav-link {
    color: var(--text-color-light);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: var(--secondary-color);
    text-decoration: none;
}

.submenu {
    display: none;
    position: absolute;
    background-color: var(--dark-bg);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    z-index: 100;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    border-top: 3px solid var(--primary-color);
}

.nav-item.has-submenu:hover .submenu {
    display: block;
}

.submenu li a {
    color: var(--text-color-light);
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #333;
    color: var(--secondary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

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

.search-toggle {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 20px;
}

.search-overlay {
    display: none; /* Hidden by default, toggled by JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.search-overlay.active {
    display: flex;
}

.search-form {
    display: flex;
    width: 80%;
    max-width: 600px;
}

.search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 5px 0 0 5px;
    font-size: 1.1em;
    background-color: var(--dark-bg);
    color: var(--text-color-light);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-submit {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-bg);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #c0392b;
}

/* Footer Specifics */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    padding-top: 40px;
    font-size: 0.95em;
}

.footer-top {
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}

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

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

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

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

.footer-col ul li a {
    color: var(--text-color-light);
    opacity: 0.8;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
    text-decoration: none;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.company-description {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.9;
}

.social-links a {
    color: var(--text-color-light);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: var(--text-color-light);
    border-radius: 5px 0 0 5px;
}

.newsletter-form .btn-subscribe {
    background-color: var(--primary-color);
    color: var(--light-bg);
    border-radius: 0 5px 5px 0;
    padding: 10px 15px;
    font-weight: normal;
}

.newsletter-form .btn-subscribe:hover {
    background-color: #c0392b;
}

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

.payment-methods h4 {
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-size: 1em;
}

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

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.copyright {
    opacity: 0.7;
    font-size: 0.85em;
}

/* Marquee Section CSS */
.marquee-section {
    background-color: #f1c40f; /* Gold/Yellow background for visibility */
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    color: #333;
    font-weight: bold;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

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

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

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 1.5em; /* Ensure consistent height for scrolling content */
}

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

.marquee-content a {
    color: #333;
    text-decoration: none;
    padding: 0 20px; /* Space between repeated messages */
}

.marquee-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation .nav-menu {
        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.3);
    }

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

    .main-navigation .nav-item {
        margin-left: 0;
        border-bottom: 1px solid #333;
    }

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

    .main-navigation .nav-link {
        padding: 15px 20px;
    }

    .nav-item.has-submenu:hover .submenu,
    .nav-item.has-submenu .submenu.active { /* For mobile toggle */
        display: block;
        position: static;
        background-color: #2a2a2a;
        box-shadow: none;
        border-top: none;
        padding-left: 30px;
    }

    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .header-main .container {
        justify-content: space-between;
    }

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

    .footer-columns {
        flex-direction: column;
    }

    .footer-col {
        min-width: unset;
        width: 100%;
        padding-right: 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
