﻿/* ============================================
   Hero Slider 样式
   ============================================ */

/* Hero Slider - 大图幻灯展示 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin: 0 0 60px 0;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* 移除遮罩，大图清晰显示 */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-slider::before,
.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.18) 30%, transparent 55%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding-top: 140px;
    color: var(--white);
    max-width: 600px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 4px 4px 20px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.98;
    text-shadow: 2px 2px 18px rgba(0, 0, 0, 0.55);
    display: inline-block;
    background: rgba(0, 0, 0, 0.28);
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.75;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(7, 70, 206, 0.3);
}

.cta-button:hover {
    background-color: #0538a8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(7, 70, 206, 0.4);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    transform: translateY(-50%);
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.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-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* ============================================
   Products 产品展示样式
   ============================================ */

.products-section .product-img {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 宽高比 */
    overflow: hidden;
}

.products-section .product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.products-section .product-img img:hover {
    transform: scale(1.05);
}

/* ============================================
   Solutions 解决方案样式
   ============================================ */

.solutions-section {
    margin-bottom: 40px;
    padding: 5px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color, #0746ce);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color, #0746ce);
}

/* 解决方案网格容器 */
.solutions-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

/* 解决方案卡片 - 核心样式 */
.solution-card {
    display: flex;
    background-color: var(--white, #fff);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 400px;
    width: 100%;
    border: 1px solid #eee;
    padding: 5px;
    gap: 5px;
    box-sizing: border-box;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 图片容器 - 图片占55% */
.solution-img {
    flex: 0 0 55%; /* 图片占55%宽度 */
    overflow: hidden;
    position: relative;
    min-width: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* 高度100% */
    margin: 0; /* 无外边距 */
    border: 0; /* 无边框 */
}

.solution-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
    border: 0; /* 确保图片无边框 */
    outline: none; /* 确保无轮廓 */
}

/* 图片悬停放大效果 */
.solution-img:hover img {
    transform: scale(1.1);
}

/* 为图片靠近文字的一侧添加渐变遮罩，过渡到背景色 */
.solution-img::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px; /* 渐变宽度 */
    height: 100%;
    pointer-events: none; /* 确保不影响图片交互 */
    z-index: 1;
}

/* 对于左侧的图片，在右侧添加渐变（左图右文布局） */
.solution-card:not(:nth-child(even)) .solution-img::after {
    right: 0; /* 在图片右侧 */
    background: linear-gradient(to right, transparent, var(--white, #fff));
}

/* 对于右侧的图片，在左侧添加渐变（左文右图布局） */
.solution-card:nth-child(even) .solution-img::after {
    left: 0; /* 在图片左侧 */
    background: linear-gradient(to left, transparent, var(--white, #fff));
}

/* 悬停时渐变过渡到背景色 */
.solution-card:not(:nth-child(even)) .solution-img:hover::after {
    background: linear-gradient(to right, transparent, #1a3a5f);
}

.solution-card:nth-child(even) .solution-img:hover::after {
    background: linear-gradient(to left, transparent, #1a3a5f);
}

/* 内容区域 - 文字占45% */
.solution-content {
    flex: 0 0 45%; /* 文字占45%宽度 */
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 100%; /* 高度100% */
    margin: 0; /* 无外边距 */
    box-sizing: border-box;
    background-color: transparent; /* 默认透明背景 */
    padding: 10px; /* 文字离边10px */
}

/* 创建背景变色层，离边为0 */
.solution-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color 0.4s ease;
    z-index: 0; /* 背景层在文字下方 */
    border: 0; /* 无边框 */
    margin: 0; /* 无外边距 */
}

/* 悬停时背景变色层变色 */
.solution-content:hover::before {
    background-color: #1a3a5f;
}

/* 内容区域悬停效果 - 文字颜色变化 */
.solution-content:hover h3,
.solution-content:hover p,
.solution-content:hover .solution-features li,
.solution-content:hover .solution-features i {
    color: #fff;
    position: relative; /* 确保文字在背景层上方 */
    z-index: 1;
}

.solution-content:hover .solution-link {
    background-color: #fff;
    color: #1a3a5f;
    position: relative; /* 确保链接在背景层上方 */
    z-index: 1;
}

/* 标题样式 */
.solution-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #222;
    transition: color 0.4s ease;
    line-height: 1.3;
    padding: 0; /* 清除内边距 */
    z-index: 1; /* 确保标题在背景层上方 */
    position: relative;
}

/* 描述样式 */
.solution-content p {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.7;
    transition: color 0.4s ease;
    flex-shrink: 0;
    padding: 0; /* 清除内边距 */
    z-index: 1; /* 确保描述在背景层上方 */
    position: relative;
}

/* 特性列表样式 */
.solution-features {
    list-style: none;
    margin-bottom: 10px;
    flex-grow: 1;
    padding: 0;
    overflow-y: auto;
    max-height: 150px;
    z-index: 1; /* 确保列表在背景层上方 */
    position: relative;
}

.solution-features li {
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    transition: color 0.4s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0; /* 清除内边距 */
}

.solution-features i {
    color: #0066cc;
    margin-right: 8px;
    margin-top: 3px;
    transition: color 0.4s ease;
    flex-shrink: 0;
}

/* 链接样式 */
.solution-link {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 8px 20px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: auto;
    margin-bottom: 0; /* 清除底部边距 */
    z-index: 1; /* 确保链接在背景层上方 */
    position: relative;
}

.solution-link:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 82, 163, 0.2);
}

/* 响应式设计 - Solutions */
@media (max-width: 1200px) {
    .solution-content h3 {
        font-size: 1.5rem;
    }
    
    /* 减小渐变宽度 */
    .solution-img::after {
        width: 60px;
    }
}

@media (max-width: 992px) {
    .solution-card {
        flex-direction: column;
        height: auto;
        padding: 5px;
        gap: 0;
    }
    
    /* 在移动端，重新排序元素，确保总是图片在上，内容在下 */
    .solution-card .solution-img {
        order: 1;
        height: 250px;
        flex: 0 0 auto;
    }
    
    .solution-card .solution-content {
        order: 2;
        width: 100%;
        height: auto;
    }
    
    .solution-img,
    .solution-content {
        flex: 1 1 auto;
        width: 100%;
    }
    
    /* 在移动端移除渐变效果，因为布局变为垂直 */
    .solution-img::after {
        display: none;
    }
    
    .solution-content {
        padding: 10px; /* 保持文字离边10px */
    }
    
    .solution-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .solution-content h3 {
        font-size: 1.3rem;
    }
    
    .solution-link {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Company Stats 统计区块样式
   ============================================ */

.company-stats {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('/upload/202501/bg-stats.jpg') center center/100% 100% no-repeat;
    /* 100% 100% 会拉伸图片以填充整个区域 */
    padding: 80px 0;
    margin: 60px 0;
    overflow: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 统计网格布局 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

/* 统计项样式 */
.stat-item {
    color: white;
    transition: transform 0.3s ease;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 统计图标样式 */
.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.stat-icon i {
    font-size: 36px;
}

/* 不同的图标颜色 */
.stat-item:nth-child(1) .stat-icon i { color: #4CAF50; }
.stat-item:nth-child(2) .stat-icon i { color: #2196F3; }
.stat-item:nth-child(3) .stat-icon i { color: #FF9800; }
.stat-item:nth-child(4) .stat-icon i { color: #9C27B0; }

/* 统计数字样式 */
.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-number span {
    font-size: 24px;
    color: white;
    margin-left: 5px;
}

/* 不同的数字颜色 */
.stat-item:nth-child(1) .stat-number { color: #4CAF50; }
.stat-item:nth-child(2) .stat-number { color: #2196F3; }
.stat-item:nth-child(3) .stat-number { color: #FF9800; }
.stat-item:nth-child(4) .stat-number { color: #9C27B0; }

/* 统计标签样式 */
.stat-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 描述文本样式 */
.stat-item p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    margin-top: 10px;
    font-weight: 300;
}

/* 响应式设计 - Stats */
@media (max-width: 768px) {
    .company-stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-icon {
        width: 70px;
        height: 70px;
    }
    
    .stat-icon i {
        font-size: 30px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .company-stats {
        padding: 40px 0;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-number span {
        font-size: 20px;
    }
}

/* ============================================
   Responsive Media Queries - Hero Slider
   ============================================ */
@media (max-width: 992px) {
    .hero-slider { height: 420px; }
    .slide-content { padding-top: 120px; max-width: 520px; }
    .slide-content h1 { font-size: 34px; }
    .slide-content p { font-size: 16px; }
    .slider-controls button { width: 42px; height: 42px; }
}

@media (max-width: 576px) {
    .hero-slider { height: 320px; }
    .slide-content { padding-top: 80px; max-width: 100%; }
    .slide-content h1 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    .slider-controls { padding: 0 12px; }
}

/* ============================================
   Background Image Classes for Slides
   ============================================ */

/* 禁用 Style.css 中的遮罩层，使背景图清晰可见 */
.slide-bg {
    z-index: 1;
    background-color: #111;
}

.slide-bg::before {
    display: none !important;
}

.slide-bg-ad1 {
    background-image: url('/image/AD1.jpg') !important;
}

.slide-bg-ad2 {
    background-image: url('/image/AD2.jpg') !important;
}

.slide-bg-ad3 {
    background-image: url('/image/AD3.jpg') !important;
}

.slide-bg-ad4 {
    background-image: url('/image/Ad4.jpg') !important;
}

/* ============================================
   Product Image Container and Image Classes
   ============================================ */
.product-img-aspect {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.product-img-absolute {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Automatic Spray Painting Line SEO Block
   ============================================ */
.seo-line-block {
    margin-top: 2.5rem;
    margin-bottom: 2.6rem;
}

.seo-line-block p {
    line-height: 1.95;
    color: #45536b;
    margin: 0 0 1rem;
}

.seo-line-links {
    list-style: none;
    margin: 1.7rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.seo-line-links li {
    margin: 0;
    padding: 0;
}

.seo-line-links a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1.1rem;
    background: #ffffff;
    border: 1px solid #dde4ee;
    border-left: 4px solid #c9a227;
    border-radius: 10px;
    text-decoration: none;
    color: #0b5bd3;
    font-weight: 500;
    line-height: 1.55;
    box-shadow: 0 1px 3px rgba(20, 41, 75, .05);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.seo-line-links a:hover {
    background: #eef4fd;
    border-color: #a9c6ec;
    transform: translateY(-2px);
}

.seo-line-links a i {
    color: #c9a227;
    font-size: .8rem;
    flex: none;
}

@media (max-width: 768px) {
    .seo-line-links {
        grid-template-columns: 1fr;
    }
}