/* ========================================================
   猫头鹰体育 CN — 全站共享样式 /assets/site.css
   ======================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--strip-h));
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-cream);
  background-color: var(--c-deep-space);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
  width: 100%;
  scroll-margin-top: calc(var(--header-h) + var(--strip-h) + 8px);
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--c-neon);
  color: var(--c-brown);
}

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-deep-space: #0B1F3A;
  --c-midnight: #12294A;
  --c-neon: #00E676;
  --c-orange: #FF6B2C;
  --c-cream: #F5F1E8;
  --c-brown: #2A1E16;
  --c-slate: #8899AA;
  --c-border: #3D5A78;
  --c-amber: #FFC02E;

  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;

  --fs-display-l: clamp(2.5rem, 5vw, 3.5rem);
  --fs-display-m: clamp(1.75rem, 3vw, 2.5rem);
  --fs-section-num: clamp(5rem, 12vw, 7.5rem);
  --fs-heading: clamp(1.5rem, 2.5vw, 2rem);
  --fs-subheading: clamp(1.1rem, 1.5vw, 1.375rem);
  --fs-body: 1rem;
  --fs-caption: 0.8125rem;

  --content-max: 1440px;
  --container-pad: clamp(1rem, 4vw, 3rem);
  --header-h: 64px;
  --strip-h: 36px;
  --radius: 3px;
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.24);
  --tilt: -3deg;
  --reveal-duration: 0.5s;
  --reveal-ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

/* ---------- 3. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-narrow {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section-gap {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-gap-sm {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---------- 4. 排版工具 ---------- */
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-display-l);
  line-height: var(--lh-display);
  color: var(--c-cream);
  letter-spacing: -0.01em;
}

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

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

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

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

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

/* ---------- 5. 章节系统 ---------- */
.section-head {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-section-num);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-slate);
  opacity: 0.55;
  user-select: none;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-heading);
  line-height: 1.25;
  color: var(--c-cream);
}

.section-annot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  color: var(--c-orange);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

.lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(245, 241, 232, 0.82);
  max-width: 62ch;
}

.section-light {
  background-color: var(--c-cream);
  color: var(--c-brown);
}

.section-light .section-title {
  color: var(--c-brown);
}

.section-light .lead {
  color: rgba(42, 30, 22, 0.85);
}

.section-light .section-num {
  -webkit-text-stroke-color: rgba(42, 30, 22, 0.32);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--c-orange);
  color: var(--c-brown);
}

.btn-primary:hover {
  background: var(--c-brown);
  color: var(--c-orange);
  border-color: var(--c-orange);
}

.btn-ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--c-border);
}

.btn-ghost:hover {
  border-color: var(--c-neon);
  color: var(--c-neon);
  background: rgba(0, 230, 118, 0.08);
}

.btn-light {
  background: var(--c-cream);
  color: var(--c-brown);
}

.btn-light:hover {
  background: var(--c-neon);
}

/* ---------- 7. 标签与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  color: var(--c-slate);
  white-space: nowrap;
}

.tag-neon {
  border-color: rgba(0, 230, 118, 0.42);
  color: var(--c-neon);
}

.tag-orange {
  border-color: rgba(255, 107, 44, 0.42);
  color: var(--c-orange);
}

.tag-amber {
  border-color: rgba(255, 192, 46, 0.42);
  color: var(--c-amber);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--c-neon);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-neon);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.7);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

/* ---------- 8. 卡片与图像 ---------- */
.card {
  background: var(--c-midnight);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s var(--reveal-ease);
}

.card:hover {
  border-color: rgba(0, 230, 118, 0.45);
}

.card-light {
  background: var(--c-cream);
  color: var(--c-brown);
  border: 1px solid rgba(42, 30, 22, 0.16);
  box-shadow: 0 8px 24px rgba(42, 30, 22, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s var(--reveal-ease);
}

.card-light:hover {
  border-color: var(--c-orange);
}

.tilt-card {
  transform: rotate(var(--tilt));
}

.tilt-card:nth-child(even) {
  --tilt: 3deg;
}

.tilt-card:hover {
  transform: rotate(0deg);
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-midnight);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
}

.img-frame.wide {
  aspect-ratio: 21 / 9;
}

.img-frame.square {
  aspect-ratio: 1 / 1;
}

.img-frame.portrait {
  aspect-ratio: 3 / 4;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--reveal-ease);
}

.img-frame:hover img {
  transform: scale(1.03);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 230, 118, 0.14);
  pointer-events: none;
}

