/* 学员首页各栏目统一间距；公共页头自动标记首页，不依赖 index.php 新增 body 类。 */
.index-layout .student-header-inner {
    padding: 18px 16px 16px !important;
}
.index-layout .student-heading {
    margin-bottom: 16px !important;
}
body .index-container {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}
body .index-container > .card,
body .index-container > .tab-grid {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
body .index-container > .card:last-child {
    margin-bottom: 0 !important;
}
body .index-container + .footer {
    padding-top: 10px !important;
}
/* 兼容尚未更新首页标记的页面。 */
body .container > .usage-bar,
body .container > .tab-grid {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
body .container > .tab-grid + .card {
    margin-top: 0 !important;
}
@media (max-width: 600px) {
    .index-layout .student-header-inner { padding: 14px 16px !important; }
    .index-layout .student-heading { margin-bottom: 12px !important; }
}
@media (max-width: 600px) and (max-height: 650px) {
    .index-layout .student-header-inner { padding: 8px 16px !important; }
    .index-layout .student-heading { margin-bottom: 8px !important; }
    .index-layout .student-menu-item { min-height: 40px !important; padding: 8px 2px !important; }
}

/* 四个栏目共用讲义页尺寸，避免 home-entry 与其他栏目高度不同。 */
body .index-container > .tab-grid > .tab-card {
    aspect-ratio: auto !important;
    min-height: 112px !important;
    padding: 12px 6px !important;
}
body .index-container > .tab-grid > .tab-card .tab-icon {
    font-size: 34px !important;
}
@media (max-width: 600px) {
    body .index-container > .tab-grid > .tab-card {
        min-height: 96px !important;
        padding: 8px 3px !important;
    }
    body .index-container > .tab-grid > .tab-card .tab-icon {
        font-size: 24px !important;
    }
}
@media (max-width: 600px) and (max-height: 650px) {
    body .index-container > .tab-grid > .tab-card {
        min-height: 88px !important;
        padding: 4px 3px !important;
    }
    body .index-container > .tab-grid > .tab-card .tab-icon {
        font-size: 22px !important;
    }
}
