/* 练听力主页 · 1b 活泼多巴胺风格 */
.lh-body { background: #FFF9F1; }

.lh-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4px 12px 96px;
}

/* 问候 + 签到横幅 */
.greeting-card {
    background: #fff;
    border: 2px solid #F3E3C8;
    border-radius: 24px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.greeting-title { font-size: 24px; font-weight: 800; color: #3D3428; }
.greeting-sub { margin-top: 6px; font-size: 14px; color: #97876F; }

.greeting-signin { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.signin-btn {
    background: #FF9600;
    border: none;
    border-bottom: 4px solid #D97E00;
    border-radius: 14px;
    padding: 12px 24px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s;
}
.signin-btn:hover { background: #FFA51F; }
.signin-btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.signin-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.signed-badge {
    background: #E9F8EC;
    border: 2px solid #BFEBC8;
    border-radius: 14px;
    padding: 11px 22px;
    color: #2FA84F;
    font-size: 15px;
    font-weight: 800;
}
.signin-hint { font-size: 12px; color: #A79375; text-align: right; }

/* 继续学习横幅 */
#recentlyLearning { display: none; margin-top: 18px; }
.continue-banner {
    background: #EDF3FF;
    border: 2px solid #D6E3FF;
    border-radius: 20px;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: transform 0.15s;
}
.continue-banner:hover { transform: translateY(-2px); text-decoration: none; }
.continue-play-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #4A7CF0;
    box-shadow: 0 4px 0 #3560C8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.continue-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.continue-label { font-size: 12px; font-weight: 800; color: #7A8BB3; letter-spacing: 2px; }
.continue-title {
    font-size: 16px;
    font-weight: 800;
    color: #2A3A5C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.progress-bar-bg {
    display: block;
    margin-top: 6px;
    height: 10px;
    border-radius: 999px;
    background: #D6E3FF;
    overflow: hidden;
}
.progress-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: #4A7CF0;
    border-radius: 999px;
    transition: width 0.3s;
}
.progress-bar-fill.completed { background: #34C46A; }
.continue-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.continue-meta { font-size: 12px; font-weight: 700; color: #8FA0C6; }
.continue-go {
    background: #4A7CF0;
    border-bottom: 4px solid #3560C8;
    border-radius: 12px;
    padding: 9px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.continue-banner:active .continue-go { transform: translateY(2px); border-bottom-width: 2px; }

/* 科目卡片 */
.category-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.category-card {
    border-radius: 20px;
    border: 2px solid;
    padding: 22px 24px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.15s;
}
.category-card:hover, .category-card:focus { transform: translateY(-3px); }
.category-card:focus-visible { outline: 3px solid #4A7CF0; outline-offset: 2px; }
.category-card:focus:not(:focus-visible) { outline: none; }
.category-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.category-name { font-size: 32px; font-weight: 800; line-height: 1.2; }
.category-name-long { font-size: 16px; line-height: 1.45; }
.category-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.7);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.category-progress-text { font-size: 12px; font-weight: 700; margin-bottom: 8px; min-height: 1em; }
.category-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.8); overflow: hidden; }
.category-bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width 0.3s; }

/* 各科配色 */
.cat-ielts { background: #FFE9E5; border-color: #FFD2CA; }
.cat-ielts .category-name, .cat-ielts .category-tag { color: #E0523E; }
.cat-ielts .category-progress-text { color: #C05B4B; }
.cat-ielts .category-bar-fill { background: #FF6B57; }

.cat-toefl { background: #DFF6F7; border-color: #B9E9EC; }
.cat-toefl .category-name, .cat-toefl .category-tag { color: #0E8C96; }
.cat-toefl .category-progress-text { color: #3E9BA3; }
.cat-toefl .category-bar-fill { background: #14B0BC; }

.cat-cet4 { background: #FFF1D6; border-color: #FFE1A8; }
.cat-cet4 .category-name, .cat-cet4 .category-tag { color: #C98A00; }
.cat-cet4 .category-progress-text { color: #B08540; }
.cat-cet4 .category-bar-fill { background: #FFB020; }

.cat-cet6 { background: #E4F7E9; border-color: #C4EDD0; }
.cat-cet6 .category-name, .cat-cet6 .category-tag { color: #1F8A44; }
.cat-cet6 .category-progress-text { color: #4E9166; }
.cat-cet6 .category-bar-fill { background: #34C46A; }

.cat-tem4 { background: #FFE9F3; border-color: #FFCBE1; }
.cat-tem4 .category-name, .cat-tem4 .category-tag { color: #D0327E; }
.cat-tem4 .category-progress-text { color: #C25B90; }
.cat-tem4 .category-bar-fill { background: #F06CA8; }

.cat-tem8 { background: #F0EAFF; border-color: #DFD2FF; }
.cat-tem8 .category-name, .cat-tem8 .category-tag { color: #7444E0; }
.cat-tem8 .category-progress-text { color: #8A6BC9; }
.cat-tem8 .category-bar-fill { background: #8B5CF6; }

.cat-be { background: #E5EFFF; border-color: #CCE0FF; }
.cat-be .category-name, .cat-be .category-tag { color: #2F66D0; }
.cat-be .category-progress-text { color: #5B7FC4; }
.cat-be .category-bar-fill { background: #4A7CF0; }

/* 页脚融合奶油底（footer 用内联 #f8f9fa，需 !important 覆盖） */
.lh-body #footer { background-color: #FFF9F1 !important; }

/* 响应式 */
@media (max-width: 991px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .category-grid { grid-template-columns: 1fr; }
    .greeting-card { flex-direction: column; align-items: stretch; padding: 20px; }
    .greeting-signin { align-items: flex-start; }
    .signin-hint { text-align: left; }
    .continue-banner { flex-wrap: wrap; padding: 16px 18px; }
    .continue-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
