/* ===== FH体育 全站共享样式 /assets/site.css ===== */

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

:root {
  --bg-deep: #0B0F19;
  --bg-card: #151A28;
  --bg-elev: #1A2332;
  --neon: #00FF88;
  --orange: #FF6B00;
  --white: #E0E4F0;
  --gray: #8A94A8;
  --gray-dim: #5B6478;
  --line: #2A3444;
  --line-bright: #3E4C60;
  --font-display: "Impact", "Arial Black", "Noto Sans CJK SC", sans-serif;
  --font-body: "Roboto Mono", "Courier New", monospace;
  --sidebar-w: 260px;
  --sidebar-gap: 72px;
  --content-offset: calc(var(--sidebar-w) + var(--sidebar-gap));
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 300ms ease;
  --transition-slow: 600ms cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1280px;
}

[hidden] {
  display: none !important;
}

/* ---------- Base ---------- */
html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.01em;
}

h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

a {
  color: var(--neon);
}

small, .caption {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

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

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

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--neon);
  color: var(--bg-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0, 255, 136, 0.3);
  transition: top 300ms ease;
}

.skip-link:focus {
  top: 0;
}

/* =========================================================
   Header —— 左侧悬浮侧边导航
   ========================================================= */
.site-header {
  position: relative;
  z-index: 100;
}

/* --- 移动端顶栏 --- */
.nav-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 400;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 300ms ease;
}

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

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

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

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

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

.nav-head-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-head-brand:hover {
  color: var(--neon);
}

/* --- 侧边导航面板 --- */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--bg-card);
  border-right: 1px solid var(--line);
  transform: translateX(-100%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 300;
  display: flex;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.side-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--orange) 65%);
  opacity: 0.85;
  z-index: 2;
}

.side-nav[data-open] {
  transform: translateX(0);
}

.side-nav-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 24px 16px 16px;
  background:
    linear-gradient(180deg, rgba(0, 255, 136, 0.04) 0%, transparent 180px),
    var(--bg-card);
}

/* --- 品牌刊头 --- */
.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  transition: opacity 300ms ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--neon);
  line-height: 1;
  letter-spacing: -0.02em;
  transform: skewX(-10deg);
  display: inline-block;
  text-shadow: 0 0 24px rgba(0, 255, 136, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  line-height: 1.2;
}

.brand-tag {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* --- 主导航 --- */
.main-nav {
  margin-bottom: 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

.nav-link::before {
  content: '';
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gray-dim);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.07), transparent);
  border-left-color: var(--neon);
}

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

/* --- 快速检索 --- */
.search-panel {
  margin-bottom: 20px;
}

.search-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.search-box:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12);
}

.search-ico {
  padding-left: 14px;
  font-size: 18px;
  color: var(--gray);
  line-height: 1;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--gray-dim);
}

.search-suggest {
  margin-top: 6px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 200px;
  overflow-y: auto;
}

.search-suggest-item {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray);
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: rgba(0, 255, 136, 0.06);
  color: var(--neon);
}

.search-suggest-item + .search-suggest-item {
  border-top: 1px solid rgba(42, 52, 68, 0.6);
}

/* --- 联赛快捷入口 --- */
.league-bar {
  margin-bottom: 20px;
}

.league-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.league-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.league-tag {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color 300ms ease, color 300ms ease, background 300ms ease;
}

.league-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
}

/* --- 侧栏底部 LIVE 状态 --- */
.side-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-foot-status {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.8);
  animation: fh-pulse 2s infinite;
}

.side-foot-text {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.08em;
}

@keyframes fh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* =========================================================
   Footer —— 四栏档案封底
   ========================================================= */
.site-footer {
  background:
    linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.02)),
    var(--bg-deep);
  border-top: 3px solid var(--line);
  padding: 64px 40px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--neon);
  padding: 4px 8px;
  border: 2px solid var(--neon);
  border-radius: var(--radius);
  transform: skewX(-10deg);
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.8;
  color: var(--gray);
  max-width: 340px;
  text-align: justify;
}

.footer-title {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 32px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.footer-nav-list,
.footer-contact-list,
.footer-legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-list a,
.footer-legal-list a {
  display: inline-block;
  padding: 4px 0;
  color: var(--gray);
  font-size: 14px;
  text-decoration: none;
  transition: color 300ms ease, transform 300ms ease;
}

.footer-nav-list a:hover,
.footer-legal-list a:hover {
  color: var(--neon);
  transform: translateX(4px);
}

.footer-contact-list li {
  color: var(--gray);
  font-size: 13px;
  line-height: 1.8;
}

.footer-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray);
  opacity: 0.85;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.copyright {
  font-size: 13px;
  color: var(--gray);
}

.icp {
  font-size: 12px;
  color: var(--gray);
}

/* =========================================================
   Base Components —— 通用组件
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.page-shell {
  min-height: 70vh;
}

/* --- 按钮体系 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.btn-primary {
  background: var(--neon);
  color: var(--bg-deep);
  border-color: var(--neon);
}

.btn-primary:hover {
  background: transparent;
  color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--line-bright);
}

.btn-outline:hover {
  border-color: var(--neon);
  color: var(--neon);
}

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  font-size: 13px;
}

.breadcrumb li {
  color: var(--gray);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--line-bright);
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
  transition: color 300ms ease;
}

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

/* --- 章节头 --- */
.section-head {
  margin-bottom: 32px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  max-width: 640px;
}

/* --- 网格 --- */
.grid {
  display: grid;
  gap: 24px;
}

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

/* --- 卡片 --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.card:hover {
  border-color: rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-accent {
  border-top: 3px solid var(--neon);
}

.card-dark {
  background: var(--bg-deep);
}

/* --- 标签 --- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--gray);
}

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

/* --- 图片容器占位 --- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 60%, rgba(255, 107, 0, 0.06) 60%);
  background-size: 10px 10px;
  opacity: 0.4;
  pointer-events: none;
}

.img-hero {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

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

/* --- 滚动显现协议 --- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px) rotate(1.2deg);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js [data-reveal-delay="1"] { transition-delay: 100ms; }
.js [data-reveal-delay="2"] { transition-delay: 180ms; }
.js [data-reveal-delay="3"] { transition-delay: 260ms; }

/* =========================================================
   Responsive —— 断点
   ========================================================= */

/* --- 平板（768px-1199px）：侧栏保持滑出式，页脚两栏 --- */
@media (min-width: 768px) and (max-width: 1199px) {
  .site-footer {
    padding: 56px 32px 20px;
  }

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

/* --- 桌面（≥1200px）：侧边导航固定可见 --- */
@media (min-width: 1200px) {
  body {
    margin-left: var(--content-offset);
  }

  .nav-head {
    display: none;
  }

  .side-nav {
    transform: none;
    width: var(--sidebar-w);
    transition: none;
  }

  .side-nav-inner {
    padding: 32px 20px 24px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 48px;
  }
}

/* --- 移动端（<768px） --- */
@media (max-width: 767px) {
  .site-footer {
    padding: 40px 24px 20px;
  }

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

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

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

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .btn {
    width: 100%;
  }
}

/* =========================================================
   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;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .side-nav {
    transition: none;
  }

  .skip-link {
    transition: none;
  }

  .nav-toggle .toggle-bar {
    transition: none;
  }
}
