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

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

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #e74c3c; /* Red */
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #3498db; /* Blue */
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Header Styles */
.site-header {
    background-color: #2c3e50; /* Dark blue/grey */
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.language-selector select {
    background-color: #34495e;
    color: #fff;
    border: 1px solid #4a627a;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    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-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.7%2011-2.9%2016.7l130.8%20170.8c5.4%207%2013.8%2010.8%2022.9%2010.8s17.5-3.8%2022.9-10.8L289.8%2091c1.8-5.7.9-11.8-2.9-16.7z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
}

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

.navbar-brand .logo-img {
    height: 45px;
    vertical-align: middle;
}

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

.main-navigation .nav-link {
    color: #fff;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #f39c12; /* Accent color */
    transition: width 0.3s ease;
}

.main-navigation .nav-link:hover::after,
.main-navigation .nav-link.active::after {
    width: 100%;
}

.main-navigation .nav-link:hover {
    color: #f39c12;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

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

.menu-toggle.active .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

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

.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3em;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: #f39c12;
}

.search-box {
    display: none; /* Hidden by default, toggled by JS */
    position: absolute;
    right: 20px;
    top: 75px; /* Adjust based on header height */
    background-color: #34495e;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
}

.search-box input {
    border: none;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    background-color: #fff;
    color: #333;
    font-size: 0.9em;
}

.search-box input::placeholder {
    color: #888;
}

.search-box button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1em;
}

/* Marquee Styles */
.marquee-section {
    background-color: #f39c12; /* Orange */
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    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 20px;
}

.marquee-icon {
    margin-right: 15px;
    font-size: 1.3em;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

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

.marquee-content {
    display: inline-block;
    padding-left: 100%; /* Start off-screen */
    animation: marquee 45s linear infinite; /* Adjusted speed for more content */
}

.marquee-content a {
    color: #fff;
    margin-right: 60px;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.3s ease;
}

.marquee-content a:hover {
    text-decoration: underline;
}

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

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

/* Footer Styles */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0;
    font-size: 0.9em;
    border-top: 5px solid #f39c12; /* Accent border */
}

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

.footer-col {
    flex: 1 1 220px; /* Allows columns to wrap and grow */
    min-width: 180px;
}

.footer-col h3 {
    color: #f39c12;
    margin-bottom: 25px;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: #e74c3c;
}

.footer-col p {
    margin-bottom: 15px;
    color: #bdc3c7;
}

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

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

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

.footer-col ul li a:hover {
    color: #f39c12;
    transform: translateX(5px);
}

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

.social-links a {
    color: #ecf0f1;
    font-size: 1.6em;
    margin-right: 18px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #f39c12;
    transform: translateY(-3px);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.payment-icons img {
    height: 35px;
    filter: grayscale(100%) brightness(150%); /* Make icons blend with dark background */
    transition: filter 0.3s ease, transform 0.2s ease;
    max-width: 60px;
}

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

.license-info {
    font-size: 0.8em;
    margin-top: 25px;
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 30px;
    margin-top: 30px;
    color: #bdc3c7;
    font-size: 0.85em;
}

.footer-bottom p {
    margin: 8px 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation .nav-list {
        gap: 20px;
    }
    .header-main .container {
        padding: 0 15px;
    }
    .footer-columns {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        justify-content: center;
        gap: 10px;
    }

    .header-main .container {
        flex-wrap: wrap;
        justify-content: space-between;
        position: relative;
    }

    .navbar-brand {
        margin-bottom: 0;
    }

    .main-navigation {
        width: 100%;
        order: 3; /* Push nav below brand and actions */
    }

    .main-navigation .nav-list {
        display: none; /* Hide by default for mobile */
        flex-direction: column;
        background-color: #34495e;
        position: absolute;
        top: 100%; /* Position below header-main */
        left: 0;
        width: 100%;
        z-index: 990;
        padding: 15px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,255,255,0.1);
    }

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

    .main-navigation .nav-item {
        text-align: center;
        padding: 8px 0;
    }

    .main-navigation .nav-link {
        padding: 10px 15px;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        order: 2; /* Place after brand */
        margin-left: 15px;
    }

    .header-actions {
        order: 1;
    }

    .search-box {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        top: 130px; /* Adjust for expanded header/nav */
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
        width: 100%;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links, .payment-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-top-content {
        flex-direction: column;
        gap: 5px;
    }
    .auth-buttons {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .auth-buttons .btn {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
    }
    .marquee-container {
        padding: 0 10px;
    }
    .marquee-icon {
        font-size: 1.1em;
        margin-right: 10px;
    }
    .search-box input {
        width: calc(100% - 80px);
    }
    .footer-col h3 {
        font-size: 1.1em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
