<?php
/**
 * Block Template: Footer Image
 * 页脚图片区块模板
 */

// 防止直接访问
if (!defined('ABSPATH')) {
    exit;
}

?>
<div class="footer-img-container">
    <div class="footer-img">
        <h2 class="footer-title">能辉期待</h2>            
        <h2 class="footer-title">与您携手共创能源新未来</h2>
    </div>
</div>

<style>
    .footer-img-container {
        width: 100%;
        height: 600px;
        position: relative;
        background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/footer-banner-bg.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 80px 20px;
        box-sizing: border-box;
        margin: 2rem 0;
    }
    
    .footer-img-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }
    
    .footer-img {
        text-align: left;
        color: #ffffff;
        max-width: 100%;
        width: 1200px;
        position: relative;
        z-index: 2;
    }
    
    .footer-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0 0 1.5rem 0;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease forwards;
        color: #ffffff;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.55), 0 0 10px rgb(0 0 0 / 50%);
        line-height: 1.2;
        letter-spacing: 1px;
        position: relative;
    }
       
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* 响应式设计 */
    @media (max-width: 768px) {
        .footer-img-container {
            height: 450px;
            padding: 50px 20px;
            background-attachment: scroll;
        }
        
        .footer-img {
            text-align: center;
        }
        
        .footer-title {
            font-size: 2.2rem;
            margin: 0 0 1.2rem 0;
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 
                         0 0 15px rgba(21, 96, 145, 0.6);
            letter-spacing: 0.5px;
        }
    }
    
    @media (max-width: 480px) {
        .footer-img-container {
            height: 350px;
            padding: 40px 15px;
        }
        
        .footer-title {
            font-size: 1.8rem;
            margin: 0 0 1rem 0;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), 
                         0 0 12px rgba(21, 96, 145, 0.7);
            letter-spacing: 0.3px;
            line-height: 1.3;
        }
    }
    
    @media (max-width: 360px) {
        .footer-img-container {
            height: 300px;
            padding: 30px 10px;
        }
        
        .footer-title {
            font-size: 1.5rem;
            margin: 0 0 0.8rem 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 
                         0 0 10px rgba(21, 96, 145, 0.8);
        }
    }
</style>