/*
Theme Name: Football Bilingual
Description: 双语足球资讯站 — 专业视觉 + 文字直播
Version: 1.1.0
Template: twentytwentyfour
Text Domain: football-bilingual
*/

:root {
  --fb-green: #0d5c2e;
  --fb-green-light: #1a7a43;
  --fb-dark: #0f172a;
  --fb-muted: #64748b;
  --fb-bg: #f4f7f5;
  --fb-card: #ffffff;
  --fb-live: #dc2626;
  --fb-radius: 12px;
  --fb-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

body.lang-zh, body.lang-en { background: var(--fb-bg); }

/* ===== 顶栏 ===== */
.fb-site-header {
  background: linear-gradient(135deg, var(--fb-dark) 0%, #1e293b 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--fb-shadow);
}
.fb-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.fb-logo {
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.fb-logo span { color: #4ade80; }
.fb-header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.fb-header-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}
.fb-header-nav a:hover { color: #fff; }
.fb-lang-switch a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}
.fb-lang-switch a.is-active { color: #4ade80; font-weight: 700; }

.site-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

/* ===== 首页 ===== */
.fb-hero {
  background: linear-gradient(135deg, var(--fb-green) 0%, var(--fb-green-light) 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--fb-radius);
  margin-bottom: 1.5rem;
  text-align: center;
}
.fb-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.fb-hero p { opacity: 0.92; margin: 0 0 1rem; }
.fb-hero .fb-lang-switch a { color: rgba(255,255,255,0.85); }
.fb-hero .fb-lang-switch a.is-active { color: #fff; }

.fb-featured-match {
  background: var(--fb-card);
  border-radius: var(--fb-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--fb-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-left: 4px solid var(--fb-live);
}
.fb-featured-match .fb-live-dot {
  width: 8px; height: 8px; background: var(--fb-live);
  border-radius: 50%; display: inline-block;
  animation: fb-pulse 1.5s infinite;
  margin-right: 6px;
}
@keyframes fb-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.fb-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 768px) { .fb-home-grid { grid-template-columns: 1fr; } }
.fb-home-card {
  display: block;
  padding: 1.35rem;
  background: var(--fb-card);
  border-radius: var(--fb-radius);
  box-shadow: var(--fb-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid #e2e8f0;
}
.fb-home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
  border-color: var(--fb-green);
}
.fb-home-card .fb-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.fb-home-card h2 { margin: 0 0 0.35rem; font-size: 1.1rem; color: var(--fb-dark); }
.fb-home-card p { margin: 0; font-size: 0.85rem; color: var(--fb-muted); }

.fb-home-latest {
  background: var(--fb-card);
  border-radius: var(--fb-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--fb-shadow);
}
.fb-latest-list { list-style: none; padding: 0; margin: 0; }
.fb-latest-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.fb-latest-list a { color: var(--fb-green); text-decoration: none; font-weight: 500; }

/* ===== 文字直播页 ===== */
.fb-live-page { padding-bottom: 2rem; }
.fb-live-header {
  background: var(--fb-card);
  border-radius: var(--fb-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--fb-shadow);
  margin-bottom: 1.5rem;
}
.fb-live-header h1 { margin: 0 0 0.75rem; font-size: 1.35rem; color: var(--fb-dark); }
.fb-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.fb-status--live { background: #fef2f2; color: var(--fb-live); }
.fb-status--live::before { content: "● "; animation: fb-pulse 1.5s infinite; }
.fb-status--scheduled { background: #f1f5f9; color: var(--fb-muted); }
.fb-status--finished { background: #ecfdf5; color: var(--fb-green); }
.fb-kickoff { color: var(--fb-muted); font-size: 0.9rem; }
.fb-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.fb-team-block { text-align: center; min-width: 100px; }
.fb-team-name { font-weight: 700; font-size: 1.05rem; margin-top: 0.5rem; }
.fb-crest-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fb-green), var(--fb-green-light));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
  margin: 0 auto;
}
.fb-score-box {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fb-dark);
  line-height: 1;
}
.fb-score-box small { display: block; font-size: 0.7rem; color: var(--fb-muted); font-weight: 400; margin-top: 4px; }

.card, .fb-pre-match {
  background: var(--fb-card);
  border-radius: var(--fb-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--fb-shadow);
  margin-bottom: 1.5rem;
}
.card h2, .fb-pre-match h2 { margin-top: 0; font-size: 1rem; color: var(--fb-dark); }
.fb-pre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .fb-pre-grid { grid-template-columns: 1fr; } }
.fb-pre-grid h3 { font-size: 0.85rem; color: var(--fb-muted); margin: 0 0 0.5rem; }

.fb-live-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 768px) { .fb-live-columns { grid-template-columns: 1fr; } }
.fb-stream {
  background: var(--fb-card);
  border-radius: var(--fb-radius);
  box-shadow: var(--fb-shadow);
  overflow: hidden;
}
.fb-stream h2 {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--fb-dark);
  color: #fff;
  font-size: 0.9rem;
}
.fb-stream--en h2 { background: #334155; }
.fb-stream-body {
  padding: 0.75rem 1rem;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}
.fb-event {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.fb-event:last-child { border-bottom: none; }
.fb-event-min {
  flex-shrink: 0;
  width: 2.5rem;
  font-weight: 700;
  color: var(--fb-green);
  font-size: 0.85rem;
}
.fb-event-text { color: #334155; }

.fb-post-match { margin-top: 1.5rem; }
.fb-table-note { font-size: 0.8rem; color: var(--fb-muted); }
.footer-notice {
  font-size: 12px; color: #666; text-align: center;
  padding: 16px 20px; line-height: 1.6;
  background: #fff; border-top: 1px solid #e2e8f0; margin-top: 2rem;
}
.fb-source-note {
  font-size: 0.8rem; color: var(--fb-muted);
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 1rem;
}
