/* General Body Styles */
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 20px;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-header .logo img {
    height: 40px;
    vertical-align: middle;
}

.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 {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li a:focus {
    color: #007bff;
}

.main-navigation .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    left: 0;
    top: 100%;
}

.main-navigation .dropdown:hover .dropdown-menu {
    display: block;
}

.main-navigation .dropdown-menu li {
    margin: 0;
}

.main-navigation .dropdown-menu li a {
    padding: 8px 20px;
    color: #555;
    font-weight: normal;
}

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

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px;
    color: #555;
}

.header-actions .search-toggle svg {
    width: 24px;
    height: 24px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.header-bottom-promo {
    background-color: #e9f7ff;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #d0eaff;
}

.header-bottom-promo p {
    margin: 0;
    color: #0056b3;
}

.header-bottom-promo .promo-link {
    color: #0056b3;
    text-decoration: underline;
    font-weight: bold;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay .search-form {
    display: flex;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-overlay .search-form input[type="search"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1.2em;
}

.search-overlay .search-form button {
    padding: 15px 25px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.search-overlay .search-form button:hover {
    background-color: #0056b3;
}

.search-overlay .close-search {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
}

.announcement-banner {
    background-color: #ffc107; /* Warning yellow */
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
}

.announcement-banner p {
    margin: 0;
}

.announcement-banner a {
    color: #333;
    font-weight: bold;
    text-decoration: underline;
}

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

.site-footer a {
    color: #007bff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-widgets .widget {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-widgets .widget:last-child {
    margin-right: 0;
}

.footer-widgets h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

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

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

.footer-widgets .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-widgets .social-icons a {
    color: #eee;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #444;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-widgets .social-icons a:hover {
    background-color: #007bff;
    color: #fff;
}

.footer-widgets .social-icons svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-top-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }

    .main-navigation ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .main-navigation ul li a {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-navigation .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .header-actions {
        order: 2;
        margin-top: 10px;
    }

    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }

    .footer-widgets .widget {
        width: 100%;
        max-width: 400px;
        margin-right: 0;
        text-align: center;
    }

    .footer-widgets .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-bottom-promo {
        font-size: 0.8em;
    }
    .search-overlay .search-form {
        width: 90%;
    }
    .search-overlay .search-form input[type="search"],
    .search-overlay .search-form button {
        padding: 10px 15px;
        font-size: 1em;
    }
    .search-overlay .close-search {
        top: -30px;
        font-size: 1.5em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
