/* ===== FH体育官网 共享样式 /assets/site.css ===== */

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

:root {
  --fh-navy: #0B1E3F;
  --fh-green: #00E5A0;
  --fh-orange: #FF6B35;
  --fh-bg-light: #F2F5F8;
  --fh-text-dark: #0B1E3F;
  --fh-text-light: #FFFFFF;
  --fh-border: #E0E6ED;
  --fh-gray: #7A8B99;

  --fh-font-heading: "Arial Black", "Helvetica Neue", "Inter", -apple-system, "PingFang SC", sans-serif;
  --fh-font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;

  --fh-container: 1200px;
  --fh-header-h: 72px;
  --fh-transition: 0.2s ease;
  --fh-section-space: clamp(3rem, 6vw, 5.5rem);
}

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

body {
  font-family: var(--fh-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--fh-text-dark);
  background: var(--fh-bg-light);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--fh-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--fh-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fh-font-heading);
  font-weight: 900;
  line-height: 1.15;
  color: var(--fh-text-dark);
}

ul,
ol {
  list-style: none;
}

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

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

/* ---------- 通用容器与栅格 ---------- */
.fh-container {
  max-width: var(--fh-container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.fh-section {
  padding-block: var(--fh-section-space);
}

.fh-main {
  min-height: 55vh;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

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

.fh-grid > * {
  grid-column: span 12;
}

.fh-grid--2 > * {
  grid-column: span 6;
}

.fh-grid--3 > * {
  grid-column: span 4;
}

.fh-grid--4 > * {
  grid-column: span 3;
}

@media (max-width: 991px) {
  .fh-grid--3 > *,
  .fh-grid--4 > * {
    grid-column: span 6;
  }
}

@media (max-width: 639px) {
  .fh-grid--2 > *,
  .fh-grid--3 > *,
  .fh-grid--4 > * {
    grid-column: span 12;
  }
}

/* ---------- 通用按钮 ---------- */
.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  font-family: var(--fh-font-body);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
  color: var(--fh-navy);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.fh-btn:hover {
  transform: translateY(-2px);
}

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

.fh-btn--primary:hover {
  background: var(--fh-navy);
  color: var(--fh-green);
  border-color: var(--fh-green);
}

.fh-btn--secondary {
  background: transparent;
  color: var(--fh-navy);
  border-color: var(--fh-navy);
}

.fh-btn--secondary:hover {
  background: var(--fh-navy);
  color: var(--fh-text-light);
}

.fh-btn--orange {
  background: var(--fh-orange);
  color: var(--fh-navy);
}

.fh-btn--orange:hover {
  background: var(--fh-navy);
  color: var(--fh-orange);
  border-color: var(--fh-orange);
}

/* ---------- 面包屑 ---------- */
.fh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--fh-gray);
  margin-bottom: 1.75rem;
}

.fh-breadcrumb li {
  display: flex;
  align-items: center;
}

.fh-breadcrumb li + li::before {
  content: "/";
  margin-inline: 0.25rem;
  color: var(--fh-gray);
}

.fh-breadcrumb a {
  color: var(--fh-gray);
  text-decoration: none;
}

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

.fh-breadcrumb [aria-current="page"] {
  color: var(--fh-navy);
  font-weight: 700;
}

/* ---------- 图文容器 ---------- */
.fh-media {
  position: relative;
  overflow: hidden;
  background: var(--fh-bg-light);
  border: 1px solid var(--fh-border);
  aspect-ratio: 16 / 9;
}

.fh-media::before {
  content: "FH";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh-font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--fh-border);
  background: linear-gradient(135deg, var(--fh-bg-light) 0%, #e8edf2 100%);
}

.fh-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 区块标题 ---------- */
.fh-section-title {
  position: relative;
  padding-left: 0.75em;
  font-family: var(--fh-font-heading);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.fh-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 0.35em;
  height: 0.8em;
  background: var(--fh-green);
  transform: skewX(-12deg);
}

.fh-section-subtitle {
  font-size: 1.0625rem;
  color: var(--fh-gray);
  margin-bottom: 2rem;
  max-width: 42rem;
}

/* ===== 头部 ===== */
.fh-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--fh-navy);
  border-bottom: 1px solid rgba(0, 229, 160, 0.25);
  box-shadow: 0 2px 16px rgba(11, 30, 63, 0.35);
}

.fh-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--fh-green) 0%, var(--fh-green) 28%, var(--fh-orange) 28%, var(--fh-orange) 42%, transparent 42%);
  z-index: 3;
}

