/* 赛事详情页样式 */
.event-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-header {
  margin-bottom: 2rem;
  text-align: center;
}

.event-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.event-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  color: #666;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 赛事状态标签 */
.event-status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 1rem;
}

.status-upcoming {
  background: #e3f2fd;
  color: #1976d2;
}

.status-live {
  background: #fbe9e7;
  color: #d84315;
}

.status-ended {
  background: #e8f5e9;
  color: #2e7d32;
}

/* 赛事介绍 */
.event-intro {
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* 赛事规则 */
.event-rules {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.rules-list {
  list-style: decimal;
  padding-left: 1.5rem;
}

.rules-list li {
  margin-bottom: 0.5rem;
}

/* 参赛选手 */
.players-section {
  margin-bottom: 2rem;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.player-card {
  text-align: center;
}

.player-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.player-rank {
  color: #666;
  font-size: 0.9rem;
}

/* 赛程安排 */
.schedule-section {
  margin-bottom: 2rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: center;
}

.schedule-table th {
  background: #f5f5f5;
}

/* 比分直播 */
.live-score {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}

.score-board {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0;
}

.player-score {
  text-align: center;
}

.score-number {
  font-size: 3rem;
  font-weight: bold;
  color: #2E3192;
}

.vs {
  font-size: 1.5rem;
  color: #666;
}

/* 精彩瞬间 */
.highlights {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* 购票区域 */
.ticket-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.ticket-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.ticket-card {
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.ticket-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ticket-card.selected {
  border: 2px solid #2E3192;
}

.ticket-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2E3192;
  margin: 1rem 0;
}

.ticket-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: bold;
}

.form-group input,
.form-group select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: #2E3192;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.back-to-top:hover {
  background: #1a1b5e;
}

.back-to-top.visible {
  display: flex;
}

/* 图片预览模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
} 