/* Basic Reset & Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Body Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #222;
}
p {
    margin-bottom: 1em;
}
a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
}
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #545b62;
}
.btn-hero {
    padding: 12px 25px;
    font-size: 18px;
    margin-right: 15px;
}
.btn-subscribe {
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}
.btn-subscribe:hover {
    background-color: #218838;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* For hero section */
}
.header-top-bar {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top-bar .contact-info span {
    margin-right: 20px;
}
.header-top-bar .contact-info i {
    margin-right: 5px;
}
.header-top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}
.header-top-bar .social-links a:hover {
    color: #007bff;
    text-decoration: none;
}

.header-main-nav {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.header-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.navbar-brand {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}
.site-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-link:hover .site-name {
    color: #007bff;
}

.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.main-navigation .nav-menu > li {
    position: relative;
    margin-left: 25px;
}
.main-navigation .nav-menu > li > a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
}
.main-navigation .nav-menu > li > a:hover,
.main-navigation .nav-menu > li.current-menu-item > a {
    color: #007bff;
    text-decoration: none;
}
.main-navigation .sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 100;
    display: none;
    padding: 10px 0;
    border-radius: 5px;
}
.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}
.main-navigation .sub-menu li a {
    padding: 8px 20px;
    display: block;
    color: #555;
    white-space: nowrap;
}
.main-navigation .sub-menu li a:hover {
    background-color: #f8f8f8;
    color: #007bff;
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.menu-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.header-actions {
    display: flex;
    align-items: center;
}
.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}
.search-box input {
    border: none;
    padding: 8px 10px;
    outline: none;
    width: 150px;
}
.search-box button {
    background-color: #f8f8f8;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    color: #555;
}
.search-box button:hover {
    background-color: #eee;
}
.login-btn, .signup-btn {
    margin-left: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x600/007bff/FFFFFF?text=Hero+Image') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}
.hero-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.hero-section .btn {
    margin: 0 10px;
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 50px 0 20px;
    font-size: 14px;
}
.main-footer a {
    color: #eee;
}
.main-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}
.footer-widget {
    flex: 1;
    min-width: 250px;
    margin: 0 15px 30px 15px;
}
.footer-widget:first-child {
    margin-left: 0;
}
.footer-widget:last-child {
    margin-right: 0;
}
.footer-widget .widget-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}
.footer-widget .widget-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #007bff;
    margin-top: 8px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget .contact-details p {
    margin-bottom: 8px;
}
.footer-widget .contact-details i {
    margin-right: 8px;
    color: #007bff;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 5px 0 0 5px;
    outline: none;
}
.newsletter-form input::placeholder {
    color: #aaa;
}
.newsletter-form button {
    border-radius: 0 5px 5px 0;
}

.social-media-footer {
    margin-top: 30px;
}
.social-media-footer .widget-title {
    margin-bottom: 15px;
}
.social-media-footer a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    font-size: 16px;
}
.social-media-footer a:hover {
    background-color: #007bff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-bottom p {
    margin: 0;
    flex-grow: 1;
    text-align: left;
}
.footer-bottom p a {
    margin: 0 5px;
}
.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
}
.payment-methods .payment-icon {
    height: 25px; /* Adjust as needed */
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-navigation .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 99;
    }
    .main-navigation .nav-menu.active {
        display: flex;
    }
    .main-navigation .nav-menu > li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .main-navigation .nav-menu > li:last-child {
        border-bottom: none;
    }
    .main-navigation .nav-menu > li > a {
        padding: 15px 20px;
    }
    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: 1px solid #eee;
        padding-left: 20px;
        background-color: #f9f9f9;
    }
    .main-navigation .menu-item-has-children.active > .sub-menu {
        display: block;
    }
    .menu-toggle {
        display: block;
        order: 2; /* Position toggle button */
        margin-left: auto;
    }
    .header-main-nav .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .search-box {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .login-btn, .signup-btn {
        margin: 0 5px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }
    .footer-widget {
        margin: 0 0 30px 0;
        width: 100%;
        text-align: center;
    }
    .footer-widget .widget-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    .newsletter-form {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom p {
        text-align: center;
        margin-bottom: 10px;
    }
    .payment-methods {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    .main-navigation {
        width: 100%;
        order: 3; /* Push navigation below logo and actions */
    }
    .header-main-nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .navbar-brand {
        flex-grow: 1;
    }
    .header-actions {
        order: 2;
        margin-top: 0;
    }
    .search-box {
        width: auto;
        margin-right: 10px;
        margin-bottom: 0;
    }
    .login-btn, .signup-btn {
        display: none; /* Hide for very small screens, or make icons */
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
