/* ============================================================
   四喜体育 Site Kit
   视觉 DNA：非对称编辑部式数据看台
   深空蓝 × 活力橙 × 荧光绿 × 墨蓝黑
   ============================================================ */

:root {
  --c-space: #0A1830;
  --c-rice: #F5F1E8;
  --c-orange: #FF5C1F;
  --c-terracotta: #D97D4A;
  --c-rock: #A8B0BA;
  --c-moss: #3E8B5C;
  --c-neon: #C6FF4D;
  --c-ink: #0E1421;

  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Roboto Mono", monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 20px;
  --fs-lg: 28px;
  --fs-xl: 40px;
  --fs-hero: 64px;

  --z-skip: 1000;
  --z-progress: 200;
  --z-header: 100;
  --z-nav-drop: 95;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--c-space);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--c-rice);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-orange);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

a:hover {
  color: var(--c-terracotta);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

/* ---------- 标题与正文 ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-rice);
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p {
  margin-bottom: 1em;
}

code,
.mono {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(10, 24, 48, 0.55);
  border-radius: 2px;
}

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

/* ---------- 主内容区 ---------- */
#main-content {
  flex: 1 0 auto;
  width: 100%;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: var(--z-skip);
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 20px;
  background-color: var(--c-orange);
  color: var(--c-rice);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s ease;
}

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

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: var(--z-progress);
  background-image: linear-gradient(90deg, var(--c-orange), var(--c-neon));
  pointer-events: none;
}

/* ---------- 公告条 ---------- */
.site-announcement {
  background-color: var(--c-ink);
  border-bottom: 1px solid rgba(168, 176, 186, 0.15);
  padding-block: 8px;
}

.site-announcement__text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--c-rock);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-announcement__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-neon);
  border: 1px solid rgba(198, 255, 77, 0.35);
  border-radius: 2px;
  padding: 2px 8px;
}

.site-announcement__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-neon);
  animation: live-pulse 0.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.6);
  }
}

/* ---------- 上层信息导航 / 品牌 ---------- */
.site-masthead {
  position: relative;
  background-color: var(--c-space);
  border-bottom: 1px solid rgba(168, 176, 186, 0.12);
  padding-block: 28px 32px;
}

.site-masthead::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--c-orange) 60%, var(--c-neon) 100%);
  opacity: 0.85;
}

.site-masthead__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand__flag {
  width: 12px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 50% 100%, 0 64%);
  transition: background-color 0.3s ease;
}

.brand:hover .brand__flag {
  background-color: var(--c-neon);
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--c-rice);
  line-height: 1.1;
  transition: color 0.3s ease;
}

.brand:hover .brand__name {
  color: var(--c-orange);
}

.brand__code {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-rock);
  border-left: 1px solid rgba(168, 176, 186, 0.25);
  padding-left: 12px;
  line-height: 1.4;
}

.site-masthead__topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
}

.site-masthead__slogan {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--c-rice);
  letter-spacing: 0.02em;
}

.site-masthead__season {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-neon);
  border: 1px solid rgba(198, 255, 77, 0.3);
  border-radius: 2px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- 下层导航 ---------- */
.site-navbar {
  position: relative;
  z-index: var(--z-header);
  background-color: var(--c-ink);
  border-bottom: 1px solid rgba(168, 176, 186, 0.12);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
}

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

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 44px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-rice);
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.site-nav__link:hover {
  color: var(--c-orange);
  background-color: rgba(255, 92, 31, 0.06);
  border-bottom-color: var(--c-orange);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-orange);
  border-bottom-color: var(--c-neon);
}

.site-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--c-rock);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.site-nav__link:hover .site-nav__idx,
.site-nav__link[aria-current="page"] .site-nav__idx {
  color: var(--c-neon);
}

.site-nav__lbl {
  line-height: 1.2;
}

/* 移动端导航按钮 */
.site-nav__toggle {
  display: none;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-rice);
  background-color: var(--c-orange);
  border: 1px solid var(--c-orange);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: var(--c-rice);
}

.btn--ghost {
  background-color: transparent;
  color: var(--c-rice);
  border-color: var(--c-rock);
}

.btn--ghost:hover {
  background-color: transparent;
  border-color: var(--c-orange);
  color: var(--c-orange);
}

/* ---------- 章节标签 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-terracotta);
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background-color: var(--c-orange);
}

/* ---------- 切角面板 ---------- */
.panel-cut {
  position: relative;
  background-color: var(--c-rice);
  color: var(--c-space);
  padding: 32px;
  border-radius: 0 8px 0 0;
  border-left: 3px solid var(--c-orange);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.panel-cut::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 28px solid var(--c-orange);
  border-left: 28px solid transparent;
  border-radius: 0 8px 0 0;
}

