/* ============================================
   手机游戏网 — 首页样式
   ============================================ */

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-16) var(--sp-6);
  overflow: hidden;
}

.hero-swiper {
  position: relative;
}

.hero-swiper-container {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  overflow: hidden;
}

.hero-pagination {
  position: absolute;
  bottom: var(--sp-8) !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: center;
  gap: var(--sp-2);
  z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: rgba(240, 235, 227, 0.25);
  opacity: 1;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--c-accent);
  width: 48px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) contrast(1.1);
  transition: transform 8s var(--ease-out);
}

.hero:hover .hero-bg {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--c-base) 0%, rgba(19, 17, 15, 0.7) 40%, rgba(19, 17, 15, 0.2) 100%);
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-bottom: var(--sp-8);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.hero-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--c-accent);
}

.hero-title {
  font-family: var(--f-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text-1);
  max-width: 800px;
  margin-bottom: var(--sp-4);
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--c-text-2);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: var(--sp-8);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}

/* --- Ticker --- */
.ticker {
  background: var(--c-surface-1);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-3) 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  gap: var(--sp-12);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--f-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-2);
  letter-spacing: 0.02em;
}

.ticker-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

.stat-card {
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--duration) var(--ease-out);
}

.stat-card:hover {
  border-color: var(--c-border-accent);
}

.stat-value {
  font-family: var(--f-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Download Card --- */
.dl-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--c-surface-1);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: all var(--duration) var(--ease-out);
}

.dl-card:hover {
  border-color: var(--c-border-accent);
  transform: translateX(4px);
}

.dl-main {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-5);
  align-items: center;
  min-width: 0;
}

.dl-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--r-md);
  background: var(--c-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.dl-info {
  min-width: 0;
}

.dl-title {
  margin-bottom: var(--sp-1);
  font-family: var(--f-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-text-1);
}

.dl-meta {
  font-size: var(--text-xs);
  color: var(--c-text-3);
  display: flex;
  gap: var(--sp-3);
}

.dl-btn {
  font-family: var(--f-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-accent);
  color: var(--c-base);
  border-radius: var(--r-sm);
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.dl-btn:hover {
  background: #e6ff4d;
  box-shadow: 0 0 20px var(--c-accent-glow);
}

/* --- Footer Overrides (homepage-specific) --- */
.footer {
}

.footer-grid {
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: var(--sp-12);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  padding: var(--sp-1) 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--sp-6);
    row-gap: var(--sp-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col-title {
    margin-bottom: var(--sp-2);
    font-size: var(--text-sm);
  }

  .footer-col a {
    margin-top: var(--sp-2);
    padding: 0;
    font-size: var(--text-sm);
    line-height: 1.4;
  }

  .dl-card {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    padding: var(--sp-4);
  }

  .dl-main {
    grid-template-columns: 56px 1fr;
    gap: var(--sp-4);
  }

  .dl-icon {
    width: 56px;
    height: 56px;
  }

  .dl-title {
    font-size: var(--text-base);
  }

  .dl-meta {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .dl-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- 列表空状态 --- */
.empty-state-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) 0;
}

.empty-state-list__img {
  width: 120px;
  height: auto;
  margin-bottom: var(--sp-4);
  opacity: 0.6;
}

.empty-state-list__text {
  font-size: var(--text-sm);
  color: var(--c-text-3);
  line-height: 1.5;
}
