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

:root {
  --c-green: #00C45A;
  --c-dark: #0B0F0B;
  --c-yellow: #DFFF00;
  --c-deep-green: #005A2E;
  --c-light-green: #A8E6CF;
  --c-gray: #CDD3CD;
  --c-dark-gray: #252D25;
  --c-red: #FF4B00;
  --c-grad: #66D59A;
  --c-pale: #E8F5E9;
  --font-head: Impact, 'Arial Black', sans-serif;
  --font-body: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-mono: 'Roboto Mono', 'JetBrains Mono', 'Courier New', monospace;
  --content-max: 1240px;
  --gap: 24px;
  --gap-sm: 16px;
}

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

body {
  background: var(--c-dark);
  color: var(--c-gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.site-main {
  flex: 1 0 auto;
  min-height: 60vh;
}

a {
  color: var(--c-green);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

a:hover {
  color: var(--c-yellow);
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
}

::selection {
  background: var(--c-yellow);
  color: var(--c-dark);
}

:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--c-yellow);
  color: var(--c-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 0;
  transition: top 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-yellow) 100%);
  z-index: 1500;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 196, 90, 0.5);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  border-top: 4px solid var(--c-deep-green);
  border-bottom: 1px solid rgba(0, 196, 90, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gap);
  width: 100%;
  position: relative;
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-gray);
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: var(--c-green);
  color: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 74% 100%, 0 100%);
  transition: background 0.25s ease;
  flex-shrink: 0;
}

a.brand:hover .brand-mark {
  background: var(--c-yellow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 28px;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-green);
  font-family: var(--font-mono);
  text-transform: uppercase;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid rgba(0, 196, 90, 0.6);
  padding: 8px 14px;
  cursor: pointer;
  color: var(--c-green);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
  background: var(--c-deep-green);
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}

.nav-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, width 0.3s ease;
}

.nav-toggle-line:nth-child(2) {
  width: 14px;
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-gray);
  text-decoration: none;
  position: relative;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: var(--c-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--c-yellow);
  opacity: 0;
  transform: translateY(-50%) rotate(45deg);
  transition: opacity 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-yellow);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-yellow);
  background: rgba(0, 196, 90, 0.08);
}

.nav-link[aria-current="page"]::before {
  transform: scaleX(1);
  background: var(--c-yellow);
}

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

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.nav-status-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-light-green);
  text-transform: uppercase;
  margin-right: 2px;
  white-space: nowrap;
}

.nav-status-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(0, 196, 90, 0.4);
  margin: 0 4px;
}

.league-chip {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-green);
  background: rgba(0, 196, 90, 0.08);
  border: 1px solid rgba(0, 196, 90, 0.5);
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.league-chip:hover {
  background: var(--c-deep-green);
  color: var(--c-yellow);
  border-color: var(--c-yellow);
}

.nav-version {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gray);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 3px 8px;
  border-left: 2px solid var(--c-deep-green);
}

.site-footer {
  background: var(--c-dark);
  border-top: 3px solid var(--c-green);
  position: relative;
  margin-top: auto;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 180px;
  height: 3px;
  background: var(--c-yellow);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 196, 90, 0.2);
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-gray);
  max-width: 320px;
  padding-left: 2px;
}

.footer-trust .mono {
  color: var(--c-light-green);
  font-size: 12px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-deep-green);
  display: inline-block;
}

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

.footer-list a {
  font-size: 14px;
  color: var(--c-gray);
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-list a:hover {
  color: var(--c-yellow);
  padding-left: 6px;
}

.footer-list-contact {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-gray);
  word-break: break-all;
}

.footer-list-contact .mono {
  color: var(--c-light-green);
  font-size: 13px;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--c-gray);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.footer-icp {
  font-size: 13px;
  color: var(--c-gray);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border: 1px solid rgba(0, 196, 90, 0.3);
  background: rgba(0, 196, 90, 0.04);
}

.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-green);
  background: rgba(11, 15, 11, 0.9);
  color: var(--c-green);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease, color 0.25s ease;
  z-index: 90;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 82% 100%, 0 100%);
}

