/* ================================================
   火博体育 · 全站共享样式 /assets/site.css
   设计主线：刊头目录 × 斜切速度 × 火黑金复古出版
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg-cream: #F6EFE4;
  --deep-black: #161616;
  --ink-dark: #2E2620;
  --fire-red: #E23A2E;
  --warm-orange: #F07E33;
  --gold: #F0B84C;
  --muted-gray: #8A7E72;
  --glass-white: rgba(255, 255, 255, 0.65);
  --glass-black: rgba(22, 22, 22, 0.6);
  --font-head: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'JetBrains Mono', Menlo, Consolas, monospace;
  --container: 1180px;
}

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

ul,
ol {
  list-style: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  min-height: 100vh;
  background: var(--bg-cream);
  color: var(--ink-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 26px);
}

h4 {
  font-size: 18px;
}

p {
  text-wrap: pretty;
}

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

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

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

::selection {
  background: var(--fire-red);
  color: #fff;
}

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

#main-content {
  outline: none;
  scroll-margin-top: 20px;
}

/* ---------- Layout Utilities ---------- */
.content-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.page-section {
  padding-block: 72px;
}

.muted-text {
  color: var(--muted-gray);
  font-size: 14px;
}

/* ---------- Section Title ---------- */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--ink-dark);
  margin-bottom: 12px;
  padding-bottom: 14px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--fire-red);
}

.section-title--center {
  text-align: center;
}

.section-title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}

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

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

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

.grid--center {
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.12s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.btn--primary {
  background: var(--fire-red);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #c52d21;
  box-shadow: 0 4px 18px rgba(226, 58, 46, 0.35);
}

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

.btn--ghost {
  border-color: var(--ink-dark);
  background: transparent;
  color: var(--ink-dark);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink-dark);
  color: var(--bg-cream);
}

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--muted-gray);
}

.breadcrumb a {
  color: var(--fire-red);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb [aria-current='page'] {
  color: var(--ink-dark);
  font-weight: 600;
}

/* ---------- Image Frames ---------- */
.img-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--deep-black);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-frame--wide {
  aspect-ratio: 16 / 9;
}

.img-frame--grid {
  aspect-ratio: 4 / 3;
}

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

.img-frame--square {
  aspect-ratio: 1 / 1;
}

.img-frame--speed {
  border-bottom: 3px solid var(--fire-red);
}

.img-frame--speed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, rgba(226, 58, 46, 0.22) 0%, transparent 42%);
  pointer-events: none;
}

/* ---------- Glass Cards ---------- */
.glass-card {
  background: var(--glass-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 30px;
  position: relative;
}

.glass-card--dark {
  background: var(--glass-black);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--bg-cream);
}

/* ---------- Stat Block ---------- */
.stat-block {
  background: var(--deep-black);
  color: var(--bg-cream);
  padding: 24px 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.stat-block__number {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stat-block__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 239, 228, 0.72);
}

/* ---------- Decorative Blocks ---------- */
.diag-block {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.speed-line-bg {
  position: relative;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 16px,
    rgba(46, 38, 32, 0.035) 16px,
    rgba(46, 38, 32, 0.035) 17px,
    transparent 17px,
    transparent 32px
  );
}

.speed-line-bg--dark {
  position: relative;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 16px,
    rgba(246, 239, 228, 0.03) 16px,
    rgba(246, 239, 228, 0.03) 17px,
    transparent 17px,
    transparent 32px
  );
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(226, 58, 46, 0.5);
  background: rgba(226, 58, 46, 0.08);
  color: var(--fire-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

/* ---------- Prose ---------- */
.prose a {
  color: var(--fire-red);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.prose p + p {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin: 12px 0 16px 24px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 6px;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 32px;
}

/* ================================================
   Skip Link & Scroll Progress
   ================================================ */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 9999;
  display: inline-block;
  padding: 10px 18px;
  background: var(--deep-black);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--fire-red) 0%, var(--gold) 100%);
  z-index: 3000;
  pointer-events: none;
}

/* ================================================
   Header
   ================================================ */
.site-header {
  position: relative;
  z-index: 500;
  background: var(--bg-cream);
}

.masthead {
  position: relative;
  overflow: hidden;
  background: var(--bg-cream);
}

.masthead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 18px,
    rgba(46, 38, 32, 0.028) 18px,
    rgba(46, 38, 32, 0.028) 19px,
    transparent 19px,
    transparent 36px
  );
  pointer-events: none;
}

