@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Source+Sans+3:wght@400;600;700&family=Noto+Serif+SC:wght@500;700&display=swap");

:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --bg-card: linear-gradient(145deg, rgba(36, 32, 28, 0.95), rgba(18, 16, 14, 0.98));
  --gold: #c9a96e;
  --gold-soft: #e8d5a8;
  --gold-deep: #8a6d3b;
  --text: #f4efe6;
  --text-muted: #a89f91;
  --line: rgba(201, 169, 110, 0.22);
  --danger: #c45c5c;
  --live: #d4a017;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Playfair Display", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 169, 110, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 60, 20, 0.25), transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 11, 13, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.4);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-soft);
  border-color: var(--line);
  background: rgba(201, 169, 110, 0.08);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
}

.site-main { padding: 28px 0 64px; }

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 40px;
  background:
    linear-gradient(135deg, rgba(28, 24, 20, 0.95), rgba(12, 11, 10, 0.98)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a96e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-soft);
}
.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: #1a140c;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 700;
}
.btn.secondary {
  background: transparent;
  color: var(--gold-soft);
}
.btn:hover { filter: brightness(1.08); color: #111; }

.section { margin-bottom: 42px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--gold-soft);
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.section-head a { font-size: 0.9rem; }

.league-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.league-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease;
}
.league-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  color: var(--gold-soft);
}
.league-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.league-card span { font-weight: 600; font-size: 0.92rem; }

.match-list { display: grid; gap: 12px; }
.match-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.match-card:hover {
  border-color: rgba(201, 169, 110, 0.55);
  transform: translateY(-2px);
  color: inherit;
}
.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.match-meta .league {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
}
.match-meta .league img { width: 18px; height: 18px; object-fit: contain; }
.badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-size: 0.78rem;
}
.status-live .badge {
  border-color: rgba(212, 160, 23, 0.55);
  background: rgba(212, 160, 23, 0.15);
  color: #ffd56a;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team.away { justify-content: flex-end; text-align: right; }
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.team span {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score {
  min-width: 72px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
}

.about-box, .faq-box, .content-card, .news-item, .pager a {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
}
.about-box, .faq-box, .content-card { padding: 24px; }
.about-box h2, .faq-box h2, .content-card h1 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--gold-soft);
}
.about-box h3 { color: var(--gold); margin: 22px 0 8px; font-size: 1.05rem; }
.about-box p, .faq-answer p, .article-body p { color: var(--text-muted); }
.about-box ul { color: var(--text-muted); padding-left: 1.2em; }

.faq-intro {
  margin: -4px 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] {
  border-color: rgba(201, 169, 110, 0.45);
  background: rgba(201, 169, 110, 0.06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 16px 16px; }
.faq-answer p { margin: 0; }

.news-list { display: grid; gap: 12px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px;
  color: inherit;
}
.news-item:hover { border-color: var(--gold); color: inherit; }
.news-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: #1c1a17;
}
.news-item h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--gold-soft); }
.news-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.news-meta { margin-top: 8px; color: var(--text-muted); font-size: 0.82rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.article-body { color: var(--text); font-size: 1.02rem; }
.article-body img { margin: 16px auto; border-radius: 12px; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.pager a {
  padding: 12px 16px;
  color: var(--gold-soft);
  max-width: 48%;
}
.pager span {
  color: var(--text-muted);
  padding: 12px 0;
}

.match-detail-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  text-align: center;
  margin: 24px 0;
}
.match-detail-score .team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.match-detail-score img { width: 72px; height: 72px; object-fit: contain; }
.match-detail-score .big-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-soft);
}
.stream-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #09090b;
  padding: 36px 0 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-about strong {
  display: block;
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.friend-links {
  margin: 18px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.friend-links a { color: var(--text-muted); }
.friend-links a:hover { color: var(--gold); }
.copyright { margin: 0; opacity: 0.8; }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 960px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(12, 12, 14, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
  }
  .site-nav.open { display: flex; }
  .hero { padding: 32px 20px; }
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { grid-template-columns: 1fr; }
  .news-item img { height: 160px; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { justify-content: flex-start; text-align: left; }
  .score { order: -1; margin: 4px 0; }
  .badge { margin-left: 0; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
}
