/* ========== 方式体育 Site Kit 共享样式 ========== */
/* 设计语言：目录型内容地图 / 框架式导航 / 纸张叠层 */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* ---------- 设计变量 ---------- */
:root {
  --bg-deep: #0B1B3D;
  --bg-card: #F5E9D8;
  --bg-light: #F8F9FA;
  --ink: #1A1A1A;
  --ink-muted: #55677A;
  --accent: #FF6B35;
  --accent-yellow: #FFD166;
  --steel: #8A9BAB;
  --nav-blue: #2E4A7D;
  --green: #2ECC71;
  --red: #E74C3C;
  --surface: #EDE6D8;
  --muted: var(--steel);
  --content-w: 1200px;
  --header-h: 64px;
  --space: clamp(16px, 4vw, 40px);
  --shadow-card: 8px 8px 0 rgba(0, 0, 0, 0.28);
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- 基础排版 ---------- */
body {
  background: var(--bg-deep);
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { text-wrap: pretty; }
strong { font-weight: 700; }
code, kbd, .fs-mono { font-family: var(--font-mono); }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg-deep); }

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

#main-content:focus { outline: none; }

/* ---------- 通用布局 ---------- */
.fs-container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--space);
}

.fs-section { padding-block: clamp(48px, 8vw, 96px); }
.fs-section--tight { padding-block: clamp(28px, 4vw, 48px); }
.fs-section--paper {
  background: var(--bg-card);
  color: var(--ink);
  --muted: var(--ink-muted);
}

.fs-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.fs-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.fs-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.fs-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

.fs-chapter {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.fs-chapter__num {
  flex: none;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
}

.fs-chapter__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
}

.fs-chapter__desc {
  margin-top: 6px;
  max-width: 52em;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 按钮 ---------- */
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fs-btn--accent {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.fs-btn--accent:hover {
  background: var(--accent-yellow);
  border-color: var(--accent-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
}

.fs-btn--yellow {
  background: var(--accent-yellow);
  color: var(--bg-deep);
  border-color: var(--accent-yellow);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.fs-btn--yellow:hover { background: var(--bg-card); }

.fs-btn--ghost {
  background: transparent;
  color: var(--surface);
  border-color: var(--nav-blue);
}

.fs-btn--ghost:hover { border-color: var(--accent); color: var(--accent-yellow); }

.fs-btn--paper {
  background: var(--bg-deep);
  color: var(--bg-card);
  border-color: var(--bg-deep);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.fs-btn--paper:hover { background: #122654; }

.fs-btn--sm { padding: 8px 14px; font-size: 13px; }
.fs-btn--lg { padding: 14px 24px; font-size: 16px; }

/* ---------- 面包屑 ---------- */
.fs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.fs-breadcrumb li { display: flex; align-items: center; gap: 6px; }
.fs-breadcrumb li + li::before { content: "/"; color: var(--nav-blue); }
.fs-breadcrumb a { text-decoration: none; }
.fs-breadcrumb a:hover { color: var(--accent); }
.fs-breadcrumb [aria-current="page"] { color: var(--accent-yellow); }

/* ---------- 标签 ---------- */
.fs-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--accent-yellow);
  border: 1px solid var(--accent);
  text-transform: uppercase;
  text-decoration: none;
}

.fs-tag--yellow { color: var(--accent-yellow); border-color: var(--accent-yellow); }
.fs-tag--solid { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.fs-card .fs-tag { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- 卡片 ---------- */
.fs-card {
  position: relative;
  background: var(--bg-card);
  color: var(--ink);
  --muted: #6B5D48;
  border: 1px solid rgba(26, 26, 26, 0.12);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fs-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  pointer-events: none;
}

.fs-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 11px 11px 0 rgba(0, 0, 0, 0.3);
}

.fs-card__title {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 6px;
}

.fs-card__meta {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.fs-card p { font-size: 15px; color: #2C2C2C; }

/* ---------- 数据展示 ---------- */
.fs-stat {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-yellow);
}

.fs-stat--orange { color: var(--accent); }
.fs-stat--green { color: var(--green); }
.fs-stat--red { color: var(--red); }
.fs-stat--ink { color: var(--ink); }

.fs-stat__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 图像容器占位 ---------- */
.fs-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0E2249, #1A3A66);
}

.fs-media--hero { aspect-ratio: 21 / 9; }
.fs-media--wide { aspect-ratio: 16 / 7; }
.fs-media--portrait { aspect-ratio: 4 / 5; }
.fs-media--square { aspect-ratio: 1 / 1; }

.fs-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 6px, transparent 6px 14px);
}

.fs-media::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fs-media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ---------- 目录卡片 ---------- */
.fs-toc {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 2.4vw, 24px);
}

.fs-toc__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 900;
}

.fs-toc__title::before {
  content: "";
  width: 18px;
  height: 4px;
  background: var(--accent);
}

.fs-toc__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: toc;
}

.fs-toc__item { border-top: 1px solid rgba(26, 26, 26, 0.14); }

