:root {
  --bg: #07111f;
  --panel: #0d1b2e;
  --paper: #ffffff;
  --text: #172033;
  --muted: #657084;
  --line: #e6ebf2;
  --navy: #0a1f3f;
  --blue: #1266d6;
  --gold: #d8a93a;
  --cyan: #23c7ff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
  background: #f5f7fb;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f5d57a, #a56b15);
  color: #07111f;
}

.links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.links a {
  padding: 8px 0;
}

.links a:hover,
.links a.active {
  color: #fff;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #07111f;
  font-weight: 800;
  cursor: pointer;
}

.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: 22px;
}

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.94), rgba(7, 17, 31, 0.68), rgba(7, 17, 31, 0.2)),
    url("./hero-sports-tech.png") center / cover;
}

.hero .wrap {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ghost {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  color: #fff;
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 31, 63, 0.06);
}

.dark-card {
  background: var(--panel);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 102, 214, 0.1);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.thumb {
  min-height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0a1f3f, #1266d6);
}

.breadcrumb {
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  padding: 42px 0 26px;
  background: #07111f;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer strong {
  color: #fff;
}

.footer a {
  display: block;
  margin: 7px 0;
}

.copy {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #0a1f3f;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu {
    display: block;
  }

  .links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 18px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav.open .links {
    display: flex;
  }

  .grid.three,
  .grid.four,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero .wrap {
    min-height: 520px;
  }

  .grid.three,
  .grid.four,
  .footer-grid,
  .article-item {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .card-actions {
    flex-direction: column;
  }

  .cta,
  .ghost {
    width: 100%;
  }
}