/* ---------- 9. 数据表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: 1.6;
}

.data-table th,
.data-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.data-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--c-slate);
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  color: var(--c-cream);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  color: var(--c-slate);
}

.breadcrumb a {
  color: var(--c-slate);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--c-neon);
}

.breadcrumb-sep {
  color: var(--c-border);
}

.breadcrumb-current {
  color: var(--c-orange);
}

/* ---------- 11. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 0.7rem 1.4rem;
  background: var(--c-amber);
  color: var(--c-brown);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--c-brown);
  outline-offset: 2px;
}

/* ---------- 12. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--c-deep-space);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-strip {
  height: var(--strip-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--container-pad);
  background: var(--c-midnight);
  border-bottom: 1px solid rgba(61, 90, 120, 0.42);
}

.strip-text {
  max-width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: 1.5;
  color: var(--c-slate);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  color: var(--c-cream);
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--c-neon);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 230, 118, 0.55);
  border-radius: 50%;
  color: var(--c-neon);
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.14);
  flex-shrink: 0;
}

.owl-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.brand-caption {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.625rem;
  color: var(--c-slate);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* 导航 */
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--c-cream);
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  right: 1.05rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--c-neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--reveal-ease);
}

.nav-link:hover {
  color: var(--c-neon);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-orange);
  background: rgba(255, 107, 44, 0.08);
}

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

.nav-utility {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--c-slate);
  border-left: 1px solid var(--c-border);
  padding-left: 1.25rem;
  white-space: nowrap;
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-midnight);
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--c-neon);
}

.nav-toggle:focus-visible {
  border-color: var(--c-neon);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.25);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-cream);
  transition: transform 0.3s var(--reveal-ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background-color: var(--c-midnight);
  border-top: 1px solid var(--c-border);
  color: var(--c-cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--c-neon) 0%,
    var(--c-neon) 14%,
    transparent 14%,
    transparent 26%,
    var(--c-orange) 26%,
    var(--c-orange) 36%,
    transparent 36%
  );
  opacity: 0.75;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3rem 2.5rem;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-brand .brand-mark {
  width: 56px;
  height: 56px;
  border-color: rgba(255, 107, 44, 0.6);
  color: var(--c-orange);
  box-shadow: 0 0 14px rgba(255, 107, 44, 0.16);
}

.footer-brand .owl-svg {
  width: 34px;
  height: 34px;
}

.footer-name {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  color: var(--c-neon);
  letter-spacing: 0.2em;
}

.footer-col {
  display: block;
}

.footer-col-title {
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--c-slate);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
  padding-left: 0.8rem;
}

.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  background: var(--c-orange);
  border-radius: 1px;
}

.footer-contact .footer-col-title::before {
  background: var(--c-neon);
}

.footer-links li + li,
.footer-contact-list li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--c-cream);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.footer-links a:hover {
  color: var(--c-neon);
  padding-left: 4px;
}

.footer-note {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-size: var(--fs-caption);
  line-height: 1.6;
  color: var(--c-amber);
}

.footer-contact {
  display: block;
}

.footer-contact-list {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.85);
}

.footer-contact-list a {
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.footer-contact-list a:hover {
  color: var(--c-neon);
  padding-left: 4px;
}

.footer-trust {
  border-top: 1px solid var(--c-border);
  padding-block: 1rem;
}

.trust-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--c-slate);
  max-width: 72ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 1.25rem var(--container-pad);
  border-top: 1px solid var(--c-border);
  font-size: 0.8125rem;
  color: var(--c-slate);
}

.footer-icp {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-offset, 16px));
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] {
  transition-delay: 60ms;
}

[data-reveal-delay="2"] {
  transition-delay: 120ms;
}

[data-reveal-delay="3"] {
  transition-delay: 180ms;
}

[data-reveal-delay="4"] {
  transition-delay: 240ms;
}

[data-reveal-delay="5"] {
  transition-delay: 300ms;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  :root {
    --header-h: 60px;
  }

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

  .nav-utility {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + var(--strip-h));
    left: 0;
    right: 0;
    z-index: 990;
    margin-left: 0;
    display: block;
    background: var(--c-midnight);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition:
      max-height 0.4s var(--reveal-ease),
      opacity 0.3s ease,
      visibility 0s linear 0.4s;
  }

  .site-nav[data-open] {
    max-height: min(480px, 70vh);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    transition:
      max-height 0.4s var(--reveal-ease),
      opacity 0.3s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--container-pad) 1.25rem;
  }

  .nav-link {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(61, 90, 120, 0.35);
  }

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

  .nav-link[aria-current="page"] {
    background: rgba(255, 107, 44, 0.14);
    border-left: 3px solid var(--c-orange);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --strip-h: 30px;
  }

  .strip-text {
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
  }

  .header-main {
    gap: 0.75rem;
  }

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

  .owl-svg {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-caption {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.25rem 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }
}

/* ---------- 16. 减少动态偏好 ---------- */
@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: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
