/* ============================================
   Live3 主题 - 页面特定样式
   ============================================ */

/* ============================================
   联赛列表页样式 - League List (liansai_list.htm)
   ============================================ */

.page-header-simple {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-primary) 100%);
  padding: 80px 0 30px;
  border-bottom: 1px solid var(--border-color);
}
.page-header-simple .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.page-header-simple .breadcrumb a { color: var(--text-secondary); }
.page-header-simple .breadcrumb a:hover { color: var(--primary); }
.page-header-simple .page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-content { padding: 30px 0 60px; }

/* 类型切换 */
.type-switcher {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}
.switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}
.switch-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.switch-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* 瀑布流布局 */
.leagues-waterfall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.league-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s;
}
.league-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.league-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.league-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.league-info {
  padding: 15px;
  text-align: center;
}

.league-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.league-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* 分页 */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 20px;
}
.page-btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* ============================================
   联赛详情页样式 - League Show (liansai_show.htm)
   ============================================ */

.league-hero {
  padding: 80px 0 60px;
  color: #fff;
  margin-top: 60px;
}

.breadcrumb-light {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 30px;
  opacity: 0.9;
}
.breadcrumb-light a { color: #fff; }
.breadcrumb-light i { font-size: 12px; }

.league-header-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.league-logo-large {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.league-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.league-meta { flex: 1; }

.league-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.league-type-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  margin-bottom: 15px;
}

.league-desc {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
}
.section-title i {
  font-size: 18px;
  color: var(--primary);
}
.section-title h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 赛程列表 */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 90px 100px 1fr 90px;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}
.schedule-item:hover {
  background: var(--primary-soft);
  transform: translateX(5px);
}

.schedule-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.date-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.date-time {
  font-size: 12px;
  color: var(--text-muted);
}

.schedule-league {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.s-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
}
.s-team.home {
  justify-content: flex-end;
}
.s-team.away {
  justify-content: flex-start;
}
.s-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.s-vs {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.schedule-status {
  text-align: right;
}

.status-indicator {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.status-indicator.live {
  background: var(--accent-green);
  color: #fff;
}
.status-indicator.upcoming {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.status-indicator.ended {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* 相关联赛 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.related-item:hover {
  background: var(--primary-soft);
}

.related-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.related-item span {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.3;
}
.empty-state-small {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}

/* ============================================
   移动端导航优化 - Mobile Navigation
   ============================================ */

@media (max-width: 768px) {
  /* 头部导航优化 */
  .site-header {
    padding: 0 15px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
  .header-inner {
    height: 60px;
  }
  
  /* Logo优化 */
  .brand {
    gap: 10px;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }
  .brand-text {
    font-size: 17px;
    font-weight: 700;
  }
  
  /* 移动端菜单按钮 */
  .mobile-menu-btn {
    display: flex !important;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
    transition: all 0.3s;
    cursor: pointer;
  }
  
  .mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  }
  
  .mobile-menu-btn:active {
    transform: scale(0.95);
  }
  
  .mobile-menu-btn i {
    font-size: 18px;
    color: #fff;
  }
  
  /* 遮罩层 */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(3px);
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* 主导航改为侧边栏 */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 400px;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 0;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 8px 0 30px rgba(0,0,0,0.12);
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  /* 侧边栏头部 */
  .main-nav::before {
    content: '菜单';
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-green) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
  }
  
  /* 导航项优化 */
  .nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 0;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
    position: relative;
  }
  
  .nav-item:last-of-type {
    border-bottom: none;
  }
  
  .nav-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 25px;
  }
  
  .nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
  }
  
  .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
  }
  
  /* 下拉菜单 */
  .nav-item.has-dropdown {
    padding-right: 50px;
  }
  
  .nav-item.has-dropdown::after {
    content: '\f107';
    font-family: 'FontAwesome';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: transform 0.25s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }
  
  .nav-item.has-dropdown.active::after {
    transform: translateY(-50%) rotate(180deg);
    background: var(--primary-soft);
    color: var(--primary);
  }
  
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--bg-tertiary);
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
  }
  
  .nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 14px 20px 14px 45px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
  }
  
  .nav-dropdown a:last-child {
    border-bottom: none;
  }
  
  .nav-dropdown a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.2s;
  }
  
  .nav-dropdown a:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 50px;
  }
  
  .nav-dropdown a:hover::before {
    background: var(--primary);
    transform: scale(1.2);
  }
  
  .nav-dropdown a.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
  }
  
  .nav-dropdown a.active::before {
    background: var(--primary);
  }
  
  .nav-item.has-dropdown.active .nav-dropdown {
    display: block;
    animation: slideDown 0.25s ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 500px;
    }
  }
  
  /* 联赛列表页响应式 */
  .leagues-waterfall {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .type-switcher {
    flex-direction: column;
    gap: 10px;
  }
  
  .switch-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* 联赛详情页响应式 */
  .league-header-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .league-logo-large {
    width: 80px;
    height: 80px;
  }
  
  .league-title {
    font-size: 24px;
  }
  
  .content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .schedule-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }
  
  .schedule-league {
    width: fit-content;
    margin: 0 auto;
  }
  
  .schedule-teams {
    gap: 15px;
  }
  
  .s-team.home,
  .s-team.away {
    justify-content: center;
  }
  
  .schedule-status {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 14px;
  }
  
  .nav-item {
    font-size: 14px;
    padding: 10px 14px;
  }
  
  .main-nav {
    width: 240px;
  }
  
  .leagues-waterfall {
    grid-template-columns: 1fr;
  }
}
