@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=ZCOOL+XiaoWei&display=swap");

/* 龙珠直播网 · 柔美风 Soft Blush Sports */
:root {
  --blush: #ffb6c1;
  --rose: #ff8fab;
  --deep: #8b3a4a;
  --ink: #4a2c35;
  --muted: #7a4a56;
  --cream: #fff5f7;
  --mist: #ffe8ef;
  --card: #ffffff;
  --line: rgba(255, 143, 171, 0.35);
  --shadow: 0 10px 28px rgba(180, 80, 110, 0.1);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffd6e0 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f3e0ff 0%, transparent 50%),
    linear-gradient(180deg, #fff8fa 0%, #ffeef3 40%, #fff6f8 100%);
  min-height: 100vh;
  line-height: 1.65;
}
a { color: var(--deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose); }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

/* 数据区强制可见，防止动画/图层盖住 */
.hero-brand, .hero h1, .hero p, .hero-cta,
.hot-left, .hot-right, .match-row, .news-card, .league-item,
.soft-block, .detail-hero, .article-body {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(255, 248, 250, 0.95);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
  position: relative;
}
.logo img { display: block; border-radius: 12px; height: 48px; width: auto; }
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  color: var(--ink);
}
.main-nav a.active, .main-nav a:hover {
  background: linear-gradient(135deg, var(--blush), var(--rose));
  color: #fff;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 6px; padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--deep); border-radius: 2px;
}

/* Hero */
.hero {
  padding: 48px 0 24px;
  text-align: center;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--deep);
  letter-spacing: 0.04em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  margin: 12px 0 8px;
  color: var(--ink);
}
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 15px; }
.hero-cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #ff9eb5, #ff6b8a);
  color: #fff; box-shadow: 0 8px 24px rgba(255, 107, 138, 0.35);
}
.btn-ghost {
  background: var(--card); color: var(--deep); border: 1px solid var(--line);
}

/* Sections */
.section { padding: 28px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem; color: var(--deep);
  display: flex; align-items: center; gap: 10px;
}
.section-title img { width: 28px; height: 28px; flex-shrink: 0; }
.section-sub { color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Hot matches */
.hot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}
.hot-left, .hot-right, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hot-big {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  padding: 28px 20px 24px;
  background: linear-gradient(145deg, #ffd0dc, #ffb4c8 50%, #f5c6ff);
  color: var(--deep);
  margin-bottom: 14px;
}
.hot-big .line1 { font-size: 13px; color: var(--deep); }
.hot-big .status {
  position: absolute; right: 16px; top: 16px;
  background: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  color: var(--deep); z-index: 2;
}
.hot-teams {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; gap: 10px;
}
.hot-teams .side {
  flex: 1; text-align: center; font-weight: 600;
  word-break: break-word; color: var(--ink);
}
.hot-teams img { width: 56px; height: 56px; margin: 8px auto; display: block; }
.hot-teams .score {
  font-size: 1.6rem; font-weight: 700; min-width: 48px; text-align: center;
  color: var(--deep); flex-shrink: 0;
}

.hot-small-list { display: grid; gap: 10px; }
.hot-small {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px minmax(0, 1fr);
  align-items: center; gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mist);
  font-size: 14px;
  color: var(--ink);
}
.hot-small .line1 {
  grid-column: 1 / -1; font-size: 12px; color: var(--muted);
}
.hot-small img { width: 28px; height: 28px; }
.hot-small .zhudui, .hot-small .kedui {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-weight: 500;
}
.hot-small .zhudui { text-align: right; }
.hot-small .kedui { text-align: left; }