.fs-toc__item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 2px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.fs-toc__item a::before {
  content: counter(toc, decimal-leading-zero);
  counter-increment: toc;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.fs-toc__item a:hover { color: var(--accent); }

/* ---------- 技能树路径 ---------- */
.fs-path {
  display: grid;
  gap: 14px;
  counter-reset: path;
}

.fs-path__step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 14px;
  align-items: center;
  background: var(--bg-card);
  color: var(--ink);
  --muted: #6B5D48;
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}

.fs-path__step::before {
  content: counter(path, decimal-leading-zero);
  counter-increment: path;
  grid-row: 1 / 3;
  align-self: center;
  padding-right: 12px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  border-right: 2px solid var(--accent-yellow);
}

.fs-path__title { font-weight: 800; font-size: 16px; }
.fs-path__desc { font-size: 14px; color: var(--muted); }

/* ---------- 跳过链接 ---------- */
.fs-skiplink {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.fs-skiplink:focus { top: 0; }

/* ---------- 头部（框架式导航） ---------- */
.fs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 16, 38, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-blue);
}

.fs-header__marker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px var(--space);
  background: #071126;
  border-bottom: 1px solid rgba(46, 74, 125, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--steel);
  white-space: nowrap;
}

.fs-header__marker::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.fs-header__edition { color: var(--accent-yellow); font-weight: 700; }

.fs-header__meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-header__region { margin-left: auto; color: var(--steel); }
.fs-header__region::before { content: "·"; margin-right: 12px; color: var(--nav-blue); }

.fs-header__bar { border-bottom: 1px solid rgba(46, 74, 125, 0.35); }

.fs-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  height: var(--header-h);
}

.fs-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-yellow));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- 品牌标识 ---------- */
.fs-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: inherit;
  text-decoration: none;
}

.fs-brand__text { display: block; min-width: 0; }

.fs-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 46%, var(--accent-yellow) 46%);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  border-radius: 3px 9px 3px 9px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.fs-brand__name {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--surface);
}

.fs-brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.2;
  color: var(--steel);
}

.fs-brand--footer .fs-brand__mark { box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4); }

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

.fs-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.fs-nav__list a {
  position: relative;
  display: block;
  padding: 10px 12px;
  color: rgba(237, 230, 216, 0.85);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.fs-nav__list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-yellow));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.16s ease;
}

.fs-nav__list a:hover { color: var(--accent-yellow); background: rgba(46, 74, 125, 0.3); }

.fs-nav__list a:hover::after,
.fs-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.fs-nav__list a[aria-current="page"] { color: var(--accent-yellow); }

/* ---------- 移动导航按钮 ---------- */
.fs-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  color: var(--surface);
}

.fs-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.fs-nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--accent-yellow);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.fs-nav-toggle__text { font-size: 11px; letter-spacing: 0.1em; line-height: 1; }

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

.fs-header__cta { flex: none; }

/* ---------- 页脚 ---------- */
.fs-footer {
  background: #050A14;
  color: #A9B5C3;
  font-size: 14px;
  line-height: 1.8;
}

.fs-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 40px, var(--accent-yellow) 40px 56px, var(--nav-blue) 56px 88px);
}

.fs-footer__inner {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--space);
}

.fs-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.2fr;
  gap: clamp(20px, 4vw, 48px);
  padding-block: 48px 32px;
}

.fs-footer__brand .fs-brand__name { color: var(--bg-card); }

.fs-footer__intro {
  margin-top: 14px;
  max-width: 52ch;
  color: #C6D0DB;
}

.fs-footer__trust {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 13px;
  color: var(--steel);
}

.fs-footer__heading {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--accent-yellow);
}

.fs-footer__col ul { margin: 0; padding: 0; }
.fs-footer__col li { margin-bottom: 8px; }

.fs-footer__contact li { display: flex; gap: 8px; }

.fs-footer__contact li::before {
  content: "";
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: 10px;
  background: var(--accent);
}

.fs-footer a { color: inherit; text-decoration: none; transition: color 0.15s ease; }

.fs-footer a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fs-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(138, 155, 171, 0.16);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--steel);
}

.fs-footer__copyright { margin: 0; }
.fs-footer__icp { margin: 0; letter-spacing: 0.05em; }

/* ---------- 返回顶部按钮 ---------- */
.fs-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 18px;
  border: 0;
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fs-top.is-visible { opacity: 1; pointer-events: auto; }
.fs-top:hover { transform: translateY(-2px); }
.fs-top:focus { opacity: 1; pointer-events: auto; }

/* ---------- 响应式调整 ---------- */
@media (max-width: 1080px) {
  .fs-nav__list a { padding: 10px 8px; font-size: 14px; }
}

@media (max-width: 880px) {
  .fs-header__marker { display: none; }
  .fs-nav-toggle { display: inline-flex; }

  .fs-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: rgba(7, 17, 38, 0.98);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .fs-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
  }

  .fs-nav__list a {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid rgba(46, 74, 125, 0.35);
  }

  .fs-nav__list a::after { display: none; }
  .fs-header__inner { gap: 8px; }
  .fs-header__cta { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 900px) {
  .fs-footer__grid {
    grid-template-columns: 1fr 1fr;
    padding-block: 36px 24px;
  }
}

@media (max-width: 560px) {
  :root { --header-h: 56px; }
  .fs-brand__tag { display: none; }

  .fs-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .fs-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 减少动效 ---------- */
@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;
  }
}
