/* 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;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica Neue', sans-serif;
    margin-bottom: 0.5em;
    color: #222;
}

p {
    margin-bottom: 1em;
}

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;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

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

.btn-subscribe {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-subscribe:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Header Specific Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top-bar {
    background-color: #f8f8f8;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
}

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

.header-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.site-logo img {
    height: 40px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
}

.main-navigation li {
    position: relative;
    margin-left: 25px;
}

.main-navigation a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
}

.main-navigation a:hover {
    color: #007bff;
    text-decoration: none;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
}

.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;
}

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

.site-footer a {
    color: #eee;
}

.site-footer a:hover {
    color: #007bff;
}

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

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

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

.footer-widget h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

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

.social-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5em;
    color: #bbb;
}

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

.newsletter-form input[type="email"] {
    margin-bottom: 10px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
}

.newsletter-form input[type="email"]::placeholder {
    color: #aaa;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-main-nav .container {
        flex-wrap: wrap;
    }
    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    .main-navigation ul {
        flex-direction: column;
        display: none; /* Hidden by default for mobile */
    }
    .main-navigation .menu-toggle {
        display: block; /* Show toggle button */
    }
    .main-navigation ul.nav-menu.active {
        display: flex; /* Show menu when active */
    }
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
    .header-actions {
        order: 2;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .footer-widget {
        margin-right: 0;
        margin-bottom: 30px;
    }
}

/* Icon placeholders */
.icon-search::before { content: '🔍'; }
.icon-bell::before { content: '🔔'; }
.icon-facebook::before { content: 'f'; font-family: 'Font Awesome 5 Brands'; } /* Placeholder, replace with actual icon font setup */
.icon-twitter::before { content: 't'; font-family: 'Font Awesome 5 Brands'; } /* Placeholder */
.icon-linkedin::before { content: 'in'; font-family: 'Font Awesome 5 Brands'; } /* Placeholder */
.icon-instagram::before { content: 'ig'; font-family: 'Font Awesome 5 Brands'; } /* Placeholder */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 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;
  }
}
