/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1500; /* 提高导航栏z-index，确保在控件之上 */
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f0f0f0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-line-1 {
    white-space: nowrap;
    display: inline-block;
}

.title-line-2 {
    display: inline-block;
}

.cta-button {
    background: #ffffff;
    color: #333333;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.reload-btn {
    position: absolute;
    top: 120px;
    left: 2rem;
    background: rgba(51, 51, 51, 0.8);
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reload-btn:hover {
    background: rgba(51, 51, 51, 1);
}

/* Mission Section */
.mission {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mission-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(100, 100, 100, 0.7), rgba(60, 60, 60, 0.8)), url("images/hero-cityscape.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    justify-content: center;
}

.mission-left {
    flex: 1;
    max-width: 500px;
}

.mission-right {
    flex: 1;
    max-width: 500px;
}

.mission-text {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    letter-spacing: 0.3px;
}

.mission-statement {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: #f5f5f5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

/* Feature Section */
.feature {
    display: flex;
    min-height: 80vh;
    background: #2c2c2c;
}

.feature-image {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: cover;
    background-position: center;
    position: relative;
}

.feature-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.learn-more-btn {
    background: #ffffff;
    color: #2c2c2c;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    display: flex;
    min-height: 80vh;
    background: #2c2c2c;
}

.cta-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.take-action-btn {
    background: #ffffff;
    color: #2c2c2c;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
}

.take-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-image {
    flex: 1;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    background-size: cover;
    background-position: center;
}



/* Newsletter Section */
.newsletter {
    background: #000000;
    padding: 4rem 0;
}

.newsletter-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.newsletter-left {
    flex: 1;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0;
}

.newsletter-right {
    flex: 1;
}

.newsletter-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.email-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: #ffffff;
    color: #333333;
}

.email-input::placeholder {
    color: #666666;
}

.signup-btn {
    background: #ffffff;
    color: #2c2c2c;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .title-line-1 {
        font-size: 0.9em;
    }
    
    .mission-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .feature {
        flex-direction: column;
    }
    
    .feature-image {
        height: 300px;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .cta-image {
        height: 300px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    

    
    .feature-content,
    .cta-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .title-line-1 {
        font-size: 0.85em;
    }
    
    .mission-text {
        font-size: 1.2rem;
    }
    
    .feature-title,
    .cta-title {
        font-size: 2rem;
    }
    

    
    .newsletter-title {
        font-size: 1.5rem;
    }
}

/* Background Image Configuration System */
.hero-background,
.mission-background,
.feature-image,
.cta-image {
    /* These elements can have background images set via JavaScript or CSS */
    /* Example: background-image: url('path/to/image.jpg'); */
    transition: background-image 0.5s ease;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 

/* Enhanced Background Image Styles */
.hero-background,
.mission-background,
.feature-image,
.cta-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

/* Ensure text readability over images */
.mission-content {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navbar Styles */
/* Navigation Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1600; /* 提高导航栏下拉菜单z-index，确保在所有元素之上 */
    padding: 0.5rem 0;
    margin-top: 0.2rem;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333333 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #ff6b47 !important;
}

.dropdown-content a.active {
    background: #ff6b47;
    color: #ffffff !important;
}

/* Coming Soon links styling */
.dropdown-content a[href*="Coming Soon"]:hover,
.dropdown-content a:contains("Coming Soon"):hover {
    background: #f0f0f0 !important;
    color: #999999 !important;
    cursor: default;
}

.dropdown-content a:contains("Coming Soon") {
    color: #999999 !important;
    font-style: italic;
}

/* Better hover solution - keep menu visible when moving to dropdown */
.nav-dropdown:hover .dropdown-content {
    display: block !important;
}

/* JavaScript will control visibility, but keep CSS as fallback */
.dropdown-content.show {
    display: block !important;
}

.dropdown-content:before {
    content: '';
    position: absolute;
    top: -0.2rem;
    left: 0;
    right: 0;
    height: 0.2rem;
    background: transparent;
}

/* Mobile responsive for dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-content a {
        color: #ffffff !important;
        padding: 0.5rem 1rem;
    }
    
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
}
