/* Global Reset & Base Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --text-color: #333;
    --background-color: #f8f9fa;
    --header-height: 60px;
    --footer-height: auto;
}

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

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

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

a:hover {
    text-decoration: underline;
}

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

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

.site-header .logo img {
    height: 40px;
    width: auto;
}

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

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

.main-nav .nav-item .nav-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    border-radius: 4px;
    min-width: 160px;
}

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

.main-nav .dropdown-item {
    padding: 8px 15px;
    color: var(--text-color);
    display: block;
}

.main-nav .dropdown-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

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

.search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.search-form input {
    border: none;
    padding: 8px 15px;
    outline: none;
    flex-grow: 1;
}

.search-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #0056b3; /* Darker blue */
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.lang-switcher img {
    vertical-align: middle;
    margin-right: 5px;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
}

/* Marquee Styles */
.marquee-section {
    background-color: #fff3cd; /* Light warning yellow */
    color: #856404; /* Darker yellow text */
    padding: 8px 0;
    overflow: hidden;
    border-bottom: 1px solid #ffeeba;
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    padding: 0 15px;
}

.marquee-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.marquee-wrapper {
    display: inline-block;
    animation: marquee-scroll 20s linear infinite; /* Adjust duration as needed */
}

.marquee-content {
    display: inline-block;
}

.marquee-text {
    color: #856404;
    font-weight: bold;
    margin: 0 15px;
    text-decoration: none;
}

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

.marquee-separator {
    margin: 0 10px;
    color: #856404;
}

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

/* Footer Styles */
.site-footer {
    background-color: #212529; /* Dark background */
    color: #f8f9fa; /* Light text */
    padding: 40px 0;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.footer-col p {
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 15px;
}

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

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

.footer-col ul li a {
    color: #adb5bd;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

.contact-info p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-info a {
    color: #adb5bd;
}

.newsletter h4 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.newsletter form {
    display: flex;
    margin-top: 10px;
}

.newsletter input[type="email"] {
    border: none;
    padding: 10px 15px;
    border-radius: 4px 0 0 4px;
    outline: none;
    flex-grow: 1;
}

.newsletter button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter button:hover {
    background-color: #0056b3;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    font-size: 0.85em;
    color: #adb5bd;
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-nav .nav-list {
        display: none; /* Hide on smaller screens */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: var(--header-height);
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

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

    .main-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

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

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

    .main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        border-top: 1px solid #eee;
    }

    .main-nav .dropdown:hover .dropdown-menu {
        display: none; /* Control via JS */
    }

    .menu-toggle {
        display: block; /* Show toggle button */
    }

    .header-actions {
        order: 3; /* Move actions below nav on smaller screens */
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .header-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header .logo {
        margin-right: auto;
    }

    .marquee-wrapper {
        animation-duration: 15s; /* Faster scroll on smaller screens */
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3::after {
        margin: 10px auto 0;
    }

    .social-links {
        justify-content: center;
        display: flex;
        margin-bottom: 20px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