.back-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  background: var(--c-green);
  color: var(--c-dark);
}

.back-top span {
  display: inline-block;
  transform: translateY(-1px);
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.c-btn--primary {
  background: var(--c-green);
  color: var(--c-dark);
}

.c-btn--primary:hover,
.c-btn--primary:focus-visible {
  background: var(--c-yellow);
  color: var(--c-dark);
}

.c-btn--ghost {
  border: 1px solid var(--c-green);
  color: var(--c-green);
  background: transparent;
}

.c-btn--ghost:hover,
.c-btn--ghost:focus-visible {
  background: var(--c-deep-green);
  border-color: var(--c-yellow);
  color: var(--c-yellow);
}

.c-card {
  background: var(--c-dark-gray);
  border: 1px solid rgba(0, 196, 90, 0.25);
  padding: 28px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.c-card--highlight {
  border-color: var(--c-yellow);
  background: linear-gradient(135deg, var(--c-dark-gray) 0%, var(--c-dark) 100%);
}

.c-card--highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background: var(--c-yellow);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.8;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-light-green);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--c-deep-green);
  font-size: 13px;
}

.breadcrumb-link {
  color: var(--c-green);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--c-yellow);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--c-gray);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, 1fr);
}

.grid > * {
  grid-column: span 12;
}

@media (min-width: 700px) {
  .grid-2 > * {
    grid-column: span 6;
  }
  .grid-3 > * {
    grid-column: span 4;
  }
  .grid-4 > * {
    grid-column: span 3;
  }
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-dark-gray);
  aspect-ratio: 16 / 9;
  width: 100%;
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 196, 90, 0.14) 100%);
  z-index: 1;
  pointer-events: none;
}

.img-frame::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-top: 2px solid var(--c-green);
  border-left: 2px solid var(--c-green);
  z-index: 2;
  pointer-events: none;
}

.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: repeating-linear-gradient(45deg, var(--c-dark-gray) 0 8px, #2B332B 8px 16px);
}

.img-placeholder::after {
  content: 'IMG';
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--c-green);
  text-indent: 0.3em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.text-mono {
  font-family: var(--font-mono);
}

.text-accent {
  color: var(--c-yellow);
}

.text-green {
  color: var(--c-green);
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  .nav-link {
    padding: 14px 10px;
    font-size: 14px;
  }

  .nav-status {
    gap: 6px;
  }

  .nav-status-label {
    display: none;
  }

  .nav-status-divider {
    display: none;
  }

  .nav-version {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }

  .footer-grid .footer-col:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 767px) {
  .site-header {
    border-top-width: 4px;
  }

  .header-topbar {
    min-height: 72px;
  }

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

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

  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-dark);
    border-top: 1px solid rgba(0, 196, 90, 0.4);
    border-bottom: 3px solid var(--c-green);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(0, 196, 90, 0.12);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-link::before,
  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    background: rgba(0, 196, 90, 0.1);
    border-left: 3px solid var(--c-yellow);
    color: var(--c-yellow);
  }

  .nav-status {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px dashed rgba(0, 196, 90, 0.3);
  }

  .nav-status-label {
    display: inline-block;
    width: 100%;
    font-size: 11px;
    margin-bottom: 2px;
  }

  .nav-version {
    display: inline-block;
    width: 100%;
    border-left: none;
    border-top: 1px dotted rgba(0, 196, 90, 0.3);
    padding: 8px 0 0;
    margin-top: 8px;
    font-size: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid .footer-col:last-child {
    grid-column: span 1;
  }

  .footer-container {
    padding: 40px 20px 24px;
  }

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

  .back-top {
    width: 42px;
    height: 42px;
    bottom: 16px;
    right: 16px;
    font-size: 18px;
  }

  .container {
    padding: 0 20px;
  }

  .c-card {
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .brand-sub {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

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

  .nav-toggle-label {
    font-size: 12px;
  }
}

@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: 0s !important;
  }
}
