/* ====== 基础与重置 ====== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F7FBFE;
    margin: 0;
    padding: 0;
}

/* ====== 顶部 Header ====== */
.site-header {
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    max-width: 100%;
    height: auto;
}

/* ====== 主内容区容器 ====== */
.main-container {
    flex: 1;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ====== 图片展示区域 ====== */
.images-container {
    width: 100%;
    display: flex;
    gap: 3rem;
    margin-bottom: 1rem;
    align-items: stretch; /* 使两个项目高度相等 */
    justify-content: center;
    margin-top: 1rem;
}

.image-item {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
    background-color: #F7FBFE;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid #FCFDFD;
    position: relative;
}

.image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #e6f0ff;
}

/* 关键修复：移除固定高度，改为自动高度 */
.image-frame {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F7FBFE;
    padding: 1rem;
    flex-direction: column;
    /* 移除固定高度，让内容决定高度 */
}

.image-frame a {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* 优化图片样式 */
.image-frame img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
    object-fit: contain; /* 保持图片比例 */
}

/* 为每个图片设置最大高度，防止过大 */
.image-frame img:nth-child(1) {
    max-height: 80px;
    width: auto;
}

.image-frame img:nth-child(2) {
    max-height: 300px;
}

.image-frame img:nth-child(3) {
    max-height: 60px;
}

.image-item:hover .image-frame img:nth-child(2) {
    transform: scale(1.08);
}

.image-caption {
    padding: 1.5rem;
    text-align: center;
    background-color: #F7FBFE;
    border-top: 1px solid #FCFDFD;
    flex-grow: 1;
}

.image-caption h3 {
    color: #cc0000;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-caption p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ====== 底部背景图区域 ====== */
.bottom-background {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #F7FBFE;
    padding-top: 1rem;
}

.bottom-background img {
    width: 100%;
    max-width: 1400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ====== 响应式设计：大平板 ====== */
@media (max-width: 1200px) {
    .main-container {
        padding: 0 3rem;
    }

    .images-container {
        gap: 2.5rem;
    }
}

/* ====== 响应式设计：平板 ====== */
@media (max-width: 992px) {
    .main-container {
        padding: 0 2rem;
    }

    .images-container {
        gap: 2rem;
    }

    .image-frame img:nth-child(2) {
        max-height: 250px;
    }
}

/* ====== 响应式设计：平板以下（手机端） ====== */
@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1.5rem;
    }

    /* 手机端：改为上下排列 */
    .images-container {
        flex-direction: column; /* 关键：将flex方向改为垂直 */
        gap: 2rem;
        max-width: 500px;
        margin: 0 auto 1rem;
    }

    .image-item {
        max-width: 100%;
        width: 100%;
        min-width: unset;
    }

    .image-frame img:nth-child(2) {
        max-height: 220px;
    }
}

/* ====== 响应式设计：手机 ====== */
@media (max-width: 576px) {
    .main-container {
        padding: 1.5rem 1rem;
    }

    .images-container {
        gap: 1.8rem;
        max-width: 450px;
    }

    .image-frame img:nth-child(2) {
        max-height: 200px;
    }

    .image-caption {
        padding: 1.2rem;
    }

    .image-caption h3 {
        font-size: 1.2rem;
    }
}

/* 小手机优化 */
@media (max-width: 480px) {
    .main-container {
        padding: 1rem 0.8rem;
    }

    .images-container {
        gap: 1.5rem;
        max-width: 100%;
    }

    .image-item {
        border-radius: 14px;
    }

    .image-frame img:nth-child(2) {
        max-height: 180px;
    }

    .image-caption {
        padding: 1rem;
    }

    .image-caption h3 {
        font-size: 1.1rem;
    }

    .bottom-background {
        padding-top: 1.5rem;
    }
}

/* 超小手机优化 */
@media (max-width: 360px) {
    .image-frame img:nth-child(2) {
        max-height: 150px;
    }

    .image-caption h3 {
        font-size: 1rem;
    }

    .image-caption p {
        font-size: 0.85rem;
    }
}

/* ====== 动画效果 ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-item {
    animation: fadeInUp 0.8s ease-out forwards;
}

.image-item:nth-child(1) {
    animation-delay: 0.1s;
}

.image-item:nth-child(2) {
    animation-delay: 0.3s;
}