/* Basic Reset & Typography */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #333;
    --white-color: #fff;
    --border-color: #dee2e6;
    --font-family-sans: 'Arial', sans-serif;
    --font-family-serif: 'Georgia', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: var(--dark-bg);
}

p {
    margin-bottom: 1em;
}

/* Layout & Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-lg {
    padding: 12px 25px;
    font-size: 1.1rem;
}

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

.header-top-bar {
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding: 8px 0;
    font-size: 0.9em;
}

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

.header-top-bar .contact-info i {
    margin-right: 5px;
}

.header-top-bar .social-links a {
    color: var(--white-color);
    margin-left: 15px;
    font-size: 1.1em;
}

.main-navigation {
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}

.main-navigation .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--dark-bg);
}

.main-navigation .logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
}

.main-navigation .logo-text {
    color: var(--primary-color);
}

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

.nav-menu li a {
    color: var(--dark-bg);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 5px;
}

.nav-menu .dropdown:hover .dropdown-menu {
    display: flex;
}

.nav-menu .dropdown-menu li a {
    padding: 8px 20px;
    display: block;
    color: var(--dark-bg);
}

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--dark-bg);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/assets/images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white-color);
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    margin: 0 10px;
}

.btn-hero {
    border-width: 2px;
}

.btn-hero.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-hero.btn-primary:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-hero.btn-outline {
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-hero.btn-outline:hover {
    background-color: var(--white-color);
    color: var(--accent-color);
}


/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--white-color);
    padding: 50px 0 20px;
    font-size: 0.95em;
}

.main-footer h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.main-footer a {
    color: var(--white-color);
}

.main-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col address p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-col address i {
    margin-right: 10px;
    margin-top: 4px; /* Align icon better with text */
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: #495057;
    color: var(--white-color);
    border-right: none;
}

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

.newsletter-form button {
    border-radius: 0 5px 5px 0;
    padding: 10px 20px;
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--white-color);
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.social-media-footer {
    margin-top: 20px;
}

.social-media-footer a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #495057;
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

.social-media-footer a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.85em;
}

.footer-bottom .legal-links a {
    margin-left: 15px;
}

.footer-bottom .legal-links span {
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white-color);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 10px 0;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu li a {
        padding: 10px 0;
        display: block;
    }
    .menu-toggle {
        display: block;
    }
    .main-navigation .container {
        flex-wrap: wrap;
    }
    .main-navigation .logo {
        flex-grow: 1;
    }
    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: var(--light-bg);
        padding: 0;
        margin: 0 20px;
        border-radius: 0;
    }
    .nav-menu .dropdown:hover .dropdown-menu {
        display: none; /* Managed by JS for mobile */
    }
    .nav-menu .dropdown-menu.active {
        display: flex;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col address p {
        justify-content: center;
    }
    .newsletter-form {
        justify-content: center;
    }
    .social-media-footer {
        text-align: center;
    }
    .footer-bottom .flex-between-center {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom .legal-links {
        display: flex;
        gap: 10px;
    }
    .footer-bottom .legal-links span {
        display: none; /* Hide separator on small screens */
    }
}
@media (max-width: 576px) {
    .header-top-bar .contact-info,
    .header-top-bar .social-links {
        display: none; /* Hide top bar contact/socials on very small screens */
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
