/* ============ 捷报榜页面专属样式 ============ */
.offer-page-wrap {
    padding: 2rem 0 3rem;
    background: transparent;
}
.offer-section {
    margin-bottom: 2.25rem;
}
.offer-section:last-child {
    margin-bottom: 0;
}

/* 分组标题（热门国家 / 热门地区 / 其他留学目的国）：居中 + 左右分割线 */
.offer-group-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    margin: 2.5rem 0 1.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
    text-align: center;
    white-space: nowrap;
}
.offer-group-label:first-child {
    margin-top: 0;
}
.offer-group-label::before,
.offer-group-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #c9d8ec;
}

/* 轮播容器：左按钮 + 视口 + 右按钮 */
.offer-carousel {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.offer-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
}
.offer-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
/* 单张 offer 小图卡片：一行显示 4 张 */
.offer-thumb {
    flex: 0 0 calc((100% - 3rem) / 4);
    max-width: calc((100% - 3rem) / 4);
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
}
.offer-thumb:hover {
    border-color: var(--primary, #0060bd);
    box-shadow: 0 6px 20px rgba(0, 96, 189, 0.14);
    transform: translateY(-2px);
}
.offer-thumb-img {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}
.offer-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}
.offer-thumb:hover .offer-thumb-img img {
    transform: scale(1.04);
}
.offer-thumb-info {
    padding: 0.65rem 0.85rem 0.8rem;
    border-top: 1px solid #eef2f7;
    background: #fff;
}
.offer-thumb-school {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.45rem;
    word-break: break-word;
    text-align: center;
}
.offer-thumb-empty {
    flex: 1 1 100%;
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.95rem;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
}

/* 左右切换按钮 */
.offer-nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.offer-nav:hover:not(:disabled) {
    border-color: var(--primary, #0060bd);
    color: var(--primary, #0060bd);
    box-shadow: 0 4px 12px rgba(0, 96, 189, 0.18);
}
.offer-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============ Lightbox 大图弹窗 ============ */
.offer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.offer-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.offer-lightbox-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.4);
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.offer-lightbox.open .offer-lightbox-inner {
    transform: scale(1);
}
.offer-lightbox-img {
    max-width: 90vw;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: #f8fafc;
}
.offer-lightbox-caption {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.95rem;
    color: #1e293b;
    text-align: center;
    font-weight: 600;
    background: #fff;
}
.offer-lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}
.offer-lightbox-close:hover {
    background: #fff;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .offer-thumb {
        flex: 0 0 calc((100% - 2rem) / 3);
        max-width: calc((100% - 2rem) / 3);
    }
}
@media (max-width: 768px) {
    .offer-thumb {
        flex: 0 0 calc((100% - 1rem) / 2);
        max-width: calc((100% - 1rem) / 2);
    }
    .offer-thumb-img {
        height: 160px;
    }
    .offer-nav {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
}
@media (max-width: 480px) {
    .offer-thumb {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .offer-thumb-img {
        height: 220px;
    }
}