.panel-cut h2,
.panel-cut h3,
.panel-cut h4 {
  color: var(--c-space);
}

.panel-cut a {
  color: var(--c-orange);
}

.panel-cut a:hover {
  color: var(--c-terracotta);
}

/* ---------- 图片容器占位 ---------- */
.image-figure {
  position: relative;
  overflow: hidden;
  background-color: var(--c-ink);
  border-radius: 4px;
  border: 1px solid rgba(168, 176, 186, 0.2);
}

.image-figure::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.image-figure--portrait::before {
  padding-top: 133.33%;
}

.image-figure--square::before {
  padding-top: 100%;
}

.image-figure__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-rock);
  background-image:
    linear-gradient(135deg, transparent 78%, rgba(255, 92, 31, 0.1) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(168, 176, 186, 0.05) 14px, rgba(168, 176, 186, 0.05) 15px);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-rock);
}

.breadcrumbs a {
  color: var(--c-rock);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}

.breadcrumbs__sep {
  color: var(--c-rock);
  opacity: 0.45;
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-orange);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--c-ink);
  border-top: 1px solid rgba(168, 176, 186, 0.15);
  padding-block: 56px 0;
  margin-top: 64px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-terracotta) 40%, var(--c-neon) 100%);
  opacity: 0.9;
}

.site-footer__inner {
  padding-bottom: 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.site-footer__brand-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--c-rice);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.site-footer__brand-link:hover {
  color: var(--c-orange);
}

.site-footer__slogan {
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-rock);
}

.site-footer__trust {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--c-rock);
  max-width: 46em;
  opacity: 0.85;
}

.site-footer__heading {
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-neon);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168, 176, 186, 0.18);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: var(--fs-sm);
  color: var(--c-rice);
  border-bottom: 1px dashed rgba(168, 176, 186, 0.22);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.site-footer__link::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 12px;
  background-color: var(--c-orange);
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.site-footer__link:hover {
  color: var(--c-orange);
  padding-left: 4px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--c-rice);
}

.site-footer__contact-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-rock);
  min-width: 3em;
}

.site-footer__contact-value {
  word-break: break-all;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid rgba(168, 176, 186, 0.15);
}

.site-footer__copy,
.site-footer__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--c-rock);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .container {
    padding-inline: clamp(16px, 4vw, 32px);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  h1 { font-size: clamp(32px, 8vw, 44px); }
  h2 { font-size: clamp(26px, 6vw, 32px); }

  .site-masthead__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-masthead__topline {
    width: 100%;
  }

  .site-announcement__text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.5;
  }

  /* ---------- 移动端导航折叠 ---------- */
  .site-nav {
    min-height: 0;
    padding-block: 10px;
  }

  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(168, 176, 186, 0.45);
    border-radius: 2px;
    color: var(--c-rice);
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
  }

  .site-nav__toggle:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
  }

  .site-nav__toggle-bar,
  .site-nav__toggle-bar::before,
  .site-nav__toggle-bar::after {
    display: block;
    position: relative;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
  }

  .site-nav__toggle-bar::before,
  .site-nav__toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
  }

  .site-nav__toggle-bar::before {
    transform: translateY(-6px);
  }

  .site-nav__toggle-bar::after {
    transform: translateY(6px);
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar {
    background-color: transparent;
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::before {
    transform: translateY(0) rotate(45deg);
  }

  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::after {
    transform: translateY(0) rotate(-45deg);
  }

  .site-nav__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: var(--z-nav-drop);
    flex-direction: column;
    align-items: stretch;
    background-color: var(--c-ink);
    border: 1px solid rgba(168, 176, 186, 0.2);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .site-nav[data-open="true"] .site-nav__list {
    display: flex;
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-left: 2px solid transparent;
    border-bottom: 1px dashed rgba(168, 176, 186, 0.18);
    border-radius: 0;
  }

  .site-nav__link:last-child {
    border-bottom: none;
  }

  .site-nav__link:hover {
    background-color: rgba(255, 92, 31, 0.08);
    border-left-color: var(--c-orange);
    border-bottom: 1px dashed rgba(168, 176, 186, 0.18);
  }

  .site-nav__link[aria-current="page"] {
    background-color: rgba(255, 92, 31, 0.1);
    border-left-color: var(--c-neon);
  }

  .site-nav__idx {
    min-width: 20px;
  }

  /* ---------- 页脚移动端 ---------- */
  .site-footer {
    padding-block: 40px 0;
    margin-top: 48px;
  }

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

  .site-footer__brand {
    grid-column: 1;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 16px;
  }

  .panel-cut {
    padding: 24px;
  }
}

/* ---------- 动效减弱 ---------- */
@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;
  }

  .site-announcement__dot {
    animation: none;
  }
}
