/* =============================================================
   360体育登录 — 共享 Site Kit
   文件：/assets/site.css
   覆盖：重置 / 变量 / 中文排版 / 站点头部 / 站点页脚 /
        通用按钮 / 面包屑 / 正文容器 / 网格 / 基础组件
   ============================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(74px + 1.4rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #061225;
  background-image:
    radial-gradient(58rem 40rem at 86% -12%, rgba(34, 211, 238, .14), transparent 62%),
    radial-gradient(46rem 32rem at 4% 2%, rgba(255, 122, 26, .12), transparent 60%);
  background-repeat: no-repeat;
  color: #F4F7FB;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }

:where(h1, h2, h3, h4) {
  line-height: 1.18;
  letter-spacing: -.012em;
  text-wrap: balance;
}

::selection { background: rgba(255, 122, 26, .38); color: #FFFFFF; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #061225;
  --ink-800: #0B1D36;
  --ink-700: #122C4E;
  --line: #2B476B;
  --orange: #FF7A1A;
  --amber: #FFB15C;
  --cyan: #22D3EE;
  --ice: #A5F3FC;
  --fog: #F4F7FB;
  --steel: #8FA3BF;

  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
  --header-h: 74px;

  --shadow-lift: 0 22px 48px -30px rgba(0, 0, 0, .95);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 焦点与容器 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

/* ---------- 4. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  inset-block-start: -6rem;
  inset-inline-start: 1rem;
  z-index: 400;
  padding: .7rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: #160D02;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .9);
  transition: inset-block-start .18s var(--ease);
}
.skip-link:focus {
  inset-block-start: 1rem;
}

/* ---------- 5. 站点头部 ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 120;
  background-color: transparent;
  border-block-end: 1px solid transparent;
  transition:
    background-color .24s var(--ease),
    border-color .24s var(--ease),
    box-shadow .24s var(--ease);
}

.site-header.is-stuck {
  background-color: rgba(6, 18, 37, .93);
  border-block-end-color: rgba(43, 71, 107, .85);
  box-shadow: 0 24px 50px -38px #000000;
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.4vw, 1.2rem);
  min-height: var(--header-h);
  padding-block: .55rem;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(140deg, #FF7A1A, #FFB15C 60%, #FF9440);
  box-shadow:
    0 0 0 1px rgba(255, 177, 92, .55),
    0 12px 24px -14px rgba(255, 122, 26, .95);
  transition: transform .22s var(--ease);
}

.brand__mark::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--ink-900);
  box-shadow: inset 0 0 0 3px var(--ice);
  transform: rotate(45deg);
}

.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  line-height: 1.14;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--fog);
}

.brand__tagline {
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--steel);
}

.brand--footer .brand__name { font-size: 20px; }

/* 导航 */
.site-nav {
  margin-inline: auto;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  padding: .5rem .72rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(244, 247, 251, .78);
  text-decoration: none;
  transition:
    color .18s var(--ease),
    background-color .18s var(--ease),
    box-shadow .18s var(--ease);
}

.nav-link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--steel);
  opacity: .9;
  transition: color .18s var(--ease);
}

.nav-link:hover {
  color: var(--fog);
  background: rgba(18, 44, 78, .68);
}

.nav-link:hover::before { color: var(--amber); }

.nav-link[aria-current="page"] {
  color: var(--orange);
  background: rgba(255, 122, 26, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .34);
}

.nav-link[aria-current="page"]::before {
  color: var(--orange);
  opacity: 1;
}

/* 头部工具区 */
.header__tools {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.queue-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 71, 107, .95);
  background: rgba(18, 44, 78, .55);
  font-size: 12.5px;
  color: var(--steel);
  white-space: nowrap;
}

.queue-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: queuePulse 2.8s var(--ease) infinite;
}

@keyframes queuePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
  60%      { box-shadow: 0 0 0 5px rgba(34, 211, 238, 0); }
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .52rem .85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 71, 107, .95);
  background: rgba(18, 44, 78, .62);
  color: var(--fog);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover { border-color: rgba(34, 211, 238, .6); }

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

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* 滚动进度光带 */
.scroll-meter {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  background: rgba(43, 71, 107, .35);
  pointer-events: none;
  overflow: hidden;
}

.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange), var(--amber) 42%, var(--cyan));
  transition: transform .12s linear;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  inset-block-end: clamp(1rem, 3vw, 1.8rem);
  inset-inline-end: clamp(1rem, 3vw, 1.8rem);
  z-index: 160;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 211, 238, .42);
  background: rgba(11, 29, 54, .93);
  color: var(--ice);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    transform .2s var(--ease),
    border-color .2s var(--ease),
    background-color .2s var(--ease);
}

.to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
}

.to-top:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .18);
}

.to-top[hidden] { display: none; }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .2s var(--ease),
    background-color .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    box-shadow .2s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, #FF7A1A, #FF9542);
  color: #170D02;
  box-shadow: 0 16px 30px -20px rgba(255, 122, 26, .95);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -20px rgba(255, 122, 26, 1);
}

.btn--ghost {
  border-color: rgba(43, 71, 107, .95);
  background: rgba(18, 44, 78, .55);
  color: var(--fog);
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, .6);
  background: rgba(34, 211, 238, .12);
  color: var(--ice);
}

