:root {
  --bg0: #071018;
  --bg1: #0c1a28;
  --panel: rgba(14, 28, 44, 0.82);
  --panel-solid: #102033;
  --line: rgba(0, 220, 255, 0.22);
  --text: #e8f4ff;
  --muted: #8aa3b8;
  --accent: #00d4ff;
  --accent2: #ff8a1f;
  --live: #ff4d4f;
  --ok: #2ee59d;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Orbitron", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.style-3d {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, #12304a 0%, transparent 55%),
              radial-gradient(900px 600px at 100% 0%, #1a2a18 0%, transparent 50%),
              linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #050b12);
  perspective: 1400px;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7aefff; }
img { max-width: 100%; height: auto; vertical-align: middle; }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

.scene-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.45;
}
.orb-a {
  width: 320px; height: 320px; left: -60px; top: 80px;
  background: radial-gradient(circle, rgba(0,212,255,.55), transparent 70%);
}
.orb-b {
  width: 380px; height: 380px; right: -80px; top: 220px;
  background: radial-gradient(circle, rgba(255,138,31,.4), transparent 70%);
}
.grid-floor {
  position: absolute; left: -10%; right: -10%; bottom: -20%; height: 55%;
  background:
    linear-gradient(transparent 0 96%, rgba(0,212,255,.12) 96%),
    linear-gradient(90deg, transparent 0 96%, rgba(0,212,255,.12) 96%);
  background-size: 48px 48px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: 50% 0;
  opacity: .35;
}

.site-header, .site-main, .friends, .site-footer { position: relative; z-index: 1; }

.site-header {
  padding: 14px 0 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,16,24,.92), rgba(7,16,24,.55));
  backdrop-filter: blur(10px);
}
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mast-date { font-size: 13px; color: var(--muted); }
.brand {
  display: flex; align-items: center; gap: 12px; justify-self: center; color: var(--text);
  transform: translateZ(20px);
}
.brand img {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,212,255,.25), 0 2px 0 rgba(255,255,255,.08) inset;
  transform: rotateY(-8deg) rotateX(6deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text em {
  font-family: var(--display); font-style: normal; font-size: 11px; letter-spacing: .18em;
  color: var(--accent); opacity: .9;
}
.brand-text b { font-size: 24px; letter-spacing: .04em; }
.mast-tagline { justify-self: end; margin: 0; color: var(--muted); font-size: 13px; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--panel-solid); color: var(--text);
  border-radius: 10px; padding: 8px 12px; cursor: pointer;
}

.main-nav {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 8px; justify-content: center;
}
.main-nav a, .sub-nav a, .chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid transparent; box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.main-nav a:hover, .sub-nav a:hover, .chip:hover,
.main-nav a.on, .sub-nav a.on, .chip.on {
  border-color: rgba(0,212,255,.45);
  background: linear-gradient(180deg, rgba(0,212,255,.22), rgba(0,212,255,.08));
  transform: translateY(-2px);
  color: #fff;
}
.sub-nav {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 0 12px;
}
.sub-nav a { min-height: 30px; font-size: 13px; padding: 0 12px; opacity: .92; }

.site-main { padding: 22px 0 48px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.crumb a { color: var(--accent); }

.hero, .hero-mini, .mag-panel, .league-block, .article, .match-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,.05) inset;
  transform-style: preserve-3d;
}
.mast-hero {
  padding: 34px 28px 30px;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(0,212,255,.14), transparent 42%),
    linear-gradient(225deg, rgba(255,138,31,.12), transparent 40%),
    var(--panel);
  transform: rotateX(2deg);
}
.mast-hero .eyebrow { margin: 0 0 8px; color: var(--accent); letter-spacing: .12em; font-size: 12px; font-family: var(--display); }
.mast-hero h1 {
  margin: 0 0 8px; font-size: clamp(32px, 5vw, 52px); font-family: var(--display);
  text-shadow: 0 10px 30px rgba(0,212,255,.25);
}
.hero-kw {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,138,31,.16); color: #ffc98a; border: 1px solid rgba(255,138,31,.35); font-weight: 700;
}
.mast-hero .lead, .hero-mini p { margin: 0; color: var(--muted); line-height: 1.7; max-width: 720px; }
.hero-mini { padding: 20px 22px; margin-bottom: 16px; }
.hero-mini h1 { margin: 0 0 8px; font-size: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sec { margin: 22px 0; }
.sec-title {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px;
  font-size: 20px;
}
.sec-title small { color: var(--muted); font-weight: 500; font-size: 13px; }

.league-block { padding: 14px; margin-bottom: 14px; }
.league-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px;
}
.league-title img { width: 18px; height: 18px; object-fit: contain; }
.league-title a { color: var(--text); }
.league-title small { color: var(--muted); font-weight: 500; }

