/* 中欧体育 site.css — 全站共享样式 */
/* 断点约定：桌面 >=900px；平板 700-899px；手机 <700px */

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

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

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  line-height: 1.2;
  color: var(--deep-blue);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--orange);
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--deep-blue);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Design Tokens ===== */
:root {
  --deep-blue: #0a1e3c;
  --deep-blue-2: #122b55;
  --deep-blue-3: #071530;
  --orange: #ff6b35;
  --lime: #a6e22e;
  --rock: #4a4a4a;
  --moss: #5a7d5a;
  --clay: #c67b5c;
  --cream: #f5f1e6;
  --ink: #1a1a1a;
  --line-white: rgba(255, 255, 255, 0.15);
  --line-dark: rgba(0, 0, 0, 0.12);
  --font-head: "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, "Liberation Mono", monospace;
  --rail-w: 80px;
  --header-h: 56px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-w: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-orange: 0 12px 32px rgba(255, 107, 53, 0.32);
  --shadow-blue: 0 16px 40px rgba(10, 30, 60, 0.14);
}

/* ===== 基础组件 ===== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.site-main {
  min-height: 60vh;
}

body.nav-locked {
  overflow: hidden;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

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

.btn-primary:hover {
  background: #ff8256;
  box-shadow: var(--shadow-orange);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--deep-blue);
  border: 2px solid var(--deep-blue);
}

.btn-outline:hover {
  background: var(--deep-blue);
  color: var(--cream);
  text-decoration: none;
}

.btn-accent {
  background: var(--lime);
  color: var(--deep-blue);
}

.btn-accent:hover {
  background: #b6f23c;
  box-shadow: 0 12px 28px rgba(166, 226, 46, 0.35);
  text-decoration: none;
}

/* ===== 卡片与状态组件 ===== */
.card {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--deep-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--deep-blue);
  animation: live-pulse 1.6s ease-in-out infinite;
}

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

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(10, 30, 60, 0.08);
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 700;
}

.tag-clay {
  background: rgba(198, 123, 92, 0.18);
  color: var(--clay);
}

.tag-moss {
  background: rgba(90, 125, 90, 0.18);
  color: var(--moss);
}

.tag-lime {
  background: rgba(166, 226, 46, 0.2);
  color: #3d5a00;
}

.data-value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

/* ===== 面包屑 ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  margin: 0;
  font-size: 14px;
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(0, 0, 0, 0.25);
}

.breadcrumbs a {
  color: var(--rock);
}

.breadcrumbs [aria-current="page"] {
  color: var(--deep-blue);
  font-weight: 700;
}

/* ===== 章节体系 ===== */
.page-section {
  padding: 72px 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section {
  padding: 72px 0;
}

.section-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 32px;
  padding-right: 48px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.04em;
  transform: skewX(-10deg);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  margin: 0;
}

.section-note {
  position: absolute;
  right: 0;
  bottom: 4px;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--rock);
}

/* ===== 页头 ===== */
.page-hero {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
}

.page-hero-title {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.page-hero-title em {
  font-style: normal;
  color: var(--orange);
}

.page-hero-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--rock);
}

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

/* ===== 图片容器 ===== */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-2));
}

.img-frame::before {
  content: "";
  display: block;
  padding-top: 62.5%;
}

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

.img-frame-ratio-wide::before {
  padding-top: 56.25%;
}

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

.img-frame-ratio-portrait::before {
  padding-top: 128%;
}

.img-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(10, 30, 60, 0.72);
  color: var(--cream);
  font-size: 12px;
  backdrop-filter: blur(4px);
}

/* ===== 速度线装饰 ===== */
.speed-lines {
  position: relative;
  overflow: hidden;
}

.speed-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(166, 226, 46, 0.06) 0 8px, transparent 8px 16px);
  mix-blend-mode: screen;
}

/* ===== 头部（桌面轨道 + 移动抽屉） ===== */
.site-header {
  background: var(--deep-blue);
  color: var(--cream);
}

@media (min-width: 900px) {
  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    z-index: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0 18px;
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--deep-blue-2) 130%);
    border-right: 1px solid var(--line-white);
  }
}

@media (max-width: 899px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--deep-blue);
    box-shadow: 0 1px 0 var(--line-white), 0 10px 30px rgba(7, 21, 48, 0.35);
  }
}

