* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1a1a2e;
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ============================================
   图标系统（独立出来，统一管理）
   ============================================ */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* 足球图标 */
.icon-football {
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 2c1.85 0 3.55.63 4.9 1.69l-2.4 1.74-2.5-1.8-2.5 1.8-2.4-1.74A7.94 7.94 0 0 1 12 4zM4 12c0-1.34.33-2.6.91-3.71l2.4 1.74-.92 2.83H4.09A7.97 7.97 0 0 1 4 12zm1.69 4.1l.92-2.83h2.98l.92 2.83-2.4 1.74A7.96 7.96 0 0 1 5.69 16.1zM12 20a7.94 7.94 0 0 1-4.9-1.69l2.4-1.74 2.5 1.8 2.5-1.8 2.4 1.74A7.94 7.94 0 0 1 12 20zm7.09-3.9l-2.4-1.74.92-2.83h2.98c-.07.52-.18 1.03-.33 1.52a7.96 7.96 0 0 1-.17 1.31zM17.6 9.83l-.92-2.83 2.4-1.74c.58 1.11.91 2.37.91 3.71 0 .41-.04.81-.09 1.19h-2.3z'/%3E%3C/svg%3E");
}

/* 火焰图标（热门） */
.icon-fire {
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 23c-4.97 0-9-4.03-9-9 0-2.4 1.05-4.66 2.78-6.3.9-.86 2.1-1.2 3.2-.9.6.17 1.02.68 1.1 1.3.08.62.13 1.24.13 1.87 0 .3.1.6.28.83.18.24.45.38.75.4.3.02.6-.08.83-.28.22-.2.35-.48.37-.78.02-.3.03-.6.03-.9 0-.4.24-.78.62-.94.38-.15.82-.1 1.15.15 1.66 1.25 2.8 3.1 3.16 5.18.12.7.18 1.42.18 2.15 0 4.97-4.03 9-9 9z'/%3E%3C/svg%3E");
}

/* 圆形图标底（用于 logo、区块图标） */
.icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(44,62,80,.2);
}
.icon-circle .icon {
  width: 20px;
  height: 20px;
}

