/* Basic Reset & Body Styling */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    scroll-behavior: smooth;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    text-decoration: underline;
    color: #0056b3;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Header Styling */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.header-top-bar {
    background-color: #f1f1f1;
    padding: 8px 0;
    font-size: 0.85em;
    border-bottom: 1px solid #e0e0e0;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.welcome-message {
    color: #666;
}
.top-bar-nav ul {
    display: flex;
}
.top-bar-nav li {
    margin-left: 20px;
}
.top-bar-nav a {
    color: #666;
}
.top-bar-nav a:hover {
    color: #007bff;
}
.header-main-area {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.site-branding {
    display: flex;
    align-items: center;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo {
    height: 40px;
    margin-right: 10px;
    max-width: 100%;
}
.site-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.main-navigation {
    flex-grow: 1;
    text-align: center;
}
.main-navigation ul {
    display: flex;
    justify-content: center;
}
.main-navigation li {
    position: relative;
    margin: 0 15px;
}
.main-navigation a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #007bff;
    text-decoration: none;
}
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    min-width: 200px;
    left: 0;
    top: 100%;
    padding: 10px 0;
    border-top: 3px solid #007bff;
    z-index: 1001;
    text-align: left;
}
.main-navigation li:hover > .sub-menu {
    display: block;
}
.main-navigation .sub-menu li {
    margin: 0;
}
.main-navigation .sub-menu a {
    padding: 8px 20px;
    white-space: nowrap;
    color: #444;
    text-transform: none;
}
.main-navigation .sub-menu a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 5px;
}
.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-box {
    margin-right: 20px;
    position: relative;
}
.search-box input {
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 180px;
}
.search-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.search-button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1em;
}
.search-button:hover {
    color: #007bff;
}
.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-weight: 600;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #fff;
}

/* Footer Styling */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 30px;
    margin-top: 60px;
    font-size: 0.95em;
}
.site-footer a {
    color: #ecf0f1;
    text-decoration: none;
}
.site-footer a:hover {
    color: #3498db;
    text-decoration: underline;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-widget {
    flex: 1;
    min-width: 250px;
    margin: 0 20px 30px 0;
}
.footer-widget:last-child {
    margin-right: 0;
}
.widget-title {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 25px;
    position: relative;
    font-weight: 600;
}
.widget-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #3498db;
    margin-top: 12px;
}
.footer-widget ul {
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 12px;
}
.footer-widget p,
address {
    font-size: 0.9em;
    line-height: 1.8;
    margin-bottom: 15px;
}
address {
    font-style: normal;
}
.social-media {
    margin-top: 20px;
}
.social-media a {
    display: inline-block;
    color: #ecf0f1;
    font-size: 1.6em;
    margin-right: 18px;
    transition: color 0.3s ease;
}
.social-media a:hover {
    color: #3498db;
}
.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    flex-wrap: wrap;
}
.copyright {
    margin: 0;
    color: #bdc3c7;
}
.reserved-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}
.footer-legal-nav ul {
    display: flex;
    flex-wrap: wrap;
}
.footer-legal-nav li {
    margin-left: 25px;
}
.footer-legal-nav a {
    color: #bdc3c7;
}
.footer-legal-nav a:hover {
    color: #3498db;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation ul {
        justify-content: flex-start;
    }
    .main-navigation li {
        margin: 0 10px;
    }
    .header-actions {
        margin-left: auto;
    }
    .footer-widget {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    .header-main-area {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }
    .site-branding {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 15px;
    }
    .main-navigation {
        width: 100%;
        order: 3; /* Move navigation below branding and actions */
    }
    .main-navigation ul {
        flex-direction: column;
        display: none; /* Hidden by default for mobile */
        width: 100%;
        border-top: 1px solid #eee;
    }
    .main-navigation.is-open ul {
        display: flex;
    }
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .main-navigation li:last-child {
        border-bottom: none;
    }
    .main-navigation a {
        padding: 12px 15px;
    }
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 25px;
        width: 100%;
        background-color: #f9f9f9;
    }
    .menu-toggle {
        display: block;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        margin-left: 0;
        order: 2;
    }
    .search-box {
        margin-right: 10px;
        width: calc(100% - 150px);
    }
    .search-box input {
        width: 100%;
    }
    .user-area {
        display: flex;
    }
    .btn {
        flex-grow: 1;
        text-align: center;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        min-width: unset;
        width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-nav ul {
        flex-direction: column;
        margin-top: 15px;
    }
    .footer-legal-nav li {
        margin: 5px 0;
    }
    .copyright {
        margin-bottom: 10px;
    }
    .reserved-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5em;
    }
    .header-actions {
        flex-direction: column;
    }
    .search-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .user-area {
        width: 100%;
        justify-content: space-around;
    }
    .btn {
        margin: 0 5px;
    }
    .footer-widget {
        padding: 0 10px;
    }
    .footer-legal-nav li {
        margin: 5px 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
