/* 龙珠直播网 — 扁平风 Flat Design */
:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #0ea5e9;
  --bg: #f1f5f9;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --live: #ef4444;
  --ok: #16a34a;
  --warn: #f59e0b;
  --radius: 8px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.65;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; vertical-align: middle; }

.container {
  width: min(1100px, 94%);
  margin: 0 auto;
}

.muted { color: var(--muted); opacity: .9; }
.text-right { text-align: right; }

/* Header — flat solid */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--panel);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--primary);
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.site-main { padding: 24px 0 48px; }

/* Hero flat */
.hero {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: var(--accent);
  border-radius: 8px;
  opacity: .35;
  transform: rotate(18deg);
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .8rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 640px;
  opacity: .95;
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover { background: #e2e8f0; color: var(--primary-dark); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

.section { margin-bottom: 24px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tip { color: var(--muted); font-size: .85rem; }
.more { font-weight: 600; font-size: .9rem; }

.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.layout-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

.league-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
}

.league-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.league-chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Match list flat rows */
.match-panel {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.match-row {
  display: grid;
  grid-template-columns: 150px 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #eff6ff; }

.match-time {
  font-size: .88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.match-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
}

.match-league img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.team img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.vs {
  color: var(--muted);
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

.score {
  font-weight: 800;
  color: var(--primary);
  min-width: 48px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  background: var(--muted);
}

.badge-live { background: var(--live); }
.badge-upcoming { background: var(--primary); }
.badge-finished { background: #475569; }
.badge-replay { background: #6366f1; }

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

.news-list { list-style: none; }
.news-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-list a {
  color: var(--text);
  font-weight: 600;
  display: block;
}
.news-list a:hover { color: var(--primary); }
.news-meta {
  margin-top: 4px;
  font-size: .82rem;
  color: var(--muted);
}

.faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 700; margin-bottom: 4px; }
.faq-a { color: var(--muted); font-size: .95rem; }

.about-box h2, .about-box h3 { margin: 16px 0 8px; }
.about-box ul { padding-left: 1.2em; margin-bottom: 8px; }
.about-box li { margin: 4px 0; color: var(--muted); }
.about-box p { margin-bottom: 10px; color: var(--muted); }

.page-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.page-desc {
  color: var(--muted);
  margin: -8px 0 18px;
}

.match-hero { text-align: center; padding: 28px 18px; }
.match-league-center { justify-content: center; }
.match-time-lg {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 1rem;
}

.teams-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.team-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.team-big img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.score-big {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 80px;
}

.player-box {
  margin-top: 18px;
  padding: 14px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 6px;
  text-align: left;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-body p { margin-bottom: 12px; }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  font-size: .92rem;
}

/* Footer — no nav columns */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 28px 0 36px;
  border-top: 4px solid var(--primary);
}

.footer-about { margin-bottom: 14px; font-size: .92rem; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 14px;
  font-size: .9rem;
}
.friend-label { color: #94a3b8; }
.friend-links a { color: #e2e8f0; }
.friend-links a:hover { color: #fff; }
.copyright { color: #64748b; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .layout-2 { grid-template-columns: 1fr; }
  .match-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 3%;
    right: 3%;
    top: 64px;
    flex-direction: column;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .hero { padding: 28px 18px; }
  .article-nav { grid-template-columns: 1fr; }
  .teams-big { gap: 14px; }
  .score-big { font-size: 1.4rem; min-width: 56px; }
}
