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

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

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: #333;
    color: #fff;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #444;
}

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

.header-top-bar .action-link {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.header-top-bar .action-link:hover {
    color: #ffd700; /* Gold color on hover */
}

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

.site-logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    display: block;
}

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

.main-navigation .navigation-menu > li {
    position: relative;
    margin-left: 25px;
}

.main-navigation .navigation-menu > li > a {
    color: #333;
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-navigation .navigation-menu > li > a:hover,
.main-navigation .navigation-menu > li.current-menu-item > a {
    color: #007bff; /* Primary blue */
}

.main-navigation .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    min-width: 180px;
    left: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border-top: 3px solid #007bff;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li a {
    color: #555;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation .sub-menu li a:hover {
    background-color: #f8f8f8;
    color: #007bff;
}

/* Search form and cart */
.header-utility-nav {
    display: flex;
    align-items: center;
}

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

.search-form input[type="search"] {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    width: 200px;
    transition: width 0.3s ease, border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    width: 250px;
    border-color: #007bff;
}

.search-form .search-button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.search-form .search-button:hover {
    color: #007bff;
}

.cart-icon {
    position: relative;
    color: #333;
    font-size: 1.5em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #007bff;
}

.cart-count {
    background-color: #dc3545; /* Red for count */
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #bbb;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-widgets-area .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px; /* Space between widgets */
    margin-bottom: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 280px; /* Minimum width for widgets before wrapping */
}

.footer-widget .widget-title {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

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

.footer-widget a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.footer-widget ul li {
    margin-bottom: 8px;
}

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

.newsletter-form 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;
}

.newsletter-form input[type="email"]::placeholder {
    color: #888;
}

.newsletter-form .subscribe-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

.social-links a {
    display: inline-block;
    color: #fff;
    font-size: 1.4em;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

.footer-bottom-bar {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-top: 1px solid #333;
}

.footer-bottom-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.copyright-text {
    margin: 0;
    color: #888;
}

.footer-secondary-nav a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-secondary-nav a:hover {
    color: #007bff;
}

.separator {
    color: #888;
    margin: 0 5px;
}

/* Accessibility: Visually hidden content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation .navigation-menu {
        display: none; /* Hide desktop menu */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-navigation .navigation-menu.active {
        display: flex; /* Show mobile menu when active */
    }
    .main-navigation .menu-toggle {
        display: block; /* Show hamburger icon */
        background: none;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
        color: #333;
    }
    .main-header-area .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-wrapper, .header-utility-nav {
        flex-basis: 50%;
        text-align: center;
    }
    .main-navigation {
        flex-basis: 100%;
        text-align: center;
        margin-top: 15px;
    }
    .header-utility-nav {
        margin-top: 15px;
    }
    .footer-widgets-area .container {
        flex-direction: column;
        align-items: center;
    }
    .footer-widget {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    .newsletter-form {
        justify-content: center;
    }
    .footer-bottom-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-secondary-nav {
        margin-top: 10px;
    }
    .footer-secondary-nav a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .top-bar-actions {
        margin-top: 5px;
    }
    .search-form input[type="search"] {
        width: 150px;
    }
    .search-form input[type="search"]:focus {
        width: 200px;
    }
}
/* End of shared CSS. This provides basic styling for header, footer, and includes some responsive design and accessibility utilities. */
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
