  /* --- 颜色变量 (支持日间/夜间模式) --- */
  :root {
      --brand-color: #3b82f6;
      --brand-hover: #2563eb;
      --live-color: #ef4444;
      --bg-color: #f3f4f6;
      --card-bg: #ffffff;
      --text-primary: #111827;
      --text-secondary: #6b7280;
      --border-color: #e5e7eb;
      --nav-bg: rgba(255, 255, 255, 0.85);
      --hover-bg: #f9fafb;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
      --radius-md: 12px;
      --radius-lg: 16px;
  }

  @media (prefers-color-scheme: dark) {
      :root {
          --brand-color: #60a5fa;
          --bg-color: #111827;
          --card-bg: #1f2937;
          --text-primary: #f9fafb;
          --text-secondary: #9ca3af;
          --border-color: #374151;
          --nav-bg: rgba(31, 41, 55, 0.85);
          --hover-bg: #374151;
      }
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      background-color: var(--bg-color);
      color: var(--text-primary);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
      -webkit-font-smoothing: antialiased;
      transition: background-color 0.3s ease;
  }

  a {
      text-decoration: none;
      color: inherit;
  }

  ul {
      list-style: none;
  }

  /* --- 导航栏 --- */
  .navbar {
      background-color: var(--nav-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 100;
  }

  .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: center;
      height: 60px;
      overflow-x: auto;
      white-space: nowrap;
  }

  .nav-container::-webkit-scrollbar {
      display: none;
  }

  .logo {
      font-size: 20px;
      font-weight: 800;
      margin-right: 40px;
      color: var(--brand-color);
  }

  .nav-links {
      display: flex;
      gap: 24px;
  }

  .nav-links li a {
      font-size: 15px;
      font-weight: 500;
      color: var(--text-secondary);
      transition: color 0.2s;
      cursor: pointer;
      padding: 18px 0;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
      color: var(--brand-color);
      font-weight: 600;
      border-bottom: 3px solid var(--brand-color);
  }

  /* --- 布局容器 --- */
  .container {
      max-width: 1200px;
      margin: 24px auto;
      padding: 0 16px;
      display: grid;
      grid-template-columns: 1fr 320px;
      gap: 24px;
  }

  /* --- 卡片通用 --- */
  .card {
      background: var(--card-bg);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-color);
      overflow: hidden;
  }

  .card-header {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 700;
      font-size: 16px;
  }

  /* --- 内容区域切换逻辑 --- */
  .tab-content {
      display: none;
  }

  .tab-content.active {
      display: block;
      animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(5px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* --- 赛事列表样式 (共用) --- */
  .match-list {
      display: flex;
      flex-direction: column;
  }

  .match-item {
      display: grid;
      grid-template-columns: 150px 1fr 80px;
      /* 保持加宽的时间栏 */
      align-items: center;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
      transition: background-color 0.2s;
      cursor: pointer;
  }

  .match-item:last-child {
      border-bottom: none;
  }

  .match-item:hover {
      background-color: var(--hover-bg);
  }

  .match-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
  }

  .time {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-primary);
  }

  .league {
      font-size: 12px;
      color: var(--text-secondary);
  }

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

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

  .team.home {
      justify-content: flex-end;
  }

  .team.away {
      justify-content: flex-start;
  }

  .team-name {
      font-size: 15px;
      font-weight: 600;
  }

  .team-logo {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background-color: var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
  }

  .vs-text {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 600;
      padding: 0 8px;
  }

  .match-action {
      display: flex;
      justify-content: flex-end;
  }

  /* 按钮状态样式 */
  .btn {
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
  }

  .btn-live {
      background-color: rgba(239, 68, 68, 0.1);
      color: var(--live-color);
      border: 1px solid rgba(239, 68, 68, 0.2);
  }

  .btn-live::before {
      content: '';
      width: 6px;
      height: 6px;
      background-color: var(--live-color);
      border-radius: 50%;
      animation: blink 1.5s infinite;
  }

  .btn-live:hover {
      background-color: var(--live-color);
      color: white;
  }

  .btn-reserve {
      background-color: rgba(59, 130, 246, 0.1);
      color: var(--brand-color);
      border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .btn-reserve:hover {
      background-color: var(--brand-color);
      color: white;
  }

  .btn-disabled {
      background-color: transparent;
      color: var(--text-secondary);
      border: 1px solid var(--border-color);
  }

  /* --- 赛程专属样式 --- */
  .schedule-divider {
      background-color: var(--hover-bg);
      padding: 8px 20px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      border-bottom: 1px solid var(--border-color);
  }

  /* --- 资讯列表专属样式 --- */
  .news-item {
      display: flex;
      gap: 16px;
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
      cursor: pointer;
      transition: background-color 0.2s;
  }

  .news-item:last-child {
      border-bottom: none;
  }

  .news-item:hover {
      background-color: var(--hover-bg);
  }

  .news-thumb {
      width: 140px;
      height: 90px;
      border-radius: 8px;
      background-color: var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
  }

  .news-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
  }

  .news-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
  }

  .news-meta {
      font-size: 12px;
      color: var(--text-secondary);
      display: flex;
      gap: 16px;
  }

  /* --- 右侧边栏通用 --- */
  .sidebar {
      display: flex;
      flex-direction: column;
      gap: 24px;
  }

  .grid-leagues {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 16px;
  }

  .league-btn {
      background: var(--bg-color);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 12px 0;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
  }

  .league-btn:hover {
      border-color: var(--brand-color);
      color: var(--brand-color);
  }

  .list-replays {
      padding: 8px 16px 16px;
  }

  .list-replays li {
      padding: 12px 0;
      font-size: 13px;
      border-bottom: 1px solid var(--border-color);
      color: var(--text-secondary);
      cursor: pointer;
  }

  .list-replays li:last-child {
      border-bottom: none;
  }

  .list-replays li:hover {
      color: var(--brand-color);
  }


