/* 首页样式 */

/* 横幅 */
.banner {
    background: url('banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 160px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰元素 */
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,120,255,0.8) 0%, rgba(0,86,179,0.8) 100%);
    z-index: 2;
}

.banner .container {
    position: relative;
    z-index: 3;
}

/* 背景动画 */
@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.banner h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.banner p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #0078FF;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 核心业务 */
.core-business {
    padding: 100px 0;
    background-color: #fff;
}

.core-business h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.business-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.business-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: 350px;
    background-color: #f0f2f5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.business-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.business-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.business-item p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

/* 应用场景 */
.scenarios {
    padding: 100px 0;
    background-color: #f0f2f5;
}

.scenarios h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.scenario-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.scenario-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    object-position: top;
}

.scenario-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scenario-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.scenario-item p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

/* 案例展示 */
.cases {
    padding: 100px 0;
    background-color: #fff;
}

.cases h3 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.case-row {
    display: flex;
    margin-bottom: 60px;
    background-color: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
}

.case-image {
    flex: 0 0 40%;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    flex: 1;
    padding: 40px;
}

.case-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.case-content h5 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #666;
}

.case-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background-color: #f0f2f5;
    text-align: center;
}

.about h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.about p {
    font-size: 16px;
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 回到顶部按钮 - 已移除 */
.back-to-top {
    display: none !important;
}

/* 案例详情弹窗 */
.case-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 40px;
}

.modal-body h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.modal-body p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.modal-body img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .case-row {
        flex-direction: column;
    }
    
    .case-image {
        flex: 0 0 auto;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .banner h2 {
        font-size: 36px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .core-business h3,
    .scenarios h3,
    .cases h3,
    .about h3 {
        font-size: 24px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .business-item,
    .scenario-item {
        padding: 30px;
    }
    
    .case-content {
        padding: 30px;
    }
    
    .case-content h4 {
        font-size: 20px;
    }
    
    .case-image {
        height: 200px;
    }
}