/* ==========================================================================
   绿茵体育 · 共享外壳样式 /assets/site.css
   ========================================================================== */

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

:root {
  --green-deep: #0E3B27;
  --green-pitch: #1B5E3A;
  --lime: #C6FF3D;
  --lime-soft: #DAFF75;
  --ink: #0F1412;
  --white: #F3F6F1;
  --mist: #D5DCD3;
  --gray: #5F6B62;
  --flame: #FF5A2B;
  --cyan: #3FD8C2;
  --shade: #082018;

  --font-display: "Barlow Condensed", "Oswald", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --rail-w: 96px;
  --shell-max: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 48px;
  }
}

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

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

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

a {
  color: var(--green-deep);
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-pitch);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(198, 255, 61, 0.55);
}

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

/* ---------- 布局区块 ---------- */

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

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--white);
  border: 1px solid var(--mist);
}

.panel--cut {
  border: 0;
  background: var(--green-deep);
  color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.panel--cut h2,
.panel--cut h3 {
  color: var(--white);
}

/* ---------- 可复用图片容器 ---------- */

.media {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  background:
    linear-gradient(148deg, var(--green-pitch) 0%, var(--green-deep) 62%, var(--shade) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(243, 246, 241, 0.12) 1px, transparent 1px);
  background-size: 33.333% 100%;
}

.media > img,
.media > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x3 {
  aspect-ratio: 4 / 3;
}

.media--16x9 {
  aspect-ratio: 16 / 9;
}

.media--1x1 {
  aspect-ratio: 1 / 1;
}

.media--tall {
  aspect-ratio: 3 / 4;
}

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 10px 16px;
  background: var(--shade);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease), transform 0.15s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--lime-soft);
  color: var(--ink);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--green-pitch);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(243, 246, 241, 0.45);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---------- 面包屑 ---------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--mist);
}

.breadcrumbs a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--green-deep);
}

/* ---------- 标签页 ---------- */

.tabs {
  display: block;
}

.tabs__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  border-bottom: 1px solid var(--mist);
  scrollbar-width: none;
}

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

.tabs__tab {
  appearance: none;
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.tabs__tab:hover {
  color: var(--ink);
}

.tabs__tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--lime);
}

.tabs__panel {
  padding-top: 28px;
}

.tabs__panel[hidden] {
  display: none !important;
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--ink);
}

/* ==========================================================================
   头部
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 60;
  background: var(--white);
}

/* ---------- 左侧品牌轨道 ---------- */

.brand-rail {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  width: var(--rail-w);
  flex-direction: column;
  align-items: center;
  padding: 26px 0 22px;
  background: var(--green-deep);
  color: var(--white);
  border-right: 1px solid rgba(198, 255, 61, 0.16);
}

.brand-rail__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--white);
}

.brand-rail__logo:hover {
  color: var(--lime);
}

.brand-rail__glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-rail__wordmark {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.brand-rail__ticks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 28px;
}

.brand-rail__ticks span {
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(243, 246, 241, 0.35);
}

.brand-rail__ticks span:nth-child(2) {
  width: 20px;
  background: var(--lime);
}

.brand-rail__meter {
  position: relative;
  flex: 1 1 auto;
  width: 2px;
  min-height: 60px;
  margin: 24px 0;
  background: rgba(243, 246, 241, 0.16);
  overflow: hidden;
}

.brand-rail__meter-fill {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.1s linear;
}

.brand-rail__season {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(243, 246, 241, 0.55);
}

/* ---------- 顶部细条层 ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  padding: 0 var(--gutter);
  background: var(--ink);
  color: var(--white);
}

.topbar__motto {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(243, 246, 241, 0.72);
}

.topbar__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.chip-s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(243, 246, 241, 0.22);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: rgba(243, 246, 241, 0.86);
}

.chip-s__dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
}

.chip-s:last-child {
  border-color: rgba(198, 255, 61, 0.45);
  color: var(--lime);
}

/* ---------- 主栏目层 ---------- */

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--mist);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

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

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

[data-open] .nav-toggle__icon {
  background: transparent;
}

[data-open] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

[data-open] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 70;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 6px var(--gutter) 22px;
  background: var(--white);
  border-bottom: 2px solid var(--lime);
  box-shadow: 0 22px 44px rgba(8, 32, 24, 0.2);
}

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

