/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --text-color: #555;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
}

.text-center {
    text-align: center;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 120px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
}

.nav-btn::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/bg1.jpg') no-repeat center center/cover;
    height: 70vh; 
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 0; /* 移除固定的上内边距 */
    position: relative; /* 添加相对定位 */
}
section#hero {
    margin-top: 150px;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px; /* 为导航栏高度添加补偿 */
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
    background-color: white;
    scroll-margin-top: 80px; /* 添加滚动边距，解决导航栏遮挡标题问题 */
}

section:not(:last-child) {
    margin-bottom: 2rem;
}

.section-with-bg {
    background-color: var(--light-color);
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.header-line {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.section-content {
    padding: 0 1rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.two-column.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.two-column.reverse .column {
    direction: ltr;
}

/* Mission Layout Styles */
.mission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-text {
    padding-right: 20px;
}

.mission-image {
    text-align: center;
}

.image-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.text-column h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.text-column p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* About Stats */
.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    margin: 0 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1rem;
    color: var(--secondary-color);
}

/* Mission List */
.mission-list {
    list-style: none;
    margin-top: 1.5rem;
}

.mission-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.mission-list i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature p {
    color: var(--text-color);
}



/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.testimonial-content {
    padding: 2rem;
    position: relative;
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: 0;
    left: 20px;
    font-size: 5rem;
    color: rgba(52, 152, 219, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    padding: 1.5rem;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
}

.author-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-container {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-text h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-image-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
}

.contact-image-container h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.store-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.contact-image {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.contact-image:hover {
    transform: scale(1.05);
}

.image-caption {
    color: var(--text-color);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
}

.about-footer p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.links ul {
    list-style: none;
}

.links li {
    margin-bottom: 1rem;
}

.links a {
    color: #ddd;
    transition: var(--transition);
}

.links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-footer p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-footer i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0.8;
    transition: var(--transition);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 1rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .two-column, .two-column.reverse {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        margin: 0;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .product-categories {
        grid-template-columns: 1fr;
    }
}