/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Example font */
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #333;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}
.header-top-bar {
    background-color: #f2f2f2;
    padding: 10px 0;
    font-size: 0.9em;
    color: #555;
    border-bottom: 1px solid #eee;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header-top-bar .contact-info span {
    margin-right: 20px;
    display: inline-block;
}
.header-top-bar .social-links a {
    color: #555;
    margin-left: 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.header-top-bar .social-links a:hover {
    color: #007bff;
}
.header-main-nav {
    padding: 15px 0;
}
.header-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 40px;
    margin-right: 10px;
    transition: height 0.3s ease;
}
.site-name {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}
.main-navigation {
    flex-grow: 1;
    text-align: center;
}
.main-navigation .nav-list {
    display: flex;
    justify-content: center;
}
.main-navigation .nav-item {
    margin: 0 15px;
    position: relative;
}
.main-navigation .nav-link {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}
.main-navigation .nav-link:hover,
.main-navigation .nav-link.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
}
.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 220px;
    border-top: 3px solid #007bff;
    z-index: 1001;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: #333;
    font-weight: normal;
}
.dropdown-menu li a:hover {
    background-color: #f8f8f8;
    color: #007bff;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-box {
    position: relative;
    margin-right: 20px;
}
.search-input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    width: 180px;
    transition: width 0.3s ease, border-color 0.3s ease;
}
.search-input:focus {
    width: 220px;
    border-color: #007bff;
    outline: none;
}
.search-button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.3s ease;
}
.search-button:hover {
    color: #007bff;
}
.btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
    margin-left: 10px;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
    margin-left: 10px;
}
.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}
.menu-toggle {
    display: none; /* Hidden on desktop, shown on mobile */
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    margin-left: 20px;
    color: #333;
    transition: color 0.3s ease;
}
.menu-toggle:hover {
    color: #007bff;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    position: relative;
}
.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 25px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-section p {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}
.btn-hero {
    background-color: #28a745;
    color: #fff;
    padding: 18px 35px;
    font-size: 1.2em;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: inline-block;
}
.btn-hero:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

/* Footer Styles */
.main-footer {
    background-color: #222;
    color: #bbb;
    padding: 60px 0 30px 0;
    font-size: 0.95em;
}
.main-footer a {
    color: #bbb;
}
.main-footer a:hover {
    color: #fff;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-widgets .widget {
    flex: 1;
    min-width: 250px;
    margin-right: 30px;
    margin-bottom: 30px;
}
.footer-widgets .widget:last-child {
    margin-right: 0;
}
.widget-title {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}
.about-us-widget p {
    margin-bottom: 15px;
}
.footer-contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.footer-contact-info i {
    margin-right: 12px;
    color: #007bff;
    font-size: 1.1em;
}
.quick-links-widget ul li,
.services-widget ul li {
    margin-bottom: 10px;
}
.newsletter-form {
    display: flex;
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden;
}
.newsletter-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    background-color: #333;
    color: #fff;
    font-size: 1em;
}
.newsletter-input::placeholder {
    color: #888;
}
.btn-subscribe {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    font-weight: 600;
}
.btn-subscribe:hover {
    background-color: #0056b3;
}
.footer-social-links {
    margin-top: 25px;
    display: flex;
}
.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #333;
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    font-size: 1.3em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.footer-social-links a:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 20px;
    font-size: 0.9em;
}
.copyright a {
    margin: 0 8px;
    display: inline-block;
}

/* Responsive Adjustments (basic example) */
@media (max-width: 1024px) {
    .main-navigation .nav-item {
        margin: 0 10px;
    }
    .header-main-nav .container {
        padding: 0 10px;
    }
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.2em;
    }
}

@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens */
        width: 100%;
        order: 3;
        flex-basis: 100%;
        text-align: left;
    }
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 10px 0;
        border-top: 1px solid #eee;
    }
    .main-navigation.active .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation.active .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }
    .main-navigation.active .nav-item:last-child {
        border-bottom: none;
    }
    .main-navigation.active .nav-link {
        padding: 12px 20px;
        border-bottom: none;
    }
    .main-navigation.active .nav-link:hover, .main-navigation.active .nav-link.active {
        background-color: #f8f8f8;
        border-bottom: none;
    }
    .main-navigation.active .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        border-radius: 0;
        min-width: unset;
    }
    .main-navigation.active .dropdown-menu li a {
        padding: 8px 25px;
    }
    .menu-toggle {
        display: block; /* Show menu toggle button */
    }
    .header-main-nav .container {
        justify-content: space-between;
        align-items: center;
    }
    .header-actions {
        margin-left: auto;
        order: 2;
    }
    .search-box {
        margin-right: 10px;
    }
    .user-auth {
        display: none; /* Hide login/signup buttons on smaller screens, can be part of mobile menu */
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .footer-widgets .widget {
        flex: 1 1 45%; /* Two columns on medium screens */
        margin-right: 20px;
    }
    .footer-widgets .widget:nth-child(2n) {
        margin-right: 0;
    }
    .footer-widgets .widget:nth-child(odd) {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info span {
        margin: 0 10px 5px 10px;
        display: inline-block;
    }
    .header-top-bar .social-links {
        margin-top: 10px;
    }
    .header-main-nav .container {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
    .search-box {
        margin-right: 0;
        width: 80%;
    }
    .search-input {
        width: 100%;
    }
    .menu-toggle {
        margin-left: 0;
        margin-right: 15px;
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .btn-hero {
        padding: 12px 25px;
        font-size: 1em;
    }
    .footer-widgets .widget {
        flex: 1 1 100%; /* Single column on small screens */
        margin-right: 0;
    }
    .footer-widgets .widget:last-child {
        margin-bottom: 0;
    }
    .footer-social-links {
        justify-content: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    .btn-subscribe {
        border-radius: 5px;
        width: 100%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
