/* General Body & Typography */
:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #FFD700; /* Gold */
    --dark-bg: #1a1a1a;
    --light-text: #f0f0f0;
    --dark-text: #333;
    --header-height: 80px;
    --topbar-height: 40px;
    --navbar-height: 60px;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: var(--dark-text);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-login:hover {
    background-color: #e6c200;
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
    margin-left: 10px;
}

.btn-register:hover {
    background-color: #45a049;
}

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

.header-top-bar {
    background-color: #2a2a2a;
    padding: 10px 0;
    font-size: 0.9em;
}

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

.header-top-bar .contact-info span {
    margin-right: 20px;
}

.header-top-bar .contact-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

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

.header-top-bar .language-selector select {
    background-color: #333;
    color: var(--light-text);
    border: 1px solid #555;
    padding: 5px 8px;
    border-radius: 4px;
    margin-left: 15px;
    cursor: pointer;
}

.navbar {
    padding: 10px 0;
}

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

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

.navbar-toggler {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 4px 0;
    transition: 0.4s;
}

.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: var(--light-text);
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Marquee Section */
.marquee-section {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* animation: marquee-animation 30s linear infinite; */ /* Handled by JS for better control */
}

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

.marquee-icon-emoji {
    animation: pulse 1.5s infinite;
}

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

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

.marquee-content p {
    display: inline-block;
    margin: 0 30px 0 0;
    font-weight: 500;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 0 20px;
    font-size: 0.9em;
}

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

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

.footer-widget:last-child {
    margin-right: 0;
}

.widget-title {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-widget p {
    color: #ccc;
    margin-bottom: 15px;
}

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

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

.footer-widget ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

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

.social-links a {
    color: white;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

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

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

.security-title {
    margin-top: 20px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
    font-size: 0.85em;
}

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

/* Font Awesome Import (assuming CDN or local setup) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        display: none; /* Hide on smaller screens */
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: calc(var(--topbar-height) + var(--navbar-height) - 10px); /* Adjust dynamically if needed */
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    .navbar-collapse.open .navbar-nav {
        display: flex;
    }
    .navbar-toggler {
        display: block;
    }
    .nav-item {
        margin: 0;
        text-align: center;
    }
    .nav-link {
        padding: 12px 15px;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #444;
        box-shadow: none;
        padding: 0;
    }
    .dropdown-item {
        padding-left: 30px;
    }
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info,
    .header-top-bar .user-actions {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        margin-bottom: 30px;
    }
    .footer-widget:last-child {
        margin-bottom: 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;
  }
}
