:root {
    --primary-blue: #1a73e8;
    --light-blue: #e8f0fe;
    --dark-blue: #0d47a1;
    --accent: #34a853;
    --text-dark: #202124;
    --text-light: #5f6368;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* Dark mode CSS variables - use higher specificity */
body.dark-mode,
.dark-mode {
    --primary-blue: #8ab4f8;
    --light-blue: #1e3a8a;
    --dark-blue: #8ab4f8;
    --accent: #34a853;
    --text-dark: #e8eaed;
    --text-light: #9aa0a6;
    --white: #202124;
    --light-gray: #303134;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

/* Dark mode styles */
body.dark-mode {
    background-color: var(--white);
    color: var(--text-dark);
}

/* Dark mode for common elements */
.dark-mode .container {
    /* Container keeps same width but content changes */
}

.dark-mode main {
    background-color: var(--white);
}

.dark-mode section {
    background-color: var(--white);
}

.dark-mode .section-title h2,
.dark-mode .section-title p {
    color: var(--text-dark);
}

/* Dark mode for hero section */
.dark-mode .hero {
    background-color: var(--white);
}

.dark-mode .hero-title {
    color: var(--text-dark);
}

.dark-mode .hero-desc {
    color: var(--text-light);
}

/* Dark mode for cards */
.dark-mode .service-card,
.dark-mode .case-card,
.dark-mode .news-card {
    background-color: var(--light-gray);
    box-shadow: var(--box-shadow);
}

.dark-mode .service-card h3,
.dark-mode .case-card h3,
.dark-mode .news-card h3 {
    color: var(--text-dark);
}

.dark-mode .service-card p,
.dark-mode .case-card p,
.dark-mode .news-card p {
    color: var(--text-light);
}

/* Dark mode for buttons */
.dark-mode .btn-outline {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.dark-mode .btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Dark mode for links */
.dark-mode a {
    color: var(--primary-blue);
}

/* Dark mode for text elements */
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: var(--text-dark);
}

main {
    flex: 1;
}

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

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

/* 导航栏样式 */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

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

.nav-link.active {
    color: var(--primary-blue);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* 按钮样式 */
.btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.4);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(26, 115, 232, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}





/* 响应式设计 */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

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

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

}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

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

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

    .section-title h2 {
        font-size: 2rem;
    }
    

}