.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
}
.league-item {
  text-align: center; padding: 12px 8px;
  border-radius: 16px; background: var(--mist);
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.league-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.league-item img { width: 52px; height: 52px; margin-bottom: 6px; }
.league-item div { font-size: 13px; font-weight: 600; color: var(--ink); }

/* Match list — 三列清晰展示联赛/对阵/状态 */
.match-list { display: grid; gap: 12px; }
.match-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
  align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.match-row .meta {
  font-size: 13px; color: var(--muted); min-width: 0;
}
.match-row .meta strong {
  display: block; color: var(--deep); margin-bottom: 4px; font-size: 14px;
}
.match-row .meta span {
  display: block; line-height: 1.4; word-break: break-all;
}
.match-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}
.match-vs .side {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.match-vs .side.home { justify-content: flex-end; text-align: right; }
.match-vs .side.away { justify-content: flex-start; text-align: left; flex-direction: row; }
.match-vs .side.home { flex-direction: row; }
.match-vs img {
  width: 36px; height: 36px; flex-shrink: 0;
  object-fit: contain;
}
.match-vs .name {
  font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.match-vs .vs-score {
  min-width: 56px; padding: 4px 8px;
  text-align: center; color: #c2185b; font-size: 1.15rem; font-weight: 700;
  background: #fff0f4; border-radius: 8px; flex-shrink: 0;
}
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap;
}
.badge-live { background: #ffe0e8; color: #d6336c; }
.badge-up { background: #efe6ff; color: #7b5ea7; }
.badge-end { background: #f0f0f0; color: #666; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.news-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .2s;
}
.news-card:hover { transform: translateY(-4px); }
.news-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.45; color: var(--ink); }
.news-card p { font-size: 13px; color: var(--muted); }
.news-card .time { margin-top: 10px; font-size: 12px; color: var(--rose); }

/* About / FAQ */
.soft-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  color: var(--ink);
}
.soft-block h2 {
  font-family: var(--font-display);
  font-size: 1.45rem; color: var(--deep); margin-bottom: 14px;
}
.soft-block h3 { font-size: 1.05rem; margin: 16px 0 8px; color: var(--ink); }
.soft-block p, .soft-block li { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.soft-block ul { padding-left: 1.2em; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-weight: 600; color: var(--deep); cursor: pointer; display: flex; gap: 8px; align-items: center; }
.faq-q img { width: 20px; height: 20px; flex-shrink: 0; }
.faq-a { margin-top: 8px; color: var(--muted); font-size: 14px; display: none; }
.faq-item.open .faq-a { display: block; }

/* Detail */
.detail-hero {
  background: linear-gradient(145deg, #ffd6e2, #f0d4ff);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
}
.detail-hero .league { color: var(--muted); margin-bottom: 8px; }
.detail-hero .time { font-size: 15px; margin-bottom: 20px; color: var(--ink); }
.detail-teams {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-wrap: wrap;
}
.detail-teams .team { text-align: center; min-width: 100px; color: var(--ink); font-weight: 600; }
.detail-teams img { width: 72px; height: 72px; margin-bottom: 8px; }
.detail-teams .score-big { font-size: 2.4rem; font-weight: 700; color: var(--deep); min-width: 80px; }
.player-box {
  background: #1a1020; color: #fff; border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; overflow: hidden;
}
.player-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(255,143,171,.25), transparent 50%);
}
.player-box .tip { position: relative; z-index: 1; text-align: center; padding: 20px; }
.player-box .tip img { width: 48px; margin-bottom: 10px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.article-body { font-size: 16px; line-height: 1.85; color: var(--ink); }
.article-body p { margin-bottom: 1em; }
.pager {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
}
.pager a { font-size: 14px; max-width: 48%; }

/* Footer */
.site-footer {
  margin-top: 48px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 182, 193, 0.25));
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand img { margin: 0 auto 8px; border-radius: 10px; height: 36px; width: auto; }
.footer-brand p { color: var(--muted); font-size: 14px; }
.friend-links { margin: 14px 0; font-size: 13px; }
.friend-links a { margin: 0 8px; color: var(--muted); }
.friend-links a:hover { color: var(--rose); }
.copyright { font-size: 12px; color: var(--muted); max-width: 720px; margin: 0 auto; }

.page-title {
  font-family: var(--font-display);
  font-size: 1.75rem; color: var(--deep); margin: 28px 0 18px;
}

/* Responsive */
@media (max-width: 900px) {
  .hot-grid { grid-template-columns: 1fr; }
  .match-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta badge"
      "vs vs";
    gap: 10px;
    text-align: left;
  }
  .match-row .meta { grid-area: meta; }
  .match-row .badge { grid-area: badge; align-self: start; }
  .match-row .match-vs { grid-area: vs; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(255,248,250,0.98); flex-direction: column;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    z-index: 120;
  }
  .main-nav.open { display: flex; }
  .hero { padding: 28px 0 12px; }
  .hot-small { font-size: 13px; }
  .match-vs .name { font-size: 13px; }
  .match-vs img { width: 28px; height: 28px; }
  .detail-teams { gap: 12px; }
  .detail-teams img { width: 56px; height: 56px; }
  .detail-teams .score-big { font-size: 1.8rem; }
  .article-meta { font-size: 12px; }
  .pager a { max-width: 100%; }
  .match-vs {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
  }
  .match-vs .side {
    flex-direction: column !important;
    gap: 4px;
  }
  .match-vs .side.home, .match-vs .side.away {
    text-align: center; justify-content: center;
  }
  .match-vs .name { white-space: normal; font-size: 12px; line-height: 1.3; }
}