/* 品牌 */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--cream);
}

.brand-mark:hover {
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--orange);
  color: var(--deep-blue);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-orange);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cream);
}

@media (min-width: 900px) {
  .brand-mark {
    margin-top: 2px;
  }
}

@media (max-width: 899px) {
  .brand-mark {
    flex-direction: row;
    gap: 8px;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 9px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.04em;
  }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line-white);
  border-radius: 12px;
}

.toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

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

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

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

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

/* 导航 */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 68px;
  padding: 9px 6px;
  border-radius: 14px;
  color: rgba(245, 241, 230, 0.62);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--lime);
  opacity: 0.5;
}

.nav-label {
  display: block;
}

.nav-link[aria-current="page"] {
  color: var(--cream);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.32), rgba(255, 107, 53, 0.06));
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-link[aria-current="page"] .nav-index {
  opacity: 1;
}

.nav-link[data-spy-active]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

@media (min-width: 900px) {
  .header-nav {
    margin-top: 18px;
  }
}

@media (max-width: 899px) {
  .header-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    padding: 20px 16px;
    background: var(--deep-blue);
    border-right: 1px solid var(--line-white);
    box-shadow: 12px 0 40px rgba(7, 21, 48, 0.45);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .header-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s var(--ease), visibility 0s;
  }

  .header-nav .nav-list {
    gap: 4px;
  }

  .header-nav .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px 16px;
    font-size: 15px;
  }

  .header-nav .nav-index {
    font-size: 11px;
  }

  .header-nav .nav-link[data-spy-active]::after {
    right: 16px;
  }
}

/* 轨道底部 */
.header-foot {
  margin-top: auto;
  padding-top: 12px;
}

.header-foot-link {
  display: block;
  writing-mode: vertical-rl;
  padding: 10px 5px;
  border: 1px solid var(--line-white);
  border-radius: var(--radius-pill);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.header-foot-link:hover {
  background: rgba(166, 226, 46, 0.12);
  border-color: var(--lime);
  text-decoration: none;
}

@media (max-width: 899px) {
  .header-foot {
    display: none;
  }
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: var(--deep-blue-3);
  color: rgba(245, 241, 230, 0.7);
  border-top: 4px solid var(--orange);
  overflow: hidden;
}

@media (min-width: 900px) {
  .site-footer {
    margin-left: var(--rail-w);
  }
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(166, 226, 46, 0.12), transparent 65%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(166, 226, 46, 0.03) 0 10px, transparent 10px 20px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 24px;
}

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

.footer-brand .brand-mark {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
}

.footer-brand .brand-badge {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.footer-brand .brand-name {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.footer-slogan {
  margin: 18px 0 6px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--orange);
  transform: skewX(-8deg);
}

.footer-statement {
  max-width: 38em;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245, 241, 230, 0.55);
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col-title::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  color: rgba(245, 241, 230, 0.7);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-list a:hover {
  color: var(--orange);
  padding-left: 4px;
  text-decoration: none;
}

.footer-contact-item {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 241, 230, 0.65);
}

.footer-contact-item strong {
  margin-right: 6px;
  color: var(--cream);
  font-weight: 700;
}

.footer-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-white);
}

.footer-privacy a {
  color: rgba(245, 241, 230, 0.5);
  font-size: 12px;
}

.footer-privacy a:hover {
  color: var(--lime);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 48px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line-white);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(245, 241, 230, 0.48);
}

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

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

  .site-main {
    padding-top: var(--header-h);
  }
}

/* ===== 系统元素 ===== */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 900;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-orange);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 950;
  background: rgba(166, 226, 46, 0.16);
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--lime), var(--orange) 85%);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-orange);
  transition: transform 0.2s var(--ease), background 0.2s;
}

.back-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.back-top:hover {
  background: #ff8256;
  transform: translateY(-3px);
}

@media (max-width: 899px) {
  .back-top {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
  }

  .back-top::before {
    font-size: 14px;
  }
}

/* ===== 响应式布局基础 ===== */
@media (max-width: 899px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .page-section,
  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 56px 0 40px;
  }
}

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

  .live-badge::before {
    animation: none;
  }

  .scroll-progress::after {
    transition: none;
  }
}
