/* Basic Reset & Typography */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --text-color: #343a40;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #fff;
    --font-family-sans-serif: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-monospace: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

body {
    margin: 0;
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans-serif);
    color: var(--dark-bg);
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    color: var(--white);
    background-color: #0056b3;
    border-color: #0056b3;
    text-decoration: none;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: 0.3rem;
    margin-right: 1rem;
}

/* Font Awesome icons are assumed to be loaded globally via CDN or similar */

/* Header Specific CSS */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    position: relative;
    z-index: 1000;
}

.header-top-bar {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

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

.header-top-bar .contact-info span {
    margin-right: 20px;
}

.header-top-bar .contact-info i {
    margin-right: 5px;
    color: var(--accent-color);
}

.header-top-bar .social-media a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1rem;
    opacity: 0.8;
}
.header-top-bar .social-media a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.main-navigation {
    padding: 15px 0;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--dark-bg);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .dropbtn:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid var(--primary-color);
    border-radius: 0 0 4px 4px;
    left: 0;
    top: 100%;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-bg);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--primary-color) 0%, #0056b3 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
}

/* Footer Specific CSS */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.site-footer h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    font-weight: 700;
}

.site-footer h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 8px;
    border-radius: 1px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

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

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

.footer-widget p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-widget address p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-widget address i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-widget .social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-widget .social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom a {
    color: var(--primary-color);
}

.footer-bottom .fa-heart {
    color: #dc3545; /* Red heart */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on main-navigation height */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 8px 16px rgba(0,0,0,.1);
        padding: 20px 0;
        z-index: 999;
        border-top: 3px solid var(--primary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        padding: 12px 15px;
        border-bottom: 1px solid var(--light-bg);
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        width: 100%;
        background-color: var(--light-bg);
        border-radius: 0;
        padding: 0;
        transition: max-height 0.3s ease-out;
        max-height: 0;
        overflow: hidden;
    }
    .dropdown-content.show {
        max-height: 200px; /* Adjust as needed for content */
    }

    .dropdown-content a {
        padding-left: 30px;
        font-size: 0.9rem;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Hide on hover for mobile, JS will handle toggle */
    }

    .menu-toggle {
        display: flex;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content, .hero-image {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-image {
        order: -1; /* Move image above content on small screens */
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .btn-hero {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    .header-top-bar .contact-info span {
        margin-right: 0;
        margin-bottom: 5px;
        display: block;
    }
    .header-top-bar .social-media {
        margin-top: 10px;
    }

    .footer-widgets {
        flex-direction: column;
    }

    .footer-widget {
        padding-right: 0;
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-widget h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-widget address p i {
        display: inline-block;
        margin-right: 5px;
    }
    .footer-widget ul {
        display: inline-block;
        text-align: left;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
