/* Shared CSS for the entire application */
:root {
    --primary-color: #007bff; /* Blue */
    --secondary-color: #6c757d; /* Gray */
    --accent-color: #28a745; /* Green */
    --dark-bg: #212529; /* Darker background */
    --light-bg: #f8f9fa; /* Light background */
    --text-color: #343a40; /* Dark text */
    --light-text: #e9ecef; /* Light text */
    --border-color: #dee2e6;
    --font-family-sans: 'Arial', sans-serif;
    --font-family-serif: 'Georgia', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

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

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

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

.btn-hero {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1em;
    border-color: var(--accent-color);
}

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

.btn-hero-alt {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 23px;
    font-size: 1.1em;
}

.btn-hero-alt:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header Styles */
.site-header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    margin-right: 20px;
}

.site-header .logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.site-header .logo h1 {
    font-size: 26px;
    margin: 0;
    font-weight: 600;
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-header .main-nav li {
    margin-left: 25px;
    position: relative;
}

.site-header .main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    display: block;
}

.site-header .main-nav a:hover, .site-header .main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.site-header .user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 10px;
}

/* Dropdown for More link */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--light-text);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #343a40;
    color: var(--primary-color);
}

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

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    border-radius: 8px;
    margin-top: 20px;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-content h2 {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image img {
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.announcement-bar {
    background-color: #ffc107; /* Yellow */
    color: var(--text-color);
    padding: 12px 0;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    border-radius: 5px;
}

.announcement-bar a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 8px;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 50px 0 25px;
    font-size: 0.95em;
    margin-top: 50px;
}

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

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

.site-footer .footer-column p {
    margin-bottom: 12px;
    color: var(--light-text);
}

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

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

.site-footer .footer-column ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.site-footer .footer-column ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.site-footer .social-links a {
    color: #fff;
    font-size: 1.6em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.site-footer .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.site-footer .newsletter form {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
}

.site-footer .newsletter input[type="email"] {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    min-width: 150px;
}

.site-footer .newsletter .btn-subscribe {
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.site-footer .newsletter .btn-subscribe:hover {
    background-color: #218838;
}

.site-footer .contact-info {
    margin-top: 25px;
}

.site-footer .contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--light-text);
}

.site-footer .contact-info i {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-top: 3px;
}

.site-footer .contact-info a {
    color: var(--light-text);
    text-decoration: none;
}

.site-footer .contact-info a:hover {
    text-decoration: underline;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    color: #bbb;
}

.site-footer .footer-bottom p {
    margin-bottom: 8px;
}

.site-footer .footer-bottom .heart-icon {
    color: #dc3545; /* Red */
}

/* Scroll to top button */
.scroll-top-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* FontAwesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Responsive adjustments */
@media (max-width: 992px) {
    .site-header .main-nav {
        order: 3;
        flex-basis: 100%;
        display: none; /* Hidden by default for mobile */
        text-align: center;
        margin-top: 15px;
    }

    .site-header .main-nav.active {
        display: block;
    }

    .site-header .main-nav ul {
        flex-direction: column;
        background-color: #343a40; /* Slightly lighter dark */
        padding: 15px 0;
        border-radius: 5px;
    }

    .site-header .main-nav li {
        margin: 10px 0;
    }

    .site-header .main-nav a {
        padding: 10px 0;
    }

    .site-header .user-actions {
        order: 2;
        margin-left: auto;
    }

    .site-header .logo {
        order: 1;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-content h2 {
        font-size: 2.8em;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image img {
        max-width: 90%;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer .social-links {
        justify-content: center;
    }

    .site-footer .newsletter form {
        flex-direction: column;
        max-width: 350px;
        margin: 20px auto 0;
    }

    .site-footer .newsletter input[type="email"],
    .site-footer .newsletter .btn-subscribe {
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .site-footer .newsletter .btn-subscribe {
        width: 100%;
    }

    .site-footer .contact-info {
        text-align: center;
    }

    .site-footer .contact-info p {
        justify-content: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #444;
        border-radius: 0;
        min-width: unset;
    }
    .dropdown:hover .dropdown-content {
        display: none;
    }
    .main-nav.active .dropdown-content {
        display: block;
    }
    .main-nav.active .dropdown > a {
        background-color: #555;
    }
}

@media (max-width: 576px) {
    .site-header .logo h1 {
        font-size: 22px;
    }

    .site-header .logo img {
        height: 35px;
    }

    .site-header .user-actions {
        gap: 5px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .hero-content h2 {
        font-size: 2.2em;
    }

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

    .btn-hero, .btn-hero-alt {
        padding: 10px 20px;
        font-size: 1em;
    }

    .announcement-bar p {
        font-size: 0.9em;
    }

    .site-footer .footer-column h3 {
        font-size: 1.1em;
    }

    .site-footer .social-links a {
        font-size: 1.3em;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        font-size: 18px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
