:root {
  --sky: #e8f4ff;
  --cream: #fff8ef;
  --ink: #2d2448;
  --muted: #6b6280;
  --coral: #ff6b4a;
  --sun: #ffb84d;
  --mint: #3ecfba;
  --lilac: #8b7cff;
  --panel: #ffffff;
  --line: rgba(45, 36, 72, 0.08);
  --shadow: 0 12px 28px rgba(45, 36, 72, 0.1);
  --radius: 20px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 42%, #ffe8d6 100%);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  position: relative;
  overflow-x: hidden;
}

/* 装饰层永远在内容下方，且不拦截点击 */
.illus-bg {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(8px); opacity: 0.28;
  pointer-events: none;
}
.blob.b1 { width: 280px; height: 280px; left: -100px; top: -80px; background: radial-gradient(circle, #ffd0c4, transparent 70%); }
.blob.b2 { width: 240px; height: 240px; right: -80px; top: 160px; background: radial-gradient(circle, #c9f0ea, transparent 70%); }
.blob.b3 { width: 300px; height: 300px; left: 35%; bottom: -160px; background: radial-gradient(circle, #ffe2a8, transparent 70%); }
.deco {
  position: absolute; width: 48px; height: 48px; border: 2px dashed rgba(255,107,74,.22);
  border-radius: 14px; transform: rotate(18deg);
  pointer-events: none; opacity: 0.5;
}
.deco.d1 { top: 200px; right: 4%; }
.deco.d2 { bottom: 180px; left: 3%; border-color: rgba(62,207,186,.22); transform: rotate(-12deg); }

a { color: #3a6fe0; text-decoration: none; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }
.container {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255,107,74,.12);
}
.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(--ink); flex-shrink: 0; }
.brand img {
  width: 48px; height: 48px; border-radius: 16px;
  box-shadow: 0 8px 18px rgba(255,107,74,.28);
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-text em {
  font-style: normal; font-size: 0.78rem; color: var(--muted);
  max-width: 260px;
}

.main-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  color: var(--muted); padding: 8px 16px; border-radius: 999px;
  border: 2px solid transparent; transition: .2s ease; white-space: nowrap;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--sun));
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(255,107,74,.28);
}

.nav-toggle {
  display: none; background: transparent; border: 0; width: 42px; height: 42px;
  flex-direction: column; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; width: 22px; background: var(--ink); margin: 0 auto;
  border-radius: 3px;
}

.site-main {
  padding: 22px 0 56px;
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.hero-illus {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 36px 32px 40px;
  background:
    linear-gradient(135deg, #fff 0%, #fff4ea 55%, #e8fbff 100%);
  border: 3px solid rgba(255,107,74,.15);
  box-shadow: var(--shadow);
  z-index: 2;
}
.hero-illus .float-ball {
  position: absolute; right: 8%; top: 18%;
  width: 88px; height: 88px; border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 40%),
    linear-gradient(145deg, var(--coral), var(--sun));
  box-shadow: 0 12px 24px rgba(255,107,74,.35);
}
.hero-illus .float-ball::after {
  content: ""; position: absolute; inset: 18%;
  border: 2px solid rgba(255,255,255,.55); border-radius: 50%;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 12px;
  color: var(--ink);
  max-width: 16em;
  position: relative;
  z-index: 1;
}
.hero-desc {
  margin: 0 0 22px; color: var(--muted); max-width: 38em;
  position: relative; z-index: 1;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  border: 2px solid transparent; transition: .2s ease;
}
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--coral), #ff8a5c);
  box-shadow: 0 8px 18px rgba(255,107,74,.3);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff !important; }
.btn-ghost {
  color: var(--ink) !important;
  background: #fff;
  border-color: rgba(45,36,72,.12);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral) !important; }

.section {
  margin-top: 34px;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.section-head h2 {
  font-family: var(--display);
  margin: 0 0 4px; font-size: 1.55rem;
}
.section-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.section-head a { font-weight: 600; }

.page-title {
  font-family: var(--display);
  font-size: 1.8rem; margin: 8px 0 20px;
}

.league-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px;
  background: var(--panel);
  border-radius: 18px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.league-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,74,.35);
  color: var(--ink);
}
.league-chip img {
  width: 48px; height: 48px; object-fit: contain;
}
.league-chip span { font-weight: 600; font-size: 0.95rem; }

