/* ============================================
   乐游体育 /assets/site.css
   设计内核：赛事地图目录册 · 框架式导航
   ============================================ */

:root {
  --green: #2D6A4F;
  --green-deep: #1B4332;
  --green-light: #D8F3DC;
  --orange: #E76F51;
  --blue: #264653;
  --white: #FFFFFF;
  --gray: #F1F1F1;
  --ink: #111111;
  --font-head: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-data: "Courier Prime", "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --rail-w: 280px;
  --header-h: 64px;
  --container: 1280px;
  --radius: 2px;
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
}

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

[hidden] {
  display: none !important;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

#main-content {
  outline: none;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

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

::selection {
  background: var(--green);
  color: var(--white);
}

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

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

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

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  clip-path: none;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 400;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.2;
}

.section-index {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.bg-pale {
  background: var(--green-light);
}

.bg-deep {
  background: var(--green-deep);
  color: var(--white);
}

.bg-blue {
  background: var(--blue);
  color: var(--white);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

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

.label-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

.label-legend::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.label-legend--green::before {
  background: var(--green);
}

.label-legend--blue::before {
  background: var(--blue);
}

.data-fig {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  padding: 12px 22px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}

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

.btn-accent:hover {
  background: #d25f42;
  border-color: #d25f42;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 111, 81, .35);
}

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

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-data);
  font-size: 13px;
  color: rgba(17, 17, 17, .55);
}

.breadcrumbs a {
  color: var(--green);
  text-decoration: none;
}

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

.breadcrumbs .current {
  color: var(--orange);
  font-weight: 700;
}

.breadcrumbs-sep {
  color: rgba(17, 17, 17, .3);
}

/* ===== 头部 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--green-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 3px solid var(--orange);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

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

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .05em;
}

.brand-tagline {
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-data);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .25s, opacity .25s;
}

.site-header[data-open] .nav-toggle {
  border-color: var(--orange);
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--green-deep);
  padding: 12px 20px 24px;
  flex-direction: column;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

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

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 8px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 15px;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
  transition: color .2s, background .2s, padding-left .2s, border-color .2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .05);
  padding-left: 12px;
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(90deg, rgba(231, 111, 81, .22), rgba(231, 111, 81, 0));
  border-left: 3px solid var(--orange);
  border-bottom-color: rgba(255, 255, 255, .22);
  padding-left: 13px;
}

.nav-index {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}

.nav-label {
  font-weight: 700;
}

.nav-cta {
  margin-top: 24px;
}

.header-cta {
  display: none;
}

.header-meta {
  display: none;
}

.field-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  width: 0;
  max-width: 100%;
  background: var(--orange);
  z-index: 200;
  opacity: .92;
  transition: width .08s linear;
}

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

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  background: var(--green-deep);
  color: rgba(255, 255, 255, .8);
  margin-top: var(--space-2xl);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 24px, var(--green-light) 24px 48px, rgba(255, 255, 255, .4) 48px 72px);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 0;
  width: 180px;
  height: 18px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 8px, transparent 8px 16px);
  pointer-events: none;
}

.footer-frame {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-xl) 24px var(--space-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.footer-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--white);
  transition: color .2s;
}

.footer-tagline {
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}

.footer-note {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  color: rgba(255, 255, 255, .45);
}

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

.footer-title {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-links a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s, padding-left .2s;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 6px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-contact-item {
  position: relative;
  padding-left: 14px;
  color: rgba(255, 255, 255, .7);
}

.footer-contact-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 5px;
  height: 5px;
  background: var(--orange);
  transform: rotate(45deg);
}

.footer-service {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .4);
  margin-top: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== 图片容器 ===== */
.img-ratio {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--gray);
  border-radius: var(--radius);
}

.img-ratio::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

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

.img-ratio--portrait::before {
  padding-bottom: 125%;
}

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

.img-ratio--wide::before {
  padding-bottom: 42%;
}

.img-fill {
  background: linear-gradient(135deg, rgba(45, 106, 79, .12), rgba(216, 243, 220, .35)), var(--green-light);
}

/* ===== 纸张叠层卡片 ===== */
.paper-card {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--green-light);
  transition: transform .25s, box-shadow .25s;
}

.paper-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(45, 106, 79, .35);
}

/* ===== 标签页 ===== */
.tabs {
  margin-bottom: var(--space-lg);
}

.tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin-bottom: var(--space-md);
  padding: 0;
  border-bottom: 2px solid var(--gray);
  overflow-x: auto;
  scrollbar-width: none;
}

.tablist::-webkit-scrollbar {
  display: none;
}

.tab {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: rgba(17, 17, 17, .6);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

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

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

.tabpanel {
  animation: tab-fade .25s ease;
}

@keyframes tab-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== 平板 ===== */
@media (min-width: 768px) {
  .footer-frame {
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== 桌面：左侧 rail ===== */
@media (min-width: 1024px) {
  body {
    padding-top: 0;
    margin-left: var(--rail-w);
  }

  #main-content {
    scroll-margin-top: 0;
  }

  .site-header {
    width: var(--rail-w);
    height: 100vh;
    right: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 28px 24px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 28%), var(--green-deep);
    overflow-y: auto;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange) 16%, var(--green) 16%, var(--green) 100%);
    pointer-events: none;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 12px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .18) 0 4px, transparent 4px 12px);
    pointer-events: none;
  }

  .header-brand {
    margin-bottom: 48px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
    max-height: none;
    overflow: visible;
  }

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

  .nav-link {
    font-size: 16px;
    padding: 11px 8px;
  }

  .nav-cta {
    display: none;
  }

  .header-cta {
    display: block;
    margin-top: auto;
  }

  .header-cta .btn {
    width: 100%;
  }

  .header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .45);
  }

  .meta-coord {
    letter-spacing: .06em;
  }

  .field-progress {
    left: var(--rail-w);
  }
}

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

  .paper-card:hover {
    transform: none;
  }
}
