/* General Body & Typography */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

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

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

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;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

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

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

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

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

.btn-tertiary {
    background-color: transparent;
    color: #007bff;
    border-color: #007bff;
}

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

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

.header-top-bar {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

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

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

.top-bar-content .social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1em;
}

.header-main-nav {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-main-nav > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand .logo img {
    height: 50px;
    width: auto;
}

.main-navigation {
    flex-grow: 1;
    text-align: right;
}

.main-navigation .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

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

.main-navigation .nav-links li a {
    display: block;
    padding: 10px 0;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-navigation .nav-links li a:hover,
.main-navigation .nav-links li a.active {
    color: #007bff;
    text-decoration: none;
}

.main-navigation .has-submenu > a::after {
    content: ' \25BC'; /* Down arrow */
    font-size: 0.7em;
    margin-left: 5px;
}

.main-navigation .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    border-radius: 5px;
}

.main-navigation .nav-links li:hover > .submenu {
    display: block;
}

.main-navigation .submenu li a {
    padding: 8px 20px;
    white-space: nowrap;
    color: #555;
}

.main-navigation .submenu li a:hover {
    background-color: #f8f8f8;
    color: #007bff;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #333;
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.header-search {
    margin-left: 20px;
}

.header-search .search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
}

.header-search .search-form input[type="search"] {
    border: none;
    padding: 8px 15px;
    outline: none;
    width: 150px;
}

.header-search .search-form button {
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-search .search-form button:hover {
    background-color: #0056b3;
}

/* 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: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

/* Footer Specific Styles */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 30px;
    font-size: 0.95em;
}

.main-footer a {
    color: #eee;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

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

.footer-widget {
    flex-basis: calc(25% - 30px);
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    display: inline-block;
}

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

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

.footer-widget .social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.footer-widget .social-icons a:hover {
    background-color: #007bff;
}

.footer-widget .contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-widget .contact-info p i {
    margin-right: 10px;
    color: #007bff;
}

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

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 5px 0 0 5px;
    background-color: #333;
    color: #fff;
    outline: none;
}

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

.newsletter-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #0056b3;
}

.newsletter-disclaimer {
    font-size: 0.85em;
    margin-top: 10px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom .payment-methods img {
    margin-left: 10px;
    max-height: 25px;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-navigation .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
    }

    .main-navigation.active .nav-links {
        display: flex;
    }

    .main-navigation .nav-links li {
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .main-navigation .nav-links li:last-child {
        border-bottom: none;
    }

    .main-navigation .nav-links li a {
        padding: 12px 20px;
    }

    .main-navigation .submenu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background-color: #f8f8f8;
        border-top: 1px solid #eee;
    }

    .main-navigation .submenu li a {
        padding: 8px 30px;
    }

    .menu-toggle {
        display: block;
    }

    .header-main-nav > .container {
        flex-wrap: nowrap;
    }

    .header-search {
        margin-left: auto;
    }

    .footer-widget {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .top-bar-content .contact-info span {
        margin: 5px 10px;
    }

    .top-bar-content .social-links {
        margin-top: 10px;
    }

    .footer-widget {
        flex-basis: 100%;
        text-align: center;
    }

    .footer-widget h3 {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-widget .social-icons {
        justify-content: center;
        display: flex;
    }

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

    .footer-bottom .payment-methods {
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .header-search .search-form input[type="search"] {
        width: 100px;
    }
    .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;
  }
}
