/* =========================================================
   猫头鹰体育APP · 全站共享层 /assets/site.css
   暗夜球场观测站 · 命令栏导航 · 数据流动效
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --color-bg: #0A1E32;
  --color-surface: #1C2C3E;
  --color-surface-deep: #132338;
  --color-text: #F2EDE6;
  --color-text-soft: #C0D0E0;
  --color-muted: #8A9BA8;
  --color-accent: #3FFF3E;
  --color-accent-soft: #78FF72;
  --color-cta: #FF6B35;
  --color-moss: #7A8450;
  --color-terra: #D28C5A;
  --color-border: #2C3E50;

  --font-heading: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Roboto Condensed", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --header-h: 66px;
  --container-w: 1220px;
  --container-pad: clamp(16px, 4.6vw, 32px);
  --section-gap: clamp(56px, 9vw, 110px);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;

  --shadow-sm: 0 2px 12px rgba(1, 10, 20, .42);
  --shadow-md: 0 12px 32px rgba(1, 10, 20, .48);
  --glow-accent: 0 0 18px rgba(63, 255, 62, .3);

  --ease: cubic-bezier(.2, .72, .28, 1);
}

/* ---------- 2. Reset / 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background: var(--color-bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

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

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: .01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--color-accent);
  color: #06121F;
}

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

/* ---------- 3. 工具类 ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container-w), 100%);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.page-main {
  flex: 1 0 auto;
  width: 100%;
  outline: none;
}

/* ---------- 4. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .05em;
  text-align: center;
  white-space: nowrap;
  transition:
    background .25s var(--ease),
    color .25s var(--ease),
    border-color .25s var(--ease),
    box-shadow .25s var(--ease),
    transform .2s var(--ease);
}

.btn-primary {
  background: var(--color-accent);
  color: #06121F;
}

.btn-primary:hover {
  background: var(--color-accent-soft);
  box-shadow: var(--glow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: rgba(63, 255, 62, .5);
}

.btn-outline:hover {
  background: rgba(63, 255, 62, .08);
  border-color: var(--color-accent);
  box-shadow: var(--glow-accent);
}

.btn-cta {
  background: var(--color-cta);
  color: var(--color-bg);
}

.btn-cta:hover {
  box-shadow: 0 0 24px rgba(255, 107, 53, .35);
  transform: translateY(-2px);
}

/* ---------- 5. 面包屑 ---------- */
.breadcrumb {
  padding-block: 10px 0;
  font-size: .9rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-list li + li::before {
  content: "⁄";
  margin-inline: 8px;
  color: var(--color-border);
}

.breadcrumb-link {
  color: var(--color-text-soft);
  transition: color .25s var(--ease);
}

.breadcrumb-link:hover {
  color: var(--color-accent);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- 6. 页面标题与章节 ---------- */
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.8vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: .01em;
  margin-bottom: 10px;
}

.page-lead {
  max-width: 58ch;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.section-block {
  padding-block: var(--section-gap);
  border-bottom: 1px solid var(--color-border);
}

.section-block:last-child {
  border-bottom: 0;
}

.section-kicker {
  font-family: var(--font-heading);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.6vw, 2.15rem);
  line-height: 1.18;
  margin-bottom: 18px;
}

.content-block {
  display: grid;
  gap: 16px;
  max-width: 72ch;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.content-block > p:first-child {
  color: var(--color-text);
  font-size: 1.04rem;
}

/* ---------- 7. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.8vw, 30px);
}

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

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

.grid-asym {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr);
  gap: clamp(20px, 3.4vw, 40px);
  align-items: start;
}

.grid-asym-swap {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .grid-asym,
  .grid-asym-swap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 8. 基础组件 ---------- */
.panel {
  padding: clamp(18px, 3vw, 28px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.data-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
  overflow: hidden;
  background: linear-gradient(150deg, var(--color-surface), var(--color-surface-deep));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.data-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(63, 255, 62, 0));
}

.data-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(63, 255, 62, .18);
  border-radius: 50%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px rgba(63, 255, 62, .7);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--color-muted);
  font-size: .87rem;
  letter-spacing: .02em;
}

.meta-line::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: .8;
  transform: rotate(45deg);
}

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--color-surface), var(--color-surface-deep));
}

.img-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.img-frame--portrait::before {
  padding-top: 125%;
}

.img-frame--square::before {
  padding-top: 100%;
}

.img-frame--wide::before {
  padding-top: 42.86%;
}

.img-frame--scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(63, 255, 62, .05) 0%, transparent 36%),
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(192, 208, 224, .06) 15px 16px);
}

.stream-line {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(63, 255, 62, .55) 30%, rgba(255, 107, 53, .4) 70%, transparent);
}

.stream-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(63, 255, 62, .8);
  animation: stream-drift 3.4s linear infinite;
}

@keyframes stream-drift {
  0% {
    left: 0;
  }
  100% {
    left: calc(100% - 7px);
  }
}

