/* ==================== 2026年微信小程序 UI 精美改版样式 ==================== */

/* 头部 Header */
.mini-home-header {
  background: linear-gradient(180deg, #090d16 0%, #111827 100%);
  padding: 52px 16px 36px 16px;
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.mini-home-header::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border: 1.5px solid rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.mini-home-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.mini-home-title-area {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.mini-home-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.mini-home-title-line {
  width: 18px;
  height: 3px;
  background: #10b981;
  margin-top: 6px;
  border-radius: 1.5px;
}

.mini-home-slogan-area {
  position: relative;
  z-index: 2;
}

.mini-home-slogan {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mini-home-slogan strong {
  color: #10b981;
}

.mini-home-sub-slogan {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* 首页 Bento 导航网格 */
.mini-home-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -20px 14px 12px 14px;
  position: relative;
  z-index: 3;
}

.mini-home-nav-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(241, 245, 249, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-home-nav-item:active {
  transform: scale(0.96);
  background: #fafafa;
}

.mini-home-nav-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
}

.mini-home-nav-item.nav-signup .mini-home-nav-icon-wrap {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.mini-home-nav-item.nav-results .mini-home-nav-icon-wrap {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.mini-home-nav-item.nav-profile .mini-home-nav-icon-wrap {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
}

.mini-home-nav-text {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.mini-home-nav-desc {
  font-size: 7.5px;
  color: #94a3b8;
  white-space: nowrap;
}

/* 首页 Banner */
.mini-home-join-banner {
  background: #000000;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 2px 14px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.mini-home-join-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(16, 185, 129, 0.2) 0%, transparent 80%);
  pointer-events: none;
}

.mini-home-join-text h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.mini-home-join-text p {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.mini-home-join-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

/* 赛事板块 */
.mini-race-header {
  background: #ffffff;
  padding: 48px 16px 8px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.mini-race-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.mini-race-tabs {
  display: flex;
  gap: 20px;
}

.mini-race-tab {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  padding-bottom: 6px;
  position: relative;
  cursor: pointer;
}

.mini-race-tab.active {
  color: #10b981;
  font-weight: 700;
}

.mini-race-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #10b981;
  border-radius: 1.5px;
}

/* 赛事卡片布局 */
.mini-event-row-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
  border: 1px solid rgba(241, 245, 249, 0.8);
  position: relative;
  transition: all 0.2s ease;
}

.mini-event-thumbnail-wrap {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 26px;
}

.mini-event-thumbnail-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 7.5px;
  font-weight: 700;
  padding: 1.5px 4.5px;
  border-radius: 4px;
  color: #ffffff;
}

.mini-event-thumbnail-badge.status-signup {
  background: #10b981;
}

.mini-event-thumbnail-badge.status-playing {
  background: #2563eb;
}

.mini-event-thumbnail-badge.status-ended {
  background: #64748b;
}

.mini-event-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.mini-event-title-text {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-event-meta-text {
  font-size: 8px;
  color: #64748b;
  line-height: 1.4;
}

.mini-event-meta-text i {
  width: 10px;
  margin-right: 2px;
  text-align: center;
}

.mini-event-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.mini-event-registered-count {
  font-size: 8.5px;
  color: #94a3b8;
  font-weight: 500;
}

.btn-mini-event-action {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-mini-event-action.action-signup {
  background: #10b981;
  color: #ffffff;
}

.btn-mini-event-action.action-signup:hover {
  background: #059669;
}

.btn-mini-event-action.action-view-results {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.btn-mini-event-action.action-view-results:hover {
  background: rgba(37, 99, 235, 0.15);
}

.btn-mini-event-action.action-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  cursor: not-allowed;
}

/* 我的板块 */
.mini-mine-header {
  background: linear-gradient(180deg, #090d16 0%, #111827 100%);
  padding: 52px 16px 40px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.mini-mine-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.mini-mine-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.mini-mine-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.mini-mine-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.mini-mine-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.mini-mine-level-badge {
  font-size: 7.5px;
  font-weight: 700;
  background: #10b981;
  color: #000000;
  padding: 1px 4.5px;
  border-radius: 4px;
}

.mini-mine-id-text {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.mini-mine-settings-cog {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.2s;
}

.mini-mine-settings-cog:hover {
  color: #ffffff;
}

/* 我的成绩面板 */
.mini-mine-results-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-top: 6px;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.mini-mine-results-item {
  display: flex;
  flex-direction: column;
}

.mini-mine-results-number {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.mini-mine-results-label {
  font-size: 8px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 列表选项组件 */
.mini-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.2s;
}

.mini-list-item:last-child {
  border-bottom: none;
}

.mini-list-item:active {
  background: #f8fafc;
}

.mini-list-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.mini-list-item-left i {
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.mini-list-item-right {
  font-size: 10px;
  color: #cbd5e1;
}
