* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", Arial, sans-serif; background: #f5f7fa; color: #333; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
.sbar { background: #fff; border-radius: 8px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.sbar input { height: 38px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; }
.sbar input.t { width: 180px; }
.sbar button { height: 38px; padding: 0 22px; background: #0066cc; color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-size: 14px; }
.links { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a { padding: 6px 16px; background: #fff; border: 1px solid #dcdfe6; border-radius: 20px; color: #444; text-decoration: none; font-size: 14px; cursor:pointer; }
.links a.on, .links a:hover { background: #0066cc; border-color: #0066cc; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.card .ph { width: 100%; height: 170px; object-fit: cover; background: #eee; display: block; }
.card .info { padding: 12px 14px; }
.card .nm { font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.card .nm span { color: #0066cc; font-size: 12px; margin-left: 6px; font-weight: normal; }
.card .tag { display: inline-block; font-size: 12px; color: #666; background: #f2f4f7; padding: 3px 10px; border-radius: 12px; margin: 0 6px 6px 0; }
.card .intro { font-size: 13px; color: #888; line-height: 1.6; margin-top: 6px; height: 42px; overflow: hidden; }
.empty { background: #fff; padding: 60px 20px; text-align: center; color: #999; border-radius: 8px; }
.loading { text-align:center;padding:30px;color:#666; }
.pagination { margin: 24px 0 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; line-height: 36px; text-align: center; padding: 0 12px; background: #fff; border: 1px solid #dcdfe6; border-radius: 4px; color: #444; text-decoration: none; font-size: 14px; cursor:pointer; }
.pagination .cur { background: #0066cc; border-color: #0066cc; color: #fff; }
.cnt { color: #888; font-size: 13px; margin: 16px 0 10px; }

/* 底部备案footer，和teacher_show页面样式统一 */
.footer {
    max-width: 1180px;
    margin: 40px auto 20px;
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}
.footer a {
    color: #0066cc;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .footer {
        padding:12px;
        margin-top:25px;
    }
}