/* ===== 队伍 logo 系统 ===== */
.team-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  font-family: "Arial Black", sans-serif;
  letter-spacing: -0.5px;
}
.team-badge.lg {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

/* 队伍徽章配色 */
.badge-green  { background: linear-gradient(135deg, #38a169, #2f855a); }
.badge-blue   { background: linear-gradient(135deg, #3182ce, #2c5282); }
.badge-red    { background: linear-gradient(135deg, #e53e3e, #9b2c2c); }
.badge-yellow { background: linear-gradient(135deg, #d69e2e, #975a16); }
.badge-orange { background: linear-gradient(135deg, #dd6b20, #9c4221); }
.badge-purple { background: linear-gradient(135deg, #805ad5, #553c9a); }
.badge-black  { background: linear-gradient(135deg, #2d3748, #1a202c); }
.badge-white  { background: linear-gradient(135deg, #cbd5e0, #a0aec0); color: #2d3748; }
.badge-brown  { background: linear-gradient(135deg, #975a16, #744210); }

/* ============================================
   顶部导航
   ============================================ */
.header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: relative;
  border-bottom: 1px solid #ececec;
}
.header::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2c3e50, #4a5568, #2c3e50);
}
.header-top {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 32px;
  gap: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s;
}
.logo:hover { transform: scale(1.03); }
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2c3e50, #4a5568);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(44,62,80,.25);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.logo-icon::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 60%);
}
.logo-icon .icon {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .main {
  font-size: 20px;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: 2px;
}
.logo-text .sub {
  font-size: 10px;
  color: #a0aec0;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; gap: 40px; }
.main-nav a {
  font-size: 16px;
  color: #4a5568;
  transition: all .25s;
  padding: 6px 0;
  position: relative;
  font-weight: 500;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: #2c3e50;
  transition: all .25s;
  transform: translateX(-50%);
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a.active { color: #1a1a2e; font-weight: 700; }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

/* 二级导航 */
.sub-nav { background: #fafbfc; border-top: 1px solid #f0f0f0; }
.sub-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 12px 32px;
}
.sub-nav a {
  font-size: 14px;
  color: #718096;
  transition: all .25s;
  white-space: nowrap;
  font-weight: 500;
}
.sub-nav a:hover { color: #2c3e50; }

/* ============================================
   内容区
   ============================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

.block-title {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  margin-top: 8px;
}
.block-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: .5px;
}
.block-title h2::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 4px;
  background: linear-gradient(90deg, #4a5568, transparent);
  border-radius: 2px;
  margin-left: 14px;
  vertical-align: middle;
}
.block-title .icon-circle { margin-right: 14px; }

/* ===== 赛事推荐卡片 ===== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.match-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 20px;
  color: #1a1a2e;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.match-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2c3e50, #718096);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.1);
  border-color: #d0d0d0;
}
.match-card:hover::before { transform: scaleX(1); }

.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.status-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.status-tag.live {
  background: #fff0f0;
  color: #e53e3e;
  animation: livePulse 2s infinite;
}
.status-tag.done { background: #f0f2f5; color: #718096; }
.status-tag.upcoming { background: #f0f7ff; color: #3182ce; }
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.match-date {
  font-size: 12px;
  color: #a0aec0;
  font-weight: 500;
}

/* 队伍行 */
.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.team-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.team-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1a1a2e;
}
.team-score {
  font-size: 20px;
  font-weight: 900;
  color: #1a1a2e;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  margin-left: 8px;
  min-width: 24px;
  text-align: right;
  letter-spacing: 1px;
}
.team-score.win { color: #e53e3e; }
.team-score.lose { color: #a0aec0; }
.team-score.empty { color: #cbd5e0; }

.match-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.league-tag {
  background: #f0f2f5;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #4a5568;
}
.match-role-group { font-size: 12px; color: #a0aec0; }

/* ===== 热门赛事列表 ===== */
.hot-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid #ececec;
  margin-bottom: 40px;
}
.hot-date-row {
  background: #fafbfc;
  padding: 16px 28px;
  font-size: 15px;
  color: #718096;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}
.hot-date-row span { color: #2c3e50; font-weight: 700; margin-left: 4px; }

.hot-item {
  display: flex;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}
.hot-item:last-child { border-bottom: none; }
.hot-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #2c3e50;
  transform: scaleY(0);
  transition: transform .25s;
}
.hot-item:hover { background: #fafbfc; }
.hot-item:hover::before { transform: scaleY(1); }

.hot-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 220px;
  flex-shrink: 0;
}
.hot-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .5px;
}
.hot-icon.hot-tag {
  background: #e53e3e;
  box-shadow: 0 3px 8px rgba(229,62,62,.25);
}
.hot-icon.live-tag {
  background: #a0aec0;
  box-shadow: 0 3px 8px rgba(160,174,192,.25);
}
.hot-time {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  font-variant-numeric: tabular-nums;
}
.hot-league {
  font-size: 13px;
  color: #718096;
  background: #f0f2f5;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.hot-match {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.hot-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.hot-team.right { flex-direction: row-reverse; text-align: right; }
.hot-team .name { font-size: 16px; font-weight: 600; color: #1a1a2e; }
.hot-score {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  padding: 0 8px;
}
.hot-score.vs {
  color: #cbd5e0;
  font-size: 16px;
  font-style: italic;
}

.hot-status {
  flex-shrink: 0;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid #e0e0e0;
  color: #a0aec0;
  background: #fafafa;
  font-weight: 500;
  transition: all .25s;
}
.hot-item:hover .hot-status {
  border-color: #2c3e50;
  color: #2c3e50;
  background: #f0f2f5;
}
.hot-status.live {
  border-color: #e53e3e;
  color: #fff;
  background: #e53e3e;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(229,62,62,.3);
  animation: livePulse 2s infinite;
}

.footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: #a0aec0;
  line-height: 2;
  background: #fff;
  border-top: 1px solid #ececec;
  margin-top: 20px;
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
  .match-grid { grid-template-columns: repeat(3, 1fr); }
  .hot-left { width: 180px; }
  .hot-team { min-width: 140px; }
}
@media (max-width: 900px) {
  .match-grid { grid-template-columns: repeat(2, 1fr); }
  .header-top { gap: 24px; padding: 0 20px; }
  .main-nav { gap: 24px; }
  .sub-nav-inner { padding: 10px 20px; gap: 20px; }
  .container { padding: 28px 20px 40px; }
  .hot-match { gap: 20px; }
  .hot-team { min-width: auto; }
  .hot-team .name { font-size: 14px; }
}
@media (max-width: 640px) {
  .header-top { gap: 16px; padding: 0 16px; height: 64px; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-icon .icon { width: 20px; height: 20px; }
  .logo-text .main { font-size: 17px; }
  .logo-text .sub { font-size: 9px; letter-spacing: 2px; }
  .main-nav { gap: 16px; overflow-x: auto; }
  .main-nav a { font-size: 14px; white-space: nowrap; }
  .sub-nav-inner { gap: 14px; padding: 8px 16px; overflow-x: auto; }
  .sub-nav a { font-size: 13px; }
  .match-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .hot-item { flex-wrap: wrap; gap: 12px; padding: 18px 16px; }
  .hot-left { width: 100%; }
  .hot-match { width: 100%; justify-content: space-between; gap: 8px; }
  .hot-team { flex-direction: column !important; gap: 6px; text-align: center !important; }
  .hot-team.right { text-align: center; }
  .hot-team .name { font-size: 13px; }
  .hot-score { font-size: 18px; }
  .hot-status { margin-left: auto; }
  .container { padding: 20px 16px 30px; }
  .block-title h2 { font-size: 17px; }
  .block-title h2::after { width: 24px; margin-left: 10px; }
}