/* SafeX Insight App H5：手机壳 + Tab Bar + App 组件（配合 app.css 使用）
   视觉基准：设计师截图（浅粉底 #fdf5f8 / 白卡 / 玫红 #c05b7f / 蓝紫 #596aa3 / 深海军蓝文字 #17253b） */
body {
  background: linear-gradient(150deg, #f9dfe9, #f6d9e6 50%, #f2dbe9);
}
.phone-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fdf5f8;
  box-shadow: 0 0 46px rgba(192, 91, 127, .22);
  overflow: hidden;
}
@media (max-width: 460px) {
  .phone-shell { box-shadow: none; }
}
.has-tab { padding-bottom: 84px; }

/* 底部 Tab Bar：白底 + 玫红高亮（设计稿：图标线性、未选中深灰蓝） */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  display: flex;
  background: #fff;
  border-top: 1px solid #f3e3ec;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0));
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: #43485a;
  font-size: 10.5px;
  font-weight: 600;
}
.tabbar a.on { color: #c05b7f; }
.tabbar a .ti { display: block; line-height: 0; }

/* 二级页 App Bar（白圆返回键 + 深海军蓝粗标题） */
.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  background: transparent;
}
.appbar .ab-back {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff;
  box-shadow: 0 3px 10px rgba(192, 91, 127, .12);
  text-decoration: none;
}
.appbar .ab-title { font-size: 17px; font-weight: 800; color: #17253b; letter-spacing: .3px; }
.appbar .ab-title .em { color: #c05b7f; }
.appbar .ab-right { margin-left: auto; font-size: 13px; color: #9aa1ad; }

/* App 通用组件 */
.m-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(192, 91, 127, .07);
  padding: 16px;
}
.m-card + .m-card { margin-top: 12px; }
.m-title {
  font-size: 15.5px; font-weight: 800; margin: 0 0 12px; color: #17253b;
  display: flex; align-items: center; gap: 7px;
}
.m-title::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #c05b7f, #e8a0bf);
}
/* 主按钮：设计稿青绿→玫粉渐变 */
.m-btn {
  display: block; width: 100%; padding: 14px; border-radius: 999px;
  text-align: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 2px;
  background: linear-gradient(90deg, #4cc6e8, #34beb5 45%, #e18cb1);
  box-shadow: 0 10px 22px rgba(82, 190, 190, .35);
  text-decoration: none; border: 0;
}
.m-btn.pink {
  background: linear-gradient(90deg, #c05b7f, #d97a9e);
  box-shadow: 0 10px 22px rgba(192, 91, 127, .3);
}
.m-btn.ghost {
  background: #fff; color: #17253b; letter-spacing: 2px;
  border: 1px solid #eee0e8; box-shadow: 0 6px 16px rgba(192, 91, 127, .08);
}
.m-btn.sm { padding: 10px; font-size: 13px; letter-spacing: 0; }
.m-row { display: flex; gap: 10px; }
.m-row > * { flex: 1; }
.m-page { padding: 6px 16px 32px; }
.m-chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 12.5px;
  background: #fff; border: 1px solid #eee0e8; color: #6b7183; cursor: pointer;
}
.m-chip.on {
  background: linear-gradient(90deg, #4cc6e8, #34beb5);
  color: #fff; border-color: transparent;
}
.m-chip.pink.on { background: linear-gradient(90deg, #c05b7f, #d97a9e); }
