/* General Body Styles */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for responsive layout */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Header Styling */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.header-top-bar {
    background-color: #f2f2f2;
    color: #666;
    font-size: 0.875rem; /* 14px */
    padding: 0.5rem 0;
}

.header-main-nav {
    padding: 1rem 0;
}

.site-header .logo img {
    height: 3rem; /* 48px */
}

.site-header .logo span {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #333;
}

.site-header nav a,
.site-header .login-btn,
.site-header .signup-btn {
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header nav a:hover,
.site-header .login-btn:hover {
    color: #007bff;
}

.site-header .signup-btn {
    background-color: #007bff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.site-header .signup-btn:hover {
    background-color: #0056b3;
}

/* Dropdown Menu */
.site-header .relative.group:hover .absolute {
    display: block;
}

.site-header .absolute {
    top: 100%;
    left: 0;
    min-width: 160px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    overflow: hidden;
}

.site-header .absolute a {
    padding: 0.75rem 1rem;
    display: block;
    color: #333;
    white-space: nowrap;
}

.site-header .absolute a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

/* Mobile Menu */
.mobile-menu {
    border-top: 1px solid #eee;
    background-color: #fff;
}

.mobile-menu a,
.mobile-menu button {
    display: block;
    padding: 0.75rem 1rem;
    text-align: left;
    width: 100%;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
}

.mobile-menu a:last-child,
.mobile-menu button:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.mobile-menu .mobile-submenu {
    padding-left: 1rem;
    border-left: 2px solid #007bff;
}

.mobile-menu .mobile-submenu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-bottom: none;
}

/* Search Overlay */
.search-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.search-overlay .bg-white {
    position: relative;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.search-overlay .search-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.search-overlay .search-close-button:hover {
    color: #333;
}

.search-overlay input[type="text"] {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem 0 0 0.25rem;
    font-size: 1rem;
}

.search-overlay button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-overlay button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Footer Styling */
.site-footer {
    background-color: #212529; /* Dark grey */
    color: #ced4da; /* Light grey text */
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.site-footer h4 {
    color: #ffffff;
    font-size: 1.25rem; /* 20px */
    margin-bottom: 1.5rem;
}

.site-footer p,
.site-footer li {
    font-size: 0.9375rem; /* 15px */
    line-height: 1.7;
}

.site-footer a {
    color: #adb5bd; /* Slightly darker light grey for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #007bff; /* Blue for hover */
}

.site-footer .social-links a {
    font-size: 1.25rem;
    margin-right: 0.8rem;
    color: #6c757d; /* Medium grey for social icons */
}

.site-footer .social-links a:hover {
    color: #ffffff;
}

.site-footer .newsletter input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #495057; /* Darker border for input */
    border-radius: 0.25rem;
    background-color: #343a40; /* Darker background for input */
    color: #f8f9fa;
    margin-bottom: 1rem;
}

.site-footer .newsletter input[type="email"]::placeholder {
    color: #adb5bd;
}

.site-footer .newsletter button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.site-footer .newsletter button[type="submit"]:hover {
    background-color: #0056b3;
}

.site-footer .footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1.5rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header .md\:flex {
        display: none;
    }
    .site-header .md\:hidden {
        display: block;
    }
    .site-header .logo img {
        height: 2.5rem;
    }
    .site-header .logo span {
        font-size: 1.25rem;
    }
    .site-footer .grid-cols-1 {
        grid-template-columns: 1fr;
    }
    .site-footer .md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    .site-footer .footer-section {
        margin-bottom: 2rem;
    }
    .site-footer .footer-section:last-child {
        margin-bottom: 0;
    }
}

/* Tailwind CSS utility classes are assumed to be present */
/* For example, 'mx-auto', 'flex', 'justify-between', 'items-center', 'py-2', 'px-4', 'text-sm', 'text-gray-600', 'space-x-4', 'hover:text-blue-600', 'fab', 'fas', 'mr-1', 'bg-white', 'shadow-md', 'font-bold', 'text-gray-800', 'hidden', 'md:flex', 'relative', 'group', 'absolute', 'group-hover:block', 'z-10', 'min-w-[160px]', 'block', 'hover:bg-gray-100', 'focus:outline-none', 'text-lg', 'md:inline-block', 'bg-blue-600', 'text-white', 'rounded-md', 'transition', 'duration-300', 'mobile-menu-button', 'text-xl', 'flex-col', 'space-y-2', 'mobile-submenu-toggle', 'mobile-submenu', 'pl-4', 'border-l', 'border-gray-200', 'mt-2', 'space-y-1', 'text-center', 'search-overlay', 'fixed', 'inset-0', 'bg-black', 'bg-opacity-75', 'items-start', 'pt-20', 'z-50', 'p-6', 'w-11/12', 'max-w-lg', 'top-3', 'right-3', 'text-gray-600', 'hover:text-gray-900', 'text-2xl', 'mb-4', 'flex-grow', 'border', 'border-gray-300', 'rounded-l-md', 'focus:ring-2', 'focus:ring-blue-500', 'px-5', 'py-3', 'rounded-r-md', 'bg-gray-800', 'text-gray-300', 'py-10', 'grid', 'grid-cols-1', 'md:grid-cols-4', 'gap-8', 'text-xl', 'text-white', 'mb-4', 'leading-relaxed', 'mt-4', 'space-x-4', 'text-gray-400', 'fa-lg', 'space-y-2', 'hover:text-blue-400', 'not-italic', 'mr-2', 'text-sm', 'border-t', 'border-gray-700', 'mt-8', 'pt-6', 'text-center', 'text-red-500' */

/* Basic Font Awesome import (assuming it's loaded externally or via a build step) */
/* @import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css'); */

/* Basic Inter font import (assuming it's loaded externally or via a build step) */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); */

/* Some basic reset/base styles */
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    text-decoration: underline;
}
button {
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}
ul {
    list-style: none;
    padding: 0;
    margin: 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;
  }
}