.header__cta { padding: .62rem 1.05rem; }

/* ---------- 7. 站点页脚 ---------- */
.site-footer {
  position: relative;
  margin-block-start: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  border-block-start: 1px solid rgba(43, 71, 107, .9);
  background:
    radial-gradient(70rem 30rem at 50% 0%, rgba(34, 211, 238, .1), transparent 62%),
    linear-gradient(180deg, #0B1D36, #071528 72%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange) 24%, var(--cyan) 70%, transparent);
  opacity: .6;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(130px, .85fr)) minmax(240px, 1.15fr);
  gap: clamp(1.5rem, 3vw, 2.8rem);
  padding-block: clamp(2.8rem, 5vw, 4.4rem);
}

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

.footer__summary {
  margin-block-start: 1.1rem;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--steel);
}

.footer__hint {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-block-start: 1.1rem;
  padding: .34rem .8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 71, 107, .9);
  background: rgba(18, 44, 78, .55);
  font-size: 12.5px;
  color: var(--steel);
}

.footer__hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 177, 92, .16);
}

.footer__col { min-width: 0; }

.footer__title {
  margin-block-end: .9rem;
  padding-block-end: .55rem;
  border-block-end: 1px solid rgba(43, 71, 107, .7);
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--ice);
}

.footer__list {
  display: grid;
  gap: .55rem;
}

.footer__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--steel);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer__link:hover {
  color: var(--fog);
  transform: translateX(3px);
}

.contact-list {
  display: grid;
  gap: .85rem;
}

.contact-list__item {
  display: grid;
  gap: .12rem;
}

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--steel);
}

.contact-list__value {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fog);
  overflow-wrap: anywhere;
}

.footer__note {
  margin-block-start: 1rem;
  padding-block-start: .9rem;
  border-block-start: 1px solid rgba(43, 71, 107, .6);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

.footer__base {
  border-block-start: 1px solid rgba(43, 71, 107, .7);
  background: rgba(4, 13, 27, .72);
}

.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.4rem;
  padding-block: 1.15rem;
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--steel);
}

.footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
  font-size: 13px;
}

/* ---------- 8. 章节与编辑感组件 ---------- */
.section {
  padding-block: clamp(2.8rem, 6vw, 5rem);
}

.section__head {
  display: grid;
  gap: .6rem;
  max-width: 62ch;
  margin-block-end: clamp(1.4rem, 3vw, 2.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
  opacity: .85;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .3rem .72rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(165, 243, 252, .32);
  background: rgba(34, 211, 238, .1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ice);
}

.pill--orange {
  border-color: rgba(255, 177, 92, .45);
  background: rgba(255, 122, 26, .14);
  color: var(--amber);
}

/* ---------- 9. 卡片与网格 ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.8rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid rgba(43, 71, 107, .85);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(18, 44, 78, .92), rgba(11, 29, 54, .94));
  transition:
    transform .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, .55);
  box-shadow: var(--shadow-lift);
}

/* ---------- 10. 正文容器与面包屑 ---------- */
.prose {
  max-width: 66ch;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(244, 247, 251, .86);
}

.prose > * + * { margin-block-start: 1.05em; }

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--fog);
  margin-block-start: 1.8em;
}

.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.prose h3 { font-size: clamp(1.1rem, 1.9vw, 1.28rem); }

.prose ul { list-style: disc; padding-inline-start: 1.25rem; }
.prose ol { list-style: decimal; padding-inline-start: 1.35rem; }
.prose li + li { margin-block-start: .4em; }
.prose a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.breadcrumb { padding-block: .4rem; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: 13px;
  color: var(--steel);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: .5rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--steel);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(43, 71, 107, .85);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 18% 0%, rgba(34, 211, 238, .16), transparent 55%),
    linear-gradient(150deg, #122C4E, #0B1D36);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(.82) contrast(1.05);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(165, 243, 252, .14);
  pointer-events: none;
}

.media__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(165, 243, 252, .1) 0 1px,
    transparent 1px 56px
  );
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1120px) {
  .footer__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__lead,
  .footer__contact {
    grid-column: 1 / -1;
  }
  .footer__summary { max-width: 46ch; }
}

@media (max-width: 1024px) {
  html { scroll-padding-block-start: calc(64px + 1.2rem); }

  :root { --header-h: 64px; }

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

  .site-nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    display: none;
    margin: 0;
    padding: .7rem var(--gutter) 1.2rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(8, 22, 42, .99), rgba(6, 18, 37, .99));
    border-block-end: 1px solid var(--line);
    box-shadow: 0 42px 64px -42px #000000;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .18rem;
  }

  .nav-link {
    justify-content: flex-start;
    padding: .84rem .95rem;
    border-radius: 14px;
    font-size: 15.5px;
  }

  .nav-link[aria-current="page"] { border-radius: 14px; }

  .header__cta { display: none; }
  .header__tools { margin-inline-start: auto; }
}

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

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

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

  .to-top { font-size: 12.5px; padding: .55rem .9rem; }
}

@media (max-width: 560px) {
  .brand__tagline { display: none; }
  .brand__name { font-size: 17px; }
  .queue-chip { display: none; }
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .queue-chip__dot { animation: none; box-shadow: none; }
}
