/* 福顺虎 666 移动端全局样式 */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f5f1ea;
  color: #3d2b1f;
  font-size: 14px;
  padding-bottom: 58px; /* tabbar */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* 顶栏 */
.hd {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #b8431e, #d9743f);
  color: #fff;
}
.hd .back { font-size: 20px; color: #fff; background: none; border: 0; }
.hd .ht { font-size: 16px; font-weight: 700; flex: 1; }
.hd .hop { background: rgba(255,255,255,.2); border: 0; color: #fff; border-radius: 14px; padding: 5px 12px; font-size: 12px; }

/* 卡片 */
.card {
  background: #fff; border-radius: 12px; margin: 10px 12px;
  box-shadow: 0 1px 4px rgba(120,90,60,.06); overflow: hidden;
}
.card .ct {
  font-weight: 700; font-size: 14px; color: #6b4a2f;
  padding: 11px 13px; border-bottom: 1px solid #f3ecdf;
  display: flex; align-items: center; justify-content: space-between;
}
.card .ct small { font-weight: 400; color: #a08d7c; }

/* 统计卡条 */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 12px; }
.stat {
  flex: 1; min-width: 30%;
  background: linear-gradient(180deg,#fffdf9,#fdf6ee);
  border: 1px solid #f3e7d3; border-radius: 12px;
  padding: 10px 8px; text-align: center;
}
.stat .sv { font-size: 19px; font-weight: 700; color: #b8431e; line-height: 1.2; }
.stat .sl { font-size: 11px; color: #a08d7c; margin-top: 3px; }

/* 列表行 */
.row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; border-bottom: 1px solid #f5efe4;
}
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .rt { font-weight: 600; }
.row .rs { font-size: 12px; color: #a08d7c; margin-top: 2px; }
.row .rv { font-weight: 700; color: #b8431e; flex-shrink: 0; }

/* 标签 */
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 8px; background: #f3ece2; color: #7a6653; margin-right: 4px; }
.tag.warn { background: #fdeee0; color: #c96a1e; }
.tag.ok { background: #e7f3ec; color: #3f8f6b; }
.tag.bad { background: #fdeaea; color: #d9534f; }
.tag.pri { background: #fdeee0; color: #b8431e; }

/* 按钮 */
.btn {
  display: block; width: 100%; border: 0; border-radius: 22px;
  background: linear-gradient(135deg,#b8431e,#d9743f); color: #fff;
  font-size: 15px; font-weight: 700; padding: 11px 0; margin-top: 14px;
}
.btn:disabled { opacity: .55; }
.btn.plain { background: #fff; color: #b8431e; border: 1px solid #e8c8b2; }
.btn.sm { width: auto; padding: 6px 14px; font-size: 12px; margin: 0; border-radius: 14px; }
.btns { display: flex; gap: 8px; padding: 10px 13px; }
.btns .btn { margin-top: 0; flex: 1; }

/* 表单 */
.fi { padding: 10px 13px; border-bottom: 1px solid #f5efe4; }
.fi label { display: block; font-size: 12px; color: #a08d7c; margin-bottom: 5px; }
.fi input, .fi select, .fi textarea {
  width: 100%; border: 1px solid #e8ddcc; border-radius: 9px;
  padding: 9px 10px; font-size: 14px; background: #fffdf9; color: #3d2b1f;
}
.fi input:focus, .fi select:focus, .fi textarea:focus { outline: none; border-color: #d9743f; }
.fi2 { display: flex; gap: 10px; } .fi2 .fi { flex: 1; }

/* tabs（页面顶部分段） */
.segs { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; background: #fff; position: sticky; top: 46px; z-index: 15; }
.segs span {
  flex: 0 0 auto; font-size: 13px; padding: 6px 14px;
  border-radius: 16px; background: #f3ece2; color: #7a6653;
}
.segs span.on { background: #b8431e; color: #fff; font-weight: 600; }

/* 底部导航 */
.m66-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: #fff; border-top: 1px solid #eee2d2;
  padding-bottom: env(safe-area-inset-bottom);
}
.m66-tabbar a { flex: 1; text-align: center; padding: 7px 0 6px; font-size: 10px; color: #a08d7c; }
.m66-tabbar a i { display: block; font-style: normal; font-size: 19px; line-height: 1.2; }
.m66-tabbar a.on { color: #b8431e; font-weight: 700; }

/* toast */
.m66-toast {
  display: none; position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(40,26,18,.92); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 18px; z-index: 99; max-width: 80vw;
}
.m66-toast.bad { background: rgba(160,40,20,.95); }

/* 空态/加载 */
.empty { text-align: center; color: #b3a292; font-size: 13px; padding: 44px 0; }
.loading { text-align: center; color: #b3a292; font-size: 12px; padding: 20px 0; }

/* 会员卡 */
.mcard {
  margin: 12px; border-radius: 16px; padding: 18px 16px;
  background: linear-gradient(135deg,#7a2c12,#b8431e 55%,#d9743f);
  color: #fff; box-shadow: 0 6px 18px rgba(184,67,30,.28);
}
.mcard .brand { font-size: 11px; opacity: .85; letter-spacing: 1px; }
.mcard .cno { font-size: 17px; font-weight: 700; font-family: ui-monospace, monospace; letter-spacing: 1px; margin-top: 4px; }
.mcard .lv { float: right; font-size: 11px; background: rgba(255,255,255,.22); border-radius: 10px; padding: 2px 9px; }
.mcard .bal { display: flex; gap: 22px; margin-top: 14px; }
.mcard .bal b { font-size: 21px; display: block; }
.mcard .bal span { font-size: 11px; opacity: .85; }

/* 登录页 */
.login-wrap { max-width: 400px; margin: 0 auto; padding: 0 22px; }
.login-logo { text-align: center; padding: 46px 0 20px; }
.login-logo .lg {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px;
  background: linear-gradient(135deg,#b8431e,#d9743f);
  color: #fff; font-size: 30px; font-weight: 800; line-height: 64px;
}
.login-logo h1 { font-size: 19px; color: #3d2b1f; }
.login-logo p { font-size: 12px; color: #a08d7c; margin-top: 5px; }
.login-box { background: #fff; border-radius: 16px; padding: 18px 16px 20px; box-shadow: 0 4px 18px rgba(120,90,60,.08); }
.cap-row { display: flex; gap: 8px; align-items: center; }
.cap-row img { height: 40px; border-radius: 8px; border: 1px solid #e8ddcc; cursor: pointer; }