.fh-header__inner {
  position: relative;
  height: var(--fh-header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.fh-header__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--fh-green) 0%, var(--fh-green) 22%, rgba(0, 229, 160, 0.1) 22%, rgba(0, 229, 160, 0.1) 60%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* 跳转链接 */
.fh-skip-link {
  position: fixed;
  top: -80px;
  left: 0.75rem;
  z-index: 300;
  display: inline-block;
  padding: 0.5rem 1.125rem;
  background: var(--fh-green);
  color: var(--fh-navy);
  font-family: var(--fh-font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}

.fh-skip-link:focus {
  top: 0;
  outline: none;
}

/* 品牌标识 */
.fh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.fh-brand:hover {
  text-decoration: none;
  color: inherit;
}

.fh-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 36px;
  background: var(--fh-green);
  color: var(--fh-navy);
  font-family: var(--fh-font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: -0.02em;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.fh-brand__text {
  font-family: var(--fh-font-heading);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--fh-text-light);
  white-space: nowrap;
}

.fh-brand--footer .fh-brand__text {
  color: var(--fh-text-light);
}

/* 主导航 */
.fh-nav {
  margin-left: auto;
}

.fh-nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.fh-nav__item a {
  display: block;
  padding: 0.5rem 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--fh-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fh-nav__item a:hover {
  color: var(--fh-green);
  background: rgba(0, 229, 160, 0.06);
  text-decoration: none;
}

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

/* 收藏捷径 */
.fh-header__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.875rem;
  padding: 0.5rem 1rem 0.5rem 1.125rem;
  background: var(--fh-orange);
  color: var(--fh-navy);
  font-family: var(--fh-font-body);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.fh-header__action::before {
  content: "★";
  font-size: 0.9em;
  color: var(--fh-navy);
}

.fh-header__action:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  text-decoration: none;
}

/* 汉堡按钮 */
.fh-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  height: 48px;
  padding: 8px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--fh-text-light);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fh-nav-toggle:hover {
  background: rgba(0, 229, 160, 0.1);
  border-color: var(--fh-green);
}

.fh-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
}

.fh-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fh-nav-toggle__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* ===== 页脚 ===== */
.fh-footer {
  background: var(--fh-navy);
  color: rgba(255, 255, 255, 0.78);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--fh-green) 0%, var(--fh-green) 30%, var(--fh-orange) 30%, var(--fh-orange) 50%, transparent 50%) 1;
}

.fh-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 3rem;
  padding-block: 3.5rem 2.5rem;
}

.fh-footer__col--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.fh-footer__slogan {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 14rem;
}

.fh-footer__title {
  color: var(--fh-green);
  font-family: var(--fh-font-body);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 229, 160, 0.25);
  display: inline-block;
}

.fh-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fh-footer__list a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.fh-footer__list a:hover {
  color: var(--fh-green);
  padding-left: 0.25rem;
}

.fh-footer__list--contact li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.fh-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.fh-footer__bottom p {
  font-family: var(--fh-font-body);
  line-height: 1.5;
}

/* ===== 返回顶部 ===== */
.fh-totop {
  position: fixed;
  right: 1.125rem;
  bottom: 1.125rem;
  z-index: 150;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fh-navy);
  color: var(--fh-green);
  border: 2px solid var(--fh-green);
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(11, 30, 63, 0.35);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.fh-totop:hover {
  background: var(--fh-green);
  color: var(--fh-navy);
}

.fh-totop[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== 移动端响应式 ===== */
@media (max-width: 991px) {
  :root {
    --fh-header-h: 64px;
  }

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

  .fh-brand__text {
    font-size: 1rem;
  }

  .fh-brand__mark {
    width: 42px;
    height: 32px;
    font-size: 1rem;
  }

  .fh-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--fh-navy);
    border-top: 3px solid var(--fh-green);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    padding: 0.875rem 1.125rem 1.25rem;
    display: none;
  }

  .fh-nav[data-open] {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .fh-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-nav__item a {
    padding: 0.8125rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
  }

  .fh-nav__item a:hover {
    background: rgba(0, 229, 160, 0.06);
    border-left-color: var(--fh-green);
  }

  .fh-nav__item a[aria-current="page"] {
    color: var(--fh-green);
    border-right: none;
    border-bottom-color: rgba(0, 229, 160, 0.25);
    border-left-color: var(--fh-green);
  }

  .fh-header__action {
    margin-left: 0;
    margin-top: 0.75rem;
    justify-content: center;
    align-self: stretch;
    text-align: center;
  }

  .fh-header__inner .fh-header__action {
    display: none;
  }

  .fh-nav .fh-header__action {
    display: flex;
  }
}

@media (min-width: 992px) {
  .fh-nav .fh-header__action {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .fh-header__inner {
    gap: 0.75rem;
  }

  .fh-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 2.75rem 2rem;
  }

  .fh-footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.375rem;
  }
}

@media (max-width: 399px) {
  .fh-brand__text {
    font-size: 0.9rem;
  }

  .fh-header__action {
    font-size: 0.8rem;
  }
}

/* ===== 无障碍：减少动画 ===== */
@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;
  }

  .fh-totop {
    transform: none;
  }
}