.site-nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item {
  border-bottom: 1px solid var(--mist);
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 15px 0;
  color: var(--gray);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
}

.site-nav__link[aria-current="page"]::after {
  width: 24px;
}

.site-nav__cta {
  margin-top: 18px;
  width: 100%;
}

/* ---------- 赛程条 ---------- */

.fixture-strip {
  position: relative;
  z-index: 30;
  background: var(--green-deep);
  color: var(--white);
  border-top: 1px solid rgba(198, 255, 61, 0.2);
}

.fixture-strip__track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 36px, #000 calc(100% - 36px), rgba(0, 0, 0, 0) 100%);
}

.fixture-strip__track::-webkit-scrollbar {
  display: none;
}

.fixture-strip__list {
  display: flex;
  align-items: stretch;
  min-height: 46px;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  scroll-snap-type: x proximity;
}

.fixture {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-right: 1px solid rgba(243, 246, 241, 0.14);
  white-space: nowrap;
  font-size: 13px;
  scroll-snap-align: start;
}

.fixture:first-child {
  padding-left: 0;
}

.fixture:last-child {
  border-right: 0;
}

.fixture__date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 246, 241, 0.55);
}

.fixture__teams {
  color: rgba(243, 246, 241, 0.9);
}

.fixture__score {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
}

.fixture__state {
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border: 1px solid rgba(63, 216, 194, 0.42);
  color: var(--cyan);
}

.fixture__state--live {
  border-color: rgba(255, 90, 43, 0.55);
  color: var(--flame);
}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-footer {
  margin-top: 96px;
  background: var(--green-deep);
  color: var(--white);
  border-top: 1px solid rgba(198, 255, 61, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--white);
}

.footer-brand__mark:hover {
  color: var(--lime);
}

.footer-brand__glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.footer-brand__line {
  max-width: 26ch;
  margin: 0 0 18px;
  font-size: 15px;
  color: rgba(243, 246, 241, 0.78);
}

.footer-brand__meta {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(243, 246, 241, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

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

.footer-col__list a {
  display: inline-block;
  font-size: 15px;
  color: rgba(243, 246, 241, 0.78);
  text-decoration: none;
  transition: color 0.15s var(--ease), padding-left 0.15s var(--ease);
}

.footer-col__list a:hover {
  color: var(--lime);
  padding-left: 4px;
}

.footer-contact__row {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(243, 246, 241, 0.84);
  word-break: break-word;
}

.footer-contact__k {
  display: inline-block;
  min-width: 40px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(243, 246, 241, 0.45);
}

.footer-contact__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(243, 246, 241, 0.18);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(243, 246, 241, 0.55);
}

.footer-contact__cta {
  margin-top: 20px;
}

.footer-base {
  border-top: 1px solid rgba(243, 246, 241, 0.16);
  background: var(--shade);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 246, 241, 0.55);
}

.footer-base__legal,
.footer-base__year {
  margin: 0;
}

.footer-base__legal a {
  color: rgba(243, 246, 241, 0.78);
  text-decoration: none;
}

.footer-base__legal a:hover {
  color: var(--lime);
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

@media (min-width: 900px) {
  .topbar {
    height: 40px;
  }

  .topbar__motto {
    font-size: 12px;
  }

  .chip-s {
    font-size: 11px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    flex: 1;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 26px;
  }

  .site-nav__item {
    border-bottom: 0;
  }

  .site-nav__link {
    padding: 6px 0 8px;
    font-size: 16px;
    font-weight: 700;
  }

  .site-nav__link::after {
    bottom: 0;
  }

  .site-nav__link[aria-current="page"]::after {
    width: 100%;
  }

  .site-nav__cta {
    margin-top: 0;
    margin-left: auto;
    width: auto;
  }

  .fixture {
    gap: 12px;
    padding: 0 22px;
    font-size: 13px;
  }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.35fr 0.85fr 1fr 1.35fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 64px;
  }
}

@media (min-width: 1200px) {
  body {
    padding-left: var(--rail-w);
  }

  .brand-rail {
    display: flex;
  }

  .fixture-strip__list {
    min-height: 44px;
  }
}

/* ---------- 动效降级 ---------- */

@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;
    scroll-behavior: auto !important;
  }

  .btn:hover {
    transform: none;
  }

  .footer-col__list a:hover {
    padding-left: 0;
  }
}
