/* ============================================================
   focus-tanqiu.com.cn — shared site kit
   深夜球场绿基底 / 荧光青柠实时锚点 / 暖橙同步提示
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: #0B3D2E;
  background-image: repeating-linear-gradient(
    112deg,
    rgba(244, 247, 242, 0.028) 0 1px,
    transparent 1px 12px
  );
  color: #F4F7F2;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid #C6FF3D;
  outline-offset: 3px;
}

/* ---------- tokens ---------- */
:root {
  --green-900: #072A20;
  --green-800: #0B3D2E;
  --green-600: #1E5A47;
  --lime: #C6FF3D;
  --lime-soft: #E8FFB0;
  --orange: #FF7A2F;
  --paper: #F4F7F2;
  --muted: #A9BFB4;
  --ink: #0F1720;

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --line-soft: rgba(30, 90, 71, 0.55);
  --line-hard: 1px solid #1E5A47;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  line-height: 1;
  color: #C6FF3D;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
}

.prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.75;
  color: #F4F7F2;
}

.prose p { margin: 0 0 1.5em; }
.prose p:last-child { margin-bottom: 0; }

.score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(56px, 9vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #C6FF3D;
}

/* ---------- surfaces ---------- */
.panel {
  position: relative;
  background: #0B3D2E;
  border: 1px solid #1E5A47;
  padding: clamp(16px, 2.4vw, 28px);
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
}

.slant {
  height: clamp(32px, 5vw, 64px);
  border: 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(30, 90, 71, 0.55), rgba(30, 90, 71, 0));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line-soft);
}

/* ---------- chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: #A9BFB4;
  border: 1px solid #1E5A47;
  border-radius: 2px;
  padding: 5px 10px;
  white-space: nowrap;
}

.tag--live {
  color: #0F1720;
  background: #C6FF3D;
  border-color: #C6FF3D;
  font-weight: 600;
}

.tag--sync {
  color: #FF7A2F;
  border-color: rgba(255, 122, 47, 0.55);
}

/* ---------- media containers ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0F1720;
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    22px 100%,
    0 calc(100% - 22px)
  );
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.92) brightness(0.86);
  transition: transform 0.5s var(--ease);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 32, 0.12), rgba(15, 23, 32, 0.55));
  pointer-events: none;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--tall { aspect-ratio: 4 / 5; }

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-block: 20px;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #A9BFB4;
}

.crumbs a {
  color: #A9BFB4;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.crumbs a:hover,
.crumbs a:focus-visible { color: #C6FF3D; }

.crumbs__sep { color: #1E5A47; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--lime {
  background: #C6FF3D;
  border-color: #C6FF3D;
  color: #0F1720;
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: #E8FFB0;
  border-color: #E8FFB0;
  color: #0F1720;
}

.btn--ghost {
  background: transparent;
  border-color: #1E5A47;
  color: #F4F7F2;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: #C6FF3D;
  color: #C6FF3D;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: #C6FF3D;
  color: #0F1720;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s var(--ease);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #0B3D2E;
  border-bottom: 1px solid #1E5A47;
  color: #F4F7F2;
}

/* upper information band */
.hdr__meta {
  max-height: 44px;
  overflow: hidden;
  background: #072A20;
  border-bottom: 1px solid rgba(30, 90, 71, 0.55);
  transition: max-height 0.26s var(--ease), opacity 0.26s var(--ease);
}

.hdr[data-stuck] .hdr__meta {
  max-height: 0;
  opacity: 0;
}

.hdr__meta-in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F4F7F2;
  min-width: 0;
}

.brand__mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #C6FF3D;
  color: #072A20;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1;
  color: #A9BFB4;
  padding-left: 10px;
  border-left: 1px solid #1E5A47;
  white-space: nowrap;
}

.hdr__status {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  min-width: 0;
}

.sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #A9BFB4;
  white-space: nowrap;
}

.sync__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF7A2F;
  animation: syncPulse 2.6s var(--ease) infinite;
}

@keyframes syncPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 122, 47, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 122, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 47, 0); }
}

.hdr__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #A9BFB4;
  white-space: nowrap;
}

