/* =============================================================
   飞亚体育 · 全站共享样式
   文件：/assets/site.css
   覆盖：全局变量 / 重置 / 排版 / 头部 / 页脚 / 通用组件
   ============================================================= */

/* ---------- 设计变量 ---------- */
:root {
  --sand-gray: #A89F91;
  --terracotta: #C15B3D;
  --vital-orange: #F27A24;
  --electric-blue: #1D6FF2;
  --moss-green: #6B8E4E;
  --cream: #F5F0E6;
  --charcoal: #2B2B2B;
  --light-sand: #D6C4A3;

  --font-black: 'Noto Sans CJK Black', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-light: 'Noto Sans CJK Light', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --container: 1280px;
  --gutter: 24px;
  --header-h: 76px;
  --duration: 260ms;
  --ease-out: cubic-bezier(0.22, 0.68, 0, 1);
  --shadow: 0 10px 30px rgba(43, 43, 43, 0.18);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(168, 159, 145, 0.045) 0 2px,
    transparent 2px 22px
  );
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-black);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 0.6em;
}

p {
  margin-bottom: 1em;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

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

::selection {
  background: var(--vital-orange);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--sand-gray);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vital-orange);
}

:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 1000;
  display: inline-block;
  padding: 10px 20px 10px 24px;
  background: var(--vital-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: top var(--duration) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
  outline: none;
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vital-orange), var(--electric-blue));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(43, 43, 43, 0.88);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 38px) 100%, 0 100%);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 42px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vital-orange), var(--electric-blue));
  opacity: 0.75;
}

.header-inner {
  position: relative;
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--cream);
}

.brand:hover {
  color: var(--cream);
}

.brand-mark {
  display: inline-block;
  font-family: var(--font-black);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--terracotta), var(--vital-orange));
  padding: 9px 10px 7px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  letter-spacing: 0.04em;
}

.brand-name {
  display: inline-block;
  font-family: var(--font-black);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.1em;
  padding-left: 2px;
}

.brand-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 8px 3px 12px;
  font-family: var(--font-light);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--cream);
  background: rgba(242, 122, 36, 0.14);
  border: 1px solid rgba(242, 122, 36, 0.55);
  border-left: 3px solid var(--vital-orange);
  transform: skewX(-10deg);
  white-space: nowrap;
}

/* ---------- 导航 ---------- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-light);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 230, 0.85);
  white-space: nowrap;
  transition: color var(--duration) var(--ease-out);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--vital-orange);
  transform: scaleX(0) skewX(-20deg);
  transform-origin: left center;
  transition: transform var(--duration) var(--ease-out);
}

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

.nav-link:hover::before,
.nav-link[aria-current="page"]::before {
  transform: scaleX(1) skewX(-20deg);
}

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

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(245, 240, 230, 0.28);
  border-top: 3px solid var(--vital-orange);
  cursor: pointer;
}

.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

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

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

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

/* ---------- 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--charcoal);
  color: var(--cream);
  clip-path: polygon(42px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}

.footer-topline {
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--vital-orange) 50%, var(--electric-blue));
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
}

.footer-col {
  min-width: 0;
}

.footer-col h3 {
  display: inline-block;
  position: relative;
  margin-bottom: 18px;
  padding-left: 14px;
  font-family: var(--font-black);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--cream);
}

.footer-col h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--vital-orange);
  transform: skewX(-16deg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-light);
  font-size: 14px;
}

.footer-col a {
  color: rgba(245, 240, 230, 0.7);
  transition: color var(--duration) var(--ease-out), padding-left var(--duration) var(--ease-out);
}

.footer-col a:hover {
  color: var(--vital-orange);
  padding-left: 4px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-black);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.footer-logo:hover {
  color: var(--cream);
}

.footer-tagline {
  margin-top: 6px;
  font-family: var(--font-light);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--vital-orange);
}

.footer-note {
  margin-top: 14px;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.62);
}

.footer-contact li {
  color: rgba(245, 240, 230, 0.82);
}

.footer-contact-link {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px 5px;
  border: 1px solid rgba(242, 122, 36, 0.5);
  border-left: 3px solid var(--vital-orange);
  font-size: 13px;
  color: var(--vital-orange);
}

.footer-contact-link:hover {
  background: var(--vital-orange);
  color: #fff;
  padding-left: 12px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(214, 196, 163, 0.16);
  font-family: var(--font-light);
  font-size: 13px;
  color: rgba(245, 240, 230, 0.5);
}

/* ---------- 内容容器与分区 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 40px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-light);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--vital-orange);
  transform: skewX(-30deg);
}

.section-title {
  margin-top: 10px;
  font-family: var(--font-black);
  font-weight: 900;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}

.section-desc {
  margin-top: 14px;
  max-width: 640px;
  font-family: var(--font-light);
  font-size: 15px;
  line-height: 1.8;
  color: #5c564e;
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%);
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--electric-blue);
}

.btn-primary {
  background: var(--vital-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--charcoal);
  color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: inset 0 0 0 2px var(--charcoal);
}

.btn-blue {
  background: var(--electric-blue);
  color: #fff;
}

.btn-blue:hover {
  background: #124bb0;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 28px 0;
  font-family: var(--font-light);
  font-size: 14px;
  color: #8a8278;
}

.breadcrumb li + li::before {
  content: '/';
  margin: 0 6px;
  color: var(--light-sand);
}

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

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

/* ---------- 切角面板 ---------- */
.cut-panel {
  position: relative;
  padding: 28px;
  background: var(--charcoal);
  color: var(--cream);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.cut-panel--light {
  background: #fff;
  color: var(--charcoal);
}

/* ---------- 数据卡片 ---------- */
.data-card {
  position: relative;
  padding: 22px 22px 24px;
  background: #fff;
  border-top: 3px solid var(--vital-orange);
  box-shadow: 0 2px 0 rgba(214, 196, 163, 0.4);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.data-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 48%, var(--light-sand) 50%, var(--light-sand) 100%);
}

