/* =========================================================
   新利体育CN Site Kit — 共享样式
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #FFFFFF;
  background: #0A1128;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #FF6B35;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: #00E676;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid #FF6B35;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-deep: #0A1128;
  --color-off-black: #050A15;
  --color-navy: #1C2541;
  --color-orange: #FF6B35;
  --color-orange-soft: #FF8252;
  --color-orange-glow: rgba(255, 107, 53, 0.2);
  --color-green: #00E676;
  --color-green-glow: rgba(0, 230, 118, 0.15);
  --color-white: #FFFFFF;
  --color-gray: #B0B7C3;
  --color-gray-mid: #3A4A5A;
  --font-display: 'Anton', Impact, 'Helvetica Neue', sans-serif;
  --font-body: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'DIN Alternate', 'Bahnschrift', Consolas, 'Courier New', monospace;
  --header-height: 68px;
  --container-w: 1200px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
}

h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p { max-width: 70ch; }

::selection {
  background: var(--color-orange);
  color: var(--color-off-black);
}

/* ---------- Layout Utilities ---------- */
.site-container {
  width: min(var(--container-w), 100% - 48px);
  margin-inline: auto;
}

.site-section {
  padding: 72px 0;
}

/* ---------- Buttons ---------- */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.3s var(--ease-out), filter 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.site-btn--primary {
  background: var(--color-orange);
  color: var(--color-off-black);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.site-btn--primary:hover {
  background: var(--color-orange-soft);
  color: var(--color-off-black);
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(255, 107, 53, 0.4));
}

.site-btn--ghost {
  background: transparent;
  border: 2px solid var(--color-orange);
  color: var(--color-orange);
}

.site-btn--ghost:hover {
  background: var(--color-orange-glow);
  color: var(--color-orange);
  transform: translateY(-2px);
}

.site-btn--small {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.35);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  white-space: nowrap;
}

.badge--live {
  background: rgba(0, 230, 118, 0.1);
  border-color: rgba(0, 230, 118, 0.4);
  color: var(--color-green);
}

.badge--live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.8);
  animation: badge-pulse 1.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.85rem;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gray);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  color: var(--color-gray-mid);
  font-family: var(--font-data);
}

.breadcrumb__link {
  color: var(--color-gray);
  transition: color 0.25s;
}

.breadcrumb__link:hover {
  color: var(--color-orange);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--color-green);
  font-weight: 600;
}

/* ---------- Section Head ---------- */
.section-head {
  margin-bottom: 42px;
  position: relative;
}

.section-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.section-head__tag::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-orange);
  display: inline-block;
}

.section-head__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head__lead {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--color-gray);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Diag Line ---------- */
.diag-line {
  display: block;
  width: 120px;
  height: 4px;
  background: var(--color-orange);
  transform: skewX(-30deg);
  margin: 18px 0 10px;
  position: relative;
}

.diag-line::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 0;
  width: 30px;
  height: 4px;
  background: var(--color-green);
  opacity: 0.7;
  transform: skewX(30deg);
}

/* ---------- Split Screen ---------- */
.split-screen {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 0;
  align-items: stretch;
}

.split-screen__aside {
  padding: 56px 40px 56px 0;
  position: relative;
}

.split-screen__main {
  padding: 56px 0 56px 40px;
  border-left: 1px solid var(--color-gray-mid);
  position: relative;
}

/* ---------- Card ---------- */
.card {
  position: relative;
  background: var(--color-navy);
  border: 1px solid rgba(58, 74, 90, 0.45);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 3px;
  height: 48px;
  background: var(--color-orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10px));
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card__body {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Image Frame ---------- */
.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-orange-glow), transparent 45%, transparent);
  pointer-events: none;
}

.image-frame--wide { aspect-ratio: 21 / 9; }
.image-frame--tall { aspect-ratio: 4 / 5; }

/* ---------- Filter System ---------- */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 20px;
  border: 1px solid var(--color-gray-mid);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-gray);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-1px);
}

