/* ==========================================================
   乐鱼竞技 Site Kit — 共享样式 /assets/site.css
   01 Reset & Variables
   02 Typography
   03 Layout Container & Utility
   04 Skip Link & Accessibility
   05 Header Command Bar
   06 Navigation
   07 Entry Button / Nav Toggle
   08 Footer
   09 Buttons
   10 Breadcrumb & Section Headers
   11 Base Components
   12 Image Containers
   13 Reveal on Scroll
   14 Responsive
   15 Reduced Motion & Focus
========================================================== */

/* ---------- 01 Reset & Variables ---------- */
:root {
  --color-bg: #0A1F44;
  --color-bg-2: #0B2A5B;
  --color-paper: #F5E9D3;
  --color-accent: #39FF14;
  --color-accent-2: #FF6A00;
  --color-danger: #E53E3E;
  --color-muted: #6B7280;
  --color-white: #FFFFFF;

  --font-heading: Impact, Anton, "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --border-w: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --container: 1180px;
  --header-status-h: 26px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-paper);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

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

ul,
ol {
  list-style: none;
}

/* ---------- 02 Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-paper);
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 3.5vw, 46px);
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
}

p {
  margin-bottom: 1em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* ---------- 03 Layout Container & Utility ---------- */
.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#main-content {
  scroll-margin-top: 110px;
  outline: none;
}

/* ---------- 04 Skip Link & Accessibility ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-3);
  z-index: 9999;
  display: inline-block;
  padding: 10px 18px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 14px;
  border: var(--border-w) solid var(--color-bg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition: top 0.25s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: var(--space-3);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- 05 Header Command Bar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: var(--border-w) solid rgba(245, 233, 211, 0.12);
  transition: box-shadow 0.25s ease;
}

.site-header[data-scrolled="true"] {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(57, 255, 20, 0.08);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  z-index: 10;
  transition: width 0.1s linear;
}

.header-status {
  font-family: var(--font-mono);
  background: var(--color-bg-2);
  border-bottom: 1px solid rgba(57, 255, 20, 0.2);
}

.header-status__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-status-h);
}

.header-status__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-status__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-status__text {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 233, 211, 0.65);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.header-bar {
  position: relative;
  background: var(--color-bg);
}

.header-bar::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

/* ---------- 06 Navigation ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent) 49%, var(--color-accent-2) 51%, var(--color-accent-2) 100%);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--color-paper);
  white-space: nowrap;
}

.nav-command {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.nav-command__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 12px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: var(--border-w) solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-command__link:hover,
.nav-command__link:focus-visible {
  color: var(--color-accent);
  background-color: rgba(57, 255, 20, 0.06);
}

.nav-command__index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.nav-command__link:hover .nav-command__index,
.nav-command__link:focus-visible .nav-command__index {
  color: var(--color-accent-2);
}

.nav-command__link[aria-current="page"] {
  color: var(--color-accent);
}

.nav-command__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.nav-command__link[aria-current="page"] .nav-command__index {
  color: var(--color-accent);
}

/* ---------- 07 Entry Button / Nav Toggle ---------- */
.header-entry {
  margin-left: auto;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-header[data-scrolled="true"] .header-entry {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(57, 255, 20, 0.14),
    0 10px 28px rgba(57, 255, 20, 0.3);
}

.header-entry__icon {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.header-entry__label {
  line-height: 1;
}

.header-entry:hover .header-entry__icon,
.header-entry:focus-visible .header-entry__icon {
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: transparent;
  border: var(--border-w) solid var(--color-paper);
  cursor: pointer;
  color: var(--color-paper);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(57, 255, 20, 0.06);
}

.nav-toggle__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

/* ---------- 08 Footer ---------- */
.site-footer {
  position: relative;
  margin-top: var(--space-6);
  background: var(--color-bg-2);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent) 68%, var(--color-accent-2) 68%, var(--color-accent-2) 100%);
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-5);
}

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

.footer-brand__desc {
  margin-block: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(245, 233, 211, 0.75);
  max-width: 34em;
}

.footer-brand__icp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  padding: 6px 12px;
  border: 1px solid rgba(245, 233, 211, 0.15);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--color-paper);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245, 233, 211, 0.12);
}

.footer__title .mono-label {
  font-size: 12px;
  margin-right: 6px;
}

