/* ============================================================
   YOBO竞技 /assets/site.css
   共享样式：重置、变量、基础排版、头部、页脚、通用组件
   ============================================================ */

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

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

body {
  min-height: 100vh;
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Teko', 'Oswald', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-black);
}

/* ---------- CSS Variables ---------- */
:root {
  --deep-green: #0B3D2E;
  --gold: #D4A842;
  --dark-red: #8B2E2E;
  --rock-gray: #4A4A4A;
  --moss-green: #5B8A4C;
  --terracotta: #B56A46;
  --cream: #F5F0E6;
  --ink-black: #1A1A1A;

  --heading-font: 'Teko', 'Oswald', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --body-font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --data-font: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --header-height: 76px;
  --container-max: 1200px;
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.16);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Focus & Selection ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* ---------- Utility ---------- */
.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: -56px;
  left: 24px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--ink-black);
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0 0 6px 6px;
  transition: top 0.3s ease;
}

.skip-link:focus-visible {
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-black);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-gold:hover {
  background: #e4b951;
  border-color: #e4b951;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 168, 66, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---------- Section / Panel ---------- */
.section {
  padding: clamp(64px, 8vw, 104px) 0;
  position: relative;
}

.panel {
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 3px solid rgba(212, 168, 66, 0.35);
  position: relative;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 40px;
  position: relative;
}

.section-number {
  font-family: var(--data-font);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  z-index: 0;
  user-select: none;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 4px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--ink-black);
  line-height: 1.1;
}

.section-desc {
  max-width: 62ch;
  color: var(--rock-gray);
  font-size: 1rem;
  margin-top: 4px;
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

/* ---------- Data Card ---------- */
.data-card {
  background: linear-gradient(135deg, var(--deep-green) 0%, #0a3025 100%);
  border: 1px solid rgba(212, 168, 66, 0.2);
  border-left: 4px solid var(--gold);
  border-radius: 2px 12px 12px 2px;
  padding: 20px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  color: var(--cream);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.data-card:hover {
  transform: translateY(-4px) rotate(0.15deg);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  border-color: rgba(212, 168, 66, 0.55);
}

.data-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.6);
  margin-bottom: 6px;
}

.data-value {
  font-family: var(--data-font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.data-value small {
  font-size: 0.8rem;
  color: rgba(245, 240, 230, 0.55);
  margin-left: 4px;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 1.5;
  white-space: nowrap;
}

.tag-red {
  background: rgba(139, 46, 46, 0.18);
  border: 1px solid var(--dark-red);
  color: var(--dark-red);
}

.tag-moss {
  background: rgba(91, 138, 76, 0.16);
  border: 1px solid var(--moss-green);
  color: var(--moss-green);
}

.tag-terracotta {
  background: rgba(181, 106, 70, 0.16);
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--rock-gray);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) contrast(1.08);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.img-frame:hover img {
  transform: scale(1.05) rotate(0.4deg);
  filter: saturate(1.3) contrast(1.12);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--rock-gray);
  margin-bottom: 20px;
}

.breadcrumb > * + *::before {
  content: '/';
  margin-right: 4px;
  color: var(--rock-gray);
  opacity: 0.6;
}

.breadcrumb a {
  color: var(--gold);
  transition: color 0.25s ease;
}

.breadcrumb a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.breadcrumb-item[aria-current='page'] {
  color: var(--rock-gray);
  font-weight: 600;
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  background: var(--deep-green);
  color: var(--cream);
  padding: calc(var(--header-height) + 48px) 0 64px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  margin-bottom: 0;
}

.page-hero .page-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 12px;
}

.page-hero .page-desc {
  max-width: 60ch;
  color: rgba(245, 240, 230, 0.78);
  font-size: 1.05rem;
}

/* ---------- Table Scroll ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
}

.table-scroll table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--cream);
}

.table-scroll th,
.table-scroll td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(74, 74, 74, 0.16);
  font-family: var(--data-font);
  font-size: 0.9rem;
  white-space: nowrap;
}

.table-scroll th {
  background: var(--deep-green);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

.table-scroll tbody tr:hover {
  background: rgba(212, 168, 66, 0.08);
}

/* ---------- Reveal Animation ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(11, 61, 46, 0.72) 0%, rgba(11, 61, 46, 0.32) 70%, transparent 100%);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 2px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 61, 46, 0.96);
  border-bottom-color: rgba(212, 168, 66, 0.5);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
  position: relative;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--deep-green);
  font-family: var(--heading-font);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 80%);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.05);
}

.brand-text {
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  display: block;
  position: relative;
  padding: 8px 14px;
  font-family: var(--heading-font);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.88);
  border-bottom: 3px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

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

.nav-link[aria-current='page'] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-cta {
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 0.95rem;
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
  z-index: 3;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 240, 230, 0.35);
  border-radius: 4px;
  background: transparent;
  z-index: 1400;
  flex-shrink: 0;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.nav-toggle-bar::before {
  transform: translate(-50%, -7px);
}

.nav-toggle-bar::after {
  transform: translate(-50%, 7px);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--deep-green);
  color: var(--cream);
  position: relative;
  border-top: 4px solid var(--gold);
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.1fr;
  gap: 44px;
  padding: 64px 0 48px;
}

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

.footer-about {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.72);
  margin-top: 16px;
  max-width: 36ch;
}

.trust-statement {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 168, 66, 0.08);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.6);
}

.footer-heading {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 168, 66, 0.25);
}

.footer-nav-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.07);
}

.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(245, 240, 230, 0.78);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-nav-list a::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: skewX(-22deg);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer-nav-list a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-nav-list a:hover::before {
  transform: skewX(-22deg) scale(1.25);
}

.footer-contact-item {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(245, 240, 230, 0.72);
  padding: 4px 0;
}

.footer-contact-item:first-of-type {
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.footer-icp {
  font-size: 0.82rem;
  color: rgba(245, 240, 230, 0.5);
  font-family: var(--data-font);
}

/* ---------- Body Lock (mobile open nav) ---------- */
body.nav-locked {
  overflow: hidden;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 88vw);
    background: var(--deep-green);
    border-left: 3px solid var(--gold);
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.4);
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    align-items: flex-start;
    flex-direction: column;
    padding: calc(var(--header-height) + 24px) 32px 40px;
    overflow-y: auto;
    z-index: 1300;
  }

  .site-nav[data-open='true'] {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(245, 240, 230, 0.12);
    border-left: 3px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
  }

  .nav-link:hover {
    border-left-color: var(--gold);
    padding-left: 12px;
  }

  .nav-link[aria-current='page'] {
    border-left-color: var(--gold);
    border-bottom-color: rgba(245, 240, 230, 0.12);
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 36px, var(--container-max));
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .brand-text {
    font-size: 1.2rem;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .data-card:hover,
  .btn:hover,
  .nav-link:hover {
    transform: none;
  }

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