/* ==========================================================================
   易倍体育 Site Kit
   文件：/assets/site.css
   说明：全站共享样式 — 变量、重置、排版、头部、页脚、按钮、基础组件
   搭配：各页面专属 CSS 在此基础上叠加
   ========================================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --color-bg: #0A1428;
  --color-surface: #12244A;
  --color-surface-light: #16305C;
  --color-accent: #00FF9C;
  --color-accent-dim: rgba(0, 255, 156, 0.12);
  --color-warning: #FF3D2E;
  --color-info: #00D4FF;
  --color-purple: #7B61FF;
  --color-text: #F5F7FA;
  --color-text-dim: #8A9BB5;
  --color-line: rgba(138, 155, 181, 0.16);
  --color-line-accent: rgba(0, 255, 156, 0.28);

  --font-display: "DIN Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --container-width: 1200px;
  --header-ticker-h: 34px;
  --header-main-h: 68px;
  --header-total: calc(var(--header-ticker-h) + var(--header-main-h));
  --shadow-header: 0 8px 32px rgba(0, 0, 0, 0.45);
  --cut-size: 10px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.024) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-info);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p {
  margin-bottom: 1rem;
}

/* ---------- 焦点可见性 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content,
[data-main-content] {
  scroll-margin-top: calc(var(--header-total) + 16px);
}

/* ---------- 内容容器 ---------- */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 主内容区 ---------- */
.main-content {
  position: relative;
  z-index: 1;
  min-height: 65vh;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2000;
  padding: 10px 22px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0, 255, 156, 0.35);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--color-bg);
}

/* ==========================================================================
   头部
   ========================================================================== */

/* ---------- 粘性头部骨架 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 20, 40, 0.96);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--color-line-accent);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10;
  background: linear-gradient(90deg, var(--color-accent), var(--color-info));
  pointer-events: none;
}

/* ---------- 顶部数据横带（记分牌） ---------- */
.data-ticker {
  height: var(--header-ticker-h);
  background-color: #060D1F;
  border-bottom: 1px solid rgba(0, 255, 156, 0.12);
  overflow: hidden;
}

.data-ticker__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 100%;
  white-space: nowrap;
}

.data-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-dim);
  letter-spacing: 0.02em;
}

.data-ticker__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: ticker-pulse 2s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 255, 156, 0.55);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 5px rgba(0, 255, 156, 0);
  }
}

.data-ticker__label {
  color: var(--color-text-dim);
}

.data-ticker__value {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
}

.data-ticker__unit {
  color: var(--color-text-dim);
  font-size: 11px;
}

/* ---------- 头部主行 ---------- */
.header-main {
  height: var(--header-main-h);
}

.header-main__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* ---------- 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--color-text);
  line-height: 1;
}

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - var(--cut-size)) 0, 100% var(--cut-size), 100% 100%, 0 100%);
}

.brand__mark-text {
  transform: skewX(-6deg);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__text-accent {
  color: var(--color-accent);
}

/* ---------- 主导航（桌面端） ---------- */
.site-nav {
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  display: block;
  position: relative;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-dim);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--color-accent);
  transition: right 0.25s ease;
}

.site-nav__link:hover {
  color: var(--color-text);
}

.site-nav__link:hover::after {
  right: 14px;
}

.site-nav__link[aria-current="page"] {
  color: var(--color-accent);
}

.site-nav__link[aria-current="page"]::after {
  right: 14px;
  background: var(--color-accent);
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.nav-toggle__box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 18px;
}

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

.nav-toggle__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

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

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

.nav-toggle[aria-expanded="true"] {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- 移动端导航折叠 ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    z-index: 90;
    background: #0C1830;
    border-bottom: 1px solid var(--color-line-accent);
    padding: 12px 24px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    padding: 14px 8px;
    font-size: 20px;
    border-bottom: 1px solid rgba(138, 155, 181, 0.1);
  }

  .site-nav__link::after {
    left: 8px;
    bottom: 8px;
    height: 2px;
  }

  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    right: 8px;
  }
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  padding: 13px 30px 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: none;
  clip-path: polygon(0 0, calc(100% - var(--cut-size)) 0, 100% var(--cut-size), 100% 100%, 0 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(0, 255, 156, 0.22);
}

.btn--primary:hover {
  background: #33FFB0;
  color: var(--color-bg);
  box-shadow: 0 6px 28px rgba(0, 255, 156, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-line);
  clip-path: polygon(0 0, calc(100% - var(--cut-size)) 0, 100% var(--cut-size), calc(100% - 1px) calc(100% - 1px), 1px calc(100% - 1px), 1px var(--cut-size));
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

/* ==========================================================================
   章节标题区
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.section-head__title {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.section-head__actions {
  margin-left: auto;
  display: inline-flex;
  gap: 12px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* ==========================================================================
   滚动显现
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ==========================================================================
   图片占位基础规则
   ========================================================================== */
.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-frame:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  background-color: #060D1F;
  border-top: 1px solid var(--color-line-accent);
  color: var(--color-text-dim);
  margin-top: auto;
}

/* ---------- 页脚网格 ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 48px;
}

/* ---------- 品牌区 ---------- */
.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-dim);
  max-width: 260px;
  margin-bottom: 22px;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-accent);
  border: 1px solid var(--color-line-accent);
  background: var(--color-accent-dim);
  border-radius: 4px;
}

/* ---------- 栏目通用 ---------- */
.footer-col__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
}

.footer-col__list {
  display: grid;
  gap: 4px;
}

.footer-col__link {
  display: inline-block;
  position: relative;
  padding: 8px 0 8px 0;
  font-size: 14px;
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.footer-col__link:hover {
  color: var(--color-accent);
  padding-left: 12px;
}

.footer-col__link:hover::before {
  width: 6px;
}

/* ---------- 联系方式列 ---------- */
.footer-col--contact .footer-col__list {
  gap: 10px;
}

.footer-contact-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-contact-line__label {
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.footer-contact-line__value {
  color: var(--color-text);
}

/* ---------- 底部条 ---------- */
.footer-bottom {
  border-top: 1px solid var(--color-line);
  padding: 24px 0;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.footer-bottom__copy {
  margin: 0;
}

.footer-bottom__icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-bottom__contact {
  margin: 0;
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.6;
}

.footer-bottom__links {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-bottom__links a {
  font-size: 13px;
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom__links a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   大幅展示文字
   ========================================================================== */
.text-hero {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text);
}

.text-hero--dim {
  color: var(--color-text-dim);
}

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

  .footer-col--contact {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  :root {
    --header-main-h: 60px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .data-ticker__inner {
    overflow-x: auto;
    gap: 24px;
  }

  .brand__text {
    font-size: 22px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head__title {
    font-size: 36px;
  }

  .section-head__actions {
    margin-left: 0;
  }

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

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

  .footer-bottom__links {
    margin-left: 0;
  }
}

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

  .data-ticker__item:last-child {
    display: none;
  }

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

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

  .text-hero {
    font-size: 38px;
  }
}

/* ==========================================================================
   无障碍 — 减少动态
   ========================================================================== */
@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: 0ms !important;
  }

  .data-ticker__dot {
    animation: none !important;
    box-shadow: none !important;
  }

  .site-nav {
    transition: none !important;
  }

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

  .btn:hover {
    transform: none;
  }

  .footer-col__link:hover {
    padding-left: 0;
  }
}
