/* ============================================================
   猫头鹰体育 · 中国区官网 共享样式表
   /assets/site.css
   负责：reset / 变量 / 中文排版 / 刊头与页脚 / 通用组件 / 响应式
   ============================================================ */

/* ---------- 1. reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }

ul[class],
ol[class] { list-style: none; padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩体系 */
  --ink: #0B1026;
  --ink-2: #131A3A;
  --line: #2A3566;
  --line-soft: rgba(42, 53, 102, 0.62);
  --signal: #C6F03C;
  --signal-soft: rgba(198, 240, 60, 0.42);
  --amber: #F2A13B;
  --turf: #4FA36B;
  --red: #E04B4B;
  --yellow: #F5C542;
  --paper: #F4F1E8;
  --stone: #9AA3B8;
  --moss: #6E7F6A;

  /* 字体 */
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --measure: 38em;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow-print: 4px 4px 0 0 rgba(42, 53, 102, 0.55);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(115% 62% at 50% -18%, rgba(42, 53, 102, 0.62) 0%, rgba(11, 16, 38, 0) 62%),
    radial-gradient(60% 42% at 96% 4%, rgba(198, 240, 60, 0.055) 0%, rgba(11, 16, 38, 0) 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content { scroll-margin-top: 150px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 4. 布局与通用组件 ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.measure { max-width: var(--measure); }

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

.section--ruled { border-top: 1px solid var(--line); }

.rule {
  height: 1px;
  background: var(--line);
  margin-block: clamp(24px, 4vw, 44px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--amber);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--paper);
}

.section-lede {
  max-width: 34em;
  margin-top: 14px;
  color: var(--stone);
  font-size: 16px;
  line-height: 1.75;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn--signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.btn--signal:hover { background: #d5f76e; border-color: #d5f76e; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}

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

.btn--sm { padding: 8px 14px; font-size: 13px; }

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--stone);
  background: rgba(19, 26, 58, 0.85);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}

.tag--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(242, 161, 59, 0.5);
}

/* 卡片 */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-print);
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.card:hover {
  border-color: var(--signal-soft);
  transform: translateY(-2px);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--paper);
  line-height: 1.45;
}

/* 栅格 */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

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

/* 面包屑 */
.breadcrumb {
  padding-block: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--moss);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link { color: var(--stone); transition: color 0.16s var(--ease); }
.breadcrumb__link:hover { color: var(--signal); }
.breadcrumb__item[aria-current="page"] { color: var(--paper); }

/* 图片 / 图示容器基础规则 */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-print);
}

.media-frame > img,
.media-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.88);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, rgba(11, 16, 38, 0) 42%, rgba(11, 16, 38, 0.62) 100%);
}

.media-frame--ratio-wide { aspect-ratio: 16 / 9; }
.media-frame--ratio-square { aspect-ratio: 1 / 1; }

.media-frame--tilt {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.media-frame__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--moss);
}

/* 滚动显现协议 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 5. 刊头 ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -90px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--signal);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  transition: top 0.18s var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 16, 38, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}

@supports (backdrop-filter: blur(6px)) {
  .site-header { backdrop-filter: blur(10px) saturate(120%); }
}

.site-header.is-compact { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9); }

.masthead { border-bottom: 1px solid var(--line-soft); }

.masthead__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter) 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  transition: padding 0.2s var(--ease);
}

.masthead__season {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--stone);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turf);
  flex: 0 0 auto;
  animation: dotPulse 2.6s var(--ease) infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 163, 107, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(79, 163, 107, 0); }
}

.mast-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.mast-brand__eye {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 50% 50%,
      var(--ink) 0 18%,
      var(--signal) 19% 34%,
      var(--ink-2) 35% 58%,
      var(--line) 59% 100%);
  box-shadow: inset 0 0 0 1px rgba(198, 240, 60, 0.35), 0 0 14px rgba(198, 240, 60, 0.22);
  transition: width 0.2s var(--ease), height 0.2s var(--ease);
}

.mast-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.mast-brand__name {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--paper);
  white-space: nowrap;
}

.mast-brand__sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--stone);
  white-space: nowrap;
}

.masthead__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.masthead__hours {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
  white-space: nowrap;
}

.site-header.is-compact .masthead__inner { padding-block: 6px; }
.site-header.is-compact .mast-brand__sub { display: none; }
.site-header.is-compact .mast-brand__eye { width: 26px; height: 26px; }
.site-header.is-compact .mast-brand__name { font-size: clamp(1.15rem, 2vw, 1.4rem); }

/* ---------- 6. 栏目带 ---------- */
.navbar { background: transparent; }

.navbar__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 8px;
  min-height: 46px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: block;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--stone);
  transition: color 0.16s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(0.35); }

.nav__link[aria-current="page"] { color: var(--paper); font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-toggle:hover { border-color: var(--signal-soft); color: var(--signal); }

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 12px;
  flex: 0 0 auto;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { line-height: 1; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 120px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 240, 60, 0) 0%, var(--signal) 22%, rgba(198, 240, 60, 0.25) 60%, rgba(11, 16, 38, 0) 100%);
  opacity: 0.55;
}

.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(3, minmax(120px, 0.7fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer__brand { min-width: 0; }

.mast-brand--footer {
  justify-content: flex-start;
  gap: 10px;
}

.mast-brand--footer .mast-brand__name { font-size: 1.25rem; letter-spacing: 0.12em; }
.mast-brand--footer .mast-brand__sub { letter-spacing: 0.2em; margin-top: 5px; }
.mast-brand--footer .mast-brand__eye { width: 28px; height: 28px; }

.footer__tag {
  margin-top: 18px;
  max-width: 26em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--stone);
}

.footer__col { min-width: 0; }

.footer__col-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--paper);
}

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

.footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--stone);
  transition: color 0.16s var(--ease), transform 0.16s var(--ease);
}

.footer__link:hover { color: var(--signal); transform: translateX(2px); }

.footer__contact {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(22px, 3vw, 32px) var(--gutter);
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer__contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  word-break: break-word;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--moss);
  flex: 0 0 auto;
}

.footer__legal {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  border-top: 1px solid var(--line-soft);
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--moss);
  word-break: break-word;
}

/* ---------- 8. 响应式 ---------- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  #main-content { scroll-margin-top: 120px; }

  .masthead__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-block: 10px;
  }

  .masthead__season { display: none; }
  .masthead__hours { display: none; }

  .mast-brand { justify-content: flex-start; gap: 10px; }
  .mast-brand__sub { display: none; }
  .mast-brand__name { letter-spacing: 0.1em; }

  .masthead__tools { gap: 10px; }

  .navbar__inner {
    justify-content: space-between;
    padding-block: 8px;
  }

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

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 4px 0 10px;
  }

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

  .nav__item { border-top: 1px solid var(--line-soft); }
  .nav__item:first-child { border-top: 0; }

  .nav__link {
    padding: 14px 4px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .nav__link::after { display: none; }
  .nav__link:hover { color: var(--signal); }
  .nav__link[aria-current="page"] { color: var(--signal); }

  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .card { padding: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }

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

  .footer__contact { font-size: 13px; }

  .mast-brand__name { font-size: 1.35rem; }

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

/* ---------- 9. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .dot { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s linear;
  }

  .card:hover,
  .footer__link:hover { transform: none; }
}
