/* ── 课程标题区：相对定位容器，放右侧按钮 ── */
.courses-title-wrap {
    position: relative;
}

.courses-more-btn {
    position: absolute;
    right: 0;
    top: 43%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #f5a623;
    background: #fff;
    border: 1px solid rgba(245,166,35,0.4);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(245,166,35,0.1);
    transition: background .18s, color .18s, box-shadow .18s;
}
.courses-more-btn::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7h8M8 4l3 3-3 3' stroke='%23f5a623' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: background-image .18s, transform .18s;
}
.courses-more-btn:hover {
    background: #f5a623;
    color: #fff;
    box-shadow: 0 4px 16px rgba(245,166,35,0.3);
}
.courses-more-btn:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 7h8M8 4l3 3-3 3' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transform: translateX(2px);
}

/* ── 图片弹窗 ── */
.img-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2100;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.img-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.img-modal-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    font-family: inherit;
    z-index: 2101;
}
.img-modal-close:hover { background: rgba(255,255,255,0.32); }

.img-modal-body {
    transform: scale(0.97);
    transition: transform .28s cubic-bezier(.22,.8,.25,1);
}
.img-modal-overlay.is-open .img-modal-body {
    transform: scale(1);
}

.img-modal-body img {
    display: block;
    width: min(700px, 88vw);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── 课程产品体系 ── */
.courses { background: #f5f5f5; padding: 0 0 80px; }

@media (max-width: 768px) {
    .courses { padding: 0 0 60px; }
    .courses-columns { gap: 14px; }
}
@media (max-width: 480px) {
    .courses { padding: 0 0 48px; }
}

/* ════════════════════════════
   三列并排
════════════════════════════ */
.courses-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

/* ════════════════════════════
   整列：有色背景大容器
════════════════════════════ */
.course-col {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    padding: 32px 24px 28px;
    gap: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.col-1 { background: #fff5eb; }
.col-2 { background: #faf5e0; }
.col-3 { background: #0e0c00; box-shadow: 0 4px 24px rgba(0,0,0,0.28); }

/* ════════════════════════════
   类目区块头  ← 透明背景，作标题组
════════════════════════════ */
.cat-card {
    background: transparent !important;
    border: none !important;
    padding: 0 0 22px 0;
    min-height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.07) !important;
    margin-bottom: 20px;
}

.col-3 .cat-card {
    border-bottom-color: rgba(200,160,64,0.18) !important;
}

/* 大号水印数字 */
.cat-watermark {
    position: absolute;
    top: -14px;
    right: 6px;
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    font-family: "Arial", sans-serif;
    color: rgba(0,0,0,0.05);
    pointer-events: none;
    user-select: none;
}
.col-3 .cat-watermark { color: rgba(255,255,255,0.04); }

.cat-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.col-1 .cat-badge { background: rgba(212,105,10,0.1); color: #b85508; border: 1px solid rgba(212,105,10,0.2); }
.col-2 .cat-badge { background: rgba(138,92,10,0.1); color: #7a5010; border: 1px solid rgba(138,92,10,0.2); }
.cat-badge-gold {
    background: transparent;
    color: #e8c860;
    border: 1.5px solid #c8a040;
}

.cat-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}
.col-1 .cat-title { color: #b85508; }
.col-2 .cat-title { color: #7a5010; }
.col-3 .cat-title { color: #c8a040; }

.cat-desc {
    font-size: 12.5px;
    line-height: 1.7;
    margin: 0;
}
.col-1 .cat-desc, .col-2 .cat-desc { color: #999; }
.col-3 .cat-desc { color: rgba(255,255,255,0.4); }

/* 覆盖旧的色值类（保留 class 名但清空背景） */
.cat-1, .cat-2, .cat-3 { background: transparent !important; }

/* ════════════════════════════
   课程列表：透明底 + 白色卡片
════════════════════════════ */
.course-list {
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 1px 5px rgba(0,0,0,0.06);
    transition: box-shadow .2s, transform .15s;
    border-bottom: none;
}
.course-item:last-child { border-bottom: none; }

/* 顶部橙色扫光条 */
.course-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: #f5a623;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.course-item:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.11);
    transform: translateY(-1px);
}
.course-item:hover::before { transform: scaleX(1); }

.ci-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ci-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
}

.ci-desc {
    font-size: 12.5px;
    color: #888;
    line-height: 1.65;
}

.ci-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* ════════════════════════════
   ③ 高端私教 专属条目
════════════════════════════ */
.course-list-premium {
    background: transparent;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-item-premium {
    background: rgba(200,160,64,0.07);
    border: 1px solid rgba(200,160,64,0.2);
    border-radius: 10px;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.course-item-premium .ci-name { color: #e8c860; font-size: 16px; }
.course-item-premium .ci-desc {
    color: rgba(255,255,255,0.4);
    font-size: 12.5px;
    line-height: 1.75;
}

.cip-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.cip-points div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
}

.cip-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c8a040;
    flex-shrink: 0;
}

/* ════════════════════════════
   通用标签
════════════════════════════ */
.ctag {
    display: inline-block;
    font-size: 12px;
    color: rgba(245,166,35,0.85);
    background: rgba(245,166,35,0.08);
    border: 1px solid rgba(245,166,35,0.18);
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
}
.ctag-sm  { font-size: 11px; padding: 2px 7px; }
.ctag-gold {
    color: #c8a040;
    background: rgba(200,160,64,0.1);
    border-color: rgba(200,160,64,0.25);
}

/* ════════════════════════════
   响应式
════════════════════════════ */
@media (max-width: 900px) {
    .courses-columns { grid-template-columns: 1fr 1fr; }
    .course-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
    .courses-columns { grid-template-columns: 1fr; }
    .course-col:last-child { grid-column: auto; }
    .cat-title { font-size: 22px; }
    /* 按钮脱离绝对定位，居中显示在标题下方 */
    .courses-more-btn {
        position: static;
        transform: none;
        display: flex;          /* 保持 flex，::after 图标与文字同行 */
        width: fit-content;
        margin: 12px auto 20px; /* 上间距与标题，下间距与卡片 */
        white-space: nowrap;    /* 确保文字不折行 */
    }
    .courses-title-wrap { padding-bottom: 0; }
}

@media (max-width: 390px) {
    .course-col { padding: 24px 16px 20px; }
    .cat-title { font-size: 20px; }
    .course-item { padding: 14px 14px; }
    .ci-name { font-size: 13px; }
    .ci-desc { font-size: 12px; }
}
