/* General Body and Typography */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.header-topbar {
    background-color: #f8f8f8;
    padding: 10px 0;
    font-size: 0.9em;
    color: #666;
}
.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-left, .topbar-right {
    display: flex;
    gap: 20px;
}
.topbar-link {
    color: #666;
}
.topbar-link:hover {
    color: #007bff;
}
.header-main {
    padding: 15px 0;
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    display: block;
}
.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.nav-link {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
}
.main-navigation ul li a.nav-link:hover,
.main-navigation ul li a.nav-link.active {
    color: #007bff;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin-top: 5px;
    border-radius: 4px;
}
.main-navigation ul li:hover > .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    color: #333;
    padding: 10px 15px;
    display: block;
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background-color: #f1f1f1;
    text-decoration: none;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}
.search-input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 180px;
}
.search-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-button:hover {
    background-color: #0056b3;
}
.cart-button {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    position: relative;
    color: #333;
}
.cart-count {
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    position: absolute;
    top: -5px;
    right: -10px;
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9em;
}
.site-footer a {
    color: #eee;
}
.site-footer a:hover {
    color: #007bff;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1em;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget p {
    margin-bottom: 10px;
}
.contact-info i {
    margin-right: 10px;
    color: #007bff;
}
.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}
.social-icon:hover {
    background-color: #007bff;
}
.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 4px 0 0 4px;
    background-color: #333;
    color: #fff;
    outline: none;
}
.newsletter-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
    background-color: #0056b3;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom .payment-methods img {
    height: 25px;
    margin-left: 10px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens */
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile toggle */
    }
    .header-main .container {
        justify-content: space-between;
    }
    .header-actions {
        order: 3; /* Move actions to the right */
    }
    .logo {
        order: 1;
    }
    .footer-widgets {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 768px) {
    .header-topbar .container {
        flex-direction: column;
        gap: 10px;
    }
    .topbar-left, .topbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .search-box {
        width: 100%;
    }
    .search-input {
        width: calc(100% - 40px); /* Adjust for button */
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .footer-bottom .payment-methods {
        margin-top: 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
