/* ===== FH体育 全站共享样式 ===== */

:root {
  --fh-bg-deep: #081a17;
  --fh-bg-indigo: #120b26;
  --fh-bg-wine: #2a0a14;
  --fh-green: #39ff88;
  --fh-orange: #ff6b2c;
  --fh-text: #e2e8e4;
  --fh-data: #a0f0d0;
  --fh-border: rgba(255, 255, 255, 0.1);
  --fh-yellow: #ffd166;
  --fh-header-bg: rgba(8, 26, 23, 0.84);
  --fh-radius: 16px;
  --fh-radius-sm: 8px;
  --fh-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --fh-font-display: "DIN Alternate", "Noto Sans SC", "PingFang SC", sans-serif;
  --fh-font-data: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fh-font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --fh-container: 1200px;
  --fh-gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fh-font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fh-text);
  background: var(--fh-bg-deep);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--fh-font-display);
  color: var(--fh-text);
  line-height: 1.2;
}

a {
  color: var(--fh-green);
  text-decoration: none;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  -webkit-appearance: none;
  appearance: none;
}

ul,
ol {
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--fh-green);
  outline-offset: 2px;
}

::-moz-focus-inner {
  border: 0;
}

.fh-container {
  max-width: var(--fh-container);
  margin: 0 auto;
  padding-left: var(--fh-gutter);
  padding-right: var(--fh-gutter);
}

/* ===== Skip Link ===== */

.fh-skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--fh-green);
  color: var(--fh-bg-deep);
  font-weight: 700;
  border-radius: var(--fh-radius-sm);
  transition: top 0.2s ease;
}

.fh-skip-link:focus-visible {
  top: 16px;
}

/* ===== 悬浮导航 Header ===== */

.fh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0 0;
  background: transparent;
}

.fh-header-panel {
  max-width: calc(var(--fh-container) - 32px);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--fh-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--fh-border);
  border-radius: 999px;
  box-shadow: var(--fh-shadow);
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
}

.fh-header[data-scrolled] .fh-header-panel {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.fh-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 12px;
}

.fh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fh-text);
}

.fh-brand-mark {
  font-family: var(--fh-font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--fh-bg-deep);
  background: var(--fh-green);
  border-radius: 10px;
  padding: 4px 8px;
  min-width: 40px;
  text-align: center;
  line-height: 1.2;
  transition: box-shadow 0.2s ease;
}

.fh-brand:hover .fh-brand-mark {
  box-shadow: 0 0 24px rgba(57, 255, 136, 0.4);
}

.fh-brand-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fh-green);
  flex-shrink: 0;
  animation: fh-pulse 2s infinite;
}

.fh-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fh-text);
  white-space: nowrap;
}

.fh-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--fh-border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fh-nav-toggle:hover {
  background: rgba(57, 255, 136, 0.08);
}

.fh-nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fh-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.fh-header[data-open] .fh-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.fh-header[data-open] .fh-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.fh-header[data-open] .fh-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.fh-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.fh-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fh-nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fh-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.fh-nav-link:hover {
  background: rgba(57, 255, 136, 0.12);
  color: var(--fh-green);
}

.fh-nav-link[aria-current="page"] {
  background: var(--fh-green);
  color: var(--fh-bg-deep);
  font-weight: 700;
}

@media (max-width: 860px) {
  .fh-header-panel {
    max-width: calc(100% - 32px);
    border-radius: 24px;
    padding: 8px 12px;
  }

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

  .fh-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--fh-border);
  }

  .fh-nav[data-open] {
    display: block;
  }

  .fh-header[data-open] .fh-header-panel {
    border-radius: 24px 24px 16px 16px;
  }

  .fh-nav-list {
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    padding-bottom: 8px;
  }

  .fh-nav-link {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1rem;
  }
}

/* ===== 滚动进度 ===== */

.fh-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fh-green), var(--fh-orange));
  z-index: 1001;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ===== 页脚 Footer ===== */

.fh-footer {
  background: linear-gradient(180deg, var(--fh-bg-deep) 0%, var(--fh-bg-indigo) 100%);
  border-top: 1px solid var(--fh-border);
  margin-top: 80px;
}

.fh-footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 40px;
}

.fh-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.fh-footer-logo-mark {
  font-family: var(--fh-font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--fh-bg-deep);
  background: var(--fh-green);
  border-radius: 12px;
  padding: 6px 12px;
  line-height: 1.2;
}

.fh-footer-slogan {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fh-text);
}

.fh-footer-trust {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(226, 232, 228, 0.7);
  max-width: 300px;
}

.fh-footer-title {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-green);
  margin-bottom: 16px;
  font-weight: 700;
}

.fh-footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fh-footer-list li {
  color: var(--fh-text);
  font-size: 0.95rem;
}

.fh-footer-list a {
  color: var(--fh-text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.fh-footer-list a:hover {
  color: var(--fh-green);
}

.fh-footer-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(226, 232, 228, 0.6);
  line-height: 1.6;
  max-width: 260px;
}

.fh-footer-bottom {
  border-top: 1px solid var(--fh-border);
  background: rgba(0, 0, 0, 0.2);
}

.fh-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.fh-copyright {
  font-size: 0.85rem;
  color: rgba(226, 232, 228, 0.7);
}

.fh-footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(226, 232, 228, 0.7);
}