/* 标签列表 */
        .tags-list { display: flex; flex-wrap: wrap; gap: 8px; margin:15px;}
        .tag { padding: 4px 8px; border-radius: 5px; font-size: 14px; color: #fff; cursor: pointer; }
        /* 随机颜色类 */
        .bg-green { background-color: #2ecc71; }
        .bg-blue { background-color: #3498db; }
        .bg-red { background-color: #e74c3c; }
        .bg-orange { background-color: #e67e22; }
        .bg-purple { background-color: #9b59b6; }
        .bg-dark { background-color: #34495e; }
        
/* ================= 底部区域 (Footer) ================= */
        .site-footer {
            background-color: #2c3e50; /* 稳重的深色背景，凸显专业感 */
            color: #a0aec0; /* 柔和的浅灰色文字，不刺眼 */
            padding: 40px 0 30px;
            margin-top: 50px;
            font-size: 14px;
            line-height: 1.8;
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            display: flex;
            justify-content: space-between; /* 左右两端对齐 */
            align-items: center; /* 垂直居中对齐 */
            flex-wrap: wrap; /* 允许在手机端自动换行 */
            gap: 20px;
        }

        .footer-left {
            flex: 1;
            max-width: 800px; /* 限制左侧文字最大宽度，防止太长 */
        }

        .footer-desc {
            margin-bottom: 10px;
            color: #cbd5e1;
        }

        .copyright a {
            color: #5b8cff; /* 你的主题蓝 */
            text-decoration: none;
            transition: color 0.3s;
        }

        .copyright a:hover {
            color: #fff;
        }

        .beian-link {
            margin-left: 12px;
            padding-left: 12px;
            border-left: 1px solid #475569; /* 用竖线优雅地分隔版权和备案号 */
        }

        /* 补充的右侧实用链接 */
        .footer-right .footer-links {
            list-style: none;
            display: flex;
            gap: 20px;
            margin: 0;
            padding: 0;
        }

        .footer-links a {
            color: #a0aec0;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-links a:hover {
            color: #5b8cff;
        }

        /* ================= 返回顶部悬浮按钮 ================= */
        .go-top-btn {
            position: fixed;
            right: 30px;
            bottom: 30px;
            width: 45px;
            height: 45px;
            background-color: #fff;
            color: #5b8cff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 柔和的立体阴影 */
            cursor: pointer;
            z-index: 999;
            /* 默认隐藏，往下划动时出现 */
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px); 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .go-top-btn i {
            font-size: 22px;
        }

        /* JS 控制的显示类 */
        .go-top-btn.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* 鼠标悬停时的丝滑起伏特效 */
        .go-top-btn:hover {
            background-color: #5b8cff;
            color: #fff;
            transform: translateY(-5px); /* 悬浮时向上微微浮动 */
            box-shadow: 0 8px 20px rgba(91, 140, 255, 0.4);
        }

        /* ================= 移动端自适应 ================= */
        @media (max-width: 768px) {
            .site-footer {
                padding: 30px 0 20px;
                text-align: center; /* 手机端居中对齐更好看 */
            }

            .footer-inner {
                flex-direction: column; /* 左右结构改为上下堆叠 */
                gap: 15px;
            }

            .beian-link {
                display: block; /* 备案号在手机端单独占一行 */
                margin-left: 0;
                padding-left: 0;
                border-left: none;
                margin-top: 5px;
            }

            .footer-right .footer-links {
                justify-content: center;
                margin-top: 10px;
            }

            .go-top-btn {
                right: 20px;
                bottom: 20px;
                width: 40px;
                height: 40px;
            }
        }
        
 /* --- 响应式 --- */
  @media (max-width: 900px) {
      .container {
          grid-template-columns: 1fr;
          gap: 16px;
      }
  }

  @media (max-width: 600px) {
      .match-item {
          grid-template-columns: 1fr;
          gap: 12px;
          padding: 16px;
      }

      .match-info {
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          border-bottom: 1px dashed var(--border-color);
          padding-bottom: 8px;
      }

      .time {
          font-size: 14px;
      }

      .match-action {
          justify-content: center;
          margin-top: 4px;
      }

      .btn {
          width: 100%;
          justify-content: center;
      }

      .teams-wrapper {
          justify-content: space-between;
      }

      /* 👇👇👇 核心修改在这里 👇👇👇 */
      .team {
          flex-direction: column;
          gap: 4px;
      }
      
      /* 强制让左边(主队)的顺序反转，变成图片在上、名字在下 */
      .team.home {
          flex-direction: column-reverse; 
      }

      .team.home,
      .team.away {
          justify-content: center;
      }
      /* 👆👆👆 核心修改在这里 👆👆👆 */

      .news-thumb {
          width: 100px;
          height: 70px;
      }

      .news-title {
          font-size: 15px;
      }
  }