/* ==========================================================================
   多考试类型中枢（Exam Hub）—— 作用域样式表
   作用域：.ls-eh-（全局入队，靠前缀隔离，不影响其它页面）
   设计基调：与考公模块一致 —— 纸面白底 / 克制分隔线 / 不用渐变与玻璃拟态。
   主色由各类考试注入：--eh-main（主色）、--eh-tint（浅底色），
   因此公考=藏青、学历=暗金、考证=墨绿、技能=紫灰，各类界面观感不同。
   ========================================================================== */

.ls-eh-root {
    --eh-main: #1B4A77;
    --eh-tint: #EEF3F8;

    --eh-text: #1c2530;
    --eh-text-2: #56616f;
    --eh-text-3: #8b95a1;
    --eh-line: #e3e7ec;
    --eh-line-2: #eef1f4;
    --eh-bg: #f5f6f8;
    --eh-card: #ffffff;
    --eh-ok: #1e8e4e;
    --eh-warn: #b8860b;

    --eh-r: 8px;
    --eh-r-s: 5px;
    --eh-shadow: 0 1px 2px rgba(28, 37, 48, .06);
    --eh-shadow-h: 0 4px 14px rgba(28, 37, 48, .09);

    background: var(--eh-bg);
    color: var(--eh-text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    min-height: 60vh;
    padding-bottom: 40px;
}

.ls-eh-root *,
.ls-eh-root *::before,
.ls-eh-root *::after { box-sizing: border-box; }

.ls-eh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部：当前考试横幅 ---------- */
.ls-eh-hero {
    background: var(--eh-main);
    color: #fff;
    padding: 22px 0 24px;
}
.ls-eh-hero-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.ls-eh-crumb { font-size: 12.5px; opacity: .78; margin-bottom: 8px; }
.ls-eh-crumb a { color: #fff; text-decoration: none; }
.ls-eh-crumb a:hover { text-decoration: underline; }
.ls-eh-crumb span { margin: 0 6px; opacity: .6; }
.ls-eh-hero h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: .2px; }
.ls-eh-hero p { margin: 0; font-size: 13.5px; opacity: .82; }

.ls-eh-hero-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-eh-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-size: 12.5px; line-height: 1;
    padding: 6px 11px; border-radius: 20px;
}

/* ---------- 大类切换条 ---------- */
.ls-eh-tabs {
    background: var(--eh-card);
    border-bottom: 1px solid var(--eh-line);
    position: sticky; top: 0; z-index: 20;
}
.ls-eh-tabs-in {
    max-width: 1180px; margin: 0 auto; padding: 0 16px;
    display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.ls-eh-tabs-in::-webkit-scrollbar { height: 0; }
.ls-eh-tab {
    flex: 0 0 auto;
    padding: 14px 16px; font-size: 14.5px; font-weight: 500;
    color: var(--eh-text-2); text-decoration: none;
    border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.ls-eh-tab:hover { color: var(--eh-main); }
.ls-eh-tab.is-on { color: var(--eh-main); border-bottom-color: var(--eh-main); font-weight: 600; }
.ls-eh-tab b { font-weight: 600; }
.ls-eh-tab i {
    font-style: normal; font-size: 12px; margin-left: 5px;
    color: var(--eh-text-3);
}

/* ---------- 区块标题 ---------- */
.ls-eh-sec { padding: 26px 0 4px; }
.ls-eh-sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ls-eh-sec-hd h2 { margin: 0; font-size: 17px; font-weight: 600; }
.ls-eh-sec-hd p { margin: 4px 0 0; font-size: 13px; color: var(--eh-text-3); }
.ls-eh-more { font-size: 13px; color: var(--eh-main); text-decoration: none; white-space: nowrap; }
.ls-eh-more:hover { text-decoration: underline; }

/* ---------- 大类卡片（首页） ---------- */
.ls-eh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 8px; }
.ls-eh-gcard {
    background: var(--eh-card); border: 1px solid var(--eh-line);
    border-radius: var(--eh-r); padding: 20px; text-decoration: none; color: inherit;
    display: block; transition: box-shadow .16s, border-color .16s, transform .16s;
    border-top: 3px solid var(--gc, var(--eh-main));
}
.ls-eh-gcard:hover { box-shadow: var(--eh-shadow-h); border-color: var(--eh-line); transform: translateY(-2px); }
.ls-eh-gcard h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--gc, var(--eh-main)); }
.ls-eh-gcard p { margin: 0 0 12px; font-size: 13px; color: var(--eh-text-2); line-height: 1.6; }
.ls-eh-gcard-ft { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--eh-text-3); }
.ls-eh-gcard-ft b { color: var(--eh-text); font-weight: 600; }

