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

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

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

.header-top-bar {
    background-color: #0056b3; /* Primary dark blue */
    color: #fff;
    padding: 10px 0;
    font-size: 0.9em;
}

.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 .social-media a {
    color: #fff;
    margin-left: 15px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.header-top-bar .social-media a:hover {
    color: #e0e0e0;
}

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

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

.logo img {
    height: 50px;
    vertical-align: middle;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

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

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-menu li {
    position: relative;
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #007bff; /* Primary blue */
}

.nav-menu .has-submenu > a::after {
    content: '\f0d7'; /* FontAwesome caret down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
}

.submenu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 1001;
    border-top: 3px solid #007bff;
}

.nav-menu li:hover > .submenu {
    display: block;
}

.submenu li {
    margin: 0;
}

.submenu a {
    padding: 8px 20px;
    white-space: nowrap;
    color: #555;
    font-weight: normal;
}

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

.user-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

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

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

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

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

.btn-tertiary {
    background-color: #28a745; /* Green */
    color: #fff;
    border: 1px solid #28a745;
}

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

.nav-cta .btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x600/007bff/ffffff?text=Hero+Image') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

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

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

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2em;
}

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

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

/* Footer Styles */
.main-footer {
    background-color: #2c3e50; /* Darker blue/grey */
    color: #ecf0f1;
    padding: 60px 0 30px;
    font-size: 0.95em;
}

.main-footer a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #3498db; /* Lighter blue */
}

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

.footer-col h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3498db;
    margin-top: 10px;
}

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

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

.footer-col ul li i {
    margin-right: 8px;
    color: #3498db;
}

.address-info p {
    margin-bottom: 10px;
}

.address-info i {
    margin-right: 10px;
    color: #3498db;
}

.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: #3a4b5c;
    color: #ecf0f1;
}

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

.btn-subscribe {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #2980b9;
}

.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: #3a4b5c;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-media-footer a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a627a;
    margin-top: 30px;
}

.footer-bottom i {
    color: #e74c3c; /* Red heart */
}

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

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

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 15px 20px;
    }

    .nav-menu .has-submenu > a::after {
        float: right;
        margin-right: 20px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        background-color: #f9f9f9;
        display: none; /* Hide by default on mobile */
    }

    .nav-menu li.active > .submenu {
        display: block; /* Show when parent is active */
    }

    .menu-toggle {
        display: block;
    }

    .user-actions {
        margin-left: auto;
        margin-right: 20px;
        order: 1; /* Move to the left of toggle */
        flex-basis: auto; /* Allow content to size itself */
    }

    .main-nav .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo {
        order: 0;
    }

    .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 h3::after {
        margin: 10px auto 0;
    }

    .newsletter-form {
        justify-content: center;
    }

    .social-media-footer {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-top-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .header-top-bar .contact-info {
        margin-bottom: 10px;
    }

    .user-actions {
        order: 2; /* Move to the right of toggle */
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        margin-left: 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;
  }
}
