/* ===== 乐竞赛场 / 共享站点样式 ===== */

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

:root {
  --ink: #061C16;
  --ink-2: #0B2A21;
  --ink-3: #134436;
  --lime: #C8FF4D;
  --amber: #FF8A3D;
  --paper: #F4F1E8;
  --sage: #9BB8AD;
  --clay: #D8C3A5;
  --teal: #1F5A48;
  --rule: #6E8B80;

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-display: 'Barlow Condensed', 'Oswald', 'Noto Sans SC', sans-serif;
  --font-num: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, monospace;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--paper);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
img, svg { display: block; max-width: 100%; }
a { color: var(--lime); }
a:hover { color: var(--amber); }

::selection { background: var(--lime); color: var(--ink); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: -.01em;
}

.muted { color: var(--sage); }

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--rule);
  opacity: .35;
}

/* ----- 跳转链接 ----- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 14px) 100%, 0 100%);
  transform: translateY(-180%);
  transition: transform .16s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ink); }

/* ----- 头部 ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 1px solid rgba(110, 139, 128, .38);
}

.header-top {
  background: var(--ink-2);
  border-bottom: 1px solid rgba(110, 139, 128, .28);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding-block: 7px;
}

.header-top__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--sage);
}

.header-top__pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 255, 77, .55);
  animation: pulse-light 2.6s var(--ease) infinite;
}

@keyframes pulse-light {
  0%   { box-shadow: 0 0 0 0 rgba(200, 255, 77, .45); }
  70%  { box-shadow: 0 0 0 8px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}

.header-top__meta {
  display: none;
  margin: 0;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rule);
}

.header-main {
  position: relative;
  background: var(--ink);
}

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 12px;
}

/* 品牌锁标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}
.brand:hover { color: var(--paper); }

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background-color .18s var(--ease);
}
.brand:hover .brand__mark { background: var(--amber); }

.brand__text { display: block; }

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
}

.brand__latin {
  display: block;
  margin-top: 5px;
  font-family: var(--font-num);
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--sage);
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav__item { margin: 0; }

.nav__link {
  position: relative;
  display: block;
  padding: 10px 13px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.nav__link:hover {
  color: var(--lime);
  background: var(--ink-3);
  border-color: var(--rule);
}

.nav__link[aria-current="page"] {
  color: var(--paper);
  background: var(--teal);
  border-color: var(--lime);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--lime);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--ink-2);
  color: var(--paper);
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 12px) 100%, 0 100%);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--lime); background: var(--ink-3); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lime);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--amber));
}

/* ----- 通用按钮 ----- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  --btn-bd: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 14px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-color: var(--btn-bd);
  filter: brightness(1.08);
}
.btn:active { transform: translateY(0); }

.btn--amber { --btn-bg: var(--amber); --btn-fg: #1B0D05; --btn-bd: var(--amber); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--rule);
}
.btn--ghost:hover {
  --btn-bg: var(--ink-3);
  --btn-fg: var(--lime);
  --btn-bd: var(--lime);
}

.btn--sm { padding: 9px 15px; font-size: 13px; }

/* ----- 章节夹具 ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(110, 139, 128, .32);
}

.section-head__title {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 40px);
}

.section-head__desc {
  max-width: 38ch;
  margin: 0;
  font-size: 15px;
  color: var(--sage);
}

/* ----- 面包屑 ----- */
.breadcrumb {
  padding-block: 18px;
  font-size: 12px;
  letter-spacing: .06em;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--sage);
}
.breadcrumb__list li { margin: 0; }
.breadcrumb__list li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--rule);
}
.breadcrumb a {
  color: var(--sage);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.breadcrumb a:hover { color: var(--lime); }

/* ----- 正文容器 ----- */
.prose {
  max-width: 42em;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--paper);
}
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose p { color: rgba(244, 241, 232, .88); }
.prose ul, .prose ol { color: rgba(244, 241, 232, .88); }
.prose a { text-decoration-color: var(--lime); }

