/* CG包网 首页 — 玻璃拟态 + 低饱和暖色 */

.app-shell {
  position: relative;
  min-height: 100%;
  padding: 12px 14px 20px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
    var(--color-bg-page);
}

/* ── 顶部区域 ── */
.cg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cg-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cg-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--brand-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.cg-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.cg-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cg-btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--color-border-glass);
  border-radius: 999px;
  background: var(--color-bg-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  color: var(--color-text-primary);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.cg-btn-glass i {
  font-size: 12px;
  color: var(--color-accent);
}

.cg-btn-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-glass);
  background: var(--color-bg-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.cg-btn-icon .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 1.5px solid #fff;
}

/* ── 轮播图 ── */
.cg-banner {
  position: relative;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.cg-banner-track {
  display: flex;
  transition: transform 0.35s ease;
}

.cg-banner-slide {
  flex: 0 0 100%;
  height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.cg-banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.cg-banner-slide--1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ea580c 100%);
}

.cg-banner-slide--2 {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 60%, #d97706 100%);
}

.cg-banner-slide--3 {
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 50%, #f97316 100%);
}

.cg-banner-slide--4 {
  background: linear-gradient(135deg, #fde68a 0%, #f97316 40%, #c2410c 100%);
}

.cg-banner-label {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.cg-banner-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cg-banner-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 3;
}

.cg-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

.cg-banner-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

/* ── 跑马灯 ── */
.cg-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--color-border-glass);
  box-shadow: var(--shadow-soft);
}

.cg-marquee-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 13px;
}

.cg-marquee-text {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── 个人信息区域 ── */
.cg-user-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-glass-strong);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--color-border-glass);
  box-shadow: var(--shadow-glass);
}

.cg-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cg-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e4dc 0%, #d4cfc5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.cg-user-info h3 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.cg-user-info p {
  margin: 0;
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 600;
}

.cg-user-actions {
  display: flex;
  gap: 6px;
}

.cg-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 44px;
  cursor: pointer;
}

.cg-action-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 15px;
  box-shadow: var(--shadow-soft);
}

.cg-action-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ── 游戏入口 Tab ── */
.cg-game-section {
  border-radius: var(--radius-xl);
  background: var(--color-bg-glass-strong);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--color-border-glass);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.cg-game-tabs {
  display: flex;
  padding: 6px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid var(--color-border-glass);
}

.cg-game-tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
}

.cg-game-tab.active {
  background: var(--color-bg-glass-strong);
  color: var(--color-accent);
  box-shadow: var(--shadow-soft);
}

.cg-game-panels {
  padding: 14px;
}

.cg-game-panel {
  display: none;
}

.cg-game-panel.active {
  display: block;
}

.cg-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cg-game-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.cg-game-card-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: 0.15;
}

.cg-game-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
}

.cg-game-card-content h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.cg-game-card-content p {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.cg-game-card--lottery { background: linear-gradient(135deg, #fb923c, #ea580c); }
.cg-game-card--sports { background: linear-gradient(135deg, #fbbf24, #d97706); }
.cg-game-card--slots { background: linear-gradient(135deg, #fdba74, #f97316); }
.cg-game-card--live { background: linear-gradient(135deg, #fcd34d, #ea580c); }
.cg-game-card--chess { background: linear-gradient(135deg, #fde68a, #f59e0b); }

.cg-game-card--lottery .cg-game-card-bg i { color: #fff; }
.cg-game-card--sports .cg-game-card-bg i { color: #fff; }
.cg-game-card--slots .cg-game-card-bg i { color: #fff; }
.cg-game-card--live .cg-game-card-bg i { color: #fff; }
.cg-game-card--chess .cg-game-card-bg i { color: #fff; }
