/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

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

.site-logo {
    height: 40px;
    margin-right: 15px;
}

.tagline {
    font-size: 14px;
    color: #666;
}

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

.language-selector select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    background-color: #f9f9f9;
}

.auth-buttons .btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #28a745; /* Green */
    color: #fff;
    border: 1px solid #28a745;
    margin-left: 5px;
}

.btn-primary:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #ffc107; /* Gold/Yellow */
    color: #333;
    border: 1px solid #ffc107;
    margin-left: 5px;
}

.btn-secondary:hover {
    background-color: #e0a800;
}

.main-navigation {
    padding: 15px 0;
}

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

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

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

.nav-link {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #28a745; /* Green */
}

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

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    min-width: 180px;
    display: none;
    z-index: 100;
}

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

.submenu li a {
    display: block;
    padding: 10px 15px;
    color: #555;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.submenu li a:hover {
    background-color: #f8f8f8;
    color: #28a745;
}

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

.search-bar input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    margin-right: -35px; /* Overlap with button */
    padding-right: 45px;
    width: 200px;
}

.search-bar button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.search-bar button:hover {
    background-color: #218838;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #fefefe;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    overflow: hidden;
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-icon {
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 1.5em;
    color: #ffc107; /* Gold */
}

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

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

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

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 14px;
}

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

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

.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.footer-widget p {
    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: #ffc107; /* Gold */
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    font-size: 1.2em;
}

.social-links a:hover {
    background-color: #ffc107; /* Gold */
}

.payment-icons img {
    height: 30px;
    margin-right: 10px;
    margin-bottom: 10px;
    filter: grayscale(100%) brightness(150%); /* Make logos fit theme better */
    transition: filter 0.3s ease;
}

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

.licensing-info {
    font-size: 12px;
    margin-top: 20px;
    color: #999;
}

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

.footer-bottom p {
    margin: 5px 0;
    color: #999;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

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

    .nav-item {
        margin-right: 0;
        border-bottom: 1px solid #eee;
    }

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

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

    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background-color: #f8f8f8;
        width: 100%;
    }

    .submenu li a {
        padding-left: 40px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation .container {
        flex-wrap: wrap;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    .search-bar input {
        width: calc(100% - 50px); /* Adjust for button */
    }

    .header-top .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-top-right {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }

    .footer-widget {
        min-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;
  }
}
