/* 容器全屏及背景色设置，完美还原原图的暗黑背景 */
.gift-ideas-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 24px;
    background-color: #141414;
    color: #ffffff;
}

/* 主标题样式（仿照 Georgia/Times 衬线体设计） */
.gift-ideas-main-title {
    text-align: center;
    font-size: 50px;
    font-weight: 400;
    margin-bottom: 45px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* 1大2小的左右 Flex 布局架构 */
.gift-ideas-layout-grid {
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

/* 左右两栏等宽平分 */
.gift-card-item-large,
.gift-card-sidebar-group {
    flex: 1;
    width: 50%;
}

/* 右侧卡片垂直排列 */
.gift-card-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 大卡片框体 */
.gift-card-large-inner {
    background-color: #1c1c1c;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 小卡片框体 */
.gift-card-item-small {
    background-color: #1c1c1c;
    border: 1px solid #1c1c1c;
    border-radius: 8px;
    height: calc(50% - 12px); /* 减去 gap 的一半确保与大卡片等高 */
}

/* 大卡片上的视频覆盖图包装层 */
.gift-video-preview-wrapper {
    position: relative;
    width: 100%;
    height: 60%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.gift-video-preview-wrapper img,
.gift-small-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 无图时的占位背景色（提取自原图对应色块） */
.gift-image-placeholder-bg {
    width: 100%;
    height: 100%;
}

/* 视频播放圆形按钮 */
.gift-play-icon-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border: 3px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.gift-play-icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(1.05);
}

/* 使用伪元素精密绘制居中的三角形播放键 */
.gift-play-icon-btn::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 25px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
}

/* 右侧小卡片的横向排列 (图左字右) */
.gift-small-flex-row {
    display: flex;
    height: 100%;
}

/* 小卡片图片比例占比42% */
.gift-small-img-wrapper {
    width: 42%;
    padding: 20px 0 20px 20px;
}

.gift-small-img-wrapper img,
.gift-small-img-wrapper .gift-image-placeholder-bg {
    border-radius: 6px;
    height: 100%;
    min-height: 275px;
}

/* 小卡片文字占比58% */
.gift-small-text-wrapper {
    width: 58%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* 统一内部标题与正文 */
.gift-card-text-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gift-card-sub-title {
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: #ffffff;
    font-family: Inter-Bold, Inter;
}

.gift-card-paragraph {
    font-size: 16px;
    line-height: 1.6;
    color: #8c8c8c; /* 暗色系下的高级灰 */
    margin: 0 0 16px 0;
    /* text-align: justify; */
    
    /* 严格控制最大显示5行，溢出自动截断变省略号，完美对齐原图 */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 80%;
}

/* View all 链接链接 */
.gift-view-link {
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    margin-top: auto; /* 保证链接固定在底部 */
    display: inline-block;
    width: fit-content;
}

.gift-view-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   移动端与平板端响应式断点（沿用您原文件的弹性响应逻辑）
   ========================================================================== */
@media (max-width: 992px) {

    .gift-ideas-container{
        padding: 30px 20px;
    }

    .gift-card-large-inner{
        padding: 10px;
    }

    .gift-ideas-layout-grid {
        flex-direction: column;
        gap:10px
    }
    .gift-card-item-large{
        width: 100%;
    }
    .gift-card-sidebar-group{
       width: 100%;
       flex-direction: row;
       gap:10px;
    }
    .gift-card-item-small {
        height: auto;
    }
    .gift-small-img-wrapper img, .gift-small-img-wrapper .gift-image-placeholder-bg{
        min-height: 105px;
    }

    .gift-card-sub-title {
        font-size: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .gift-card-paragraph {
        font-size: 14px;
        line-height: 1.1;
        display: none;
    }

    .gift-view-link{
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .gift-ideas-main-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .gift-small-flex-row {
        flex-direction: column;
    }
    .gift-small-img-wrapper,
    .gift-small-text-wrapper {
        width: 100%;
        aspect-ratio: 1;
    }
    .gift-small-img-wrapper {
        padding: 10px 10px 0 10px;
    }
    .gift-small-text-wrapper{
        padding: 10px;
        height: 100%;
    }
    .gift-video-preview-wrapper {
        height: 220px;
        margin-bottom: 15px;
    }
}