* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #F5F6F8; color: #1A1A1A; font-size: 15px; -webkit-tap-highlight-color: transparent; }
#app { min-height: 100vh; }
.wrap { min-height: 100vh; }

/* 登录 */
.login { padding: 80px 32px; text-align: center; }
.login-logo {
  width: 88px; height: 88px; line-height: 88px; margin: 0 auto; border-radius: 22px;
  background: linear-gradient(135deg, #FF9A2E, #FF6A00); color: #FFF; font-size: 44px; font-weight: 700;
}
.login-title { font-size: 22px; font-weight: 700; margin-top: 20px; }
.login-sub { font-size: 13px; color: #999; margin: 8px 0 28px; }

.inp {
  width: 100%; height: 48px; border: 1px solid #E5E5E5; border-radius: 10px;
  padding: 0 16px; font-size: 15px; background: #FFF; margin-bottom: 14px; outline: none;
}
.ta { width: 100%; min-height: 90px; border: 1px solid #E5E5E5; border-radius: 10px; padding: 12px; font-size: 15px; margin: 12px 0; }

.btn-main {
  width: 100%; height: 48px; border: none; border-radius: 10px; margin-top: 8px;
  background: linear-gradient(135deg, #FF9A2E, #FF6A00); color: #FFF; font-size: 16px; font-weight: 600;
}
.btn-danger { width: 100%; height: 48px; border: 1px solid #E82E2E; border-radius: 10px; margin-top: 12px; background: #FFF; color: #E82E2E; font-size: 16px; font-weight: 600; }
.btn-line { height: 40px; padding: 0 16px; border: 1px solid #FF6A00; border-radius: 8px; background: #FFF; color: #FF6A00; font-size: 14px; }
.btn-main:disabled, .btn-line:disabled { opacity: .5; }

/* 页面 */
.page { padding-bottom: 66px; }
.navbar {
  position: sticky; top: 0; z-index: 10; height: 50px; line-height: 50px;
  background: linear-gradient(135deg, #FF9A2E, #FF6A00); color: #FFF; text-align: center; font-size: 17px; font-weight: 600;
}
.nav-back { position: absolute; left: 16px; font-size: 26px; line-height: 50px; }
.nav-title { }
.body { padding: 14px; }

.card { background: #FFF; border-radius: 12px; padding: 14px; margin-bottom: 12px; position: relative; box-shadow: 0 1px 4px rgba(0,0,0,.03); }
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.row { display: flex; padding: 6px 0; font-size: 14px; }
.lb { width: 78px; flex-shrink: 0; color: #999; }
.vl { flex: 1; color: #1A1A1A; word-break: break-all; }
.chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #CCC; font-size: 22px; }

.img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.img-cell { width: calc(33.33% - 6px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

.empty { text-align: center; color: #CCC; padding: 40px 0; font-size: 14px; }

/* 分段筛选 */
.seg { display: flex; background: #FFF; border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.seg-item { flex: 1; text-align: center; height: 36px; line-height: 36px; border-radius: 8px; color: #666; font-size: 14px; }
.seg-item.on { background: linear-gradient(135deg, #FF9A2E, #FF6A00); color: #FFF; font-weight: 600; }

/* AI 预审 */
.precheck { margin-top: 12px; }
.pc-summary { padding: 12px; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.pc-summary.good { background: #F0FAF0; color: #2BA245; }
.pc-summary.bad { background: #FFF3F3; color: #E82E2E; }
.pc-block { margin-top: 10px; }
.pc-label { font-size: 13px; color: #999; margin-bottom: 6px; }
.pc-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 13px; margin: 0 6px 6px 0; }
.bad-tag { background: #FFEBEB; color: #E82E2E; }
.pc-item { font-size: 13px; color: #555; padding: 4px 0; line-height: 1.5; }
.pc-flag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 12px; margin-right: 6px; }
.bad-flag { background: #E82E2E; color: #FFF; }
.warn-flag { background: #FFF3E0; color: #E85D00; }
.pc-msg { }

/* 底部 tab */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 56px; display: flex;
  background: #FFF; border-top: 1px solid #EEE; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-item { flex: 1; text-align: center; line-height: 56px; color: #999; font-size: 13px; }
.tab-item.on { color: #FF6A00; font-weight: 700; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: center; justify-content: center; }
.dlg { width: 84%; background: #FFF; border-radius: 14px; padding: 20px; }
.dlg-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.dlg-btns { display: flex; gap: 12px; margin-top: 6px; }
.dlg-btns .btn-line, .dlg-btns .btn-main { flex: 1; margin-top: 0; height: 44px; }

/* ============ 新版移动后台（顶栏 + 抽屉菜单） ============ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 50px; display: flex; align-items: center;
  background: linear-gradient(135deg, #FF9A2E, #FF6A00); color: #FFF; padding: 0 14px; gap: 12px;
}
.top-menu { font-size: 22px; cursor: pointer; }
.top-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.top-logout { font-size: 13px; color: rgba(255,255,255,.92); cursor: pointer; }

/* 抽屉菜单 */
.drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
.drawer {
  position: fixed; left: 0; top: 0; bottom: 0; width: 78%; max-width: 320px; z-index: 95;
  background: #FFF; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: linear-gradient(135deg, #FF9A2E, #FF6A00); color: #FFF; }
.drawer-logo { width: 42px; height: 42px; line-height: 42px; text-align: center; border-radius: 12px; background: rgba(255,255,255,.2); font-size: 24px; font-weight: 700; }
.drawer-name { font-size: 15px; font-weight: 600; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.menu-group { margin-bottom: 4px; }
.menu-group-name { padding: 14px 18px 6px; font-size: 12px; color: #AAA; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 15px; color: #333; }
.menu-item.active { background: #FFF3E8; color: #FF6A00; font-weight: 600; }
.mi-ico { font-size: 18px; width: 22px; text-align: center; }

/* 返回子导航 */
.sub-nav { margin: -2px 0 10px; }
.back { font-size: 15px; color: #FF6A00; cursor: pointer; }

/* 工具栏 */
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.inp.grow { flex: 1; margin-bottom: 0; }
.inp.sel { width: 100px; margin-bottom: 0; height: 48px; border: 1px solid #E5E5E5; border-radius: 10px; padding: 0 10px; font-size: 14px; background: #FFF; }

/* 等级标签 */
.tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; }
.tag-gold { background: #FFF3D6; color: #C77800; }
.tag-silver { background: #EAF1FB; color: #3A6FD8; }
.tag-normal { background: #F0F1F3; color: #888; }

/* 按钮行 */
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-mini { height: 32px; padding: 0 14px; border: 1px solid #FF6A00; border-radius: 8px; background: #FFF; color: #FF6A00; font-size: 13px; }
.btn-mini.btn-red { border-color: #E82E2E; color: #E82E2E; }
.btn-mini.btn-green { border-color: #2BA245; color: #2BA245; }
.sel-inline { height: 32px; border: 1px solid #FF6A00; border-radius: 8px; font-size: 13px; color: #FF6A00; padding: 0 6px; background: #FFF; }

/* 开关 */
.switch { display: inline-block; width: 46px; height: 26px; border-radius: 13px; background: #DDD; position: relative; cursor: pointer; vertical-align: middle; margin-right: 6px; transition: background .2s; }
.switch i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFF; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: #FF6A00; }
.switch.on i { left: 23px; }

.hint { font-size: 13px; color: #999; margin: -4px 0 12px; padding: 0 4px; }

/* 数据大盘指标卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card { background: #FFF; border-radius: 12px; padding: 20px 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.03); }
.stat-value { font-size: 28px; font-weight: 700; color: #FF6A00; }
.stat-label { font-size: 13px; color: #999; margin-top: 6px; }
