/* ============================================
   熊猫心灵成长课 页面样式
   居中合照 + 相框，左右留边界感，不铺满
   ============================================ */

.lessons-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 20px 80px;
    text-align: center;
}

/* ---- 标题区 ---- */
.lessons-hero {
    margin-bottom: 36px;
}

.lessons-page-title {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;          /* 近黑，与 IP 页标题统一 */
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.lessons-page-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary, #8B6F47);
    margin: 0;
    letter-spacing: 2px;
}

/* ---- 相框 ---- */
.lessons-frame {
    position: relative;
    display: inline-block;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 14px;                       /* 卡纸衬边 */
    background: #fffaf3;                 /* 暖米色卡纸 */
    border: 1px solid #e3d8c6;           /* 细暖棕边框 */
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(60, 45, 25, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

/* hover：阴影加深（倾斜由 lessons_effect.js 负责） */
.lessons-frame:hover {
    box-shadow: 0 18px 44px rgba(60, 45, 25, 0.22);
}

.lessons-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1376 / 768;            /* 与 welc.jpg 真实比例一致，加载前预留空间，防止抖动(CLS) */
    max-height: 70vh;
    object-fit: contain;                 /* 完整显示，不裁切 */
    background: #F8F5F0;                 /* 加载前的暖色占位，避免空白闪烁 */
    border-radius: 3px;
    transition: transform 0.4s ease;
}

.lessons-frame:hover .lessons-photo {
    transform: scale(1.02);
}

/* ---- 手机端：保留左右留白 ---- */
@media (max-width: 768px) {
    .lessons-page {
        padding: 40px 14px 56px;
    }
    .lessons-page-title {
        font-size: 26px;
    }
    .lessons-page-subtitle {
        font-size: 15px;
    }
    .lessons-frame {
        max-width: 95%;
        padding: 10px;
    }
    .lessons-photo {
        max-height: 60vh;
    }
}
