/* ============================================
   世界杯直播网 - 全站共享样式
   worldcup-zhibo.com.cn
   ============================================ */

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

:root {
  --bg: #0a0e14;
  --bg-2: #111720;
  --card: #1a2028;
  --card-2: #232a33;
  --accent: #e63946;
  --accent-2: #c1121f;
  --gold: #ffd166;
  --green: #06d6a0;
  --blue: #4cc9f0;
  --text: #e8eaed;
  --text-dim: #9aa0a6;
  --border: #2d343d;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ============ 顶部导航 ============ */
.site-header {
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo .logo-icon { font-size: 26px; }
.site-logo span { color: var(--text); }
.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--accent);
  background: rgba(230,57,70,.08);
}
@media (max-width: 768px) {
  .main-nav a { padding: 6px 10px; font-size: 13px; }
  .site-logo { font-size: 18px; }
}

/* 面包屑 */
.breadcrumb {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }
.breadcrumb .current { color: var(--gold); }

/* ============ 容器 ============ */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}
.container-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
@media (max-width: 900px) {
  .container-grid { grid-template-columns: 1fr; }
}

/* ============ 通用区块 ============ */
.block {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .block { padding: 18px; }
}
.block-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.block-title::before {
  content: '';
  width: 5px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 3px;
}
.block p {
  margin-bottom: 14px;
  line-height: 1.9;
}
.block p:last-child { margin-bottom: 0; }
.block strong { color: var(--gold); }

/* ============ 倒计时 ============ */
.countdown-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  margin-top: 16px;
}
.countdown-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.countdown-nums {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cd-unit {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 12px 18px;
  border-radius: 8px;
  min-width: 75px;
}
.cd-num {
  font-size: 28px;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cd-text {
  font-size: 11px;
  color: rgba(255,255,255,.85);
  margin-top: 6px;
}
.countdown-live {
  background: linear-gradient(135deg, var(--green), #04a87f);
  color: white;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .8; }
}

/* ============ 直播按钮区 ============ */
.live-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.live-btn {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.live-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230,57,70,.3);
}
.live-btn .play-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  flex-shrink: 0;
}
.live-btn:hover .play-icon { background: white; color: var(--accent); }
.live-btn .tag {
  font-size: 11px;
  color: var(--gold);
  display: block;
  margin-top: 2px;
  font-weight: 500;
}
.live-btn:hover .tag { color: white; }

/* ============ 侧边栏 ============ */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-block {
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border);
}
.side-block h3 {
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-block h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}
.side-list { list-style: none; }
.side-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.side-list li:last-child { border: none; }
.side-list a { color: var(--text); }
.side-list a:hover { color: var(--accent); }
.side-list .meta {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 4px;
}

/* ============ 页脚 ============ */
.site-footer {
  margin-top: 40px;
  padding: 30px 16px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--text-dim); }
.footer-nav a:hover { color: var(--accent); }

/* ============ 球队/对阵卡 ============ */
.vs-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
}
.team-block {
  text-align: center;
  padding: 20px 14px;
  background: var(--card-2);
  border-radius: 10px;
  border-top: 3px solid var(--accent);
}
.team-flag { font-size: 42px; margin-bottom: 6px; line-height: 1; }
.team-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.team-rank {
  display: inline-block;
  background: rgba(255,209,102,.15);
  color: var(--gold);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.vs-divider {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}
@media (max-width: 600px) {
  .vs-card { grid-template-columns: 1fr; gap: 10px; }
  .vs-divider { font-size: 20px; }
  .team-flag { font-size: 36px; }
  .team-name { font-size: 18px; }
}

/* ============ 12组卡片 ============ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.group-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: all .2s;
  display: block;
}
.group-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(230,57,70,.15);
}
.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.group-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
}
.group-tag {
  font-size: 10px;
  background: var(--accent);
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
}
.group-teams {
  list-style: none;
  font-size: 13px;
}
.group-teams li {
  padding: 5px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============ 赛程表 ============ */
.match-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.match-table th {
  background: var(--card-2);
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--gold);
  font-size: 13px;
  border-bottom: 2px solid var(--accent);
}
.match-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
.match-table tr:hover td { background: var(--card-2); }
.match-table .date-col { color: var(--gold); font-weight: 600; white-space: nowrap; }
.match-table .group-col {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.match-table .vs-text {
  font-weight: 600;
}
.match-table .vs-text a { color: var(--text); }
.match-table .vs-text a:hover { color: var(--accent); }
.match-table .live-link {
  background: var(--green);
  color: white;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.match-table .live-link:hover {
  background: #04a87f;
}

/* 移动端表格 */
@media (max-width: 700px) {
  .match-table { font-size: 13px; }
  .match-table th, .match-table td { padding: 8px 6px; }
  .match-table .hide-mobile { display: none; }
}

/* ============ 日期分组（赛程页用）============ */
.day-group {
  margin-bottom: 24px;
}
.day-header {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(230,57,70,.15), transparent);
  border-left: 4px solid var(--accent);
  margin-bottom: 8px;
  border-radius: 0 6px 6px 0;
}

/* ============ FAQ ============ */
.faq-item {
  background: var(--card-2);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.faq-q {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  font-size: 14px;
}
.faq-q::before { content: 'Q：'; color: var(--accent); }
.faq-a { color: var(--text); font-size: 13px; }
.faq-a::before { content: 'A：'; color: var(--green); font-weight: 700; }

/* ============ Hero 区 ============ */
.hero {
  background:
    linear-gradient(135deg, rgba(230,57,70,.15) 0%, rgba(255,209,102,.08) 100%),
    var(--card);
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,.12) 0%, transparent 70%);
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}
@media (max-width: 600px) {
  .hero-title { font-size: 22px; }
  .hero { padding: 24px 18px; }
}
.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}
.hero-meta strong { color: var(--gold); }

/* ============ 标签 ============ */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.tag-live { background: var(--green); color: white; }
.tag-upcoming { background: var(--accent); color: white; }
.tag-finished { background: var(--text-dim); color: var(--bg); }
.tag-group { background: var(--gold); color: var(--bg); }

/* 统计数字卡 */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.stat-card {
  background: var(--card-2);
  padding: 16px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  text-align: center;
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}
