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

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

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 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: #5a6268;
}
.btn-subscribe {
    background-color: #28a745;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}
.btn-subscribe:hover {
    background-color: #218838;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.logo svg {
    margin-right: 10px;
}
.logo-text {
    color: #4CAF50;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation ul li {
    position: relative;
    margin-left: 25px;
}
.main-navigation ul li a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
}
.main-navigation ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.has-submenu > a::after {
    content: ' \25BE'; /* Unicode for down arrow */
    font-size: 0.8em;
    vertical-align: middle;
}
.submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 160px;
    z-index: 10;
    border-radius: 5px;
}
.submenu li a {
    padding: 8px 20px;
    white-space: nowrap;
    color: #333;
}
.submenu li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}
.main-navigation ul li.has-submenu:hover .submenu {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    color: #333;
}
.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}
/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    height: 38px;
}
.search-box input {
    border: none;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
    width: 150px;
}
.search-box button {
    background-color: #f8f9fa;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background-color 0.3s ease;
}
.search-box button:hover {
    background-color: #e2e6ea;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #e9f7ef;
    color: #28a745;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}
.announcement-bar .announcement-link {
    color: #28a745;
    font-weight: bold;
    text-decoration: underline;
}
.announcement-bar .announcement-link:hover {
    color: #218838;
}

/* Footer Styles */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    font-size: 15px;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}
.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}
.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}
.footer-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    color: #bdc3c7;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: #3498db;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    color: #ecf0f1;
    font-size: 20px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #3498db;
}
.social-links svg {
    width: 24px;
    height: 24px;
}

.newsletter-signup {
    margin-top: 25px;
}
.newsletter-signup h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}
.newsletter-signup form {
    display: flex;
    gap: 10px;
}
.newsletter-signup input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #34495e;
    color: #ecf0f1;
    outline: none;
}
.newsletter-signup input[type="email"]::placeholder {
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #bdc3c7;
    font-size: 13px;
}
.footer-legal-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation ul {
        display: none; /* Hide menu by default on smaller screens */
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    .main-navigation ul.active {
        display: flex; /* Show when active */
    }
    .main-navigation ul li {
        margin: 0;
        border-bottom: 1px solid #f8f9fa;
    }
    .main-navigation ul li a {
        padding: 15px 20px;
    }
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    .menu-toggle {
        display: block; /* Show toggle button */
    }
    .header-container {
        flex-wrap: nowrap;
    }
    .header-actions {
        order: 3; /* Move actions below logo and toggle */
        flex-basis: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .search-box {
        width: 100%;
        max-width: 300px;
    }
    .search-box input {
        width: calc(100% - 50px);
    }
    .site-header {
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        min-width: unset;
        width: 100%;
    }
    .social-links {
        justify-content: center;
    }
    .newsletter-signup form {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-signup input[type="email"],
    .newsletter-signup .btn-subscribe {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
