/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}
a {
    text-decoration: none;
    color: #007bff;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styling */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top-bar {
    background-color: #f5f5f5;
    padding: 10px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}
.header-top-bar .top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top-bar .contact-info span {
    margin-right: 20px;
}
.header-top-bar .social-links a {
    margin-left: 15px;
    color: #555;
}
.header-main-nav {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand .logo {
    display: block;
}
.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation .nav-item {
    position: relative;
    margin-left: 25px;
}
.main-navigation .nav-item a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}
.main-navigation .nav-item a:hover {
    color: #007bff;
    text-decoration: none;
}
.main-navigation .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    z-index: 100;
}
.main-navigation .nav-item.has-submenu:hover > .submenu {
    display: block;
}
.main-navigation .submenu li a {
    padding: 8px 20px;
    white-space: nowrap;
    font-weight: normal;
}
.menu-toggle, .search-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}
.header-actions .btn {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 15px;
    transition: background-color 0.3s ease;
}
.header-actions .btn:hover {
    background-color: #0056b3;
    text-decoration: none;
}
.promo-banner {
    background-color: #ffc107;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-size: 1.1em;
}
.promo-banner a {
    color: #333;
    font-weight: bold;
    margin-left: 10px;
}
.secondary-nav {
    background-color: #eee;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.secondary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.secondary-nav ul li {
    margin: 0 15px;
}
.secondary-nav ul li a {
    color: #555;
    font-size: 0.9em;
}
.announcement-bar {
    background-color: #28a745;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 0.95em;
}
.announcement-bar a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

/* Footer Styling */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}
.footer-widgets .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}
.footer-widgets .col-md-4, .footer-widgets .col-md-3, .footer-widgets .col-md-2 {
    flex: 0 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}
.footer-widgets .col-md-4 { width: 33.33%; }
.footer-widgets .col-md-3 { width: 25%; }
.footer-widgets .col-md-2 { width: 16.66%; }

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}
.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: #007bff;
}
.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.3s ease;
}
.footer-widget ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.social-links-footer a {
    color: #ccc;
    margin-right: 15px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}
.social-links-footer a:hover {
    color: #007bff;
}
.contact-info-footer i {
    margin-right: 10px;
    color: #007bff;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.copyright-text p {
    margin: 0;
    color: #aaa;
}
.copyright-text a {
    color: #007bff;
}
.payment-methods img {
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.payment-methods img:hover {
    opacity: 1;
}
.sitemap-link {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #333;
    margin-top: 20px;
}
.sitemap-link a {
    color: #007bff;
    font-weight: bold;
}
.disclaimer-text {
    padding: 20px 0;
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    font-size: 0.8em;
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .main-navigation .nav-menu.active {
        display: flex;
    }
    .main-navigation .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .main-navigation .nav-item a {
        padding: 15px 20px;
    }
    .main-navigation .submenu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        border-top: 1px solid #eee;
    }
    .menu-toggle, .search-toggle {
        display: block;
    }
    .header-main-nav .container {
        justify-content: space-between;
    }
    .header-actions {
        display: flex;
        align-items: center;
    }
    .header-actions .btn {
        margin-left: 10px;
    }
    .header-top-bar .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info, .header-top-bar .social-links {
        margin-bottom: 10px;
    }
    .footer-widgets .col-md-4, .footer-widgets .col-md-3, .footer-widgets .col-md-2 {
        width: 100%;
        text-align: center;
    }
    .footer-widget .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .payment-methods {
        margin-top: 15px;
    }
}
@media (max-width: 768px) {
    .main-header .container, .main-footer .container {
        padding: 0 10px;
    }
    .header-top-bar .contact-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    .header-actions .btn {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    .promo-banner p {
        font-size: 1em;
    }
    .secondary-nav ul li {
        margin: 0 8px;
    }
    .secondary-nav ul li a {
        font-size: 0.85em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