/* ---------- 9. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #06121F;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: var(--glow-accent);
  transform: translateY(-180%);
  transition: transform .25s var(--ease);
}

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

/* ---------- 10. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(10, 30, 50, .9);
    backdrop-filter: blur(12px);
  }
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 210;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.header-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cta));
  box-shadow: 0 0 8px rgba(63, 255, 62, .6);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.14rem;
  letter-spacing: .04em;
  color: var(--color-text);
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  box-shadow: var(--glow-accent);
  background: radial-gradient(circle,
    var(--color-accent) 0 20%,
    var(--color-bg) 21% 34%,
    var(--color-accent) 35% 52%,
    var(--color-bg) 53% 74%,
    var(--color-surface) 75%);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand-word strong {
  margin-left: .08em;
  color: var(--color-accent);
  font-weight: 400;
}

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

.site-nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  counter-reset: owl-nav;
}

.site-nav-link {
  position: relative;
  display: block;
  padding: 8px 2px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--color-text-soft);
  transition: color .25s var(--ease);
}

.site-nav-link::before {
  counter-increment: owl-nav;
  content: counter(owl-nav, decimal-leading-zero);
  display: inline-block;
  margin-right: 4px;
  font-size: .7em;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--color-accent);
  opacity: .85;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}

.site-nav-link:hover {
  color: var(--color-text);
}

.site-nav-link:hover::after,
.site-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav-link[aria-current="page"] {
  color: var(--color-text);
}

.site-nav-link[aria-current="page"]::before {
  opacity: 1;
  text-shadow: 0 0 8px rgba(63, 255, 62, .55);
}

.nav-download-btn {
  margin-left: clamp(14px, 2vw, 28px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--color-accent);
  background: rgba(63, 255, 62, .06);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--color-accent);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(.2);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 12. 移动端导航 ---------- */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
    align-content: center;
    padding-block: 4px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding: 12px 0 18px;
    border-top: 1px solid var(--color-border);
  }

  .site-nav[data-open] {
    display: flex;
    box-shadow: 0 24px 32px -20px rgba(1, 10, 20, .6);
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav-link {
    padding: 13px 6px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(44, 62, 80, .55);
  }

  .site-nav-link::before {
    margin-right: 8px;
  }

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

  .site-nav-link[aria-current="page"] {
    color: var(--color-accent);
    padding-left: 12px;
  }

  .site-nav-link[aria-current="page"]::before {
    text-shadow: none;
  }

  .nav-download-btn {
    margin: 16px 0 0;
    width: 100%;
  }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(63, 255, 62, .06), transparent 46%),
    radial-gradient(ellipse at 88% 100%, rgba(255, 107, 53, .05), transparent 42%),
    var(--color-bg);
  border-top: 1px solid rgba(44, 62, 80, .85);
}

.site-footer::after {
  content: "OWL EYE";
  position: absolute;
  right: -2vw;
  bottom: 56px;
  z-index: 0;
  font-family: var(--font-heading);
  font-size: clamp(64px, 16vw, 176px);
  line-height: 1;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(63, 255, 62, .07);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr .9fr .8fr 1.5fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(44px, 7vw, 76px) clamp(32px, 5vw, 54px);
}

.footer-brand-col {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.22rem;
  letter-spacing: .03em;
  color: var(--color-text);
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.footer-brand .brand-word strong {
  color: var(--color-accent);
}

.footer-claim {
  max-width: 30ch;
  color: var(--color-muted);
  font-size: .98rem;
  line-height: 1.72;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-head {
  font-family: var(--font-heading);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: var(--color-text-soft);
  font-size: .96rem;
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}

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

.footer-contact-list {
  display: grid;
  gap: 10px;
  color: var(--color-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.footer-contact-list li {
  position: relative;
  padding-left: 17px;
}

.footer-contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--color-accent);
  opacity: .65;
  transform: rotate(45deg);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  padding-block: 16px 18px;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  color: var(--color-muted);
  font-size: .87rem;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

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

  .footer-brand-col {
    grid-column: auto;
  }

  .site-footer::after {
    right: -12vw;
    bottom: auto;
    top: 210px;
    font-size: 84px;
  }
}

/* ---------- 14. 返回顶部 ---------- */
.top-button {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 300;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(63, 255, 62, .45);
  border-radius: 50%;
  background: rgba(28, 44, 62, .94);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity .3s var(--ease),
    transform .3s var(--ease),
    visibility .3s,
    box-shadow .3s var(--ease);
}

.top-button[data-visible] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-button:hover {
  box-shadow: 0 0 24px rgba(63, 255, 62, .35);
}

.top-button-icon {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(3px) rotate(45deg);
}

/* ---------- 15. 滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border: 2px solid var(--color-bg);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* ---------- 16. 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .stream-line::after {
    animation: none;
  }
}