.match-list {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.match-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.match-card:hover {
  border-color: rgba(62,207,186,.4);
  transform: translateY(-2px);
}
.match-meta {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 12px;
}
.match-meta .league { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.match-meta .league img { width: 18px; height: 18px; object-fit: contain; }
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
  background: #f6f8fc; border-radius: 12px; padding: 4px;
}
.team span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs {
  font-family: var(--display);
  font-size: 1.1rem; color: var(--muted);
  min-width: 64px; text-align: center;
}
.vs.score { color: var(--coral); font-size: 1.25rem; }
.match-action {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; gap: 10px;
}
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.badge-upcoming { background: #eef2ff; color: #4c5bd4; }
.badge-live { background: #ffe8e2; color: var(--coral); }
.badge-finished { background: #e8f8f5; color: #1f9d88; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.news-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.news-card:hover { transform: translateY(-3px); border-color: rgba(139,124,255,.35); }
.news-card a { color: inherit; display: block; }
.news-card .cover {
  background: linear-gradient(135deg, #ffd3c4, #c9f0ea);
  padding: 18px 16px; font-weight: 700; color: var(--ink);
}
.news-card .body { padding: 14px 16px 18px; }
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.45; }
.news-card p {
  margin: 0 0 10px; color: var(--muted); font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .meta { color: #9a92ad; font-size: 0.82rem; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--panel);
  border-radius: 18px;
  border: 2px solid var(--line);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
}
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--muted); }

.about-box {
  background: var(--panel);
  border-radius: 24px;
  border: 2px solid var(--line);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.about-box h2, .about-box h1, .about-box h3 {
  font-family: var(--display);
}
.about-box ul { padding-left: 1.2em; color: var(--muted); }
.about-box li { margin: 6px 0; }

.article {
  background: var(--panel);
  border-radius: 24px;
  border: 2px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow);
}
.article h1 {
  font-family: var(--display);
  margin: 0 0 14px; font-size: 1.7rem; line-height: 1.35;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: 0.88rem;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px dashed var(--line);
}
.article-content { color: #3d3558; }
.article-content p { margin: 0 0 1em; }
.article-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 16px; border-top: 2px dashed var(--line);
}
.article-nav a { font-weight: 600; }

.empty {
  text-align: center; color: var(--muted);
  padding: 36px 16px;
  background: rgba(255,255,255,.65);
  border-radius: 18px; border: 2px dashed var(--line);
}

.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(45, 36, 72, 0.96);
  color: #d8d2ea;
  padding: 28px 0 22px;
  margin-top: 20px;
}
.site-footer a { color: #ffd0b8; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: 0 0 12px; }
.friend-links { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px; }
.copyright { margin: 0; font-size: 0.88rem; color: #9e96b8; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .main-nav {
    display: none;
    position: absolute;
    left: 14px; right: 14px; top: 72px;
    z-index: 60;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; }
  .hero-illus { padding: 28px 20px 32px; padding-right: 88px; }
  .hero-illus .float-ball {
    width: 56px; height: 56px; right: 12px; top: 16px; opacity: 0.85;
  }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { flex-direction: row; text-align: left; }
  .vs { justify-self: start; }
  .article { padding: 18px; }
  .blob, .deco { display: none; }
}

/* 强制正文内容可读，覆盖任何残留内联透明度 */
.site-main .match-card,
.site-main .news-card,
.site-main .league-chip,
.site-main .faq-item,
.site-main .article,
.site-main .about-box {
  opacity: 1 !important;
  visibility: visible !important;
}
