/* ============ H5 前端样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: #f0f3f8; }
body.h5 {
  font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
  max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f0f3f8;
  font-size: 15px; color: #333; padding-bottom: 60px; position: relative;
}
/* 顶部标题栏 */
.h5-top {
  background: #21b2f7; color: #fff; text-align: center;
  padding: 14px 0; font-size: 17px; font-weight: 600; position: sticky; top: 0; z-index: 50;
}
/* 公告条 */
.notice {
  display: flex; align-items: center; background: #fff7e6; color: #e08c00;
  padding: 9px 12px; font-size: 13px; overflow: hidden; white-space: nowrap;
}
.notice .horn { margin-right: 8px; flex-shrink: 0; }
.notice .n-text { overflow: hidden; text-overflow: ellipsis; }
/* Banner 轮播 */
.banner-box { position: relative; margin: 10px 12px; border-radius: 12px; overflow: hidden; height: 180px; background: #dbe6f5; }
.banner-box img { width: 100%; height: 180px; object-fit: cover; display: none; }
.banner-box img.on { display: block; }
.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.banner-dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); margin: 0 3px; }
.banner-dots i.on { background: #fff; }
/* 图标宫格 */
.grid { display: grid; grid-template-columns: 1fr 1fr; background: #fff; margin: 12px; border-radius: 14px; padding: 10px 0; }
.grid-item { text-align: center; padding: 16px 0; cursor: pointer; }
.grid-item .g-icon { font-size: 30px; width: 46px; height: 46px; line-height: 46px; margin: 0 auto 8px; border-radius: 12px; background: #eef6ff; }
.grid-item .g-label { font-size: 13px; color: #444; }
/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; background: #fff; border-top: 1px solid #eee;
  display: flex; z-index: 60; height: 54px;
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #999; text-decoration: none; font-size: 12px; }
.tabbar a .t-icon { font-size: 20px; }
.tabbar a.active { color: #21b2f7; }
/* 通用 */
.page-body { padding: 12px; }
.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.btn-main {
  width: 100%; border: 0; background: #21b2f7; color: #fff; border-radius: 10px;
  padding: 12px 0; font-size: 16px; cursor: pointer;
}
.btn-mini { border: 0; background: #21b2f7; color: #fff; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.btn-mini.gray { background: #e3e6ec; color: #666; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag-blue { background: #e8f4ff; color: #21b2f7; }
.tag-green { background: #e6f9ee; color: #22a55c; }
.tag-gray { background: #f0f1f5; color: #888; }
.tag-orange { background: #fef3e2; color: #e08c00; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f2f4f8; }
.list-item:last-child { border-bottom: 0; }
.li-title { font-size: 15px; font-weight: 600; }
.li-sub { font-size: 12px; color: #999; margin-top: 4px; }
/* 表单 */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #e3e6ec; border-radius: 10px; font-size: 15px; background: #f8fafc;
}
/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: none; align-items: center; justify-content: center; }
.modal-mask.show { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 24px; width: 320px; max-width: 88vw; }
.modal-box h3 { text-align: center; margin-bottom: 18px; }
.pwd-switch { text-align: center; color: #21b2f7; font-size: 13px; margin: 12px 0 4px; cursor: pointer; }
/* 非法登录提示 */
.illegal-box {
  position: fixed; top: 40%; left: 50%; transform: translate(-50%,-50%);
  background: #fff; border-radius: 16px; padding: 26px 30px; z-index: 200; text-align: center; display: none;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.illegal-box .i-icon { font-size: 40px; }
.illegal-box .i-text { margin-top: 10px; color: #e5484d; font-weight: 700; }
/* Toast */
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 9px 20px; border-radius: 8px; z-index: 300; display: none; font-size: 14px; }
.empty { text-align: center; color: #aaa; padding: 30px 0; }

/* ============ 我的页面 ============ */
.profile-card { background: #eceef2; padding: 24px 16px; display: flex; align-items: center; gap: 16px; }
.avatar-circle { width: 64px; height: 64px; border-radius: 50%; background: #d7dae0; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-list { background: #fff; }
.menu-item { display: flex; align-items: center; padding: 15px 16px; border-bottom: 1px solid #f2f4f8; cursor: pointer; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .m-ico { width: 22px; height: 22px; margin-right: 10px; display: flex; align-items: center; }
.menu-item .m-label { flex: 1; font-size: 15px; color: #333; }
.menu-item .m-arrow { color: #c3c9d4; font-size: 16px; }
.btn-logout {
  position: fixed; bottom: 70px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 440px;
  background: #f26d6d; color: #fff; border: 0; border-radius: 24px;
  padding: 12px 0; font-size: 15px; cursor: pointer;
}
.info-row { display: flex; padding: 11px 0; border-bottom: 1px solid #f2f4f8; font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row .ir-label { width: 80px; color: #999; flex-shrink: 0; }
.info-row .ir-value { flex: 1; color: #333; font-weight: 600; }
