/* ============================================
   青岛华捷汽轮机有限公司 - 首页样式
   ============================================ */

/* ============================================
   Hero 主视觉（工业实景背景）
   ============================================ */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 200px 0 200px;
    overflow: hidden;
    background: url('../images/img_07.jpg') center center / cover no-repeat;
}

/* 全局暗色遮罩，保证白色文字可读 */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(10,25,45,0.82) 0%, rgba(10,25,45,0.58) 55%, rgba(10,25,45,0.38) 100%);
    pointer-events: none;
}

/* 底部淡出遮罩，柔和过渡到下一区块 */
.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    z-index: 0;
    background: linear-gradient(to top, rgba(245,247,250,0.7), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    color: var(--color-text-white);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--color-text-white);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255,255,255,0.86);
    max-width: 720px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 160px 0 150px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

}

/* ============================================
   关于华捷简介
   ============================================ */
.section-about {
    background-color: var(--color-bg);
}

.section-about .about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.section-about .about-content p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.9;
    margin-bottom: 36px;
}

.section-about .about-content strong {
    color: var(--color-primary);
    font-weight: 600;
}

.about-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.about-actions .btn-outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: transparent;
}

.about-actions .btn-outline:hover {
    color: var(--color-text-white);
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

/* ============================================
   核心技术区块
   ============================================ */
.section-tech {
    background-color: var(--color-bg);
    padding-top: 60px;
    padding-bottom: 80px;
}

.tech-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    touch-action: pan-x;
}

.tech-grid::-webkit-scrollbar {
    height: 6px;
}

.tech-grid::-webkit-scrollbar-track {
    background: var(--color-border);
    border-radius: 3px;
}

.tech-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.tech-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.tech-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin: 0 0 16px 0;
    border-radius: 8px;
    background-color: var(--color-bg);
}

.tech-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.tech-desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.tech-points {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.tech-points li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.tech-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.tech-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    transition: all var(--transition-fast);
    margin-top: auto;
}

.tech-link:hover {
    color: var(--color-accent-dark);
}

/* ============================================
   行业应用区块
   ============================================ */
.section-industries {
    background-color: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.section-industries::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,168,232,0.1) 0%, transparent 50%);
}

.section-industries .container {
    position: relative;
    z-index: 1;
}

.industries-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    touch-action: pan-x;
}

.industries-grid::-webkit-scrollbar {
    height: 6px;
}

.industries-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.industries-grid::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 3px;
}

.industry-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    color: var(--color-text-white);
    transition: all var(--transition-normal);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.industry-card:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.industry-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 6px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.industry-icon svg {
    width: 100%;
    height: 100%;
}

.industry-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.industry-card p {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.industry-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    color: var(--color-accent);
    background-color: rgba(0,168,232,0.15);
    border-radius: 12px;
}

/* ============================================
   成功案例区块
   ============================================ */
.section-cases {
    background-color: #ffffff;
}

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

.case-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

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

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    font-size: 20px;
    font-weight: 600;
}

.case-content {
    padding: 28px;
}

.case-industry {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent);
    background-color: rgba(0,168,232,0.1);
    border-radius: 12px;
    margin-bottom: 12px;
}

.case-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.case-content p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.case-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.case-stat {
    text-align: center;
}

.case-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-orange);
}

.case-stat-label {
    font-size: 12px;
    color: var(--color-text-light);
}

.case-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
}

.case-link:hover {
    color: var(--color-accent-dark);
}

/* ============================================
   企业优势区块
   ============================================ */
/* ============================================
   CTA区块
   ============================================ */
.section-cta {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,168,232,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-text-white);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.cta-contact-item {
    text-align: center;
}

.cta-contact-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.cta-contact-value {
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   动画效果
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-contact {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-contact {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   图片素材样式
   ============================================ */

/* 首页画廊 */
.section-gallery {
    background-color: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-item {
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