/* ----- 栅格 ----- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

/* ----- 卡片 ----- */
.card {
  position: relative;
  padding: 22px;
  background: var(--ink-2);
  border: 1px solid rgba(110, 139, 128, .32);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.card--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.card:hover {
  border-color: var(--lime);
  background: var(--ink-3);
}
.card__title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

/* ----- 标签 ----- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(19, 68, 54, .55);
  border: 1px solid var(--rule);
}
.tag--lime { color: var(--lime); border-color: var(--lime); background: rgba(200, 255, 77, .1); }
.tag--amber { color: var(--amber); border-color: var(--amber); background: rgba(255, 138, 61, .12); }

/* ----- 横向数据条 ----- */
.score-strip {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid rgba(110, 139, 128, .35);
}
.score-strip__item {
  flex: 1 1 170px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  border-right: 1px solid rgba(110, 139, 128, .22);
  border-bottom: 1px solid rgba(110, 139, 128, .16);
}
.score-strip__item:last-child { border-right: 0; }
.score-strip__num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--lime);
}
.score-strip__label {
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ----- 图片容器基础规则 ----- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--ink-3) 0%, var(--ink-2) 55%, #0e3a2c 100%);
  border: 1px solid rgba(110, 139, 128, .4);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 255, 77, .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 255, 77, .1) 1px, transparent 1px);
  background-size: 44px 44px;
}

.media-frame__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 10px 16px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--paper);
  background: rgba(6, 28, 22, .82);
  border-top: 1px solid var(--lime);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ----- 页脚 ----- */
.site-footer {
  margin-top: clamp(56px, 8vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid rgba(110, 139, 128, .38);
  color: var(--sage);
}

.footer-score {
  display: flex;
  height: 4px;
  background: var(--ink);
}
.footer-score::before {
  content: "";
  flex: 1 1 auto;
  background: var(--lime);
}
.footer-score::after {
  content: "";
  flex: 0 0 26%;
  background: var(--amber);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(30px, 5vw, 64px);
  padding-block: clamp(38px, 5vw, 62px) 34px;
}

.footer-brand__name {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--paper);
}

.footer-brand__line {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--clay);
}

.footer-brand__note {
  margin: 0;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--sage);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col__list li { margin: 0; }
.footer-col__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--sage);
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .16s var(--ease);
}
.footer-col__list a:hover {
  color: var(--lime);
  padding-left: 5px;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px 28px;
  padding-block: 26px;
  border-top: 1px solid rgba(110, 139, 128, .28);
  border-bottom: 1px solid rgba(110, 139, 128, .28);
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact__label {
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rule);
}

.footer-contact__value {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper);
  text-decoration: none;
}
a.footer-contact__value:hover { color: var(--lime); }

.footer-note {
  margin: 18px 0 0;
  max-width: 72ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--sage);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 22px;
  padding-bottom: clamp(24px, 4vw, 38px);
  font-size: 12.5px;
  color: var(--rule);
}

.footer-copy { margin: 0; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.footer-legal a {
  color: var(--sage);
  text-decoration: none;
  transition: color .16s var(--ease);
}
.footer-legal a:hover { color: var(--lime); }
.footer-legal__sep { color: var(--rule); }

/* ----- 响应式 ----- */
@media (min-width: 760px) {
  .header-top__meta { display: block; }
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    z-index: 90;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 26px;
    background: var(--ink-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--lime);
    box-shadow: 0 28px 54px rgba(0, 0, 0, .55);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
  }

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

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

  .nav__link {
    padding: 14px 12px;
    font-size: 17px;
    border: 0;
    border-bottom: 1px solid rgba(110, 139, 128, .22);
  }
  .nav__link:hover { border-color: rgba(110, 139, 128, .22); }
  .nav__link[aria-current="page"] {
    background: var(--teal);
    border-color: rgba(110, 139, 128, .22);
    border-left: 3px solid var(--lime);
  }
  .nav__link[aria-current="page"]::after { display: none; }

  .nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }
  .nav__actions .btn { width: 100%; }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 96px; }

  .header-top__status { font-size: 11.5px; line-height: 1.5; }
  .header-main__inner { min-height: 66px; gap: 12px; }
  .brand__name { font-size: 21px; }
  .brand__latin { font-size: 9px; letter-spacing: .18em; }
  .brand__mark { width: 34px; height: 34px; font-size: 12px; }
  .nav-toggle__label { display: none; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .header-top__pulse { animation: none; }
  .btn:hover { transform: none; }
}
