/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

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

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

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

.btn-hero {
    background-color: #28a745;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 25px;
}

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

.btn-subscribe {
    background-color: #ffc107;
    color: #333;
    border: 1px solid #ffc107;
}

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

/* Form Elements */
input[type="email"],
input[type="search"],
input[type="text"],
textarea {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

input[type="email"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.header-top-bar {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.top-nav ul {
    display: flex;
}

.top-nav li {
    margin-left: 20px;
}

.top-nav a {
    color: #f8f9fa;
    text-decoration: none;
}

.top-nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.header-main-section {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.5rem;
}

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

.main-navigation .nav-list {
    display: flex;
}

.main-navigation .nav-item {
    margin-left: 30px;
    position: relative;
}

.main-navigation .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.main-navigation .nav-link:hover {
    color: #007bff;
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    min-width: 160px;
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 5px;
}

.dropdown-item {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

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

.user-actions {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.search-input {
    border: none;
    padding: 8px 10px;
    flex-grow: 1;
    width: auto;
    margin-bottom: 0;
}

.search-input:focus {
    box-shadow: none;
}

.search-button {
    background-color: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #e2e6ea;
}

.user-actions .btn {
    margin-left: 10px;
}

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

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Footer Specific Styles */
.main-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

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

.footer-col h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

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

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

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

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

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #495057;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
}

.social-links img {
    width: 18px;
    height: 18px;
    filter: invert(1); /* Makes SVG white */
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    background-color: #fff;
    color: #333;
}

.newsletter-form button {
    width: fit-content;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-legal-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-legal-nav a {
    color: #cccccc;
}

.footer-legal-nav a:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-navigation {
        display: none; /* Hide main nav on smaller screens, will be toggleable */
    }
    .user-actions {
        margin-left: auto;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .header-main-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-area {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
    .search-box {
        width: calc(100% - 100px); /* Adjust based on other elements */
        margin-right: 10px;
    }
    .user-actions .btn {
        margin-left: 5px;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    .top-nav ul {
        margin-top: 10px;
        justify-content: center;
    }
    .top-nav li {
        margin: 0 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        justify-content: center;
    }
    .newsletter-form {
        align-items: center;
    }
    .footer-legal-nav ul {
        flex-direction: column;
        gap: 8px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
