/* ========================================
   首页专用样式 - 横向时间轴彩色分段布局
   ======================================== */

/* Hero Banner - 全屏视觉冲击 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4c542 0%, #e8e8e8 50%, #c4a574 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.2;
    animation: slideDown 1s ease forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   建站实力板块 - 时间轴第一段（亮黄色）
   ======================================== */
.strength-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fef9e7 0%, #fff 100%);
    position: relative;
}

.strength-timeline {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.strength-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #f4c542, #c4a574, #f4c542);
    z-index: 1;
}

.strength-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.strength-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(244, 197, 66, 0.4);
    transition: all 0.4s ease;
}

.strength-item:hover .strength-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(244, 197, 66, 0.6);
}

.strength-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.strength-item h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.strength-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   业务板块 - 时间轴第二段（浅灰色）
   ======================================== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-yellow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #f4c542 0%, #c4a574 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ========================================
   合作案例 - 时间轴第三段（原木色）
   ======================================== */
.cases-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f0f0 0%, #e8dcc8 100%);
}

.cases-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.case-filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--wood-brown);
    border-radius: 25px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-filter-btn.active,
.case-filter-btn:hover {
    background: var(--wood-brown);
    color: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.case-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.case-category {
    font-size: 0.85rem;
    color: var(--wood-brown);
    font-weight: 600;
}

.case-rating {
    color: var(--primary-yellow);
    font-size: 1rem;
}

/* ========================================
   资讯列表板块
   ======================================== */
.news-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #e8dcc8 0%, #faf9f6 100%);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.news-tab {
    padding: 12px 30px;
    background: var(--white);
    border-radius: 25px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.news-tab.active,
.news-tab:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.news-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.8rem;
    color: var(--wood-brown);
}

/* ========================================
   CTA 行动号召
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--wood-brown) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .strength-timeline {
        flex-direction: column;
        gap: 50px;
    }
    
    .strength-timeline::before {
        display: none;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .strength-icon {
        width: 90px;
        height: 90px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}