.fh-footer-legal a {
  color: rgba(226, 232, 228, 0.7);
  transition: color 0.2s ease;
}

.fh-footer-legal a:hover {
  color: var(--fh-green);
}

.fh-footer-divider {
  opacity: 0.4;
}

@media (max-width: 860px) {
  .fh-footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .fh-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== 基础组件 ===== */

.fh-data-text {
  font-family: var(--fh-font-data);
  color: var(--fh-data);
  letter-spacing: 0.02em;
}

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

.fh-section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--fh-border);
  padding-bottom: 12px;
}

.fh-section-num {
  font-family: var(--fh-font-data);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fh-green);
  opacity: 0.8;
}

.fh-section-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--fh-text);
}

.fh-section-desc {
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(226, 232, 228, 0.6);
}

.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fh-btn-primary {
  background: var(--fh-green);
  color: var(--fh-bg-deep);
}

.fh-btn-primary:hover {
  box-shadow: 0 4px 24px rgba(57, 255, 136, 0.3);
  transform: translateY(-1px);
}

.fh-btn-ghost {
  border-color: var(--fh-border);
  color: var(--fh-text);
  background: transparent;
}

.fh-btn-ghost:hover {
  border-color: var(--fh-green);
  color: var(--fh-green);
  transform: translateY(-1px);
}

.fh-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fh-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fh-border);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fh-tag:hover,
.fh-tag[data-active] {
  background: rgba(57, 255, 136, 0.1);
  border-color: var(--fh-green);
  color: var(--fh-green);
}

.fh-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--fh-font-data);
  color: var(--fh-yellow);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.fh-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fh-green);
  display: inline-block;
  animation: fh-pulse 2s infinite;
}

@keyframes fh-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 136, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(57, 255, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 136, 0);
  }
}

/* ===== 栅格与卡片 ===== */

.fh-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

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

.fh-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fh-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.fh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(57, 255, 136, 0.25);
}

.fh-card:hover::after {
  opacity: 1;
}

@media (max-width: 860px) {
  .fh-grid-cols-2,
  .fh-grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== 图片容器 ===== */

.fh-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--fh-radius);
  background: linear-gradient(145deg, var(--fh-bg-indigo), var(--fh-bg-wine));
  border: 1px solid var(--fh-border);
}

.fh-image::before {
  content: "";
  display: block;
  padding-bottom: 75%;
}

.fh-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.fh-image:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.fh-image-ratio-16x9::before {
  padding-bottom: 56.25%;
}

.fh-image-ratio-3x2::before {
  padding-bottom: 66.67%;
}

.fh-image-ratio-1x1::before {
  padding-bottom: 100%;
}

/* ===== 面包屑 ===== */

.fh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(226, 232, 228, 0.6);
  margin-bottom: 24px;
  padding-top: 16px;
}

.fh-breadcrumb a {
  color: var(--fh-green);
}

.fh-breadcrumb a:hover {
  text-decoration: underline;
}

.fh-breadcrumb-sep {
  color: rgba(226, 232, 228, 0.4);
}

/* ===== 编辑部组件 ===== */

.fh-margin-note {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(226, 232, 228, 0.6);
  border-left: 2px solid var(--fh-orange);
  padding-left: 16px;
  margin: 24px 0;
}

.fh-layout-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) {
  .fh-layout-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.fh-index-list {
  border-top: 1px solid var(--fh-border);
}

.fh-index-list li {
  border-bottom: 1px solid var(--fh-border);
}

.fh-index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  color: var(--fh-text);
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.fh-index-list a:hover {
  background: rgba(57, 255, 136, 0.05);
  color: var(--fh-green);
}

.fh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 24px;
}

/* ===== Hero 首页首屏 ===== */

.fh-hero {
  position: relative;
  padding: 64px 0 48px;
}

.fh-hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: end;
}

.fh-hero-title {
  font-family: var(--fh-font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fh-text);
  margin-bottom: 20px;
}

.fh-hero-title .fh-accent {
  color: var(--fh-green);
}

.fh-hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(226, 232, 228, 0.75);
  max-width: 560px;
}

.fh-hero-meta {
  font-family: var(--fh-font-data);
  font-size: 0.85rem;
  color: var(--fh-orange);
  display: flex;
  gap: 12px;
  align-items: center;
}

.fh-hero-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--fh-border);
  border-radius: var(--fh-radius);
  padding: 24px;
  box-shadow: var(--fh-shadow);
}

@media (max-width: 860px) {
  .fh-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fh-hero {
    padding: 40px 0 32px;
  }
}

/* ===== 返回顶部 ===== */

.fh-back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fh-orange);
  color: var(--fh-bg-deep);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.fh-back-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fh-back-top:hover {
  background: var(--fh-green);
}

@media (max-width: 860px) {
  .fh-back-top {
    right: 12px;
    bottom: 12px;
  }
}

/* ===== 响应式基础 ===== */

@media (max-width: 640px) {
  :root {
    --fh-gutter: 16px;
  }
}

/* ===== 减少动态偏好 ===== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