.filter-btn[aria-pressed="true"] {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-off-black);
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 999;
  padding: 10px 20px;
  background: var(--color-orange);
  color: var(--color-off-black);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
  transition: top 0.25s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: none;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(10, 17, 40, 0.96);
  border-bottom: 1px solid var(--color-gray-mid);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 107, 53, 0.07) 8px,
    rgba(255, 107, 53, 0.07) 9px
  );
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 220px;
  height: 3px;
  background: var(--color-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
}

.site-header__bar {
  position: relative;
  width: min(var(--container-w), 100% - 48px);
  margin-inline: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--color-orange);
  color: var(--color-off-black);
  font-family: var(--font-display);
  font-size: 1.15rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.site-brand:hover .site-brand__mark {
  background: var(--color-green);
  transform: rotate(-4deg);
}

.site-brand__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-brand__cn {
  font-style: normal;
  color: var(--color-orange);
}

/* Desktop Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-bottom-color 0.25s ease;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--color-orange);
  border-bottom-color: var(--color-orange);
}

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

.site-nav__cta {
  margin-left: 4px;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-green));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1000;
  pointer-events: none;
}

/* Nav Toggle (mobile) */
.site-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(28, 37, 65, 0.8);
  border-radius: var(--radius);
  border: 1px solid var(--color-gray-mid);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-nav__toggle:hover {
  border-color: var(--color-orange);
  background: rgba(28, 37, 65, 1);
}

.site-nav__toggle-line {
  display: block;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s ease, background 0.25s ease;
}

.site-nav__toggle:hover .site-nav__toggle-line {
  background: var(--color-orange);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--color-off-black);
  color: var(--color-gray);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange) 0%, transparent 140px, transparent calc(100% - 200px), var(--color-green) 100%);
}

.site-footer__grid {
  width: min(var(--container-w), 100% - 48px);
  margin-inline: auto;
  padding: 60px 0 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.site-footer__brand .site-brand {
  margin-bottom: 18px;
}

.site-footer__slogan {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 10px;
}

.site-footer__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-gray);
  max-width: 30ch;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-bottom: 10px;
  margin-bottom: 16px;
  position: relative;
}

.site-footer__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--color-orange);
}

.site-footer__list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.site-footer__link {
  font-size: 0.9rem;
  color: var(--color-gray);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__link:hover {
  color: var(--color-orange);
  padding-left: 4px;
}

.site-footer__contact {
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--color-gray);
}

.site-footer__bottom {
  width: min(var(--container-w), 100% - 48px);
  margin-inline: auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(58, 74, 90, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.8rem;
  color: var(--color-gray);
  letter-spacing: 0.04em;
}

/* ---------- Back To Top ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-orange);
  color: var(--color-off-black);
  font-size: 1.35rem;
  font-weight: 700;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
  z-index: 120;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--color-green);
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4);
}

/* ---------- SR Only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Media Queries ---------- */

/* Tablet */
@media (max-width: 1100px) {
  :root {
    --header-height: 64px;
  }

  .site-nav__link {
    padding: 10px 9px;
    font-size: 0.88rem;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav__cta {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
  }

  .site-footer__col:nth-child(4) {
    grid-column: 2 / -1;
  }
}

/* Mobile & Tablet Nav Breakpoint */
@media (max-width: 860px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 21, 0.55);
    z-index: 40;
  }

  .site-header__bar {
    min-height: var(--header-height);
  }

  .site-nav__toggle {
    display: flex;
    position: relative;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    right: 0;
    width: min(360px, 85vw);
    padding: 40px 28px 32px;
    background: var(--color-off-black);
    border-left: 3px solid var(--color-orange);
    clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 13px 14px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .site-nav__cta {
    margin-top: 26px;
    justify-content: center;
    text-align: center;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .split-screen {
    grid-template-columns: 1fr;
  }

  .split-screen__aside {
    padding: 40px 0 8px;
  }

  .split-screen__main {
    padding: 32px 0 40px;
    border-left: none;
    border-top: 1px solid var(--color-gray-mid);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 36px;
  }

  .site-footer__col:nth-child(4) {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-section {
    padding: 48px 0;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .site-brand__text {
    font-size: 1.1rem;
  }

  .site-brand__mark {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .site-btn {
    padding: 11px 20px;
  }

  .back-top {
    right: 12px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-nav {
    transition: none;
  }

  .scroll-progress,
  .back-top {
    transition: none;
  }
}