.footer-nav__list,
.footer-contact__list {
  display: grid;
  gap: 10px;
}

.footer-nav__link {
  position: relative;
  display: inline-block;
  padding: 4px 0 4px 18px;
  color: rgba(245, 233, 211, 0.85);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav__link::before {
  content: ">";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-nav__link:hover,
.footer-nav__link:focus-visible {
  color: var(--color-accent);
}

.footer-nav__link:hover::before,
.footer-nav__link:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-contact__tag {
  min-width: 38px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-accent);
}

.footer-contact__text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245, 233, 211, 0.85);
  word-break: break-all;
}

.footer-contact__note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-muted);
  border-left: 2px solid var(--color-accent-2);
  padding-left: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 233, 211, 0.1);
  background: var(--color-bg);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 18px;
}

.footer-bottom__copyright {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.footer-bottom__legal {
  display: flex;
  gap: 24px;
}

.footer-bottom__legal a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-bottom__legal a:hover,
.footer-bottom__legal a:focus-visible {
  color: var(--color-paper);
  border-color: var(--color-accent);
}

/* ---------- 09 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-paper);
  background: transparent;
  border: var(--border-w) solid var(--color-paper);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  font-weight: 700;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: transparent;
  color: var(--color-accent);
  box-shadow: 4px 4px 0 var(--color-accent);
  transform: translate(-2px, -2px);
}

.btn--secondary {
  border-color: var(--color-accent-2);
  color: var(--color-accent-2);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-accent-2);
  color: var(--color-bg);
}

.btn--ghost {
  border-color: rgba(245, 233, 211, 0.3);
  color: var(--color-paper);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-paper);
  background: rgba(245, 233, 211, 0.06);
}

/* ---------- 10 Breadcrumb & Section Headers ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.breadcrumb__link {
  color: var(--color-paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--color-accent);
}

.breadcrumb__sep {
  color: var(--color-muted);
  font-size: 12px;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: rgba(245, 233, 211, 0.75);
  max-width: 46em;
}

/* ---------- 11 Base Components ---------- */
.card {
  background: var(--color-bg-2);
  border: var(--border-w) solid rgba(245, 233, 211, 0.16);
  padding: var(--space-4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover,
.card:focus-within {
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
  transform: translate(-2px, -2px);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  padding: 3px 10px;
  border: 1px solid var(--color-accent);
  background: rgba(57, 255, 20, 0.06);
}

.tag--orange {
  color: var(--color-accent-2);
  border-color: var(--color-accent-2);
  background: rgba(255, 106, 0, 0.06);
}

.mono-label {
  color: var(--color-accent);
}

/* ---------- 12 Image Containers ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-2);
  border: var(--border-w) solid rgba(245, 233, 211, 0.2);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.img-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.img-frame:hover > img,
.img-frame:focus-within > img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.08);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.img-frame--tall {
  aspect-ratio: 4 / 5;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

/* ---------- 13 Reveal on Scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* ---------- 14 Responsive ---------- */
@media (max-width: 1100px) {
  .header-status {
    display: none;
  }

  .header-bar__inner {
    min-height: 56px;
    gap: 12px;
  }

  .nav-command {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    background: var(--color-bg-2);
    border-bottom: var(--border-w) solid var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 12px;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 90;
  }

  .nav-command[data-open="true"] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-command__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nav-command__link {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(245, 233, 211, 0.07);
    font-size: 16px;
  }

  .nav-command__link[aria-current="page"]::after {
    left: 16px;
    right: auto;
    width: 28px;
    bottom: 6px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: 4px;
  }

  .header-entry {
    margin-left: auto;
    padding: 9px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 640px) {
  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .brand__name {
    font-size: 17px;
  }

  .header-entry {
    padding: 8px 12px;
    font-size: 14px;
  }

  .header-entry__icon {
    font-size: 16px;
  }

  .nav-toggle {
    padding: 8px;
  }

  .footer-grid {
    padding-top: var(--space-5);
    padding-bottom: var(--space-4);
    gap: var(--space-4);
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom__legal {
    gap: 16px;
    flex-wrap: wrap;
  }

  .card {
    padding: var(--space-3);
  }
}

/* ---------- 15 Reduced Motion & Focus ---------- */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    transition: none;
  }
}
