* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', sans-serif; background: #f0f2f5; min-height: 100vh; }

#app { padding-bottom: 60px; }
.page { display: none; min-height: calc(100vh - 60px); }
.page.active { display: block; }

#tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 56px;
  background: #fff; border-top: 1px solid #e8e8e8;
  display: flex; z-index: 100;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: #999; font-size: 11px; transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.tab .tab-icon { font-size: 22px; margin-bottom: 2px; }
.tab.active { color: #2979ff; }

.section { padding: 16px; }
.section-title { font-size: 18px; font-weight: bold; margin-bottom: 12px; color: #333; }

.card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card-title { font-size: 16px; font-weight: bold; color: #333; }
.card-desc { font-size: 13px; color: #999; margin-top: 4px; }

.game-card {
  background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex; align-items: center; cursor: pointer; transition: transform 0.2s;
}
.game-card:active { transform: scale(0.98); }
.game-card .game-icon {
  width: 60px; height: 60px; border-radius: 12px; margin-right: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: linear-gradient(135deg, #2979ff, #448aff);
}
.game-card .game-info { flex: 1; }
.game-card .game-name { font-size: 16px; font-weight: bold; color: #333; }
.game-card .game-desc { font-size: 13px; color: #999; margin-top: 4px; }
.game-card .game-arrow { color: #ccc; font-size: 18px; }

.banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px; padding: 24px 16px; color: #fff; margin-bottom: 16px;
}
.banner h2 { font-size: 22px; margin-bottom: 6px; }
.banner p { font-size: 14px; opacity: 0.85; }

.btn-primary {
  display: inline-block; padding: 10px 24px; border-radius: 20px; border: none;
  background: linear-gradient(135deg, #2979ff, #448aff); color: #fff;
  font-size: 14px; font-weight: bold; cursor: pointer; text-decoration: none;
}
.btn-primary:active { opacity: 0.8; }

.empty-state { text-align: center; padding: 60px 20px; color: #999; font-size: 14px; }

.profile-header {
  background: linear-gradient(135deg, #2979ff, #448aff);
  padding: 32px 16px; color: #fff; text-align: center;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.25);
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.profile-name { font-size: 18px; font-weight: bold; }

.stat-row { display: flex; text-align: center; margin-top: 16px; }
.stat-item { flex: 1; }
.stat-value { font-size: 22px; font-weight: bold; }
.stat-label { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.menu-item {
  display: flex; align-items: center; padding: 14px 16px; background: #fff;
  border-bottom: 1px solid #f0f0f0; cursor: pointer;
}
.menu-item .menu-icon { margin-right: 12px; font-size: 20px; }
.menu-item .menu-text { flex: 1; font-size: 15px; color: #333; }
.menu-item .menu-arrow { color: #ccc; font-size: 14px; }
