/* 等级中心 - 页面样式（配合 css/train.css 使用） */

.lv-hero {
    display: flex; align-items: center; gap: 14px;
    border: 2px solid var(--fg); border-radius: 12px;
    padding: 16px 15px; margin-bottom: 12px;
}
.lv-badge {
    width: 60px; height: 60px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; line-height: 1;
    border: 1.5px solid var(--border); border-radius: 50%;
    background: #fafafa;
}
.lv-hero-main { flex: 1; min-width: 0; }
.lv-level { font-size: 1.5rem; font-weight: bold; letter-spacing: 1px; }
.lv-level b { font-size: 2rem; }
.lv-tier { font-size: 0.95rem; margin-top: 2px; letter-spacing: 1px; }
.lv-tier-desc { font-size: 0.72rem; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* 进度条 */
.lv-bar-row { display: flex; align-items: center; gap: 9px; }
.lv-bar-label { font-size: 0.72rem; color: var(--muted); flex: none; }
.lv-bar-label b { color: var(--fg); }
.lv-bar-mid {
    flex: 1; height: 9px; border-radius: 5px; overflow: hidden;
    background: #eee; display: block; min-width: 0;
}
.lv-bar-mid i {
    display: block; height: 100%; background: var(--fg);
    border-radius: 5px; transition: width 0.4s ease;
}
.lv-bar-num { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 7px; }

.lv-stats { display: flex; gap: 8px; margin-top: 14px; }
.lv-stats .tr-stat { flex: 1; margin: 0; }

.lv-next {
    font-size: 0.74rem; color: var(--muted); line-height: 1.75;
    margin: 12px 0 0; padding-top: 11px; border-top: 1px dashed var(--border);
}
.lv-next b { color: var(--fg); }

/* 经验来源 */
.lv-src { margin-top: 4px; }
.lv-src-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
}
.lv-src-row:last-child { border-bottom: none; }
.lv-src-row:hover { background: #fafafa; }
.lv-src-icon { font-size: 1rem; width: 22px; text-align: center; flex: none; }
.lv-src-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-src-name { font-size: 0.84rem; }
.lv-src-tip { font-size: 0.7rem; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.lv-src-calc { font-size: 0.74rem; color: var(--muted); flex: none; text-align: right; line-height: 1.5; }
.lv-src-calc b { display: block; font-size: 0.86rem; color: var(--fg); }
.lv-src-zero { opacity: 0.42; }
.lv-src-zero .lv-src-calc b { font-weight: normal; }

.lv-tip { font-size: 0.72rem; color: var(--muted); line-height: 1.75; margin: 10px 0 0; }

/* 称号阶梯 */
.lv-tiers { margin-top: 4px; }
.lv-tier-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--border);
}
.lv-tier-row:last-child { border-bottom: none; }
.lv-tier-row.dim { opacity: 0.4; }
.lv-tier-now { background: #fafafa; }
.lv-tier-icon { font-size: 1.05rem; width: 22px; text-align: center; flex: none; }
.lv-tier-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-tier-name { font-size: 0.84rem; }
.lv-tier-sub { font-size: 0.7rem; color: var(--muted); margin-top: 2px; line-height: 1.55; }
.lv-tier-lv {
    font-size: 0.7rem; color: var(--muted); flex: none;
    border: 1px solid var(--border); border-radius: 8px; padding: 1px 8px;
}
.lv-tier-row:not(.dim) .lv-tier-lv { color: var(--fg); border-color: var(--fg); }

/* 升级记录 */
.lv-hist { margin-top: 4px; }
.lv-hist-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.lv-hist-row:last-child { border-bottom: none; }
.lv-hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lv-hist-title { font-size: 0.84rem; }
.lv-hist-sub { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.lv-count { font-size: 0.68rem; color: var(--muted); font-weight: normal; }
.lv-empty { font-size: 0.8rem; color: var(--muted); padding: 10px 0; line-height: 1.7; }

@media (max-width: 380px) {
    .lv-badge { width: 50px; height: 50px; font-size: 1.55rem; }
    .lv-level { font-size: 1.25rem; }
    .lv-level b { font-size: 1.7rem; }
    .lv-src-calc { font-size: 0.7rem; }
}
