/* ========================================
   足球直播 - 全局样式表
   品牌色：橙色 #FF6B35、深蓝 #003D82
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-orange: #FF6B35;
  --primary-blue: #003D82;
  --secondary-blue: #0066CC;
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  --border-gray: #E0E0E0;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

/* ========== 头部导航 ========== */
header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #002855 100%);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary-orange);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.search-container {
  position: relative;
  width: 200px;
}

.search-input {
  width: 100%;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 14px;
  transition: background 0.3s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
  background: var(--light-gray);
  padding: 12px 40px;
  font-size: 13px;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border-gray);
}

.breadcrumb a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary-orange);
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 8px;
}

/* ========== 主容器 ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

main {
  min-height: calc(100vh - 200px);
}

/* ========== 数据看板 ========== */
.dashboard {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #002855 100%);
  color: var(--white);
  padding: 60px 40px;
  margin: 40px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.dashboard-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}

.dashboard-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.dashboard-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.dashboard-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== 视频卡片网格 ========== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 50px 0;
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.25);
}

.video-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.video-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-card-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background: var(--primary-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
  transition: transform 0.3s ease;
}

.video-card:hover .play-button {
  transform: scale(1.1);
}

.video-card-content {
  padding: 15px;
}

.video-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.video-card-meta {
  font-size: 13px;
  color: var(--text-light);
}

/* ========== 视频播放弹窗 ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-gray);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-orange);
}

.modal-body {
  padding: 20px;
}

.video-player {
  width: 100%;
  height: 450px;
  background: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.video-controls button {
  padding: 8px 16px;
  background: var(--primary-orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.video-controls button:hover {
  background: #E55A2B;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-gray);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-orange);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.video-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== 专家团队卡片 ========== */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.expert-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.expert-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
  border-color: var(--primary-orange);
}

.expert-card:hover::before {
  opacity: 1;
}

.expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--border-gray);
  transition: border-color 0.3s ease;
}

.expert-card:hover .expert-avatar {
  border-color: var(--primary-orange);
}

.expert-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.expert-title {
  font-size: 14px;
  color: var(--primary-orange);
  font-weight: 600;
  margin-bottom: 12px;
}

.expert-bio {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 15px;
}

.expert-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.expert-btn {
  padding: 8px 16px;
  border: 1px solid var(--primary-orange);
  background: transparent;
  color: var(--primary-orange);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.expert-btn:hover {
  background: var(--primary-orange);
  color: var(--white);
}

/* ========== FAQ 手风琴 ========== */
.faq-section {
  margin: 50px 0;
}

.faq-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.accordion {
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-item {
  border-bottom: 1px solid var(--border-gray);
  transition: background 0.3s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 20px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  font-weight: 600;
  color: var(--text-dark);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
}

.accordion-header:hover {
  background: var(--light-gray);
}

.accordion-header.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 102, 204, 0.1) 100%);
  color: var(--primary-orange);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--light-gray);
}

.accordion-content.active {
  max-height: 500px;
  padding: 20px;
}

.accordion-text {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
}

/* ========== 用户评论 ========== */
.comments-section {
  margin: 50px 0;
}

.comments-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.comment-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.comment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  background: var(--light-gray);
}

.comment-user-info {
  flex: 1;
}

.comment-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
}

.comment-date {
  font-size: 12px;
  color: var(--text-light);
}

.comment-rating {
  color: #FFC107;
  font-size: 14px;
  margin-bottom: 10px;
}

.comment-text {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 14px;
}

/* ========== 底部 ========== */
footer {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #002855 100%);
  color: var(--white);
  padding: 50px 40px 20px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-orange);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-orange);
}

.footer-qrcode {
  text-align: center;
}

.footer-qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: var(--white);
  padding: 5px;
}

.footer-qrcode-label {
  font-size: 12px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-update-time {
  color: var(--primary-orange);
  font-weight: 600;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .header-top {
    padding: 12px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 20px;
  }

  nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 13px;
  }

  .container {
    padding: 0 20px;
  }

  .breadcrumb {
    padding: 10px 20px;
    font-size: 12px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .expert-grid {
    grid-template-columns: 1fr;
  }

  .comments-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .video-player {
    height: 250px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .logo {
    font-size: 18px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 12px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-number {
    font-size: 28px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .accordion-header {
    padding: 15px;
    font-size: 14px;
  }

  .accordion-content.active {
    padding: 15px;
  }
}

/* ========== 打印样式 ========== */
@media print {
  header,
  footer,
  .breadcrumb {
    display: none;
  }

  body {
    background: var(--white);
  }
}
