/* YOBO竞技 Site Kit — 共享样式 */

/* Reset & Tokens */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
a {
  color: var(--color-blue);
}
ul,
ol {
  padding: 0;
}

:root {
  --color-bg: #0e1116;
  --color-bg-deep: #0a0d11;
  --color-bg-paper: #ede0c8;
  --color-text: #e5e9f0;
  --color-text-muted: #8a93a5;
  --color-red: #e63946;
  --color-blue: #00b4d8;
  --color-line: #232a34;
  --color-shadow: rgba(0, 0, 0, 0.45);
  --color-green: #2a9d8f;
  --color-amber: #f4a261;

  --font-display: "Archivo Narrow", "Roboto Condensed", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1280px;
  --header-top-space: 16px;
  --header-height: 66px;
  --header-offset: calc(var(--header-top-space) + var(--header-height) + 16px);
}

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  overflow: hidden;
}

/* Main */
.site-main {
  display: block;
  min-height: 60vh;
  padding-top: var(--header-offset);
}
#main-content {
  scroll-margin-top: calc(var(--header-offset) + 10px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--header-top-space) 24px 0;
}
.site-header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  background: rgba(14, 17, 22, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(35, 42, 52, 0.9);
  border-radius: 24px;
  box-shadow: 0 12px 40px var(--color-shadow);
}
.header-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--color-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 6px 6px 6px 2px;
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.4), 0 0 14px rgba(230, 57, 70, 0.25);
}
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-bg-paper);
}
.brand-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.brand-desktop {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.nav-toggle-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.12);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  background: var(--color-red);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: rgba(14, 17, 22, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: 0 20px 60px var(--color-shadow);
  padding: 16px;
}
.site-nav[data-open="true"] {
  display: flex;
}
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}
.nav-link {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 14px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link:hover {
  color: var(--color-blue);
  background: rgba(0, 180, 216, 0.08);
}
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--color-text);
  background: rgba(230, 57, 70, 0.14);
}
.nav-link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--color-red);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-red);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px 999px 999px 6px;
  box-shadow: 0 4px 18px rgba(230, 57, 70, 0.35);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
  background: var(--color-blue);
  box-shadow: 0 6px 22px rgba(0, 180, 216, 0.35);
  transform: translateY(-1px);
}
.nav-cta-icon {
  font-size: 1rem;
  line-height: 1;
}
.header-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: transparent;
}
.header-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-red), var(--color-blue));
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 16px;
  background: var(--color-bg-paper);
  color: var(--color-bg);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 0;
  border-radius: 999px 999px 999px 4px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.btn-primary {
  background: var(--color-red);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}
.btn-primary:hover {
  background: var(--color-blue);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid rgba(0, 180, 216, 0.5);
}
.btn-ghost:hover {
  background: rgba(0, 180, 216, 0.1);
  border-color: var(--color-blue);
}

/* Tags & status */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--color-text-muted);
}
.tag-red {
  color: var(--color-red);
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.08);
}
.tag-blue {
  color: var(--color-blue);
  border-color: rgba(0, 180, 216, 0.5);
  background: rgba(0, 180, 216, 0.08);
}
.tag-green {
  color: var(--color-green);
  border-color: rgba(42, 157, 143, 0.5);
  background: rgba(42, 157, 143, 0.08);
}
.tag-amber {
  color: var(--color-amber);
  border-color: rgba(244, 162, 97, 0.5);
  background: rgba(244, 162, 97, 0.08);
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(42, 157, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0);
  }
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px var(--color-shadow);
}
.card-archive {
  position: relative;
  background: var(--color-bg-paper);
  color: var(--color-bg);
  border-radius: 6px 16px 6px 16px;
  padding: 26px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2), 0 12px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.card-archive::before {
  content: "YOBO";
  position: absolute;
  right: 10px;
  bottom: -8px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(14, 17, 22, 0.05);
  letter-spacing: 0.02em;
}
.card-archive h3,
.card-archive h4 {
  color: var(--color-bg);
}

/* Section heading */
.section-head {
  margin-bottom: 28px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-blue);
  border-left: 3px solid var(--color-red);
  padding-left: 10px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0;
}

/* Grid & split */
.grid {
  display: grid;
  gap: 24px;
}
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.split-main,
.split-aside {
  min-width: 0;
}
.divider {
  height: 1px;
  border: 0;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, var(--color-line) 20%, var(--color-line) 80%, transparent);
}

/* Media frame */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px 24px 8px 24px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.06), rgba(230, 57, 70, 0.04));
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--portrait {
  aspect-ratio: 3 / 4;
}
.media-frame--square {
  aspect-ratio: 1 / 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--color-blue);
}
.breadcrumb-sep {
  color: var(--color-line);
}
.breadcrumb [aria-current="page"] {
  color: var(--color-blue);
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--color-bg-deep);
  color: var(--color-text);
  border-top: 1px solid var(--color-line);
}
.footer-decoration {
  height: 6px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red) 18%, var(--color-bg-deep) 18%, var(--color-bg-deep) 82%, var(--color-blue) 82%, var(--color-blue) 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  opacity: 0.9;
}
.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer-brand,
.footer-index,
.footer-contact {
  min-width: 0;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-bg-paper);
  margin: 0 0 16px;
}
.footer-logo em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.footer-intro {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 46ch;
  margin: 0 0 16px;
}
.footer-trust {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  border-left: 2px solid var(--color-blue);
  padding-left: 12px;
  max-width: 56ch;
  margin: 0;
}
.footer-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-bg-paper);
  margin: 0 0 20px;
}
.footer-heading::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-red);
}
.footer-links,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li + li {
  margin-top: 10px;
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  padding-left: 0;
}
.footer-links a:hover {
  color: var(--color-blue);
  padding-left: 4px;
}
.footer-contact-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-amber);
  padding-top: 3px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}
.footer-copyright,
.footer-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0;
}
.footer-note {
  color: rgba(0, 180, 216, 0.7);
}

/* Responsive */
@media (min-width: 640px) {
  .grid-col2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-col3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-col4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (min-width: 900px) {
  .site-header {
    padding-left: 24px;
    padding-right: 24px;
  }
  .site-header-inner {
    flex-wrap: nowrap;
    gap: 16px;
    border-radius: 999px;
    padding: 10px 16px 10px 18px;
  }
  .header-mobile-bar {
    display: none;
  }
  .brand-desktop {
    display: inline-flex;
  }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex: 1;
  }
  .nav-menu {
    flex-direction: row;
    gap: 2px;
    margin-left: 6px;
  }
  .nav-link {
    padding: 8px 14px;
    border-radius: 999px;
  }
  .nav-cta {
    justify-content: flex-start;
    margin-left: auto;
  }
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
  .split--tall {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 48px;
  }
}
@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }
  .site-header-inner {
    padding: 10px 14px;
    border-radius: 18px;
  }
  .footer-shell {
    padding: 40px 16px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reveal */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .status-dot {
    animation: none;
  }
  .header-progress {
    display: none;
  }
  .nav-toggle-line {
    transition: none;
  }
  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
