:root {
  --ink: #e8f1ff;
  --muted: #8aa0bf;
  --rule: #1ee3ff;
  --paper: #07101f;
  --paper-deep: #0b1730;
  --panel: rgba(14, 28, 55, 0.78);
  --accent: #1ee3ff;
  --accent-2: #3d7eff;
  --accent-soft: rgba(30, 227, 255, 0.12);
  --live: #ff4d6d;
  --ok: #2ef2a4;
  --line: rgba(120, 170, 255, 0.18);
  --max: 1100px;
  --display: "Orbitron", "Noto Sans SC", sans-serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tech {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }
button { font: inherit; cursor: pointer; }

.tech-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% -10%, rgba(61, 126, 255, 0.28), transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(30, 227, 255, 0.16), transparent 40%),
    linear-gradient(180deg, #050b16 0%, #07101f 40%, #0a162c 100%);
}
.tech-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 227, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 227, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%);
}

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 31, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 0.65rem;
  border-bottom: 1px solid var(--line);
}
.mast-date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: center;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(30, 227, 255, 0.45);
  background: linear-gradient(145deg, #102447, #0a1730);
  box-shadow: 0 0 18px rgba(30, 227, 255, 0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-family: var(--display);
}
.brand-text b {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #e8f1ff, #1ee3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mast-tagline {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.main-nav a {
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
}
.main-nav a.on,
.main-nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.55rem 0 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.sub-nav a.on { color: var(--accent); font-weight: 700; }

.site-main { padding: 1.5rem 0 3rem; }

.mast-hero {
  text-align: center;
  padding: 2.4rem 1rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(30, 227, 255, 0.08), rgba(61, 126, 255, 0.05)),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(30, 227, 255, 0.05), 0 20px 50px rgba(0,0,0,.25);
}
.mast-hero .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--display);
}
.mast-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
.hero-kw {
  margin: 0.55rem 0 0.85rem;
  display: inline-block;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(30, 227, 255, 0.35);
  border-radius: 999px;
  background: var(--accent-soft);
}
.mast-hero .lead {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.hero-mini {
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 1rem;
  background: var(--panel);
}
.hero-mini h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.55rem;
}
.hero-mini p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.sec { margin: 1.75rem 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.25rem;
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.75rem;
}
.sec-title span { letter-spacing: 0.04em; }
.sec-title small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  border: 1px solid var(--line);
  padding: 0.28rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(14, 28, 55, 0.7);
  color: var(--muted);
}
.chip.on, .chip:hover {
  background: linear-gradient(90deg, rgba(30,227,255,.2), rgba(61,126,255,.25));
  border-color: var(--accent);
  color: var(--ink);
}

.date-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 4.6rem;
  text-align: center;
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  background: var(--panel);
  border-radius: 10px;
}
.date-item b { display: block; font-size: 0.95rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  border-color: var(--accent);
  background: rgba(30, 227, 255, 0.15);
  color: var(--ink);
  box-shadow: 0 0 16px rgba(30, 227, 255, 0.2);
}
.date-item.on span { color: rgba(232,241,255,0.75); }

.league-block { margin-bottom: 1.35rem; }
.league-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.league-title img {
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.league-title small {
  margin-left: auto;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
}

.match-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.match-card {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}
.match-card:last-child { border-bottom: 0; }
.match-card:hover {
  background: rgba(30, 227, 255, 0.05);
  color: inherit;
}
.match-card.is-live {
  background: rgba(255, 77, 109, 0.08);
  box-shadow: inset 3px 0 0 var(--live);
}
.mc-time { display: flex; flex-direction: column; gap: 0.15rem; }
.mc-full { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.mc-st {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--muted);
}
.is-live .mc-st { color: var(--live); font-weight: 700; }
.mc-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.mc-team.away { justify-content: flex-end; text-align: right; }
.mc-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.mc-team strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 3.2rem;
  text-align: center;
  color: var(--accent);
}
.mc-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
  border-radius: 8px;
  background: rgba(30, 227, 255, 0.08);
}
.is-live .mc-btn {
  background: var(--live);
  border-color: var(--live);
  color: #fff;
}

.vlist {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.vrow:last-child { border-bottom: 0; }
.vrow time { color: var(--muted); font-size: 0.8rem; flex-shrink: 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.news-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.news-card img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-deep);
}
.news-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card time { font-size: 0.75rem; color: var(--muted); }

.mag-panel {
  margin: 2rem 0;
  padding: 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.mag-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--accent);
}
.mag-panel h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: #c8dbff;
}
.mag-panel p { margin: 0.4rem 0; color: #c5d4ea; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "› ";
  color: var(--accent);
  font-family: var(--display);
}
.faq details p { margin: 0.45rem 0 0.2rem; color: var(--muted); font-size: 0.95rem; }

.crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 0.25rem; }

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

.match-detail {
  text-align: center;
  padding: 1.2rem 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  background: var(--panel);
}
.match-detail .kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.match-detail h1 {
  margin: 0.4rem 0 1.2rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}
.md-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.md-board .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.md-board .side img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 4px;
}
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--accent);
}
.badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.badge.live { background: var(--live); color: #fff; border-color: var(--live); }
.signals { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; }
.sig {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.45rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  background: rgba(30, 227, 255, 0.08);
}
.sig:hover { background: var(--accent); color: #041018; }
.tip { margin: 1rem auto 0; max-width: 32rem; font-size: 0.85rem; color: var(--muted); }

.article h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.3;
}
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--panel);
}
.article .cover { margin: 0 0 1rem; }
.article .cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.article .content {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #d5e3f7;
}
.article .content p { margin: 0.85rem 0; }
.article .content img { margin: 0.5rem 0; border: 1px solid var(--line); border-radius: 8px; }
.pn {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pn a { font-size: 0.92rem; color: var(--accent); }
.pn .muted { color: var(--muted); }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.pager a, .pager span {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  border-radius: 8px;
  background: var(--panel);
}
.pager .on {
  background: linear-gradient(90deg, #1ee3ff, #3d7eff);
  color: #041018;
  border-color: transparent;
  font-weight: 700;
}

.friends {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 0.85rem;
  background: rgba(8, 16, 32, 0.9);
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
}
.friends .lab {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--display);
}
.friends a { color: var(--muted); }
.friends a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: #050b16;
}
.site-footer p { margin: 0.35rem 0; }

.news-list { display: flex; flex-direction: column; gap: 0.65rem; }
.news-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.news-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-row h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.video-list a {
  display: block;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.55rem;
  background: var(--panel);
}

@media (max-width: 820px) {
  .masthead {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date toggle"
      "brand brand"
      "tag tag";
  }
  .mast-date { grid-area: date; }
  .brand { grid-area: brand; justify-self: start; }
  .mast-tagline { grid-area: tag; justify-self: start; text-align: left; }
  .nav-toggle { display: inline-block; grid-area: toggle; justify-self: end; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 0;
  }
  .match-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time btn"
      "home score"
      "away score";
    gap: 0.35rem 0.5rem;
  }
  .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; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card, .news-row { grid-template-columns: 88px 1fr; }
  .news-card img, .news-row img { width: 88px; height: 66px; }
  .md-board { gap: 0.5rem; }
  .md-board .side strong { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .brand-text b { font-size: 1.25rem; }
  .mast-hero { padding: 1.4rem 0.85rem 1.2rem; }
  .vrow { flex-direction: column; gap: 0.25rem; }
}
