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

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-login, .btn-register {
    background-color: #6c757d;
    color: #fff;
    margin-left: 5px;
}
.btn-login:hover, .btn-register:hover {
    background-color: #5a6268;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.newsletter-form input[type="email"] {
    width: calc(100% - 100px); /* Adjust based on button width */
    margin-right: 10px;
}
.newsletter-form button {
    width: 90px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-top {
    background-color: #f2f2f2;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-top .top-right {
    display: flex;
    align-items: center;
}
.language-selector select {
    border: none;
    background: transparent;
    padding: 0;
    margin-left: 10px;
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
}
.logo img {
    height: 50px;
    width: auto;
}
.main-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-nav .nav-item {
    position: relative;
    margin-left: 25px;
}
.main-nav .nav-link {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
.main-nav .nav-link:hover {
    color: #007bff;
}
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-width: 160px;
    z-index: 1;
    border-radius: 4px;
    padding: 10px 0;
}
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-item {
    color: #333;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
}
.dropdown-item:hover {
    background-color: #f1f1f1;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    margin-right: 15px;
}
.search-input {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 150px;
}
.search-button {
    background-color: #f2f2f2;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
}
.mobile-menu-toggle span {
    display: block;
    height: 2px;
    background-color: #333;
    margin-bottom: 5px;
}
.header-bottom {
    background-color: #ffc107;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
}
.header-bottom .promo-link {
    color: #000;
    text-decoration: underline;
}

/* Footer Styles */
.site-footer {
    background-color: #222;
    color: #eee;
    padding: 40px 0;
    font-size: 14px;
}
.site-footer a {
    color: #bbb;
    text-decoration: none;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-widgets {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding-right: 20px;
}
.footer-widget:last-child {
    padding-right: 0;
}
.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
}
.footer-widget h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #007bff;
    margin-top: 5px;
}
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 8px;
}
.footer-widget .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #444;
    color: #fff;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}
.footer-widget .social-links a:hover {
    background-color: #007bff;
}
.footer-widget .newsletter-form {
    display: flex;
    margin-top: 15px;
}
.footer-widget .newsletter-form input {
    flex-grow: 1;
    border-radius: 4px 0 0 4px;
    border: none;
    padding: 10px;
}
.footer-widget .newsletter-form button {
    border-radius: 0 4px 4px 0;
    border: none;
    background-color: #007bff;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
}
.footer-widget .newsletter-form button:hover {
    background-color: #0056b3;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-bottom .copyright {
    margin: 0;
    color: #aaa;
}
.footer-bottom .footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.footer-bottom .footer-nav li {
    margin-left: 20px;
}
.footer-bottom .footer-nav li a {
    color: #aaa;
}
/* Font Awesome for icons (assuming it's loaded externally or via a CDN) */
/* e.g., <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> */
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
