/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

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

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

a:hover {
    text-decoration: underline;
}

/* Header Styling */
.site-header {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top-bar {
    background-color: #0d0d0d;
    padding: 8px 0;
    font-size: 0.85em;
}

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

.top-nav ul, .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav ul li, .main-navigation ul li {
    display: inline-block;
    position: relative;
}

.top-nav a, .main-navigation a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.top-nav a:hover, .main-navigation a:hover {
    background-color: #333;
    text-decoration: none;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1em;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.logo img {
    margin-right: 10px;
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.8em;
    margin: 0;
    font-weight: 700;
    color: #e0b000; /* Green-gold accent */
}

.main-navigation {
    flex-grow: 1;
    text-align: center;
}

.main-navigation .menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

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

.main-navigation ul li {
    display: inline-block;
    position: relative;
}

.main-navigation ul li.has-submenu > a {
    padding-right: 30px;
    position: relative;
}

.main-navigation ul li.has-submenu > a i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.main-navigation .submenu {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 180px;
    z-index: 1000;
    left: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.main-navigation .submenu li {
    display: block;
}

.main-navigation .submenu a {
    padding: 10px 20px;
    white-space: nowrap;
}

.main-navigation ul li.has-submenu:hover .submenu {
    display: block;
}

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

.search-box {
    position: relative;
    margin-right: 20px;
}

.search-box input {
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    outline: none;
    width: 150px;
    transition: width 0.3s ease;
}

.search-box input:focus {
    width: 200px;
    border-color: #e0b000;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.1em;
}

.user-area .btn {
    background-color: #e0b000;
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.user-area .btn:hover {
    background-color: #ffd700;
    text-decoration: none;
}

/* Marquee Styling */
.marquee-section {
    background-color: #222;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
}

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

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

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

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

.marquee-content a {
    color: #fff;
    margin-right: 30px;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.marquee-content .separator {
    color: #666;
    margin: 0 15px;
}

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

/* Footer Styling */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

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

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

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

.footer-widget h3 {
    color: #e0b000;
    font-size: 1.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

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

.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.2s ease;
}

.footer-widget ul li a:hover {
    color: #e0b000;
    text-decoration: underline;
}

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

.newsletter-form input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 15px;
    background-color: #e0b000;
    color: #1a1a1a;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ffd700;
}

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

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

.social-links-footer a:hover {
    color: #e0b000;
}

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

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

.footer-bottom p {
    margin: 0;
}

.footer-legal-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-nav ul li {
    margin-left: 20px;
}

.footer-legal-nav ul li a {
    color: #ccc;
    transition: color 0.2s ease;
}

.footer-legal-nav ul li a:hover {
    color: #e0b000;
    text-decoration: underline;
}

/* Responsive Design for Header */
@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .main-navigation {
        width: 100%;
        text-align: left;
        order: 3; /* Move navigation below logo and actions */
    }

    .main-navigation ul {
        display: none; /* Hide by default */
        flex-direction: column;
        background-color: #2a2a2a;
        width: 100%;
        position: absolute;
        left: 0;
        top: 100%; /* Position below header */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    .main-navigation ul.active {
        display: flex;
    }

    .main-navigation ul li {
        display: block;
        border-bottom: 1px solid #333;
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 25px; /* Adjust based on logo height */
    }

    .main-navigation .submenu {
        position: static;
        display: block;
        background-color: #3a3a3a;
        box-shadow: none;
        padding-left: 20px;
    }

    .main-navigation ul li.has-submenu:hover .submenu {
        display: block; /* Submenu always visible when main menu is open */
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        order: 2;
    }

    .search-box {
        margin-right: 10px;
    }
    
    .user-area .btn {
        margin-left: 5px;
    }

    .header-top-bar .container {
        flex-direction: column;
    }
    .top-nav {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        min-width: unset;
    }
    .footer-bottom .container {
        flex-direction: column;
    }
    .footer-legal-nav ul {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    .footer-legal-nav ul li {
        margin: 5px 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;
  }
}
