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

/* Header Styles */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.branding {
    display: flex;
    align-items: center;
}
.branding .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.branding img {
    height: 40px;
    margin-right: 10px;
}
.branding h1 {
    font-size: 24px;
    margin: 0;
    color: #333;
}
.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 {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-navigation ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.main-navigation .submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    z-index: 1000;
    border-radius: 4px;
    left: 0;
    top: 100%;
}
.main-navigation ul li:hover > .submenu {
    display: block;
}
.main-navigation .submenu li a {
    padding: 8px 20px;
    white-space: nowrap;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-box {
    display: flex;
    margin-right: 20px;
}
.search-box input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.search-box button {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-box button:hover {
    background-color: #0056b3;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.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;
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}
.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}
.promo-banner {
    background-color: #ffc107;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-size: 15px;
}
.promo-banner a {
    color: #007bff;
    font-weight: bold;
    margin-left: 5px;
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 14px;
}
.main-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.main-footer h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}
.main-footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #007bff;
    margin-top: 10px;
}
.main-footer p {
    margin-bottom: 10px;
}
.main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-footer ul li {
    margin-bottom: 8px;
}
.main-footer ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}
.main-footer ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.main-footer .contact-info i {
    margin-right: 10px;
    color: #007bff;
    width: 15px; /* Align icons */
    text-align: center;
}
.main-footer .social-links {
    margin-top: 15px;
}
.main-footer .social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}
.main-footer .social-links a:hover {
    background-color: #007bff;
}
.main-footer .newsletter input[type="email"] {
    width: calc(100% - 80px);
    padding: 10px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.main-footer .newsletter button {
    width: 80px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.main-footer .newsletter button:hover {
    background-color: #0056b3;
}
.main-footer .footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #999;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide navigation for mobile, will be toggled by JS */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-header .container {
        flex-wrap: wrap;
    }
    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    .search-box {
        margin-right: 10px;
    }
    .main-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .main-footer h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .main-footer .social-links {
        display: flex;
        justify-content: center;
    }
    .main-footer .newsletter form {
        display: flex;
        justify-content: center;
    }
    .main-footer .newsletter input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
        width: 80%;
    }
    .main-footer .newsletter button {
        border-radius: 4px;
        width: 80%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