.hdr__search {
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  color: #F4F7F2;
  border: 1px solid #1E5A47;
  border-radius: 2px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.hdr__search:hover,
.hdr__search:focus-visible {
  color: #C6FF3D;
  border-color: #C6FF3D;
}

/* lower navigation band */
.hdr__bar {
  position: relative;
  background: #0B3D2E;
}

.hdr__bar-in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #F4F7F2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #C6FF3D;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}

.nav__list a:hover,
.nav__list a:focus-visible { color: #C6FF3D; }

.nav__list a:hover::after,
.nav__list a:focus-visible::after { transform: scaleX(1); }

.nav__list a[aria-current="page"] { color: #C6FF3D; }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* league rail */
.rail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 6px 2px 6px 14px;
  border-left: 1px solid #1E5A47;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar { display: none; }

.rail:focus-visible { outline-offset: 2px; }

.rail__item {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #A9BFB4;
  text-decoration: none;
  border: 1px solid rgba(30, 90, 71, 0.9);
  border-radius: 2px;
  padding: 5px 10px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.rail__item:hover,
.rail__item:focus-visible {
  color: #0F1720;
  background: #E8FFB0;
  border-color: #E8FFB0;
}

.hdr__cta { margin-left: auto; flex: 0 0 auto; }

/* hamburger */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid #1E5A47;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: #C6FF3D; }

.nav-toggle__lines {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: #F4F7F2;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__lines::before,
.nav-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #F4F7F2;
  transition: transform 0.24s var(--ease);
}

.nav-toggle__lines::before { top: -6px; }
.nav-toggle__lines::after { top: 6px; }

.hdr[data-open] .nav-toggle__lines { background: transparent; }
.hdr[data-open] .nav-toggle__lines::before { transform: translateY(6px) rotate(45deg); }
.hdr[data-open] .nav-toggle__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   FOOTER
   ============================================================ */
.ftr {
  background: #072A20;
  color: #F4F7F2;
  border-top: 1px solid #1E5A47;
}

.ftr__wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 24px;
}

.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
}

.ftr__col { min-width: 0; }

.ftr__ttl {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
  color: #A9BFB4;
  margin: 0 0 16px;
}

.ftr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ftr__list a {
  font-size: 14px;
  line-height: 1.6;
  color: #F4F7F2;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.ftr__list a:hover,
.ftr__list a:focus-visible { color: #C6FF3D; }

.ftr__list a[aria-current="page"] { color: #C6FF3D; }

.ftr__list--plain li {
  font-size: 14px;
  line-height: 1.6;
  color: #F4F7F2;
  word-break: break-word;
}

.ftr__note {
  margin: 18px 0 14px;
  max-width: 24em;
  font-size: 13px;
  line-height: 1.75;
  color: #A9BFB4;
}

.ftr__icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #A9BFB4;
}

.ftr__addr {
  color: #A9BFB4 !important;
  font-size: 13px !important;
  max-width: 20em;
}

.ftr__hours {
  color: #A9BFB4 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em;
}

.ftr__base {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 16px;
  border-top: 1px solid rgba(30, 90, 71, 0.6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #A9BFB4;
}

.ftr__base p { margin: 0; }

/* ============================================================
   REVEAL
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .brand__tag { display: none; }
}

@media (max-width: 1023px) {
  .hdr__meta { max-height: 110px; }
  .hdr__meta-in { height: auto; min-height: 40px; padding-block: 6px; flex-wrap: wrap; }
  .hdr__date { display: none; }

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex: none;
    background: #072A20;
    border-top: 1px solid #1E5A47;
    border-bottom: 1px solid #1E5A47;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    z-index: 12;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }

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

  .nav__panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 18px;
  }

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

  .nav__list a {
    display: block;
    padding: 14px var(--gutter);
    border-bottom: 1px solid rgba(30, 90, 71, 0.35);
  }

  .nav__list a::after { display: none; }

  .nav__list a[aria-current="page"] {
    box-shadow: inset 3px 0 0 #C6FF3D;
  }

  .rail {
    flex: none;
    margin-top: 10px;
    padding: 14px var(--gutter) 4px;
    border-left: 0;
    border-top: 1px dashed rgba(30, 90, 71, 0.6);
  }
}

@media (max-width: 767px) {
  .hdr__status {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 2px;
  }

  .hdr__meta-in { gap: 6px 12px; }

  .sync { font-size: 11px; letter-spacing: 0.1em; }

  .hdr__search { padding: 5px 10px; }

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

@media (max-width: 520px) {
  .ftr__grid { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__base { flex-direction: column; }
  .brand__name { font-size: 15px; }
  .hdr__cta { padding: 11px 14px; font-size: 12px; }
}

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

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

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .sync__dot { animation: none; box-shadow: none; }
  .btn:hover { transform: none; }
}
