* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Styles */
.navbar {
    background-color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #3498db;
}

/* Hero Styles */
.hero {
    background-color: #f8f9fa;
    padding: 4rem 5%;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Feature Styles */
.features {
    padding: 4rem 5%;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Add hover effects and animations */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.newsletter-form input:focus {
    outline: 2px solid #3498db;
}

/* Improve mobile spacing */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移动端需要添加汉堡菜单 */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 3rem 5%;
    }
    
    .features,
    .stats,
    .testimonials,
    .newsletter {
        padding: 3rem 5%;
    }
    
    .feature-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2c3e50;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
    }
}

/* Add these new styles */
.stats {
    background-color: #3498db;
    color: white;
    padding: 4rem 5%;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.testimonials {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: bold;
    color: #3498db;
}

.newsletter {
    padding: 4rem 5%;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Add these styles for form feedback */
.form-message {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background-color: #2ecc71;
    color: white;
}

.form-message.error {
    background-color: #e74c3c;
    color: white;
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

/* Back to top button styles */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

#back-to-top.visible {
    display: flex;
    opacity: 1;
}

#back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
}

/* Fixed header on scroll */
.navbar.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Add padding to body when navbar is fixed */
body.fixed-nav {
    padding-top: 60px;
}

/* Add loading animation styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-logo {
    animation: spin 2s linear infinite;
}

.loader-path {
    animation: dash 1.5s ease-in-out infinite;
}

.loader p {
    margin-top: 1rem;
    color: #3498db;
    font-weight: bold;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Add fade-in animation for content sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add these new styles */
.cta-section {
    background-color: #f8f9fa;
    padding: 4rem 5%;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.cta-button.secondary:hover {
    background-color: #3498db;
    color: white;
}

.featured-posts {
    padding: 4rem 5%;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.stats-section {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 5%;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Feature Icon Styles */
.feature-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    height: 60px;
    width: 60px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Featured Posts Styles */
.featured-posts {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.featured-posts h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.post-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Stats Section Styles */
.stats-section {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), transparent);
}

.stats-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #ecf0f1;
    font-size: 1.1rem;
}

/* CTA Section Styles */
.cta-section {
    background-color: #f8f9fa;
    padding: 4rem 5%;
    text-align: center;
    position: relative;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button.primary {
    background-color: #3498db;
    color: white;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.cta-button.secondary:hover {
    background-color: #3498db;
    color: white;
}

/* Mobile Responsiveness Updates */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .feature-icon {
        height: 50px;
        width: 50px;
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .post-card img {
        height: 180px;
    }
} 