.masthead::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200px;
  height: 5px;
  background: var(--fire-red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%);
}

.masthead-inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 30px 38px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-dark);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--fire-red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-right: -0.12em;
}

.masthead-tag {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(46, 38, 32, 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-dark);
  box-shadow: 0 2px 10px rgba(46, 38, 32, 0.06);
}

.tag-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fire-red);
}

.tag-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--fire-red);
  animation: tag-breathe 2s ease-out infinite;
}

@keyframes tag-breathe {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ---------- Nav Bar ---------- */
.nav-bar {
  position: relative;
  background: var(--bg-cream);
  border-top: 3px solid var(--deep-black);
  border-bottom: 1px solid rgba(46, 38, 32, 0.12);
}

.nav-bar::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 180px;
  height: 3px;
  background: var(--fire-red);
  z-index: 1;
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 0;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-dark);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-list a:hover {
  background: rgba(226, 58, 46, 0.1);
  color: var(--fire-red);
}

.nav-list a[aria-current='page'] {
  background: var(--fire-red);
  color: #fff;
}

.nav-list a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--deep-black);
  color: rgba(246, 239, 228, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--fire-red) 0%, var(--warm-orange) 45%, var(--gold) 100%);
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 22px,
    rgba(246, 239, 228, 0.02) 22px,
    rgba(246, 239, 228, 0.02) 23px,
    transparent 23px,
    transparent 44px
  );
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--bg-cream);
}

.footer-brand-suffix {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-left: 8px;
}

.footer-brand-desc {
  margin-top: 16px;
  max-width: 32em;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(246, 239, 228, 0.6);
}

.footer-brand-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(240, 184, 76, 0.8);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-badges li {
  padding: 4px 12px;
  border: 1px solid rgba(240, 184, 76, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.footer-icp-meta {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(246, 239, 228, 0.4);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg-cream);
}

.footer-col-title::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 4px;
  background: var(--fire-red);
  transform: skewX(-20deg);
}

.footer-links,
.footer-contact-list {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  color: rgba(246, 239, 228, 0.72);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--fire-red);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.footer-contact-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.footer-contact-label {
  flex-shrink: 0;
  width: 3.5em;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(246, 239, 228, 0.42);
}

.footer-contact-value {
  color: rgba(246, 239, 228, 0.8);
  overflow-wrap: anywhere;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 239, 228, 0.15);
}

.footer-legal a {
  font-size: 13px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(246, 239, 228, 0.12);
}

.footer-bottom-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 18px 0;
  font-size: 12px;
  color: rgba(246, 239, 228, 0.45);
}

.footer-copyright span {
  color: rgba(246, 239, 228, 0.6);
}

.footer-icp {
  font-family: var(--font-data);
  letter-spacing: 0.04em;
  color: rgba(246, 239, 228, 0.45);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-bar {
    display: flex;
    align-items: center;
    min-height: 54px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    margin-left: 12px;
    padding: 0 12px;
    background: transparent;
    border: 0;
  }

  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ink-dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 300;
    background: var(--bg-cream);
    border-top: 1px solid var(--fire-red);
    border-bottom: 4px solid var(--deep-black);
    box-shadow: 0 20px 40px rgba(22, 22, 22, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 6px;
  }

  .nav-list li + li {
    border-top: 1px solid rgba(46, 38, 32, 0.08);
  }

  .nav-list a {
    clip-path: none;
    padding: 15px 18px;
    font-size: 16px;
  }

  .nav-list a:hover {
    background: rgba(226, 58, 46, 0.08);
    color: var(--fire-red);
  }

  .nav-list a[aria-current='page'] {
    background: rgba(226, 58, 46, 0.08);
    color: var(--fire-red);
    box-shadow: inset 4px 0 0 var(--fire-red);
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .masthead-inner {
    flex-direction: column;
    gap: 12px;
    padding-block: 24px 30px;
  }

  .masthead-tag {
    position: static;
    transform: none;
  }

  .masthead::after {
    width: 120px;
  }

  .grid {
    gap: 20px;
  }

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

  .page-section {
    padding-block: 48px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 48px 0 40px;
  }

  .footer-brand-block {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }
}

/* ================================================
   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;
  }

  .tag-dot::after {
    animation: none;
  }
}
