* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei";
  background: #f5f6fa;
  color: #333;
}

/* 顶部 */
.top-bar {
  background: #b91c1c;
  color: #fff;
  padding: 12px 16px;
}

.user {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #b91c1c;
  font-weight: bold;
  text-align: center;
  line-height: 36px;
  margin-right: 10px;
}

.hello {
  font-size: 15px;
}

.search {
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
}

/* 工作台 */
.workbench {
  padding: 12px;
  padding-bottom: 80px;
}

.group {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.group-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* 九宫格 */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.red { background: #fee2e2; }
.blue { background: #dbeafe; }
.green { background: #dcfce7; }
.orange { background: #ffedd5; }
.purple { background: #f3e8ff; }

.name {
  font-size: 12px;
  text-align: center;
}

/* 底部 Tab */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
}

.tab {
  flex: 1;
  text-align: center;
  line-height: 56px;
  font-size: 14px;
  color: #666;
}

.tab.active {
  color: #b91c1c;
  font-weight: bold;
}