/* ========================================
   首页样式 - 现代风格
   ======================================== */

/* 通用区块 */
.section {
    padding: 80px 0;
}

/* 首页横幅轮播 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #1a1a2e;
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    animation: slideInUp 0.8s ease;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 轮播控制 */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: white;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    transition: var(--transition);
    z-index: 10;
    user-select: none;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.6);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关于我们区块 */
.about-section {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.about-content h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.about-text {
    text-align: justify;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 12px;
    line-height: 1.8;
    text-indent: 2em;
    font-size: 15px;
}

.about-content .btn {
    margin-top: 15px;
}

/* 业务领域区块 */
.business-section {
    background: var(--bg-light);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.business-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.business-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.business-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-fallback {
    display: none;
}

.business-icon img[style*="display: none"] + .icon-fallback {
    display: block;
}

.business-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.business-card p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.business-card > a {
    color: var(--primary-color);
    font-weight: 500;
}

.business-card > a:hover {
    color: var(--primary-dark);
}

/* 新闻动态区块 */
.news-section {
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.featured-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    height: 280px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    padding: 25px;
}

.news-date {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.featured-content h3 {
    margin: 10px 0;
    font-size: 20px;
}

.featured-content h3 a {
    color: var(--text-dark);
}

.featured-content h3 a:hover {
    color: var(--primary-color);
}

.featured-content p {
    color: var(--text-medium);
    font-size: 15px;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.news-item:hover {
    background: var(--primary-light);
}

.news-item .news-date {
    white-space: nowrap;
    font-size: 13px;
}

.news-item a {
    color: var(--text-dark);
    font-size: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item a:hover {
    color: var(--primary-color);
}

.view-more {
    text-align: right;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 10px;
}

.view-more:hover {
    color: var(--primary-dark);
}

/* 联系我们区块 */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.contact-info .line {
    width: 60px;
    height: 4px;
    background: white;
    margin: 15px 0 20px;
    border-radius: 2px;
}

.contact-info > p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 16px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item .icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.contact-item p {
    opacity: 0.9;
    font-size: 14px;
}

/* CTA 卡片 */
.contact-cta {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-cta h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}

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

.contact-cta .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* 首页项目案例区块 */
.cases-section {
    background: var(--bg-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card-home {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.case-card-home:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    line-height: 1;
}

.case-card-home h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.case-card-home p {
    color: var(--text-medium);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-card-home > a {
    color: var(--primary-color);
    font-weight: 500;
}

.case-card-home > a:hover {
    color: var(--primary-dark);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-slider {
        height: 500px;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slide-content h1 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .contact-info h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }
    
    .slide-content h1 {
        font-size: 24px;
    }
    
    .slider-prev,
    .slider-next {
        display: none;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
}