.match-list { display: grid; gap: 8px; }
.match-card {
  display: grid;
  grid-template-columns: 140px 1fr auto 1fr auto;
  align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  transform: translateZ(0);
}
.match-card:hover {
  transform: translateY(-3px) rotateX(4deg);
  border-color: rgba(0,212,255,.4);
  box-shadow: 0 16px 28px rgba(0,212,255,.12);
  color: #fff;
}
.mc-time { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.mc-full { color: var(--text); font-weight: 600; font-size: 13px; }
.mc-st { font-style: normal; }
.match-card.is-live .mc-st { color: var(--live); }
.match-card.is-done .mc-st { color: var(--ok); }
.mc-team {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.mc-team.away { justify-content: flex-end; text-align: right; }
.mc-team img {
  width: 28px; height: 28px; object-fit: contain; flex: 0 0 auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.35));
}
.mc-team strong {
  font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-score {
  min-width: 64px; text-align: center; font-family: var(--display); font-weight: 700;
  color: var(--accent); font-size: 15px;
}
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; height: 32px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, #19e0ff, #008bb8);
  color: #041018; box-shadow: 0 8px 16px rgba(0,212,255,.28);
}
.match-card.is-live .mc-btn { background: linear-gradient(180deg, #ff7a6e, #d43333); color: #fff; }
.match-card.is-done .mc-btn { background: linear-gradient(180deg, #53f0b4, #1aa86f); color: #042016; }

.date-bar {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 14px;
}
.date-item {
  flex: 0 0 auto; min-width: 78px; padding: 10px 12px; border-radius: 12px; text-align: center;
  color: var(--text); background: var(--panel-solid); border: 1px solid rgba(255,255,255,.06);
}
.date-item b { display: block; font-size: 15px; }
.date-item span { color: var(--muted); font-size: 12px; }
.date-item.on { border-color: rgba(0,212,255,.5); background: rgba(0,212,255,.12); }

.vlist { display: grid; gap: 8px; }
.vrow {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 16px; border-radius: 12px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.vrow:hover { border-color: rgba(0,212,255,.45); color: #fff; }
.vrow time { color: var(--muted); font-size: 13px; white-space: nowrap; }

.news-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.news-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px;
  border-radius: 14px; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease;
}
.news-card:hover { transform: translateY(-4px) rotateX(3deg); border-color: rgba(0,212,255,.4); color: #fff; }
.news-card img {
  width: 120px; height: 84px; object-fit: cover; border-radius: 10px; background: #0a1520;
}
.news-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.news-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.news-card time { color: var(--muted); font-size: 12px; }

.mag-panel { padding: 22px 24px; margin: 18px 0; }
.mag-panel h2 { margin: 0 0 12px; font-size: 22px; }
.mag-panel h3 { margin: 16px 0 8px; font-size: 16px; color: var(--accent); }
.mag-panel p { margin: 0 0 10px; color: #c7d7e6; line-height: 1.8; }
.faq details {
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: rgba(255,255,255,.03);
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }

.match-detail { padding: 24px; }
.match-detail .kicker { color: var(--muted); margin: 0 0 8px; }
.match-detail h1 { margin: 0 0 18px; font-size: 26px; }
.md-board {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
  padding: 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,212,255,.1), rgba(255,255,255,.02));
  border: 1px solid var(--line); margin-bottom: 16px;
}
.md-board .side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.md-board img {
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.4));
}
.md-board .mid { text-align: center; }
.md-board .mid b { display: block; font-family: var(--display); font-size: 28px; color: var(--accent); margin-bottom: 8px; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,.08); color: var(--muted);
}
.badge.live { background: rgba(255,77,79,.18); color: #ff9b9c; }
.badge.done { background: rgba(46,229,157,.16); color: #8dffcb; }
.signals { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.sig {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px; height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 700;
  color: #041018; background: linear-gradient(180deg, #19e0ff, #008bb8);
  box-shadow: 0 10px 20px rgba(0,212,255,.28);
}
.sig:hover { color: #041018; filter: brightness(1.08); }
.tip { color: var(--muted); font-size: 13px; line-height: 1.7; }

.article { padding: 24px; }
.article h1 { margin: 0 0 14px; font-size: 28px; line-height: 1.35; }
.meta-box {
  display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 12px 14px; margin-bottom: 16px;
  border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  color: var(--muted); font-size: 13px;
}
.article .cover img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; }
.article .content { line-height: 1.9; color: #d7e6f3; }
.article .content p { margin: 0 0 14px; }
.article .content img { border-radius: 10px; }
.pn { display: grid; gap: 10px; margin-top: 22px; }
.pn a, .pn span {
  display: block; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06); color: var(--text);
}
.pn a:hover { border-color: rgba(0,212,255,.4); }
.pn .muted { color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 10px; background: var(--panel-solid); color: var(--text);
  border: 1px solid rgba(255,255,255,.06);
}
.pager .on, .pager a:hover { border-color: rgba(0,212,255,.45); background: rgba(0,212,255,.12); }

.empty {
  padding: 28px; text-align: center; color: var(--muted);
  border: 1px dashed rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.02);
}

.friends {
  border-top: 1px solid var(--line); padding: 16px 0; background: rgba(0,0,0,.2);
}
.friends .wrap { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.friends .lab { color: var(--muted); font-size: 13px; }
.friends a { color: var(--muted); font-size: 13px; }
.friends a:hover { color: var(--accent); }

.site-footer {
  padding: 22px 0 36px; color: var(--muted); font-size: 13px; line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.05);
}
.site-footer p { margin: 0 0 8px; }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; }
  .mast-date { display: none; }
  .mast-tagline { display: none; }
  .brand { justify-self: start; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .main-nav { display: none; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .news-grid { grid-template-columns: 1fr; }
  .match-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time btn"
      "home score"
      "away score";
  }
  .mc-time { grid-area: time; }
  .mc-team.home { grid-area: home; }
  .mc-team.away { grid-area: away; justify-content: flex-start; text-align: left; }
  .mc-score { grid-area: score; align-self: center; }
  .mc-btn { grid-area: btn; justify-self: end; }
  .md-board { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 560px) {
  .brand-text b { font-size: 18px; }
  .mast-hero { padding: 24px 18px; }
  .mast-hero h1 { font-size: 28px; }
  .news-card { grid-template-columns: 88px 1fr; }
  .news-card img { width: 88px; height: 66px; }
  .vrow { flex-direction: column; align-items: flex-start; }
  .article { padding: 16px; }
  .article h1 { font-size: 22px; }
}
