:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --white: #ffffff;
    --light-bg: #f3f4f6;
    --dark-bg: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo img {
    height: 30px;
}

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}


.nav-links li a.active {
    color: var(--primary-color);
}

/* Hero Slider Styles */
.hero-slider {
    margin-top: 80px;
}

/* 未初始化时只显示第一张 */
.hero-slider .slide {
    display: none;
}

.hero-slider .slide:first-child {
    display: flex;
}

/* Slick初始化后显示所有 */
.hero-slider.slick-initialized .slide {
    display: flex;
}

.hero-slider .slide {
    position: relative;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* About Section */
.about-preview {
    padding: 4rem 0;
}

.about-preview h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.milestones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.milestone {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.milestone h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Services Section */
.services-preview {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Projects Carousel */
.projects-carousel {
    padding: 4rem 0;
}

.project-slider {
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-slider.slick-initialized {
    opacity: 1;
}

.project-slide {
    position: relative;
    margin: 0 15px;
}

.project-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    border-radius: 0 0 8px 8px;
}

/* Partners Section */
.partners {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.partner-slider {
    margin-top: 2rem;
}

.partner-slide {
    padding: 0 20px;
    text-align: center;
}

.partner-slide img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-slide img:hover {
    filter: grayscale(0%);
}

/* Contact Preview Section */

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-info img {
    height: 40px;
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* 默认样式 */
.nav-links li a {
    text-decoration: none;
    color: black; /* 默认字体颜色 */
    padding: 10px 15px;
    display: inline-block;
}

/* 鼠标悬停时 */
.nav-links li a:hover {
    background-color: #f0f0f0; /* 悬停时的背景色 */
    color: #007bff; /* 悬停时的文字颜色 */
}

/* 被点击后变色 */
.nav-links li a.active {
    background-color: #007bff; /* 点击后的背景色 */
    color: white; /* 点击后的文字颜色 */
}


/* Team Slider Styles */
.team {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.team-slider {
    margin-top: 2rem;
    padding: 0 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-slider.slick-initialized {
    opacity: 1;
}

.team-slide {
    padding: 0 15px;
}

.team-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-slide img:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.team .slick-prev,
.team .slick-next {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s;
}

.team .slick-prev:hover,
.team .slick-next:hover {
    background-color: var(--secondary-color);
}

.team .slick-prev {
    left: -5px;
}

.team .slick-next {
    right: -5px;
}

.team .slick-prev:before,
.team .slick-next:before {
    font-size: 20px;
    opacity: 1;
}

.team .slick-dots {
    bottom: -45px;
}

.team .slick-dots li button:before {
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.5;
}

.team .slick-dots li.slick-active button:before {
    opacity: 1;
    color: var(--primary-color);
}


/* Contact Page Optimization */
.contact-info-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form-section {
    padding: 3rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.map-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-section {
    padding: 3rem 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}


/* About Page Styles */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 0 3rem;
    text-align: center;
    margin-top: 80px;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.company-overview {
    padding: 5rem 0;
    background-color: white;
}

.overview-content-full {
    max-width: 1000px;
    margin: 0 auto;
}

.overview-content-full h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 3rem;
}

.company-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.highlight-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.highlight-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.highlight-content p {
    color: var(--light-text);
    line-height: 1.6;
}

.mission-vision {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mv-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.mv-card:hover {
    transform: translateY(-10px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
}

.mv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.mv-card p {
    color: var(--light-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.timeline {
    padding: 5rem 0;
    background: white;
}

.timeline h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.timeline-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content .year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--light-text);
    line-height: 1.6;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .company-highlights {
        grid-template-columns: 1fr;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .timeline-wrapper {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -28px;
    }
}


/* Homepage Optimizations */
.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light-text);
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.about-cta, .services-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.section-desc {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-top: -1rem;
    margin-bottom: 2.5rem;
}

.contact-preview {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.contact-preview h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.btn-primary-large {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-quick {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.quick-item i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .contact-quick {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Services Page Styles */
.services-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-card-large {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card-large h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-lead {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.6rem 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tags span {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Projects Page Styles */
.projects-section {
    padding: 4rem 0;
}

.projects-grid-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card-main:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.project-image-main {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card-main:hover .project-image-main img {
    transform: scale(1.05);
}

.project-content-main {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content-main h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-content-main p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tech span {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.project-stats-section {
    background: var(--light-bg);
    padding: 4rem 0;
}

/* Contact Page Styles */
.contact-main-section {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-box {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 12px;
}

.contact-info-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info-box > p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.detail-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.detail-content p {
    color: var(--light-text);
}

.contact-form-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.modern-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-form .form-group {
    display: flex;
    flex-direction: column;
}

.modern-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.modern-form input,
.modern-form textarea {
    padding: 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn-modern {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s;
}

.submit-btn-modern:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modern-form .form-row {
        grid-template-columns: 1fr;
    }
}