/* ---------- 考试列表 ---------- */
.ls-eh-exams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ls-eh-exam {
    background: var(--eh-card); border: 1px solid var(--eh-line);
    border-radius: var(--eh-r); padding: 16px 17px;
    display: flex; flex-direction: column; min-height: 132px;
    transition: box-shadow .16s, border-color .16s;
}
.ls-eh-exam:hover { box-shadow: var(--eh-shadow-h); border-color: var(--eh-main); }
.ls-eh-exam-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ls-eh-exam h4 { margin: 0; font-size: 15.5px; font-weight: 600; }
.ls-eh-exam-n {
    flex: 0 0 auto; font-size: 12px; color: var(--eh-text-3);
    background: var(--eh-tint); border-radius: 10px; padding: 2px 8px; line-height: 1.7;
}
.ls-eh-exam p {
    margin: 7px 0 12px; font-size: 12.5px; color: var(--eh-text-2);
    line-height: 1.55; flex: 1 1 auto;
}
.ls-eh-exam-ft { display: flex; gap: 8px; }
.ls-eh-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 14px; border-radius: var(--eh-r-s);
    font-size: 13.5px; text-decoration: none; border: 1px solid transparent;
    cursor: pointer; transition: background .15s, border-color .15s, color .15s;
    font-family: inherit;
}
.ls-eh-btn-primary { background: var(--eh-main); color: #fff; }
.ls-eh-btn-primary:hover { filter: brightness(1.08); color: #fff; }
.ls-eh-btn-ghost { background: transparent; color: var(--eh-main); border-color: var(--eh-line); }
.ls-eh-btn-ghost:hover { border-color: var(--eh-main); background: var(--eh-tint); }
.ls-eh-btn[disabled],
.ls-eh-btn.is-off { opacity: .5; pointer-events: none; }

/* ---------- 科目模块（按考试展开） ---------- */
.ls-eh-subj {
    background: var(--eh-card); border: 1px solid var(--eh-line);
    border-radius: var(--eh-r); margin-bottom: 12px; overflow: hidden;
}
.ls-eh-subj-hd {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 17px; border-bottom: 1px solid var(--eh-line-2);
    background: var(--eh-tint);
}
.ls-eh-subj-hd h4 { margin: 0; font-size: 15px; font-weight: 600; }
.ls-eh-subj-hd span { font-size: 12.5px; color: var(--eh-text-2); }
.ls-eh-subj-bd { padding: 12px 17px 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.ls-eh-mod {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--eh-line); border-radius: 18px;
    padding: 6px 13px; font-size: 13px; color: var(--eh-text-2);
    text-decoration: none; background: var(--eh-card);
    transition: border-color .15s, color .15s, background .15s;
}
.ls-eh-mod:hover { border-color: var(--eh-main); color: var(--eh-main); background: var(--eh-tint); }
.ls-eh-mod b { font-weight: 600; color: var(--eh-text-3); font-size: 12px; }
.ls-eh-mod.is-empty b { color: #c2c8d0; }

/* ---------- 空状态 ---------- */
.ls-eh-empty {
    background: var(--eh-card); border: 1px solid var(--eh-line);
    border-radius: var(--eh-r); padding: 34px 24px; text-align: center;
}
.ls-eh-empty b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.ls-eh-empty p { margin: 0 0 16px; font-size: 13.5px; color: var(--eh-text-2); }
.ls-eh-empty-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通用小件 ---------- */
.ls-eh-tag {
    display: inline-block; font-size: 12px; line-height: 1.7;
    padding: 1px 8px; border-radius: 3px;
    background: var(--eh-tint); color: var(--eh-main);
}
.ls-eh-tag-ok { background: rgba(30, 142, 78, .1); color: var(--eh-ok); }
.ls-eh-tag-warn { background: rgba(184, 134, 11, .12); color: var(--eh-warn); }
.ls-eh-divider { height: 1px; background: var(--eh-line); margin: 22px 0; border: 0; }

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
    .ls-eh-exams { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ls-eh-root { font-size: 14.5px; }
    .ls-eh-wrap { padding: 0 12px; }
    .ls-eh-hero { padding: 16px 0 18px; }
    .ls-eh-hero-in { padding: 0 12px; }
    .ls-eh-hero h1 { font-size: 20px; }
    .ls-eh-grid { grid-template-columns: 1fr; gap: 10px; }
    .ls-eh-gcard { padding: 16px; }
    .ls-eh-exams { grid-template-columns: 1fr; gap: 10px; }
    .ls-eh-exam { min-height: 0; }
    /* 移动端大点击区 */
    .ls-eh-btn { height: 40px; padding: 0 16px; font-size: 14px; }
    .ls-eh-mod { padding: 8px 14px; font-size: 13.5px; }
    .ls-eh-tab { padding: 12px 13px; font-size: 14px; }
    .ls-eh-tabs-in { padding: 0 12px; }
}
