/* ==========================================================================
   热竞技体育 · 共享站点样式 /assets/site.css
   ========================================================================== */

:root {
  --signal: #E8451F;
  --signal-soft: #FF7A3D;
  --signal-deep: #8C2A16;
  --navy: #0E1B33;
  --navy-2: #16294A;
  --slate: #2C3E5C;
  --paper: #F4F1E9;
  --stone: #DCD5C6;
  --moss: #6E7F63;
  --lime: #C8FF4D;
  --white: #FFFFFF;
  --ink: #14161C;
  --rail: 0px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SF Mono",
    Menlo, Consolas, "Courier New", monospace;

  --ease-out: cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: var(--rail);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(44, 62, 92, 0.055) 1px, transparent 1px);
  background-size: 96px 100%;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ---------- 中文排版 ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: break-word;
}

p {
  margin: 0 0 1em;
  max-width: 38em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--signal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--signal);
}

strong,
b {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--signal);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}

/* ---------- 阅读进度 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: var(--rail);
  right: 0;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 900;
  pointer-events: none;
}

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 40;
}

/* ---------- 比分滚轴 ---------- */
.score-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(12px, 2.4vw, 24px);
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--navy-2);
  min-height: 48px;
  overflow: hidden;
}

.score-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 3px 8px;
  background: var(--signal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.score-ticker__dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: ticker-pulse 1.6s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.45; transform: translateY(-2px); }
}

.score-ticker__track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.score-ticker__track::-webkit-scrollbar {
  display: none;
}

.score-ticker__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.score-ticker__track:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.score-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 5px 12px;
  border: 1px solid var(--navy-2);
  background: rgba(255, 255, 255, 0.045);
  color: var(--white);
  font-size: 13px;
  line-height: 1.5;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.score-ticker__round {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.score-ticker__teams {
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.score-ticker__num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  padding: 0 2px;
}

.score-ticker__dash {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.4);
  padding: 0 1px;
}

.score-ticker__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lime);
  white-space: nowrap;
}

/* ---------- 报头 ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: var(--paper);
  border-bottom: 1px solid var(--stone);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: var(--signal);
  color: var(--white);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand__tagline {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--slate);
  line-height: 1.4;
  white-space: nowrap;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
    transform 0.16s var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn--solid {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--signal-soft);
  border-color: var(--signal-soft);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(20, 22, 28, 0.28);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* ---------- 移动端目录开关 ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--slate);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--signal);
  transition: background-color 0.2s var(--ease-out);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--signal);
  transition: transform 0.24s var(--ease-out), top 0.24s var(--ease-out);
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- 导航：移动端抽屉 ---------- */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 80px 26px 48px;
  background: var(--navy);
  background-image:
    linear-gradient(115deg, rgba(232, 69, 31, 0.16) 0%, transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px);
  color: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.34s var(--ease-out), visibility 0.34s var(--ease-out);
}

.site-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.site-nav__close {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.site-nav__close:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.site-nav__link:hover {
  color: var(--white);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
}

.site-nav__index {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--signal-soft);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--lime);
}

.site-nav__text {
  display: block;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  background: var(--navy);
  background-image:
    linear-gradient(200deg, rgba(22, 41, 74, 0.9) 0%, rgba(14, 27, 51, 1) 58%);
  color: rgba(255, 255, 255, 0.72);
  border-top: 4px solid var(--signal);
}

.site-footer__inner {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
}

.footer__brand-name {
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--white);
}

.footer__brand-note {
  max-width: 26em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.62);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.footer__contact-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.footer__contact-item:first-child {
  color: var(--lime);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.footer__col-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--signal-soft);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.footer__link:hover {
  color: var(--white);
  border-bottom-color: var(--signal);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__legal {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.56);
}

.footer__meta {
  margin: 0;
  max-width: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.48);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  max-width: none;
}

.footer__links .footer__link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   页面级通用组件
   ========================================================================== */
.container {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.lede {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--slate);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--signal-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--stone);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--slate);
  white-space: nowrap;
}

.tag--signal {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--white);
}

.tag--moss {
  border-color: var(--moss);
  background: transparent;
  color: var(--moss);
}

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--signal) 0 96px, var(--stone) 96px 100%);
}

.panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--navy);
  color: var(--white);
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.panel p {
  color: rgba(255, 255, 255, 0.76);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin: 24px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--stone);
  font-family: var(--font-mono);
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--signal);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

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

.grid--rail {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-2);
  border: 1px solid var(--stone);
  border-radius: 2px;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media--slant {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  border: 0;
}

.media--tall {
  aspect-ratio: 3 / 4;
}

.media--wide {
  aspect-ratio: 21 / 9;
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 6px 12px;
  background: rgba(14, 27, 51, 0.86);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

/* ==========================================================================
   平板
   ========================================================================== */
@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--rail {
    grid-template-columns: minmax(0, 1fr);
  }

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

/* ==========================================================================
   桌面：左侧固定立轨导航
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --rail: 88px;
  }

  .nav-toggle,
  .site-nav__close {
    display: none;
  }

  .site-nav {
    inset: 0 auto 0 0;
    width: var(--rail);
    padding: 24px 0;
    justify-content: center;
    gap: 0;
    background-image:
      linear-gradient(180deg, rgba(232, 69, 31, 0.14) 0%, transparent 46%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 22px);
    border-right: 1px solid var(--navy-2);
    overflow-y: auto;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__list {
    gap: 0;
  }

  .site-nav__item {
    border-bottom: 0;
  }

  .site-nav__link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.62);
  }

  .site-nav__link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16%;
    bottom: 16%;
    width: 3px;
    background: var(--signal);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.24s var(--ease-out);
  }

  .site-nav__link:hover::before,
  .site-nav__link[aria-current="page"]::before {
    transform: scaleY(1);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--white);
  }

  .site-nav__text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .site-nav__index {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .masthead {
    padding-inline: clamp(24px, 3vw, 44px);
    min-height: 84px;
  }

  .footer__top {
    grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (min-width: 1280px) {
  .score-ticker__item {
    padding: 6px 14px;
  }
}

/* ==========================================================================
   手机细节
   ========================================================================== */
@media (max-width: 560px) {
  .masthead {
    gap: 10px;
    padding: 12px 16px;
  }

  .masthead__actions .btn--ghost {
    display: none;
  }

  .brand__tagline {
    display: none;
  }

  .brand__name {
    font-size: 17px;
  }

  .score-ticker {
    padding-inline: 12px;
  }

  .score-ticker__round {
    display: none;
  }

  .container,
  .site-footer__inner {
    width: calc(100% - 40px);
  }

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

  .footer__links {
    gap: 4px 14px;
  }
}

/* ==========================================================================
   减弱动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .score-ticker__dot {
    animation: none;
  }
}