.data-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.data-card-more {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 14px;
  color: #6b6459;
  transition: max-height var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out), margin-top var(--duration) var(--ease-out);
}

.data-card:hover .data-card-more,
.data-card:focus-within .data-card-more {
  max-height: 200px;
  margin-top: 12px;
  opacity: 1;
}

/* ---------- 标签 ---------- */
.tag-chip {
  display: inline-block;
  padding: 4px 10px 3px;
  margin: 0 6px 6px 0;
  font-family: var(--font-light);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  border-left: 3px solid var(--electric-blue);
  background: rgba(214, 196, 163, 0.24);
  color: var(--charcoal);
}

/* ---------- 脉冲流线 ---------- */
.pulse-line {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(242, 122, 36, 0.24), transparent);
}

.pulse-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--electric-blue), var(--vital-orange), transparent);
  animation: pulse-slide 2.8s var(--ease-out) infinite;
}

@keyframes pulse-slide {
  0% { left: -40%; }
  100% { left: 110%; }
}

/* ---------- 斜切标题与海报色块 ---------- */
.speed-title {
  display: inline-block;
  font-family: var(--font-black);
  font-weight: 900;
  transform: skewX(-6deg);
  transform-origin: left center;
}

.speed-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(242, 122, 36, 0.1) 0 6px,
    transparent 6px 14px
  );
}

.color-block {
  position: absolute;
  clip-path: polygon(0 0, 100% 0, calc(100% - 32px) 100%, 0 100%);
  pointer-events: none;
}

.block-orange { background: var(--vital-orange); }
.block-blue { background: var(--electric-blue); }
.block-terracotta { background: var(--terracotta); }
.block-sand { background: var(--sand-gray); }
.block-moss { background: var(--moss-green); }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--light-sand);
  margin-bottom: 24px;
}

.tab-button {
  position: relative;
  padding: 12px 22px 10px;
  margin-bottom: -2px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6b6459;
  cursor: pointer;
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.tab-button:hover {
  color: var(--charcoal);
}

.tab-button[aria-selected="true"] {
  color: var(--vital-orange);
  border-bottom-color: var(--vital-orange);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tab-slide 300ms var(--ease-out);
}

@keyframes tab-slide {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- 图片容器 ---------- */
.img-ratio {
  position: relative;
  overflow: hidden;
  background: var(--light-sand);
}

.img-ratio::after {
  content: '';
  display: block;
}

.img-ratio--16x9::after {
  padding-top: 56.25%;
}

.img-ratio--4x3::after {
  padding-top: 75%;
}

.img-ratio--square::after {
  padding-top: 100%;
}

.img-ratio img,
.img-ratio .img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-sand);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(168, 159, 145, 0.16) 0 8px,
    transparent 8px 16px
  );
  color: rgba(43, 43, 43, 0.4);
  font-family: var(--font-light);
  font-size: 14px;
}

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) skewX(-2deg);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0) skewX(0);
}

/* ---------- 数字脉冲 ---------- */
[data-count-up] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.is-counting {
  animation: count-pulse 500ms var(--ease-out);
}

@keyframes count-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.14); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

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

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 390;
    width: min(320px, 86vw);
    height: calc(100vh - var(--header-h));
    background: rgba(43, 43, 43, 0.98);
    clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px);
    transform: translateX(102%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 20px 40px;
    gap: 0;
  }

  .nav-link {
    display: block;
    font-size: 16px;
    padding: 16px 6px;
    color: var(--cream);
    border-bottom: 1px solid rgba(245, 240, 230, 0.12);
  }

  .nav-link::before {
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
    bottom: 0;
    transform: scaleY(0);
    transform-origin: top center;
  }

  .nav-link:hover::before,
  .nav-link[aria-current="page"]::before {
    transform: scaleY(1);
  }

  .nav-link:hover {
    color: var(--vital-orange);
  }

  .col-3,
  .col-4 {
    grid-column: span 6;
  }

  .col-5,
  .col-7,
  .col-9 {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

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

@media (max-width: 480px) {
  .brand-badge {
    display: none;
  }
}

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

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

  .scroll-progress {
    transform: scaleX(0);
  }
}
