/* == css/app/page-mobile.css · 由 css/style.css L706-870 原样拆分，规则与顺序未动 == */
/* ============================================================
   移动端首页（390）
   ============================================================ */
.tk-list.is-loading,
.t-card-list.is-loading {
  opacity: .55;
  pointer-events: none;
}
.mobile-body { background: var(--fill); }
.phone {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}
.status-bar {
  height: 62px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}
.status-bar .time { font-size: 15px; font-weight: 600; font-family: -apple-system, var(--font); }
.mobile-wrap {
  flex: 1;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 16px;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 幻灯片（后台自定义：文字卡/图片卡；轨道横向滑动 + 自动轮播） */
.slide-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-card);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slide-track::-webkit-scrollbar { display: none; }
.slide-track .slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: center;
  box-sizing: border-box;
}
.slide-track .slide + .slide { border-left: 1px solid rgba(0, 0, 0, 0.04); }
.slide-img { padding: 0; overflow: hidden; background: var(--fill); }
.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide {
  height: 170px;
  border-radius: var(--radius-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  text-decoration: none;
  color: inherit;
}
.slide-badge {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  font-family: -apple-system, var(--font);
}
.slide-title { margin-top: 4px; font-size: 19px; font-weight: 700; }
.slide-sub { font-size: 12px; color: var(--gray-1); }
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: -8px;
}
.slide-dots i {
  width: 6px; height: 6px; border-radius: 3px;
  background: #d4d4d8;
  cursor: pointer;
  transition: all 0.2s;
}
.slide-dots i.active { width: 16px; background: var(--blue); }

/* 快捷操作（后台自定义，最多 5 个：3 列网格自动换行；4 个时用 2×2 更均衡） */
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-row.qr-4 { grid-template-columns: repeat(2, 1fr); }
.quick-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.quick-item:hover { box-shadow: var(--shadow-float); }
.quick-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.quick-icon.blue { background: var(--blue-50); }
.quick-icon.gray { background: var(--fill); }

/* 区块标题行 */
.m-head { display: flex; align-items: center; justify-content: space-between; }
.m-head h2 { font-size: 16px; font-weight: 600; }
.m-head a { font-size: 12px; color: var(--blue); }

.m-ticket-list {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
}
.m-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.m-ticket + .m-ticket { border-top: 1px solid #f1f1f4; }
.m-ticket .t { font-size: 13px; color: var(--black); }
.m-ticket .meta { margin-top: 4px; font-size: 11px; color: var(--gray-3); }
.m-ticket .tag { padding: 3px 9px; font-size: 11px; flex: none; }

.news-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
}
.news-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 13px; color: var(--gray-1); }
.news-item + .news-item { border-top: 1px solid #f1f1f4; }
.news-item::before {
  content: "";
  width: 6px; height: 6px; border-radius: 3px;
  background: var(--blue);
  flex: none;
}
.news-item.muted::before { background: #d4d4d8; }

/* 最新动态（无卡片圆点列表，设计稿 3:282） */
.m-news { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.m-news .news-item { padding: 0; align-items: flex-start; line-height: 1.5; }
.m-news .news-item::before { margin-top: 6px; }
.m-news .news-item + .news-item { border-top: none; }

/* 区块标题与内容间距（设计稿：标题行下约 12px 接列表） */
#mMine .m-ticket-list, #mFeed .m-news { margin-top: 12px; }

/* 未登录时的工单引导行 */
.m-ticket-login {
  color: var(--gray-2);
  text-decoration: none;
  justify-content: flex-start;
}

/* 底部 Tab 栏 */
.tab-bar {
  position: sticky;
  bottom: 0;
  padding: 12px 21px 21px;
  background: #fff;
  flex: none;
}
.tab-pill {
  display: flex;
  height: 62px;
  border: 1px solid var(--border-light);
  border-radius: 36px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 8px 24px -4px rgba(23, 23, 28, 0.06);
}
.tab-item {
  flex: 1;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-3);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-item.active { background: var(--black); color: #fff; }
