/* Page module: category. */

.site-pay-order {
    display: none;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    background: #f0faf0;
    text-align: left;
}

.site-pay-qr-area {
    display: none;
}

.site-pay-note {
    margin: 0 0 10px;
    color: var(--text-muted, #687180);
    font-size: 12px;
    line-height: 1.55;
}

.site-pay-result {
    display: none;
    margin: 0 14px 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
}

.site-pay-method-frame {
    margin-bottom: 6px;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.site-pay-method-frame img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
}

.site-pay-method-name {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
}

.site-pay-method-name.wechat {
    color: #07c160;
}

.site-pay-method-name.alipay {
    color: #1677ff;
}

.site-pay-empty {
    grid-column: 1 / -1;
    padding: 16px;
    color: var(--text-muted, #687180);
    font-size: 12px;
    text-align: center;
}

.site-pay-empty p {
    margin: 0 0 2px;
}

.site-pay-empty small {
    color: #a8b0bd;
    font-size: 10px;
}

.site-pay-helper {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fafafa;
    color: var(--text-muted, #687180);
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.site-pay-submit {
    width: 100%;
    margin-top: 10px;
    border: 0;
    cursor: pointer;
}

.site-pay-submit.is-done {
    background: #95de64;
    box-shadow: none;
}

.site-pay-help {
    margin: 6px 0 0;
    color: #a8b0bd;
    font-size: 10px;
    text-align: center;
}

.cat-badge-recommend {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--brand-primary, #ff6700);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
}

.cat-badge-vip {
    color: var(--brand-primary, #ff6700);
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
}

.cat-badge-free {
    color: #52c41a;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 11px;
}

.cat-load-more-wrap {
    text-align: center;
    padding: 12px 0;
}

.cat-load-more-btn {
    padding: 8px 24px;
    background: #fff;
    border: 1px solid var(--brand-primary, #ff6700);
    color: var(--brand-primary, #ff6700);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.cat-load-more-btn:hover {
    background: var(--brand-primary, #ff6700);
    color: #fff;
}

.cat-section-mt24 { margin-top: 24px; }
.cat-section-mt16 { margin-top: 16px; }
.cat-section-mt0 { margin-top: 0; }
.cat-hero-compact { padding: 28px 0 20px; }
.cat-grid-foot { display: flex; align-items: center; justify-content: space-between; }
.cat-grid-foot .cnt { font-size: 12px; color: var(--text-muted, #999); }
.cat-grid-head .color-bar { background: var(--cat-color); }

.cat-course-overview { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; margin-bottom: 16px; }
.cat-course-overview-inner { display: flex; gap: 20px; padding: 20px; align-items: flex-start; }
.cat-course-overview-cover { width: 200px; height: 112px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.cat-course-overview-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-course-overview-body { flex: 1; min-width: 0; }
.cat-course-overview-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cat-course-overview-head h2 { font-size: 20px; color: #333; margin: 0; }
.cat-course-overview-level { background: #fff5eb; color: var(--brand-primary, #ff6700); font-size: 11px; padding: 2px 10px; border-radius: 4px; }
.cat-course-overview-teacher { font-size: 13px; color: var(--brand-primary, #ff6700); margin-bottom: 6px; }
.cat-course-overview-desc { font-size: 14px; color: #666; line-height: 1.7; }

.cat-sub-group { margin-bottom: 28px; }
.cat-sub-card { display: block; text-decoration: none; color: #333; }
.cat-sub-card-box { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #f0f0f0; transition: box-shadow .2s; margin-bottom: 12px; }
.cat-sub-card-box:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.cat-sub-card-inner { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
.cat-sub-card-cover { width: 160px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.cat-sub-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-sub-card-cover-placeholder { width: 160px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #FF6700, #ff8533); display: flex; align-items: center; justify-content: center; }
.cat-sub-card-cover-placeholder span { color: #fff; font-size: 28px; }
.cat-sub-card-body { flex: 1; min-width: 0; }
.cat-sub-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cat-sub-card-head h3 { font-size: 16px; color: #333; margin: 0; }
.cat-sub-card-level { background: #fff5eb; color: var(--brand-primary, #ff6700); font-size: 10px; padding: 2px 8px; border-radius: 3px; }
.cat-sub-card-teacher { font-size: 12px; color: var(--brand-primary, #ff6700); margin-bottom: 4px; }
.cat-sub-card-desc { font-size: 13px; color: #666; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-sub-card-meta { display: flex; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--text-muted, #999); }
.cat-sub-card-go { color: var(--brand-primary, #ff6700); }
.cat-sub-view-all { text-align: center; padding: 8px 0; }
.cat-sub-view-all a { font-size: 13px; color: var(--brand-primary, #ff6700); text-decoration: none; }

.cat-video-section { margin-bottom: 28px; }
.cat-video-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-primary, #ff6700); }
.cat-video-section-bar { width: 4px; height: 18px; background: var(--brand-primary, #ff6700); border-radius: 2px; }
.cat-video-section-head h3 { font-size: 16px; color: #333; margin: 0; }
.cat-video-section-head .cnt { font-size: 12px; color: var(--text-muted, #999); }

.badge-free { position: absolute; bottom: 6px; left: 6px; background: #52c41a; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 3px; }

.container-promo { padding: 16px 0 6px; }

.cat-sub-view-all-link { font-size: 13px; color: var(--brand-primary, #ff6700); text-decoration: none; }
