/* General Body & Typography */
:root {
    --primary-color: #DAA520; /* Gold */
    --secondary-color: #DC143C; /* Crimson Red */
    --accent-color: #3498db;
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #f8f8f8;
    --white-color: #ffffff;
    --dark-color: #222222;
    --border-color: #eee;
    --font-family-primary: 'Arial', sans-serif;
    --font-family-secondary: 'Georgia', serif;
}

body {
    font-family: var(--font-family-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.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(--secondary-color);
}

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

/* Marquee Section */
.marquee-section {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    font-size: 0.9em;
}

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

.marquee-icon {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--primary-color);
}

.marquee-wrapper {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

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

.marquee-item {
    display: inline-block;
    padding-right: 50px;
    color: var(--white-color);
    text-decoration: none;
}

.marquee-item:hover {
    color: var(--primary-color);
}

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

/* Header Styles */
.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.top-bar {
    background-color: var(--dark-color);
    color: var(--white-color);
    font-size: 0.85em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left a {
    color: var(--white-color);
}

.top-bar-left a:hover {
    color: var(--primary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.social-links a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 1.1em;
}

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

.language-selector select {
    background-color: var(--dark-color);
    color: var(--white-color);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 8px;
    margin-left: 20px;
    border-radius: 4px;
    cursor: pointer;
}

.mid-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo img {
    max-height: 50px;
    width: auto;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 1em;
    outline: none;
}

.search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45px;
    background-color: transparent;
    border: none;
    color: var(--light-text-color);
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 0 25px 25px 0;
}

.search-bar button:hover {
    color: var(--primary-color);
}

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

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 25px;
    color: var(--text-color);
    font-size: 0.9em;
    position: relative;
}

.action-item i {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: var(--light-text-color);
}

.action-item:hover i {
    color: var(--primary-color);
}

.action-item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 0.7em;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 20px;
}

/* Main Navigation */
.main-navigation {
    background-color: var(--primary-color);
}

.nav-menu {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.nav-item {
    position: relative;
    margin: 0 20px;
}

.nav-link {
    color: var(--white-color);
    font-weight: bold;
    padding: 10px 0;
    display: block;
    position: relative;
}

.nav-link:hover {
    color: var(--dark-color);
}

.nav-item.has-submenu > .nav-link i {
    font-size: 0.8em;
    margin-left: 5px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border-top: 3px solid var(--secondary-color);
}

.nav-item.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.submenu li a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%; /* Off-screen by default */
    width: 100%;
    max-width: 300px;
    height: 100%;
    background-color: var(--white-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    overflow-y: auto;
    transition: left 0.3s ease;
    padding-top: 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--dark-color);
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--light-text-color);
    cursor: pointer;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.mobile-nav-list li a:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
}

.mobile-nav-list li.has-sub-mobile > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-mobile-menu {
    display: none; /* Hidden by default */
    background-color: #f9f9f9;
    padding-left: 20px;
}

.sub-mobile-menu li a {
    padding: 12px 20px;
    font-size: 0.9em;
    border-bottom: none;
}

.mobile-account-links {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-account-links a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: none;
}

.mobile-account-links a i {
    margin-right: 10px;
    color: var(--primary-color);
}


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

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

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 30px 0;
}

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

.widget-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-widget a {
    color: rgba(255,255,255,0.7);
}

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

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-top: 3px;
}

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

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.social-media-links {
    margin-top: 20px;
}

.social-media-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.payment-methods img {
    height: 25px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%);
    opacity: 0.8;
}

.copyright {
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mid-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    .search-bar {
        order: 3; /* Move search below logo */
        width: 100%;
        margin: 15px 0;
    }
    .header-actions {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .action-item {
        margin: 0 15px;
    }
    .main-navigation .nav-menu {
        display: none; /* Hide desktop menu on smaller screens */
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-left, .top-bar-right {
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
        display: flex; /* Ensure internal elements are centered */
    }
    .top-bar-left span {
        margin: 0 10px;
    }
    .language-selector {
        margin-left: 10px;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-info p {
        justify-content: center;
    }
    .newsletter-form {
        justify-content: center;
    }
    .social-media-links {
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .payment-methods {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .mid-header {
        padding: 15px 0;
    }
    .logo img {
        max-height: 45px;
    }
    .action-item {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .top-bar-left span {
        display: block;
        margin: 5px 0;
    }
    .social-links a {
        margin: 0 8px;
    }
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    .search-bar input {
        padding: 8px 40px 8px 12px;
    }
    .search-bar button {
        width: 40px;
    }
    .header-actions {
        flex-wrap: wrap;
    }
    .action-item {
        margin: 10px 10px 0;
        width: 40%;
    }
    .mobile-menu {
        max-width: 100%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
