/* cp.fpshk.shop 前台样式（配合原站 statics/css/global.css 使用） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #f5f5f7; color: #333; font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden; word-break: break-word; }
a { text-decoration: none; color: inherit; }
.main { padding-bottom: 64px; min-height: 100vh; }

/* 顶栏 */
.header { position: sticky; top: 0; z-index: 20; height: 46px; display: flex; align-items: center;
  background: linear-gradient(90deg, #e60012, #b3000e); color: #fff; padding: 0 10px; }
.header h4 { flex: 1; text-align: center; margin: 0; font-size: 16px; font-weight: 500; }
.header a { color: #fff; width: 40px; text-align: center; font-size: 18px; }
.notice-ok, .notice-err { padding: 8px 14px; font-size: 13px; }
.notice-ok { background: #e8f8ee; color: #1a7f45; }
.notice-err { background: #fdecec; color: #c0392b; }

/* 底部导航 */
.footer-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; display: flex;
  background: #fff; border-top: 1px solid #eee; z-index: 30; }
.footer-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; color: #999; gap: 2px; }
.footer-nav a img { width: 21px; height: 21px; opacity: .55; }
.footer-nav a.active { color: #e60012; }
.footer-nav a.active img { opacity: 1; }
.kefu-float { position: fixed; right: 12px; bottom: 76px; z-index: 30; }
.kefu-float img { width: 42px; }

/* 首页 */
.lobby-banner { position: relative; height: 190px; overflow: hidden; }
.lobby-banner img { width: 100%; height: 100%; object-fit: cover; }
.lobby-banner .brand { position: absolute; left: 14px; bottom: 10px; margin: 0; color: #fff;
  font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.quick-nav { display: flex; background: #fff; margin: -18px 12px 0; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); position: relative; z-index: 2; }
.quick-nav a { flex: 1; padding: 12px 0; text-align: center; font-size: 12px; }
.quick-nav img { width: 30px; height: 30px; display: block; margin: 0 auto 4px; }
.sec-title { display: flex; align-items: center; gap: 6px; margin: 16px 12px 8px; font-size: 15px; font-weight: 600; }
.sec-title i { width: 3px; height: 14px; background: #e60012; border-radius: 2px; display: inline-block; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.game-item { background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; overflow: hidden; }
.game-item .ico img { width: 46px; height: 46px; }
.game-item .gname { margin: 6px 0 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-item .gsub { margin: 0; font-size: 10px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-item .gtime { margin: 4px 0 0; font-size: 10px; color: #e60012; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-draw, .notice-list, .log-list, .mybet-box, .haoma-box, .chat_box, .bet-panel, .user-page .cell-group { margin: 0 12px; }
.hd-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px; font-size: 12px; }
.hd-g { color: #e60012; min-width: 62px; }
.hd-n i, .hm_list i { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center;
  background: #e60012; color: #fff; border-radius: 50%; font-size: 11px; margin: 0 2px; font-style: normal; }
.nt-row { display: flex; justify-content: space-between; background: #fff; padding: 10px 12px;
  border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.nt-d { color: #999; }
.empty, .no-data { text-align: center; color: #999; padding: 18px; font-size: 13px; }

/* 房间列表 */
.room-panel { padding: 12px; }
.room-panel a { display: block; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.room-panel img { width: 100%; height: 120px; object-fit: cover; display: block; }
.room-panel .binding { padding: 10px 12px; }
.room-panel .rn { font-weight: 600; margin-right: 8px; }
.room-panel small { color: #999; }
.draw-strip { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; background: #fff;
  margin: 0 12px 10px; padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.draw-strip b { color: #e60012; }
.draw-strip #time i { color: #e60012; font-style: normal; font-weight: 600; }

/* 房间下注 */
.game_box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.game_box a { background: #f7f7f9; border: 1px solid #eee; border-radius: 8px; padding: 10px 0; min-width: 0;
  text-align: center; font-size: 14px; overflow: hidden; }
.game_box a em { display: block; font-style: normal; font-size: 11px; color: #e60012; }
.game_box a.on { background: #fff3f3; border-color: #e60012; color: #e60012; }
.bet-input { display: flex; gap: 8px; }
.bet-input input { flex: 1; height: 40px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; }
.bet-input button { width: 110px; height: 40px; border: 0; border-radius: 8px; background: #e60012;
  color: #fff; font-size: 15px; }
.bet-panel, .haoma-box, .chat_box, .mybet-box { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.bet-panel h5, .haoma-box h5, .chat_box h5, .mybet-box h5 { margin: 0 0 8px; font-size: 14px; }
.tip { font-size: 11px; color: #999; margin: 8px 0 0; }
.haoma-box ul, .chat_box ul, .mybet-box ul { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.haoma-box li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; min-width: 0; }
.haoma-box li > * { min-width: 0; }
.haoma-box li span { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; flex: 1; justify-content: flex-end; overflow: hidden; }
.haoma-box li span i, .hm_list i { width: 19px; height: 19px; line-height: 19px; font-size: 11px; }
.haoma-box em, .mybet-box em { font-style: normal; margin-left: 4px; }
.dxd, .win { color: #e60012; } .dxx, .lose { color: #1a7f45; } .dss { color: #e08a00; } .dsd { color: #2f6fd0; }
.pd { color: #999; }
.chat_box { max-height: 260px; overflow: auto; }
.chat_box li { padding: 4px 0; }
.chat_box .msg { color: #666; }
.chat_box .money { color: #e60012; margin: 0 6px; }
.chat_box li.win { color: #e60012; }

/* 表格/记录 */
.table { background: #fff; margin: 0 12px 12px; border-radius: 10px; overflow: hidden; max-width: calc(100% - 24px); }
.table .hd { display: flex; background: #fafafa; font-size: 12px; color: #888; padding: 8px 10px; }
.table .hd span { flex: 1; min-width: 0; }
.table .list ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 10px;
  border-bottom: 1px solid #f4f4f4; font-size: 12px; }
.table .list ul li { flex: 1; min-width: 0; overflow: hidden; }
.table { font-size: 12px; }
.w50 { width: 50%; } .tl { text-align: left; } .tr { text-align: right; }
.qishu { color: #e60012; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 20px; align-items: center; }
.pager a { min-width: 30px; text-align: center; padding: 5px 8px; background: #fff; border-radius: 6px; font-size: 12px; }
.pager a.on { background: #e60012; color: #fff; }
.pg-info { color: #999; font-size: 12px; margin-left: 6px; }
.search-bar { display: flex; gap: 8px; padding: 12px; }
.search-bar input, .search-bar button { height: 34px; border: 1px solid #ddd; border-radius: 6px; padding: 0 8px; background: #fff; }
.kj-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; }
.kj-tabs a { white-space: nowrap; padding: 5px 10px; background: #fff; border-radius: 14px; font-size: 12px; }
.kj-tabs a.on { background: #e60012; color: #fff; }
.kj-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.kj-g { background: #fff; border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 11px; min-width: 0; overflow: hidden; }
.kj-g img { width: 34px; height: 34px; display: block; margin: 0 auto 4px; }
.kj-g span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 登录/注册 */
#wraplogin, #wrapreg { padding: 20px 16px; }
.Login { background: #fff; border-radius: 12px; padding: 18px; }
.login-header { text-align: center; }
.login-header img { width: 70px; }
.login-header .brand { margin: 4px 0 10px; font-weight: 600; letter-spacing: 2px; }
.content-tab .tab-title { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.content-tab .tab-title .active { color: #e60012; font-weight: 600; }
.content-input .ipt { display: flex; align-items: center; gap: 8px; border: 1px solid #eee;
  border-radius: 8px; padding: 0 10px; margin-bottom: 10px; height: 44px; background: #fafafa; }
.content-input .ipt img { width: 18px; }
.content-input .ipt input { flex: 1; border: 0; background: transparent; height: 42px; outline: none; }
.content-input .ipt img.cap { width: 84px; height: 34px; }
.content-input .btn { width: 100%; height: 44px; border: 0; border-radius: 8px; background: #e60012; color: #fff; font-size: 16px; }
.login-err { background: #fdecec; color: #c0392b; padding: 8px 10px; border-radius: 6px; font-size: 13px; margin-bottom: 10px; }
.tip { text-align: center; color: #999; font-size: 12px; }

/* 会员中心 */
.user-head { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg,#e60012,#b3000e);
  color: #fff; padding: 18px 14px; }
.user-head .avatar { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 4px; }
.user-head .uinfo { flex: 1; }
.user-head .uname { margin: 0; font-size: 16px; font-weight: 600; }
.user-head .uid { margin: 2px 0 0; font-size: 11px; opacity: .85; }
.user-head .umoney { text-align: right; }
.user-head .umoney p { margin: 0; font-size: 11px; opacity: .85; }
.user-head .umoney b { font-size: 20px; }
.user-stat { display: flex; background: #fff; margin: -10px 12px 12px; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); position: relative; z-index: 2; }
.user-stat div { flex: 1; text-align: center; padding: 12px 0; }
.user-stat b { display: block; font-size: 15px; color: #e60012; }
.user-stat span { font-size: 11px; color: #999; }
.cell-group { background: #fff; border-radius: 10px; overflow: hidden; }
.cell { display: flex; justify-content: space-between; padding: 13px 14px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.log-list { background: #fff; border-radius: 10px; padding: 0 12px; }
.lg-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.lg-t { margin-right: 8px; }
.lg-row small { color: #999; display: block; font-size: 11px; }
.lg-row b.up { color: #1a7f45; } .lg-row b.down { color: #e60012; }
.money-card { background: linear-gradient(90deg,#e60012,#b3000e); color: #fff; margin: 12px;
  border-radius: 12px; padding: 18px 16px; }
.money-card p { margin: 0; font-size: 12px; opacity: .85; }
.money-card b { font-size: 26px; }
.money-card .warn { display: block; margin-top: 6px; color: #ffe08a; font-size: 12px; }
.cash-page .content-input { background: #fff; border-radius: 10px; padding: 12px; margin: 0 12px 12px; }
.rule-list { background: #fff; margin: 0 12px; border-radius: 10px; padding: 12px 14px 12px 30px; font-size: 13px; color: #666; }
