/* =========================================================
   火狐体育主站 · 共享样式表 /assets/site.css
   侧边品牌轨道 + 深空夜底 + 印刷纸张层的赛事年鉴外壳
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; }

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

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

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --orange: #FF6B1A;
  --orange-deep: #D94A05;
  --ink: #0B0D10;
  --panel: #12161C;
  --cream: #F4EFE6;
  --ice: #A9BAC8;
  --cyan: #3DE0FF;
  --violet: #5B2A86;
  --peach: #FFB27A;
  --steel: #2A313B;
  --white: #E8F6FA;

  --rail: 88px;
  --shell: 1440px;
  --gutter: clamp(16px, 3.4vw, 44px);

  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
             system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--white);
}

p { max-width: 74ch; }

strong, b { font-weight: 600; color: var(--white); }

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

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

/* ---------- 4. 工具类 ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- 5. 跳过导航 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail) + 12px);
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- 6. 页头 ---------- */
.site-header { position: relative; }

/* 6.1 左侧品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 60;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 18px;
  background: linear-gradient(180deg, var(--orange) 0%, #F1570B 58%, var(--orange-deep) 100%);
  border-right: 1px solid rgba(11, 13, 16, .45);
}

.brand-rail::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  background: repeating-linear-gradient(
    115deg,
    rgba(11, 13, 16, .16) 0 8px,
    transparent 8px 17px
  );
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--ink);
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  display: grid;
  place-items: center;
  transition: transform .22s var(--ease);
}

.brand__mark::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.brand:hover .brand__mark { transform: skewX(-8deg) scale(1.06); }

.brand__name {
  writing-mode: vertical-rl;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .30em;
  text-indent: .30em;
}

.rail-tag {
  position: relative;
  z-index: 1;
  writing-mode: vertical-rl;
  padding-top: 14px;
  border-top: 1px solid rgba(11, 13, 16, .32);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(11, 13, 16, .74);
}

/* 6.2 吸顶导航条 */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 74px;
  padding: 0 var(--gutter);
  background: rgba(11, 13, 16, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel);
  transition: box-shadow .22s var(--ease);
}

.header-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(38%, 460px);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(61, 224, 255, .18) 0 1px,
    transparent 1px 28px
  );
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
  pointer-events: none;
}

.site-header[data-scrolled="true"] .header-bar {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--peach));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* 6.3 导航 */
.primary-nav { display: flex; align-items: center; }

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 12px;
  border-bottom: 2px solid transparent;
  border-radius: 2px;
  color: var(--ice);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s var(--ease), border-color .18s var(--ease), outline-color .18s;
}

.nav-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: rgba(169, 186, 200, .55);
  transition: color .18s var(--ease);
}

.nav-link:hover {
  color: var(--white);
  outline: 2px solid rgba(61, 224, 255, .55);
  outline-offset: 2px;
}

.nav-link:hover .nav-num { color: var(--cyan); }

.nav-link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--orange);
}

.nav-link[aria-current="page"] .nav-num { color: var(--orange); }

/* 6.4 头部右侧工具区 */
.header-utils {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--steel);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(61, 224, 255, .06); }

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: background .18s var(--ease);
}

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

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.site-header[data-open="true"] .nav-toggle { border-color: var(--orange); }
.site-header[data-open="true"] .nav-toggle__bars { background: transparent; }
.site-header[data-open="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(61, 224, 255, .22);
}

.btn--primary:hover {
  background: var(--peach);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(61, 224, 255, .55);
}

.btn--primary:active { transform: translateY(0); box-shadow: 2px 2px 0 rgba(61, 224, 255, .45); }

.btn--ghost {
  border-color: var(--steel);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(61, 224, 255, .07);
}

/* ---------- 8. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(32px, 5vw, 64px); }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

/* ---------- 9. 面板 / 纸张 / 标签 ---------- */
.panel {
  padding: clamp(18px, 2vw, 28px);
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: 2px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.panel:hover { transform: translateY(-4px); border-color: var(--orange); }

.paper {
  padding: clamp(18px, 2vw, 28px);
  background: var(--cream);
  color: #2A1F16;
  border: 1px solid rgba(11, 13, 16, .2);
  border-radius: 2px;
  box-shadow: 6px 6px 0 rgba(255, 107, 26, .24);
}

.paper h2,
.paper h3,
.paper h4 { color: #1B140E; }

.paper p { color: #3B2E23; }

.paper strong { color: #1B140E; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: rgba(255, 255, 255, .03);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ice);
}

.tag--orange { border-color: var(--orange); color: var(--orange); }
.tag--cyan   { border-color: var(--cyan);   color: var(--cyan); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ice);
}

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

.breadcrumb__list a {
  color: var(--ice);
  text-decoration: none;
  transition: color .16s var(--ease);
}

.breadcrumb__list a:hover { color: var(--cyan); }

.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--steel);
}

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: 2px;
  background: linear-gradient(140deg, #1A2029 0%, #0E1218 100%);
  aspect-ratio: 16 / 9;
}

