/* 联赛资料详情页样式 */
:root {
  --md-primary-color: #ff4081;
  --md-secondary-color: #5FB878;
  --md-text-color: #333;
  --md-text-light: #666;
  --md-text-muted: #999;
  --md-border-color: #eee;
  --md-bg-light: #f8f9fa;
  --md-bg-lighter: #fafafa;
  --md-box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  --md-box-shadow-hover: 0 5px 15px rgba(0,0,0,0.1);
  --md-border-radius: 10px;
  --md-transition: all 0.3s ease;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
/* 容器样式 */
.competition-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--md-text-light);
  margin-bottom: 20px;
  background: white;
  padding: 12px 20px;
  border-radius: var(--md-border-radius);
  box-shadow: var(--md-box-shadow);
}

.breadcrumb a {
  color: var(--md-text-light);
  text-decoration: none;
  transition: var(--md-transition);
  display: flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--md-primary-color);
}

.breadcrumb i {
  margin-right: 5px;
  font-size: 16px;
}

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* 赛事头部信息 */
.competition-header {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--md-border-radius);
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--md-box-shadow);
}

.competition-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  background: var(--md-bg-lighter);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--md-border-color);
}

.competition-logo img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.competition-info {
  flex: 1;
}

.competition-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--md-text-color);
  margin: 0 0 5px 0;
}

.competition-name-en {
  font-size: 16px;
  color: var(--md-text-light);
  margin-bottom: 15px;
  font-style: italic;
}

.competition-stats {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--md-bg-light);
  border-radius: 8px;
  min-width: 100px;
}

.stat-icon {
  color: var(--md-primary-color);
  font-size: 18px;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--md-text-color);
}

.stat-label {
  font-size: 13px;
  color: var(--md-text-muted);
  margin-top: 3px;
}

/* 选项卡样式 */
.tabs-container {
  background: white;
  border-radius: var(--md-border-radius);
  overflow: hidden;
  box-shadow: var(--md-box-shadow);
}

.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--md-border-color);
  background-color: var(--md-bg-lighter);
}

.tab-item {
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--md-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--md-transition);
  border-bottom: 3px solid transparent;
}

.tab-item:hover {
  color: var(--md-primary-color);
  background-color: rgba(255, 64, 129, 0.05);
}

.tab-item.active {
  color: var(--md-primary-color);
  border-bottom-color: var(--md-primary-color);
  background-color: white;
}

.tab-item i {
  font-size: 18px;
}

.tabs-content {
  padding: 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 赛事详情内容 */
.competition-details {
  line-height: 1.8;
  color: var(--md-text-color);
}

.competition-details p {
  margin-bottom: 15px;
}

.no-details, .no-matches, .no-teams {
  text-align: center;
  padding: 40px 0;
  color: var(--md-text-muted);
}

.no-details i, .no-matches i, .no-teams i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.no-details p, .no-matches p, .no-teams p {
  font-size: 16px;
  margin: 0;
}

/* 比赛列表样式 */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.match-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  background: var(--md-bg-lighter);
  transition: var(--md-transition);
  border: 1px solid var(--md-border-color);
}

.match-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-box-shadow-hover);
  border-color: #e0e0e0;
}

.match-date {
  width: 80px;
  text-align: center;
  margin-right: 15px;
}

.match-day {
  font-size: 15px;
  font-weight: 600;
  color: var(--md-text-color);
}

.match-time {
  font-size: 14px;
  color: var(--md-text-light);
  margin-top: 3px;
}

.match-status {
  margin-right: 15px;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-not_started {
  background-color: #eee;
  color: #999;
}

.status-ongoing {
background: var(--md-primary-color);
color: #fff;
}
.status-finished {
  background-color: #e8f5e9;
  color: #4caf50;
}

.match-teams {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 10px;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.team-name {
  font-size: 15px;
  color: var(--md-text-color);
  transition: var(--md-transition);
}

.team-link {
  text-decoration: none;
  transition: var(--md-transition);
}

.team-link:hover .team-name {
  color: var(--md-primary-color);
}

.match-vs {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-text-muted);
  padding: 0 5px;
}

.match-action {
  margin-left: auto;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--md-primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--md-transition);
  box-shadow: 0 2px 5px rgba(255, 64, 129, 0.3);
}

.btn-watch:hover {
  background: #e03770;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 64, 129, 0.4);
}

.btn-watch i {
  font-size: 14px;
}

/* 球队网格样式 */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--md-box-shadow);
  transition: var(--md-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--md-border-color);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--md-box-shadow-hover);
  border-color: #e0e0e0;
}

.team-logo-container {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-bg-lighter);
  border-bottom: 1px solid var(--md-border-color);
  height: 140px;
}

.team-logo-container img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.3s;
}

.team-card:hover .team-logo-container img {
  transform: scale(1.05);
}

.team-info {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--md-text-color);
  margin: 0 0 8px 0;
  text-align: center;
  line-height: 1.3;
}

.team-name-en {
  font-size: 14px;
  color: var(--md-text-light);
  margin-bottom: 10px;
  text-align: center;
  font-style: italic;
}

.team-founded {
  font-size: 13px;
  color: var(--md-text-muted);
  text-align: center;
  background-color: var(--md-bg-light);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

.team-details-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px;
  background-color: var(--md-bg-light);
  color: var(--md-text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--md-border-color);
  transition: var(--md-transition);
}

.team-details-link:hover {
  background-color: var(--md-primary-color);
  color: white;
}

.team-details-link i {
  font-size: 12px;
  transition: transform 0.2s;
}

.team-details-link:hover i {
  transform: translateX(3px);
}

/* 返回顶部按钮 */

/* 响应式调整 */
@media (max-width: 992px) {
  .competition-header {
    flex-direction: column;
    text-align: center;
  }
  
  .competition-logo {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .competition-stats {
    justify-content: center;
  }
  
  .teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .match-item {
    flex-wrap: wrap;
  }
  
  .match-teams {
    width: 100%;
    margin: 15px 0;
    justify-content: center;
  }
  
  .match-action {
    width: 100%;
    margin-top: 15px;
    text-align: center;
  }
  
  .btn-watch {
    width: 100%;
    padding: 8px 0;
  }
  
  .tabs-header {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 576px) {
  .competition-name {
    font-size: 20px;
  }
  
  .competition-stats {
    gap: 10px;
  }
  
  .stat-item {
    width: calc(50% - 5px);
    min-width: auto;
    padding: 8px;
  }
  
  .teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .team-logo-container {
    height: 120px;
  }
  
  .team-logo-container img {
    max-width: 70px;
    max-height: 70px;
  }
}

/* H5环境调整 */
.h5-environment .competition-container {
  padding: 15px 10px;
}

.h5-environment .competition-header {
  padding: 15px;
}

.h5-environment .tab-content {
  padding: 15px;
}

.h5-environment .match-item {
  margin-bottom: 10px;
}

.h5-environment .btn-watch {
  width: 100%;
}
