/* 自然风 · jrs直播网 / 极速直播体育 */
:root {
  --bg: #f4f7f0;
  --bg-soft: #e8f0e3;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-solid: #fffdf8;
  --ink: #1f3324;
  --muted: #5d7263;
  --line: #d5e2d0;
  --leaf: #3d8b5a;
  --leaf-deep: #2a6841;
  --leaf-soft: #a8d5b5;
  --sun: #e8b84a;
  --earth: #8b6b3d;
  --danger: #c45c4a;
  --live: #2f9e5e;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(47, 84, 56, 0.08);
  --font-display: "Literata", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --wrap: min(1120px, calc(100% - 32px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--leaf-deep); text-decoration: none; }
a:hover { color: var(--leaf); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

.nature-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 213, 181, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(232, 184, 74, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(61, 139, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #f7faf4 0%, #eef5ea 40%, #f8f4ea 100%);
}
.nature-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%232a6841' d='M60 8c8 18 22 28 40 32-18 4-32 14-40 32-8-18-22-28-40-32 18-4 32-14 40-32z'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.wrap { width: var(--wrap); margin: 0 auto; }
.site-main { padding: 24px 0 48px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 240, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: var(--surface-solid);
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.site-nav a {
  color: var(--muted);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--leaf-deep);
  border-bottom-color: var(--leaf);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 20px;
  margin-bottom: 28px;
}
.hero-card, .side-box, .section, .page-banner, .play-card, .article, .faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,139,90,0.18), transparent 70%);
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--earth);
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-card h1, .page-banner h1, .article h1, .section-head h2, .about-block h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
  line-height: 1.25;
  color: var(--ink);
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 52ch; }
.hero-actions, .signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #fff !important;
}
.btn-ghost {
  background: rgba(255,255,255,0.7);
  border-color: var(--line);
  color: var(--ink) !important;
}

.side-box { padding: 20px; }
.side-box h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 14px;
}
.side-list { display: grid; gap: 10px; }
.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(232, 240, 227, 0.65);
  color: var(--ink);
}
.side-list img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.section { padding: 22px; margin-bottom: 22px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head p, .page-banner p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.section-head a { font-weight: 600; }

.league-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef9, #eef6ea);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.league-chip img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.match-list, .replay-list { display: grid; gap: 10px; }
.match-row, .replay-item {
  display: grid;
  grid-template-columns: 150px 90px 1fr 72px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,253,248,0.9);
  border: 1px solid var(--line);
  color: inherit;
}
.match-row:hover, .replay-item:hover {
  border-color: var(--leaf-soft);
  background: #fff;
}
.mr-time { font-size: 0.85rem; color: var(--muted); }
.mr-league {
  font-size: 0.8rem;
  color: var(--leaf-deep);
  font-weight: 600;
  background: rgba(61,139,90,0.1);
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
}
.mr-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.mr-teams .side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mr-teams .side.away { justify-content: flex-end; }
.mr-teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.mr-teams .score {
  font-family: var(--font-display);
  font-weight: 700;
  min-width: 48px;
  text-align: center;
}
.mr-status {
  font-size: 0.78rem;
  text-align: center;
  font-weight: 700;
  padding: 4px 0;
  border-radius: 999px;
}
.st-live { color: #fff; background: var(--live); }
.st-upcoming { color: var(--earth); background: rgba(232,184,74,0.2); }
.st-finished, .st-done { color: var(--muted); background: var(--bg-soft); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
}
.news-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--bg-soft);
}
.news-card .body { padding: 12px 14px 16px; }
.news-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  font-family: var(--font-display);
}
.news-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.faq details {
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line); color: var(--leaf-deep); }
.faq details p {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
}

.page-banner { padding: 24px; margin-bottom: 18px; }
.play-card { padding: 28px 20px; }
.play-vs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.play-vs .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 110px;
}
.play-vs img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  border: 1px solid var(--line);
}
.play-vs .vs {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--leaf-deep);
}
.play-tip { text-align: center; color: var(--muted); margin: 0 0 18px; }
.signal-list { justify-content: center; }

.article { padding: 28px; }
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.article-content { font-size: 1.02rem; }
.article-content p { margin: 0 0 1em; }
.article-content img {
  margin: 12px auto;
  border-radius: 12px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.pager a, .pager span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.pager .disabled { color: var(--muted); opacity: 0.6; }

.replay-item {
  grid-template-columns: 1fr auto;
}
.replay-item h3 { margin: 0 0 6px; font-size: 1rem; }
.replay-item p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  background: rgba(232,240,227,0.5);
  border-radius: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.9);
  padding: 28px 0 36px;
}
.about-block { margin-bottom: 22px; }
.about-body { color: var(--muted); }
.about-body h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 18px 0 8px;
}
.about-body ul { padding-left: 1.2em; margin: 0 0 8px; }
.about-body .tip {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(232,184,74,0.12);
  border-radius: 12px;
  color: var(--earth);
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--leaf-deep); }
.copy { margin: 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .match-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "time league"
      "teams teams"
      "status status";
  }
  .mr-time { grid-area: time; }
  .mr-league { grid-area: league; justify-self: end; }
  .mr-teams { grid-area: teams; }
  .mr-status { grid-area: status; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 24px, 1120px); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 68px;
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .league-chips { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 24px 18px; }
  .mr-teams .side b { font-size: 0.9rem; }
  .article { padding: 18px; }
}
