/* General Body & Reset Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #343a40;
    --heading-color: #1a1a1a;
    --border-color: #dee2e6;
    --font-family-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Georgia', serif;
}

html {
    scroll-behavior: smooth;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    margin-bottom: 1em;
}

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;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: #218838;
    color: #fff;
    text-decoration: none;
}

.btn-ghost {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-ghost:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.15rem;
}

.btn .arrow-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.branding .logo img {
    max-height: 50px;
    width: auto;
}

.main-navigation .nav-menu {
    display: flex;
    gap: 25px;
}

.main-navigation .nav-menu > li > a {
    display: block;
    padding: 10px 0;
    color: var(--heading-color);
    font-weight: 600;
    position: relative;
}

.main-navigation .nav-menu > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation .nav-menu > li > a:hover::after,
.main-navigation .nav-menu > li.current-menu-item > a::after {
    width: 100%;
}

.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 10px;
    left: 0;
    top: 100%;
    z-index: 100;
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: normal;
}

.main-navigation .sub-menu li a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1010;
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/hero-background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons .social-link {
    color: #fff;
    font-size: 1.6rem;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons .social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-color);
    color: #e9ecef;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-container {
    padding-bottom: 30px;
}

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

.footer-col h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-about .footer-logo img {
    max-height: 45px;
    margin-bottom: 20px;
}

.footer-about .about-text {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #ced4da;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #ced4da;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding-top: 3px;
}

.contact-info a {
    color: #ced4da;
}

.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-legal a {
    color: #ced4da;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-newsletter p {
    margin-bottom: 20px;
    color: #ced4da;
}

.newsletter-form {
    display: flex;
    margin-bottom: 25px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #495057;
    border-radius: 8px 0 0 8px;
    background-color: #343a40;
    color: #fff;
    outline: none;
}

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

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

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    color: #ced4da;
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

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

.footer-bottom p {
    margin: 0;
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-bottom .heart-icon {
    color: #e74c3c;
    margin: 0 5px;
}

.footer-bottom .bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom .bottom-links li a {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-bottom .bottom-links li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

    .main-navigation .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
    }

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

    .main-navigation .nav-menu > li > a {
        padding: 15px 20px;
    }

    .main-navigation .nav-menu > li > a::after {
        bottom: 0;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 30px;
        background-color: var(--light-color);
        border-radius: 0;
        margin-top: 0;
    }

    .main-navigation .menu-item-has-children:hover > .sub-menu {
        display: none; /* Controlled by JS for mobile */
    }

    .menu-toggle {
        display: block;
        order: 2; /* Position toggle after logo */
    }

    .header-actions {
        order: 3;
        margin-left: auto; /* Push actions to the right */
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom .bottom-links {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        margin-left: 0;
    }

    .menu-toggle {
        position: absolute;
        top: 25px;
        right: 20px;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-large {
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .btn-large {
        width: 100%;
    }
    .footer-bottom .bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