.media > img,
.media > picture > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 107, 26, .20), transparent 46%, rgba(61, 224, 255, .10));
  pointer-events: none;
}

.media--hero     { aspect-ratio: 21 / 9; }
.media--tall     { aspect-ratio: 3 / 4; }
.media--square   { aspect-ratio: 1 / 1; }

.media--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 246, 250, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 246, 250, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--ink);
  color: var(--ice);
  border-top: 1px solid var(--steel);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(
    115deg,
    var(--orange) 0 18px,
    transparent 18px 36px
  );
  opacity: .9;
}

.footer-inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(32px, 4vw, 56px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--steel);
}

.footer-brand__top { margin-bottom: 16px; }

.brand--footer {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand--footer .brand__mark { background: var(--orange); }
.brand--footer .brand__mark::before { background: var(--ink); }

.brand--footer .brand__name {
  writing-mode: horizontal-tb;
  font-size: 16px;
  letter-spacing: .16em;
  text-indent: 0;
  color: var(--white);
}

.footer-brand__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ice);
  max-width: 30ch;
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-col__title::before {
  content: "";
  flex: none;
  width: 14px;
  height: 2px;
  background: var(--cyan);
}

.footer-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a {
  display: inline-block;
  color: var(--ice);
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}

.footer-list a:hover { color: var(--cyan); padding-left: 5px; }

.footer-addr {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ice);
}

.footer-serv {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(169, 186, 200, .72);
}

/* 可复制字段 */
.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  background: var(--panel);
  border: 1px solid var(--steel);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.copy-field:hover { border-color: var(--cyan); background: #171D25; }

.copy-field__label {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ice);
  transition: color .16s var(--ease);
}

.copy-field__value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--white);
}

.copy-field[data-copied="true"] { border-color: var(--cyan); }
.copy-field[data-copied="true"] .copy-field__label { color: var(--cyan); }

/* 页脚底栏 */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(169, 186, 200, .75);
}

.footer-bottom__meta { max-width: none; }

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom__links a {
  color: inherit;
  text-decoration: none;
  transition: color .16s var(--ease);
}

.footer-bottom__links a:hover { color: var(--cyan); }

/* ---------- 13. 响应式 ---------- */

/* 13.1 中等桌面：压缩导航密度 */
@media (max-width: 1200px) {
  .nav-link { padding: 11px 8px; font-size: 13px; }
  .nav-num { font-size: 9px; }
  .header-utils .btn { padding: 9px 14px; font-size: 13px; }
  .grid--split { grid-template-columns: 1fr; }
}

/* 13.2 平板：品牌轨道折叠为顶部品牌条 */
@media (max-width: 980px) {
  body { padding-left: 0; }

  .skip-link { left: 12px; }

  .brand-rail {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px var(--gutter);
    border-right: 0;
    border-bottom: 1px solid rgba(11, 13, 16, .35);
  }

  .brand-rail::after { display: none; }

  .brand { flex-direction: row; gap: 10px; }

  .brand__mark { width: 26px; height: 26px; }
  .brand__mark::before { width: 10px; height: 10px; }

  .brand__name {
    writing-mode: horizontal-tb;
    font-size: 14px;
    letter-spacing: .2em;
    text-indent: 0;
  }

  .rail-tag {
    writing-mode: horizontal-tb;
    padding: 0 0 0 12px;
    border-top: 0;
    border-left: 1px solid rgba(11, 13, 16, .35);
    letter-spacing: .16em;
  }

  .header-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
    padding: 8px var(--gutter);
  }

  .header-bar::before { display: none; }

  .header-utils {
    order: 1;
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle { display: inline-flex; }

  .primary-nav {
    order: 2;
    flex-basis: 100%;
    display: none;
    margin-top: 6px;
    padding: 6px 0 14px;
    border-top: 1px solid var(--steel);
  }

  .site-header[data-open="true"] .primary-nav { display: block; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 13px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(42, 49, 59, .7);
    border-left: 2px solid transparent;
    border-radius: 0;
  }

  .nav-link:hover {
    outline: none;
    background: rgba(61, 224, 255, .07);
    border-left-color: var(--cyan);
  }

  .nav-link[aria-current="page"] {
    border-bottom-color: rgba(42, 49, 59, .7);
    border-left-color: var(--orange);
    background: rgba(255, 107, 26, .09);
  }

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

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

/* 13.3 手机 */
@media (max-width: 620px) {
  body { font-size: 15px; line-height: 1.72; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-brand__text { max-width: none; }

  .media--hero { aspect-ratio: 16 / 9; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .panel:hover,
  .btn--primary:hover { transform: none; }
}
