/* ========================================
   乐鱼体育 - 响应式样式表
   Mobile-First策略
   ======================================== */

/* --- lg: ≥ 1024px (默认桌面样式已在主样式表中) --- */

/* --- md: 768px - 1023px (平板) --- */
@media (max-width: 1023px) {
  .ly-nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--ly-bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--ly-shadow);
    gap: 0;
  }

  .ly-nav-links.ly-nav-open {
    display: flex;
  }

  .ly-nav-links li a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(92,115,105,0.1);
    width: 100%;
  }

  .ly-menu-toggle {
    display: flex;
  }

  .ly-hero-content h1 {
    font-size: 2.2rem;
  }

  .ly-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ly-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ly-ranking-layout {
    flex-direction: column;
  }

  .ly-ranking-left {
    flex: auto;
    width: 100%;
  }

  .ly-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ly-betting-layout {
    grid-template-columns: 1fr;
  }

  .ly-filter-panel {
    display: none;
  }

  .ly-bet-slip {
    position: static;
  }

  .ly-app-layout {
    flex-direction: column;
    text-align: center;
  }

  .ly-app-preview {
    flex: auto;
    max-width: 300px;
  }

  .ly-page-banner {
    height: 250px;
  }

  .ly-page-banner-content h1 {
    font-size: 2rem;
  }

  .ly-match-row {
    grid-template-columns: 80px 1fr 150px;
  }

  .ly-match-league {
    display: none;
  }
}

/* --- sm: 640px - 767px (手机横屏) --- */
@media (max-width: 767px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }

  .ly-section {
    padding: 50px 0;
  }

  .ly-hero {
    min-height: 500px;
  }

  .ly-hero-content h1 {
    font-size: 1.8rem;
  }

  .ly-hero-content p {
    font-size: 1rem;
  }

  .ly-hero-events {
    flex-direction: column;
    align-items: center;
  }

  .ly-grid-4,
  .ly-grid-3 {
    grid-template-columns: 1fr;
  }

  .ly-grid-2 {
    grid-template-columns: 1fr;
  }

  .ly-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ly-app-features {
    grid-template-columns: 1fr;
  }

  .ly-download-btns {
    flex-direction: column;
  }

  .ly-ranking-table {
    font-size: 0.85rem;
  }

  .ly-ranking-table th,
  .ly-ranking-table td {
    padding: 10px 8px;
  }

  .ly-match-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ly-match-odds-inline {
    justify-content: flex-start;
  }

  .ly-partner-logos {
    gap: 15px;
  }

  .ly-trust-badges {
    flex-direction: column;
    align-items: center;
  }

  .ly-page-banner {
    height: 200px;
  }

  .ly-page-banner-content h1 {
    font-size: 1.6rem;
  }
}

/* --- xs: < 640px (手机竖屏) --- */
@media (max-width: 639px) {
  .ly-container {
    padding: 0 15px;
  }

  .ly-hero-content h1 {
    font-size: 1.5rem;
  }

  .ly-hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .ly-btn-primary,
  .ly-btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .ly-section-title {
    margin-bottom: 30px;
  }

  .ly-hero-event-item {
    width: 100%;
    max-width: 280px;
  }

  .ly-back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}
