/* =========================================================
   365体育官方中文站 · 全站共享样式
   文件位置：/assets/site.css
   设计系统：深空蓝 #0A1F44 × 活力橙 #FF6B00 × 金色 #C9A96E
   ========================================================= */

/* ---------- 1 · Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
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 {
  display: block;
  max-width: 100%;
}

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

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

/* ---------- 2 · CSS 变量 ---------- */
:root {
  --navy: #0A1F44;
  --navy-deep: #0D1B36;
  --navy-panel: #1A3A6B;
  --orange: #FF6B00;
  --orange-light: #FF9A4D;
  --gold: #C9A96E;
  --gold-light: #E3C88F;
  --white: #FFFFFF;
  --slate: #A0B0CC;
  --font-headline: Impact, "Noto Sans SC Black", "PingFang SC", sans-serif;
  --font-data: "Roboto Mono", "SFMono-Regular", "Courier New", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shell: 1240px;
  --header-h: 68px;
}

/* ---------- 3 · 基础排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(255,107,0,.14), transparent 60%),
    radial-gradient(660px 300px at 8% 18%, rgba(201,169,110,.1), transparent 55%),
    var(--navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(255, 107, 0, .55);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-panel);
  border-radius: 8px;
}

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

:focus-visible {
  outline: 2px solid var(--orange-light);
  outline-offset: 3px;
}

/* ---------- 4 · 页面骨架与容器 ---------- */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  position: relative;
  min-height: 72vh;
}

.container {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- 5 · 标题与数据工具类 ---------- */
.display {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .01em;
  color: var(--white);
}

.display-meta {
  display: block;
  margin-top: 14px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold);
}

.key-number {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.35em;
  color: var(--orange-light);
}

.mono {
  font-family: var(--font-data);
  letter-spacing: .02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}

/* ---------- 6 · 标签与分割线 ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 169, 110, .35);
  background: rgba(201, 169, 110, .12);
  color: var(--gold-light);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.4;
}

.tag-pill--orange {
  border-color: rgba(255, 107, 0, .45);
  background: rgba(255, 107, 0, .14);
  color: var(--orange-light);
}

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--orange), rgba(201, 169, 110, .35) 60%, transparent);
}

.score-tape {
  height: 8px;
  border-radius: var(--radius-pill);
  background: repeating-linear-gradient(-45deg, rgba(255, 107, 0, .75) 0 8px, rgba(201, 169, 110, .28) 8px 16px);
}

/* ---------- 7 · 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(255, 107, 0, .3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 107, 0, .4);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(160, 176, 204, .5);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-light);
  transform: translateY(-2px);
}

.btn-clip {
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  padding-inline: 28px 32px;
}

.btn-clip:hover {
  box-shadow: none;
}

.btn-clip:focus-visible {
  clip-path: none;
  border-radius: var(--radius-pill);
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- 8 · 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 22px 0 0;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--gold);
  transition: color .2s ease;
}

.breadcrumb a:hover {
  color: var(--orange-light);
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(160, 176, 204, .55);
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
}

/* ---------- 9 · 面板与网格 ---------- */
.panel {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg, rgba(26, 58, 107, .5), rgba(13, 27, 54, .65));
  border: 1px solid rgba(160, 176, 204, .16);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 8px);
  pointer-events: none;
  z-index: -1;
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-bottom-left-radius: var(--radius-md);
  background: linear-gradient(225deg, rgba(255, 107, 0, .55), transparent 60%);
  pointer-events: none;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, .35);
}

.data-grid {
  display: grid;
  gap: 16px;
}

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

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

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

/* ---------- 10 · 左右分屏与媒体占位 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--navy-panel), var(--navy-deep));
  border: 1px solid rgba(201, 169, 110, .2);
  border-radius: var(--radius-md);
}

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

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

.media-frame--soft {
  border-radius: var(--radius-lg);
}

.media-frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 11 · 顶部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(13, 27, 54, .98), rgba(10, 31, 68, .94));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(160, 176, 204, .16);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 42%;
  z-index: 1;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 60%, transparent 100%);
  pointer-events: none;
}

.header-shell {
  max-width: var(--shell);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 20px;
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 50%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-panel);
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .12);
  color: var(--orange-light);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.03);
  border-color: var(--orange-light);
}

.brand:hover .brand-name {
  color: var(--orange-light);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--white);
  transition: color .2s ease;
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
}

.site-nav {
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .06);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 107, 0, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .35);
}

.nav-link[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.nav-index {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--gold);
  opacity: .85;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(201, 169, 110, .12);
  border: 1px solid rgba(201, 169, 110, .3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--gold);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(201, 169, 110, .35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  transition: border-color .2s ease, background .2s ease;
}

.nav-toggle:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, .1);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s ease;
  transform-origin: center;
}

.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);
}

/* ---------- 12 · 顶部响应式 ---------- */
@media (max-width: 1100px) {
  .header-status {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-header {
    --header-h: 62px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-inline-start: 0;
    display: none;
    padding: 12px 16px 18px;
    background: linear-gradient(180deg, var(--navy-deep), var(--navy));
    border-top: 1px solid rgba(255, 107, 0, .28);
    border-bottom: 1px solid rgba(201, 169, 110, .18);
    box-shadow: 0 18px 32px rgba(0, 0, 0, .38);
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-slide .28s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(201, 169, 110, .12);
  }

  .nav-link {
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

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

  .nav-link[aria-current="page"]::after {
    display: block;
  }
}

@media (max-width: 520px) {
  .header-shell {
    gap: 10px;
    padding-inline: 14px;
  }

  .header-actions {
    gap: 8px;
  }

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

  .brand-name {
    font-size: 18px;
  }

  .brand-sub {
    display: none;
  }

  .btn-clip {
    padding: 10px 16px;
    font-size: 13px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}

/* ---------- 13 · 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-top: 1px solid rgba(255, 107, 0, .3);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold-light), transparent);
  pointer-events: none;
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 56px 20px 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr 1.1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px dashed rgba(201, 169, 110, .28);
}

.footer-brand {
  max-width: 46ch;
}

.brand-footer {
  gap: 12px;
}

.footer-summary {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.footer-trust {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(201, 169, 110, .1);
  border-left: 2px solid var(--gold);
  border-radius: 4px 12px 12px 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.trust-mark {
  display: inline-block;
  margin-inline-end: 6px;
  color: var(--gold);
  font-size: 11px;
}

.footer-col {
  min-width: 0;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--white);
}

.footer-heading-index {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 400;
  color: var(--orange);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a::before {
  content: "›";
  color: var(--orange);
  font-family: var(--font-data);
  font-size: 15px;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--orange-light);
  transform: translateX(3px);
}

.footer-contact {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(201, 169, 110, .14);
  border-radius: var(--radius-md);
  padding: 18px;
}

.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 14px;
  row-gap: 12px;
}

.contact-list dt {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
}

.contact-list dd {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.footer-icp,
.footer-meta {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--slate);
}

.footer-meta {
  letter-spacing: .06em;
}

/* ---------- 14 · 页脚响应式 ---------- */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

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

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---------- 15 · 动画 ---------- */
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 107, 0, .55);
  }

  50% {
    opacity: .65;
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0);
  }
}

@keyframes nav-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 16 · 可访问性与动效降级 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(calc(-100% - 20px));
  transition: transform .25s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .status-dot,
  .nav-link[aria-current="page"]::after {
    animation: none !important;
  }
}
