:root {
    /* Color Palette - Dark Space Theme */
    --primary-color: #4facfe;
    /* Brighter Blue for dark bg */
    --primary-dark: #00f2fe;
    /* Cyan accent */
    --accent-color: #ff9f1c;
    /* Warm Orange remains */
    --text-main: #ffffff;
    --text-light: #e0e0e0;
    --bg-dark: #0f2027;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-main: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dynamic Background Animations */
@keyframes auroraFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes deepSeaPulse {
    0% {
        background-color: #0f2027;
    }

    50% {
        background-color: #203a43;
    }

    100% {
        background-color: #0f2027;
    }
}

/* Navbar - Glassmorphism */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(15, 32, 39, 0.8);
    /* Dark glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
    /* Glow effect */
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.logo-sub {
    font-size: 0.85rem;
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.cta-button {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #00f2fe);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


/* Hero Section - Starry Night (Existing but refined) */
.hero-section {
    padding: 140px 5% 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: starMove 100s linear infinite;
    z-index: 0;
    opacity: 0.8;
}

@keyframes starMove {
    from {
        background-position: 0 0, 40px 60px, 130px 270px;
    }

    to {
        background-position: 550px 550px, 590px 610px, 680px 820px;
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.highlight-text {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(255, 159, 28, 0.4);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 90%;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.primary-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #00f2fe);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.secondary-btn {
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Image Area */
.hero-image-container {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-card {
    width: 400px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.card-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f2027;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.card-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: 5%;
    animation-delay: 3s;
}

.icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.text strong {
    font-size: 0.95rem;
    color: white;
}

.text span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Services Section - Aurora Flow */
.services-section {
    padding: 100px 5%;
    /* Aurora Gradient */
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #243b55);
    background-size: 400% 400%;
    animation: auroraFlow 15s ease infinite;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.section-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.service-card {
    padding: 2.5rem;
    background: var(--glass-bg);
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About Section - Deep Sea Pulse */
.about-section {
    padding: 100px 5%;
    background-color: #0f2027;
    animation: deepSeaPulse 8s ease-in-out infinite;
    position: relative;
}

/* Add subtle particles to about section */
.about-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.4);
}

.about-visual {
    flex: 1;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.founder-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.founder-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-dark);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.founder-info h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.2rem;
}

.founder-info p {
    font-size: 0.9rem;
    color: var(--primary-dark);
    margin: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 30px;
    bottom: -30px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item:last-child::before {
    display: none;
}

.year {
    font-weight: 700;
    color: #0f2027;
    font-size: 1.1rem;
    background: var(--primary-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    height: fit-content;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.event {
    font-size: 1.1rem;
    color: white;
    padding-top: 0.2rem;
}

/* History Section - Nebula Style */
.history-section {
    padding: 5rem 5%;
    background: radial-gradient(circle at center, #2b32b2 0%, #1488cc 100%);
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow: hidden;
}

/* Moving nebula effect */
.history-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.section-container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.history-card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-dark);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.history-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.history-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.history-card h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.history-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.history-quote {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
}

.history-quote blockquote {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-style: italic;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 80px 5% 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-brand p {
    color: #888;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop CTA button on mobile */
    .navbar .cta-button {
        display: none;
    }

    /* Mobile navigation menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 32, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Add mobile CTA button inside menu */
    .nav-links::after {
        content: '免费评估';
        display: block;
        width: 100%;
        margin-top: 2rem;
        padding: 0.8rem 1.5rem;
        background: linear-gradient(135deg, var(--primary-color), #00f2fe);
        color: #000;
        text-align: center;
        border-radius: 6px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    }

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

    .hero-content {
        margin-bottom: 4rem;
    }

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

    .stats-row {
        justify-content: center;
    }

    .hero-image-container {
        width: 100%;
        height: 400px;
    }

    .main-card {
        width: 100%;
        height: 100%;
    }

    .about-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}