/* Shared CSS for the entire application */

/* Basic Reset & Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-topbar {
    background-color: #0056b3;
    color: #fff;
    padding: 8px 0;
    font-size: 0.9em;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.topbar-links a:hover {
    color: #e0e0e0;
}

.main-header-area {
    padding: 15px 0;
}

.header-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    vertical-align: middle;
    margin-right: 10px;
}

.site-title {
    font-size: 1.8em;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #333;
}

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

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

.submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 200px;
    z-index: 100;
    padding: 10px 0;
    border-top: 3px solid #007bff;
}

.has-submenu:hover > .submenu {
    display: block;
}

.submenu li a {
    padding: 8px 20px;
    white-space: nowrap;
}

.header-actions .btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header-actions .btn:hover {
    background-color: #0056b3;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on smaller screens */
    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;
}

.header-bottom-bar {
    background-color: #ffc107;
    color: #333;
    padding: 10px 0;
    text-align: center;
    font-weight: bold;
}

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

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

.footer-widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-widget:first-child {
    flex: 2; /* About Us takes more space */
}

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

.footer-widget p {
    margin-bottom: 10px;
}

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

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

.footer-widget ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: #007bff;
}

.social-links a {
    display: inline-block;
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

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

.copyright, .disclaimer {
    margin-bottom: 10px;
    color: #888;
}

/* Icons (placeholder for actual icon font/SVG) */
.icon-search::before { content: '🔍'; }
.icon-facebook::before { content: 'f'; font-family: 'Font Awesome Brands'; } /* Example for icon font */
.icon-twitter::before { content: 't'; font-family: 'Font Awesome Brands'; }
.icon-linkedin::before { content: 'in'; font-family: 'Font Awesome Brands'; }
.icon-instagram::before { content: 'ig'; font-family: 'Font Awesome Brands'; }
.icon-location::before { content: '📍'; }
.icon-phone::before { content: '📞'; }
.icon-envelope::before { content: '✉️'; }

/* Responsive adjustments (example) */
@media (max-width: 768px) {
    .main-navigation {
        display: none; /* Hide main nav on mobile */
    }
    .mobile-menu-toggle {
        display: block; /* Show mobile menu toggle */
    }
    .header-flex-wrapper {
        justify-content: space-between;
    }
    .header-actions {
        display: flex;
        align-items: center;
    }
    .header-actions .btn {
        margin-left: 15px;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        min-width: unset;
        padding: 0;
        margin-bottom: 30px;
    }
    .footer-widget:first-child {
        flex: unset;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
