/* ========================================
   首页样式 - 安吉尔风格1:1复刻
   品牌主色：#0066CC（蓝）
   辅色：#00A651（绿）
   ======================================== */

/* Hero轮播区 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Hero背景 - 蓝色渐变 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066CC 0%, #0052a3 50%, #003d7a 100%);
}

/* 装饰性几何图形 */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    transform: rotate(-15deg);
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(0,166,81,0.1) 0%, transparent 60%);
    transform: rotate(10deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 80px 0;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    color: #fff;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.title-small {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 4px;
    opacity: 0.9;
}

.title-main {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
}

.title-sub {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 8px;
}

.hero-product-tag {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-name {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #00A651;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    max-width: 500px;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* 轮播指示器 */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* 产品系列 - A.O.史密斯风格 */
.product-series {
    padding: 60px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.section-header .section-subtitle {
    font-size: 16px;
    color: #999;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.series-card {
    text-align: center;
    padding: 40px 20px;
    border-right: 1px solid #e8e8e8;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.series-card:last-child {
    border-right: none;
}

.series-card:hover {
    background: #f0f7ff;
}

.series-image {
    margin-bottom: 20px;
}

.series-img {
    width: 80%;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.series-card:hover .series-img {
    transform: scale(1.05);
}

.series-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.series-desc {
    font-size: 14px;
    color: #999;
}

/* 响应式适配 */
@media (max-width: 991px) {
    .hero {
        height: auto;
        min-height: 500px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        gap: 40px;
    }

    .title-main {
        font-size: 36px;
    }

    .title-small {
        font-size: 20px;
    }

    .title-sub {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .hero-product-tag {
        justify-content: center;
    }

    .product-img {
        max-width: 350px;
        max-height: 300px;
    }

    .series-grid {
        gap: 16px;
    }

    .series-content {
        padding: 24px 24px 0;
    }

    .series-image {
        padding: 16px 24px 24px;
        min-height: 220px;
    }

    .series-img {
        max-height: 200px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: 40px 16px;
    }

    .title-main {
        font-size: 28px;
    }

    .title-small {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .title-sub {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .product-img {
        max-width: 280px;
        max-height: 240px;
    }

    .series-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .series-title {
        font-size: 20px;
    }

    .series-image {
        min-height: 200px;
    }

    .series-img {
        max-height: 180px;
    }
}

/* 图片占位符样式（图片未加载时显示） */
.series-img[src=""],
.series-img:not([src]) {
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img[src=""],
.product-img:not([src]) {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    width: 400px;
    height: 350px;
    border-radius: 8px;
}

/* ========================================
   通用区块标题
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header .section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========================================
   品牌优势
   ======================================== */
.brand-advantages {
    padding: 80px 0;
    background: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.advantage-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafbfc;
    border: 1px solid #f0f0f0;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 16px;
}

.advantage-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-primary);
}

.advantage-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.advantage-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   服务保障
   ======================================== */
.service-guarantee {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 100%);
}

.guarantee-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.guarantee-text {
    flex: 1;
}

.guarantee-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.guarantee-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.guarantee-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-guarantee:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-guarantee svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-guarantee:hover svg {
    transform: translateX(4px);
}

.guarantee-image {
    flex: 1;
    max-width: 500px;
}

.guarantee-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.guarantee-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.guarantee-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--color-primary);
    opacity: 0.5;
}

.guarantee-placeholder span {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 500;
}

/* ========================================
   客户案例
   ======================================== */
.customer-cases {
    padding: 80px 0;
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 20px;
}

.case-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.case-card:hover .case-image img,
.case-card:hover .case-placeholder {
    transform: scale(1.05);
}

.case-large {
    grid-column: span 2;
    grid-row: span 2;
    transform: scale(1.05); /* 视觉放大 5% */
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* 增加立体感 */
}

.case-large:hover {
    transform: scale(1.07); /* Hover 时进一步放大 */
}

.case-image {
    position: absolute;
    inset: 0;
    background: #e8f4fc;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fc 0%, #d0e8f7 100%);
    transition: transform 0.4s ease;
}

.case-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: var(--color-primary);
    opacity: 0.5;
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: #fff;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 8px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.case-large .case-title {
    font-size: 24px;
}

.case-desc {
    font-size: 13px;
    opacity: 0.9;
}

.cases-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-more:hover svg {
    transform: translateX(4px);
}

/* ========================================
   合作伙伴/资质
   ======================================== */
.partners-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.certifications {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cert-item svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
}

.cert-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.partner-logo {
    padding: 20px 32px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.1);
}

.partner-logo span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .brand-advantages,
    .service-guarantee,
    .customer-cases {
        padding: 60px 0;
    }
    
    .section-header .section-title {
        font-size: 28px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantage-card {
        padding: 24px 16px;
    }
    
    .advantage-icon {
        width: 56px;
        height: 56px;
    }
    
    .advantage-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .guarantee-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .guarantee-image {
        max-width: 100%;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .case-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .certifications {
        gap: 24px;
    }
    
    .cert-item {
        padding: 10px 16px;
    }
}

@media (max-width: 767px) {
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header .section-title {
        font-size: 24px;
    }
    
    .section-header .section-subtitle {
        font-size: 14px;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .advantage-card {
        padding: 20px 12px;
    }
    
    .advantage-title {
        font-size: 14px;
    }
    
    .advantage-desc {
        font-size: 12px;
    }
    
    .guarantee-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .case-large {
        grid-column: span 1;
    }
    
    .case-card {
        height: 200px;
    }
    
    .case-large .case-title {
        font-size: 20px;
    }
    
    .partners-logos {
        gap: 16px;
    }
    
    .partner-logo {
        padding: 16px 24px;
    }
    
    .partner-logo span {
        font-size: 12px;
    }
}
