/* 全站用户端公共样式：统一字体为微软雅黑优先 */
body, button, input, textarea, select, a, span, div, p, h1, h2, h3, h4, label {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif !important;
}

/* ===== 底部四 Tab 导航（全站统一规格，勿在单页覆盖数值） ===== */
.tab-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    width: 100%; max-width: 640px; margin: 0 auto;
    border-top: 1px solid #E9EFEC; background: #fff;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}
.tab-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.tab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 4px 0; color: #96A49E; text-decoration: none;
    line-height: 1; white-space: nowrap;
}
.tab-item.active { color: #0FA98F; }
.tab-item svg { display: block; width: 24px; height: 24px; }
.tab-label { font-size: 11px; line-height: 1; color: inherit; }

/* ===== 全站统一提示框 Toast（位置由各页 bottom/top 控制，此处统一视觉规格） ===== */
#toast, .toast {
    position: fixed; left: 50%; transform: translateX(-50%);
    z-index: 9999; max-width: 78vw;
    background: rgba(18, 32, 27, .92); color: #fff;
    border-radius: 12px; padding: 10px 18px;
    font-size: 13px; font-weight: 500; line-height: 1.5;
    text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    animation: u-toast-in .22s ease-out;
    -webkit-animation: u-toast-in .22s ease-out;
}
#toast.hidden, .toast[hidden] { display: none; }
@keyframes u-toast-in {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@-webkit-keyframes u-toast-in {
    from { opacity: 0; -webkit-transform: translate(-50%, 8px); }
    to   { opacity: 1; -webkit-transform: translate(-50%, 0); }
}
/* 可选类型配色：成功 / 错误 */
#toast.u-toast--success, .toast.u-toast--success { background: rgba(15, 169, 143, .95); }
#toast.u-toast--error,   .toast.u-toast--error   { background: rgba(245, 63, 63, .95); }
