/* =============================================
   冠竞体育 Shared Stylesheet / assets/site.css
   技术蓝图 × 运动能量
   ============================================= */

/* ---------- 变量 ---------- */
:root {
  --c-navy: #0A1F44;
  --c-orange: #FF6B35;
  --c-neon: #39FF14;
  --c-cream: #F5F0E9;
  --c-ink: #1B1B1B;
  --c-gray: #6B6B6B;
  --c-white: #FFFFFF;
  --c-red: #FF3B30;

  --font-heading: Impact, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "Roboto Mono", "Courier New", Consolas, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --container: 1200px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 250ms;
}

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

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

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-ink);
  background-color: var(--c-cream);
  background-image:
    linear-gradient(rgba(10, 31, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 68, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
}

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

ul,
ol {
  list-style-position: inside;
}

a {
  color: var(--c-navy);
  transition: color var(--duration) ease;
}

address {
  font-style: normal;
}

/* ---------- 标题排版 ---------- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-navy);
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
}

/* ---------- 容器与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

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

.section--dark {
  background-color: var(--c-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--c-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--c-white);
}

/* ---------- 网格 ---------- */
.grid-2,
.grid-3 {
  display: grid;
  gap: var(--space-4);
}

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

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

@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
  background: var(--c-navy);
  border: 2px solid var(--c-navy);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration) ease,
    border-color var(--duration) ease,
    color var(--duration) ease,
    transform 0.1s ease;
}

.btn:hover {
  background: #16305e;
  border-color: #16305e;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-white);
}

.btn--primary:hover {
  background: #e04a1a;
  border-color: #e04a1a;
}

.btn--outline {
  background: transparent;
  border-color: var(--c-navy);
  color: var(--c-navy);
}

.btn--outline:hover {
  background: var(--c-navy);
  color: var(--c-white);
}

/* ---------- 文本工具 ---------- */
.text-muted {
  color: var(--c-gray);
  font-size: 14px;
}

.index-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-orange);
  letter-spacing: 0.08em;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-neon);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
  vertical-align: baseline;
}

/* ---------- 页面标题 ---------- */
.page-head {
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--c-navy);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.page-head__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-orange);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
}

.page-head__title {
  margin: 0;
}

.page-head__sub {
  max-width: 560px;
  color: var(--c-gray);
  margin-top: var(--space-2);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: var(--space-3);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  color: var(--c-gray);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  color: var(--c-gray);
  opacity: 0.5;
}

.breadcrumbs__link {
  color: var(--c-gray);
  text-decoration: none;
}

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

.breadcrumbs__item[aria-current="page"] {
  color: var(--c-ink);
  font-weight: 600;
}

/* ---------- 正文排版 ---------- */
.prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink);
}

.prose p {
  margin-bottom: var(--space-3);
}

.prose h2 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

.prose h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-3);
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  border-left: 4px solid var(--c-orange);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-3) 0;
  background: rgba(255, 107, 53, 0.08);
}

/* ---------- 图片容器 ---------- */
.photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--c-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.photo-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 1;
}

/* ---------- 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 999;
  padding: 12px 24px;
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

/* ---------- 滚动进度条 ---------- */
.scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--c-neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
  z-index: 50;
  pointer-events: none;
}

/* ---------- 头部 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--c-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 3px solid var(--c-orange);
}

.site-header::before,
.site-header::after {
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 220px;
  height: 6px;
  background: var(--c-neon);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  z-index: 2;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* ---------- 品牌 ---------- */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-white);
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--c-orange);
  color: var(--c-navy);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
}

.site-brand__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--c-white);
}

.site-brand__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-neon);
  letter-spacing: 0.06em;
}

.site-brand--footer .site-brand__mark {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.site-brand--footer .site-brand__name {
  font-size: 24px;
}

.site-brand--footer .site-brand__tagline {
  color: var(--c-orange);
}

/* ---------- 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: var(--c-white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color var(--duration) ease, background-color var(--duration) ease;
}

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

.nav-toggle:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

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

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--duration) ease, opacity var(--duration) ease;
}

.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__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- 主导航 ---------- */
.site-nav {
  font-size: 15px;
}

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

.site-nav__link {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-white);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color var(--duration) ease, border-color var(--duration) ease;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-orange);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity var(--duration) ease;
  z-index: -1;
  pointer-events: none;
}

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

.site-nav__link:hover::before {
  opacity: 1;
}

.site-nav__link:hover .site-nav__num {
  color: var(--c-navy);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  background: var(--c-neon);
  opacity: 0;
  transition: opacity var(--duration) ease;
  pointer-events: none;
}

.site-nav__link:focus-visible::after,
.site-nav__link[aria-current="page"]::after {
  opacity: 1;
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--c-neon);
  opacity: 0.9;
  letter-spacing: 0;
  transition: color var(--duration) ease;
}

.site-nav__link[aria-current="page"] {
  color: var(--c-white);
  border-color: rgba(57, 255, 20, 0.4);
  background: rgba(57, 255, 20, 0.08);
}

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

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

  .site-header__inner {
    flex-wrap: wrap;
    padding: var(--space-2) var(--space-3);
  }

  .site-nav {
    flex-basis: 100%;
    order: 9;
    display: none;
    margin-top: var(--space-2);
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav__link {
    padding: 12px 8px;
    font-size: 16px;
    border-radius: 0;
  }

  .site-nav__link[aria-current="page"]::after {
    right: 8px;
    bottom: auto;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
  }
}

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

@media (max-width: 380px) {
  .nav-toggle__label {
    display: none;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  background-color: var(--c-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  margin-top: var(--space-6);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 99.5% 100%, 0.5% 100%);
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: var(--space-4);
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-5) var(--space-4);
}

.site-footer__cell {
  min-width: 0;
}

.site-footer__cell--brand .site-brand {
  margin-bottom: var(--space-3);
}

.site-footer__desc,
.site-footer__trust {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

.site-footer__trust {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  border-left: 2px solid var(--c-neon);
  padding-left: 12px;
}

.site-footer__heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--space-3);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer__index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--c-orange);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 10px;
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--duration) ease, padding-left var(--duration) ease;
}

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

.site-footer__contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 var(--space-3);
  font-size: 14px;
}

.site-footer__contact dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-orange);
  letter-spacing: 0.06em;
}

.site-footer__contact dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  overflow-wrap: anywhere;
}

.site-footer__service {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 12px;
  margin-top: var(--space-3);
}

.site-footer__bottom {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 页脚响应式 ---------- */
@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
  }
}

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 2px;
}

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