/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* 与固定顶部导航栏高度保持间距，避免内容被遮挡 */
    padding-top: 90px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-links li {
        margin-left: 2rem;
    }

    .nav-links a {
        text-decoration: none;
        color: #333;
        transition: color 0.3s;
    }

        .nav-links a:hover {
            color: #3b82f6;
        }

/* 按钮样式 */
.cta-button, .primary-button, .secondary-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button, .primary-button {
    background-color: #3b82f6;
    color: #fff;
}

    .cta-button:hover, .primary-button:hover {
        background-color: #2563eb;
    }

.secondary-button {
    background-color: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

    .secondary-button:hover {
        background-color: #eff6ff;
    }

.btn-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-more:hover {
    background-color: #2563eb;
    color: #fff;
    text-decoration: none;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(to bottom, #dbeafe, #bfdbfe);
    padding: 6rem 0 4rem;
    text-align: center;
    margin-top: 0;
}

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #1e40af;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto 2rem;
        color: #4b5563;
    }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* 服务部分 */
.services {
    background-color: #fff;
    padding: 6rem 0 4rem;
}

    .services h2 {
        text-align: center;
        margin-bottom: 2rem;
        color: #1e40af;
    }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .service-card i {
        font-size: 2.5rem;
        color: #3b82f6;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        margin-bottom: 0.5rem;
        color: #1e40af;
    }

/* 案例研究 */
.case-studies {
    background-color: #eff6ff;
    padding: 4rem 0;
}

    .case-studies h2 {
        text-align: center;
        margin-bottom: 2rem;
        color: #1e40af;
    }

.case-carousel {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    overflow: hidden;
}

.case-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 10px;
}

.case-track {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}

.case-slide {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    min-width: 300px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform, box-shadow;
    height: 520px;
}

.case-slide:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.case-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.case-slide:hover::after {
    opacity: 1;
}

.case-image {
    height: 280px;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 280px;
}

.case-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
    display: block;
}

.case-slide:hover img {
    transform: scale(1.05);
}

.case-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
    height: calc(100% - 280px);
    overflow: hidden;
}

.case-slide:hover .case-content {
    background-color: #f0f7ff;
}

.case-content h3 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.case-slide:hover .case-content h3 {
    color: #3b82f6;
}

.case-content p {
    color: #4b5563;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* 案例标签样式 */
.case-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.case-tags .tag {
    background: #e0f2fe;
    color: #0284c7;
    padding: 0.35rem 0.95rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.case-tags .tag:hover {
    background: #0ea5e9;
    color: white;
}

/* 轮播控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 1.25rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.9;
}

.carousel-control:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-control.prev {
    left: 1rem;
}

.carousel-control.next {
    right: 1rem;
}

/* 添加轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators .dot.active {
    background-color: #3b82f6;
    transform: scale(1.2);
}

@media (max-width: 1199px) {
    .case-slide {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        height: 480px;
    }
    .case-image {
        height: 240px;
        flex: 0 0 240px;
    }
    .case-content {
        height: calc(100% - 240px);
    }
}

@media (max-width: 768px) {
    .case-slide {
        flex: 0 0 calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        height: 450px;
    }
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .case-content h3 {
        font-size: 1.25rem;
    }
    .case-image {
        height: 220px;
        flex: 0 0 220px;
    }
    .case-content {
        height: calc(100% - 220px);
    }
}

/* 移动端导航样式 */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 1rem 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    nav {
        padding: 1rem 15px;
    }
}

/* 移动端导航栏样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        padding: 0.5rem 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }

    /* 展开动画 */
    .navbar-collapse {
        transition: all 0.3s ease;
    }

    .navbar-collapse.show {
        display: block;
    }
}

.navbar-nav .nav-item {
    margin: 0 1.5rem;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
}

/* 新闻部分 */
.news {
    background-color: #fff;
    padding: 6rem 0 4rem;
}

.news h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e40af;
}

.view-all {
    display: block;
    text-align: right;
    margin-bottom: 1rem;
    color: #3b82f6;
    text-decoration: none;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: #f3f4f6;
    padding: 2rem;
    border-radius: 8px;
}

.news-date {
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    color: #1e40af;
}

/* 页脚 */
footer {
    background: linear-gradient(to bottom, #3b82f6, #1e40af);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bfdbfe;
    text-decoration: none;
}

.subscribe-form {
    display: flex;
    margin-top: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    padding: 0.5rem 1rem;
    background-color: #1e40af;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #60a5fa;
    padding-top: 2rem;
}

.social-links a {
    color: #fff;
    margin-left: 1rem;
    font-size: 1.2rem;
}

.navbar {
    padding: 0.5rem 0;
    background-color: #E6F3FF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.4rem 2rem;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center;
        padding: 0.5rem 0;
        background-color: #E6F3FF;
    }
    
    .navbar-nav .nav-item {
        padding: 0.3rem 0;
    }
}
