/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    text-decoration: underline;
}

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

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

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

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

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

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

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: #007bff;
    text-decoration: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
}

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

.dropdown-menu li a {
    color: #fff;
    padding: 8px 15px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #4a657f;
    text-decoration: none;
}

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

.user-auth .btn {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-decoration: none;
}

.user-auth .btn-login {
    background-color: #6c757d;
}

.user-auth .btn-login:hover {
    background-color: #5a6268;
}

.user-auth .btn-register {
    background-color: #28a745;
}

.user-auth .btn-register:hover {
    background-color: #218838;
}

.lang-selector select {
    background-color: #34495e;
    color: #fff;
    border: 1px solid #4a657f;
    padding: 8px 10px;
    border-radius: 5px;
    margin-left: 15px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
    padding: 5px;
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Marquee Styles */
.marquee-section {
    background-color: #ffe0b2; /* Light orange */
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 1px solid #ffcc80;
    white-space: nowrap;
    position: relative;
    box-shadow: inset 0 -1px 3px rgba(0,0,0,0.05);
}

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

.marquee-icon {
    flex-shrink: 0;
    font-size: 1.5em;
    margin-right: 15px;
    color: #e65100; /* Darker orange */
    animation: pulse 1.5s infinite alternate;
}

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

.marquee-content {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
    padding-right: 100%; /* Ensures content scrolls fully out before repeating */
}

.marquee-text {
    color: #e65100;
    font-weight: bold;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.marquee-text:hover {
    color: #ff9800;
    text-decoration: underline;
}

.marquee-separator {
    color: #ffa726;
    margin: 0 10px;
    font-size: 1.2em;
    display: inline-block;
    vertical-align: middle;
}

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

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

/* Footer Styles */
.main-footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 40px 0;
    font-size: 0.9em;
    margin-top: 30px;
    border-top: 5px solid #007bff;
}

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

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    display: inline-block;
}

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

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

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

.footer-col ul li a {
    color: #ecf0f1;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #007bff;
    text-decoration: underline;
}

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

.social-links a:hover {
    color: #007bff;
}

.footer-col i {
    margin-right: 8px;
    color: #007bff;
}

.payment-icons img {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 5px;
}

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

.licensing-info {
    font-size: 0.8em;
    margin-top: 15px;
    color: #bdc3c7;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a657f;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide nav by default on smaller screens */
        width: 100%;
        order: 3; /* Push nav below logo and actions */
    }
    .main-nav.active {
        display: block;
    }
    .main-nav .nav-list {
        flex-direction: column;
        text-align: center;
        background-color: #34495e;
        padding: 10px 0;
    }
    .main-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid #4a657f;
    }
    .main-nav .nav-item:last-child {
        border-bottom: none;
    }
    .main-nav .nav-link {
        padding: 12px 0;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: none;
        background-color: #4a657f;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .nav-item.dropdown.active .dropdown-menu {
        max-height: 200px; /* Adjust as needed */
    }
    .nav-item.dropdown:hover .dropdown-menu { /* Keep hover for desktop if JS is for mobile only */
        max-height: 200px; /* Ensure visible on hover on larger screens */
    }
    .menu-toggle {
        display: block;
    }
    .header-container {
        flex-wrap: nowrap;
    }
    .logo {
        flex-grow: 1;
    }
    .header-actions {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        padding: 0;
        text-align: center;
    }
    .footer-col h3 {
        margin: 20px auto 15px auto;
        border-bottom: 2px solid #007bff;
        display: inline-block;
    }
    .footer-col ul {
        margin-bottom: 20px;
    }
    .social-links {
        margin-bottom: 20px;
    }
    .payment-icons {
        margin-bottom: 20px;
    }
    .user-auth .btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    .lang-selector select {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
