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

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

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 50px;
    width: auto;
}

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

.main-navigation ul li {
    position: relative;
    margin-left: 30px;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #007bff;
}

.main-navigation .has-submenu > a {
    display: flex;
    align-items: center;
}

.main-navigation .nav-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.main-navigation .has-submenu:hover .nav-arrow {
    transform: rotate(180deg);
}

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

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

.main-navigation .submenu li a {
    padding: 8px 20px;
    color: #666;
    white-space: nowrap;
}

.main-navigation .submenu li a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

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

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

.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 150px;
}

.search-box button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.header-bottom {
    background-color: #e9f7ff;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #cfe8ff;
}

.announcement-bar {
    margin: 0;
    color: #0056b3;
    font-size: 0.9em;
}

.announcement-bar a {
    color: #007bff;
    text-decoration: underline;
}

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

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-bottom: 6px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

body.no-scroll {
    overflow: hidden;
}

.mobile-navigation {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

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

.mobile-navigation ul li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.mobile-navigation ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.mobile-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.mobile-navigation ul li a:hover {
    color: #007bff;
}

.mobile-navigation .has-submenu .mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-navigation .submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none; /* Hidden by default */
}

.mobile-navigation .submenu li {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
}

.mobile-navigation .submenu li a {
    font-size: 1em;
    color: #666;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.9em;
}

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

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

.footer-widget h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #007bff;
    margin-top: 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;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #007bff;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

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

.social-links img {
    width: 24px;
    height: 24px;
    filter: invert(70%) sepia(10%) saturate(200%) hue-rotate(180deg) brightness(120%) contrast(80%); /* Lighten icons */
}

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

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

.footer-widget.widget-newsletter input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: #fff;
    outline: none;
}

.footer-widget.widget-newsletter input[type="email"]::placeholder {
    color: #aaa;
}

.footer-widget.widget-newsletter .btn-secondary {
    border-radius: 0 5px 5px 0;
    padding: 10px 18px;
    white-space: nowrap;
}

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

.copyright p {
    margin: 5px 0;
    color: #aaa;
}

.copyright a {
    color: #aaa;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #007bff;
}

/* Icon Placeholders (for demonstration) */
.icon-search::before { content: '🔍'; }
.icon-location::before { content: '📍'; }
.icon-phone::before { content: '📞'; }
.icon-email::before { content: '📧'; }
.icon-time::before { content: '⏰'; }
.icon-fax::before { content: '📠'; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide desktop nav */
    }
    .header-actions {
        order: 3; /* Move actions to the end */
    }
    .menu-toggle {
        display: block; /* Show mobile toggle */
    }
    .header-top {
        justify-content: space-between;
    }
    .search-box {
        display: none; /* Hide search box on smaller screens, can be shown in mobile menu */
    }
    .header-actions .btn-primary {
        display: none; /* Hide contact button on smaller screens, can be shown in mobile menu */
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-widget h3::after {
        margin: 10px auto 0;
    }
    .footer-widget.widget-newsletter .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-widget.widget-newsletter input[type="email"],
    .footer-widget.widget-newsletter .btn-secondary {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .footer-widget.widget-newsletter .btn-secondary {
        border-radius: 5px;
        margin-bottom: 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;
  }
}
