/* =========================================================
   押注正规电竞 — 共享站点样式 /assets/site.css
   深空舱底 · 切角面板 · 等宽数字 · 刊物式章节
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

img { height: auto; }

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

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

table { border-collapse: collapse; width: 100%; }

hr { border: 0; }

::selection {
  background: var(--violet);
  color: var(--paper-bright);
}

/* ---------- 2. 变量 ---------- */
:root {
  --void: #070C1C;
  --panel: #0E1730;
  --line: #17224A;
  --paper: #E9E4D6;
  --paper-bright: #FBF7EA;
  --violet: #7A5CFF;
  --cyan: #25E6D8;
  --orange: #FF7A1A;
  --muted: #9BA8C9;
  --green: #2FE08A;

  --bar-h: 62px;
  --rail-w: 88px;
  --cut: 14px;
  --measure: 34em;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--bar-h);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--paper-bright);
  font-stretch: 92%;
}

h1 { font-size: clamp(28px, 4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 20px; }

p { max-width: var(--measure); }

strong, b { font-weight: 800; color: var(--paper-bright); }

small { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

a { transition: color 0.16s var(--ease); }
a:hover { color: var(--cyan); }

/* 焦点反馈：任何状态下不可移除 */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

.ck-dl:focus-visible,
.ck-burger:focus-visible,
.ck-brand__mark:focus-visible,
.ck-foot__mark:focus-visible,
.ck-panel:focus-visible,
.ck-media:focus-visible,
.ck-btn:focus-visible,
.ck-tag:focus-visible {
  outline-offset: -4px;
}

/* ---------- 4. 通用容器与网格 ---------- */
.ck-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.ck-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.ck-col-3 { grid-column: span 3; }
.ck-col-4 { grid-column: span 4; }
.ck-col-6 { grid-column: span 6; }
.ck-col-8 { grid-column: span 8; }
.ck-col-12 { grid-column: span 12; }

/* ---------- 5. Skip link ---------- */
.ck-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--void);
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 68%, calc(100% - 9px) 100%, 0 100%);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.ck-skip:focus-visible {
  transform: translateY(0);
  color: var(--void);
  outline-offset: -4px;
}

/* ---------- 6. 页头 ---------- */
.ck-header {
  position: relative;
  z-index: 100;
}

/* 6.1 顶部快捷条 */
.ck-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  height: var(--bar-h);
  padding: 0 clamp(14px, 2.4vw, 32px);
  background: rgba(7, 12, 28, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.ck-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 0 1 auto;
  color: var(--paper);
}

.ck-brand:hover { color: var(--paper); }

.ck-brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--void);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.ck-brand__txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}

.ck-brand__name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--paper-bright);
  white-space: nowrap;
  max-width: none;
}

.ck-brand__sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  max-width: none;
}

.ck-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  min-width: 0;
}

/* 语言三段控件 */
.ck-lang {
  display: inline-flex;
  padding: 2px;
  gap: 1px;
  border: 1px solid var(--line);
  background: rgba(14, 23, 48, 0.82);
  clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 8px) 100%, 0 100%);
}

.ck-lang__opt {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.ck-lang__opt:hover { color: var(--paper-bright); }

.ck-lang__opt[aria-pressed="true"] {
  color: var(--void);
  background: var(--cyan);
  font-weight: 700;
}

.ck-lang__opt[aria-pressed="true"]:hover { color: var(--void); }

/* 橙色主行动 */
.ck-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #180900;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 64%, calc(100% - 11px) 100%, 0 100%);
  transition: background-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.ck-dl::after {
  content: "↧";
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1;
}

.ck-dl:hover {
  color: #180900;
  background: #FF9440;
  transform: translateY(-1px);
}

/* 状态点 */
.ck-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
  max-width: none;
}

.ck-live__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 224, 138, 0.16);
  animation: ck-pulse 2.4s ease-in-out infinite;
}

@keyframes ck-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* 抽屉按钮 */
.ck-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 2px;
  border: 1px solid var(--line);
  background: rgba(14, 23, 48, 0.72);
  clip-path: polygon(0 0, 100% 0, 100% 64%, 64% 100%, 0 100%);
  transition: border-color 0.16s var(--ease);
}

.ck-burger:hover { border-color: var(--cyan); }

.ck-burger__box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.ck-burger__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper-bright);
  transition: transform 0.22s var(--ease), opacity 0.16s var(--ease);
}

.ck-burger__bar:nth-child(1) { top: 0; }
.ck-burger__bar:nth-child(2) { top: 6px; }
.ck-burger__bar:nth-child(3) { top: 12px; }

.ck-burger[aria-expanded="true"] .ck-burger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ck-burger[aria-expanded="true"] .ck-burger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.ck-burger[aria-expanded="true"] .ck-burger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 阅读进度 */
.ck-progress {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 61;
  background: transparent;
  pointer-events: none;
}

.ck-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.08s linear;
}

/* 6.2 导航 —— 移动优先：全屏抽屉 */
.ck-nav {
  position: fixed;
  top: var(--bar-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 58;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(20px, 5vw, 36px) clamp(18px, 5vw, 40px) clamp(28px, 6vw, 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(7, 12, 28, 0.985);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -10px, 0);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0s linear 0.24s;
}

.ck-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0s;
}

.ck-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ck-nav__item { display: block; }

.ck-nav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.ck-nav__link:hover { color: var(--cyan); padding-left: 6px; }

.ck-nav__idx {
  flex: none;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.ck-nav__label {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.ck-nav__link[aria-current="page"] { color: var(--cyan); }

.ck-nav__link[aria-current="page"] .ck-nav__idx { color: var(--cyan); }

.ck-nav__link[aria-current="page"] .ck-nav__label::after {
  content: "当前";
  display: inline-block;
  margin-left: 10px;
  padding: 1px 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--void);
  background: var(--cyan);
  vertical-align: 3px;
  clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 6px) 100%, 0 100%);
}

.ck-nav__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

html.ck-nav-open { overflow: hidden; }

/* ---------- 7. 页脚 ---------- */
.ck-foot {
  position: relative;
  margin-top: clamp(48px, 9vw, 120px);
  padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 48px) 28px;
  background: linear-gradient(180deg, #0A1124 0%, var(--void) 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.ck-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--cyan) 70%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.ck-foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 46px);
  max-width: 1240px;
  margin-inline: auto;
}

.ck-foot__brand { min-width: 0; }

.ck-foot__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--void);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.ck-foot__tag {
  margin-top: 8px;
  max-width: 22em;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ck-foot__col { min-width: 0; }

.ck-foot__title {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--violet);
  text-transform: uppercase;
}

.ck-foot__list {
  display: grid;
  gap: 9px;
}

.ck-foot__link {
  display: inline-block;
  padding-left: 0;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.ck-foot__link:hover {
  color: var(--paper-bright);
  border-left-color: var(--cyan);
  padding-left: 9px;
}

.ck-foot__list--plain li {
  max-width: 30em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-word;
}

.ck-foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1240px;
  margin: clamp(32px, 5vw, 58px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ck-foot__legal,
.ck-foot__copy { max-width: none; }

.ck-foot__legal { color: var(--muted); }

/* ---------- 8. 章节组件 ---------- */
.ck-sec {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 42px);
}

.ck-sec__num {
  font-family: var(--f-mono);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: rgba(122, 92, 255, 0.42);
}

.ck-sec__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper-bright);
  font-stretch: 92%;
}

.ck-sec__lede {
  max-width: 30em;
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--paper-bright);
}

.ck-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  max-width: none;
}

.ck-kicker::before {
  content: "";
  flex: none;
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.ck-num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 9. 面板 / 媒体 / 标签 ---------- */
.ck-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.ck-panel::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 15px;
  height: 15px;
  background: linear-gradient(
    135deg,
    transparent 45.5%,
    var(--line) 45.5%,
    var(--line) 54.5%,
    transparent 54.5%
  );
  pointer-events: none;
}

.ck-panel:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.ck-panel:hover::before {
  background: linear-gradient(
    135deg,
    transparent 45.5%,
    var(--cyan) 45.5%,
    var(--cyan) 54.5%,
    transparent 54.5%
  );
}

.ck-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(150deg, #101B3A 0%, var(--void) 100%);
  border: 1px solid var(--line);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
}

.ck-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ck-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 12, 28, 0) 42%, rgba(7, 12, 28, 0.82) 100%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(37, 230, 216, 0.07) 38px 39px);
}

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

.ck-media--wide { aspect-ratio: 16 / 9; }
.ck-media--square { aspect-ratio: 1 / 1; }

.ck-media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: none;
}

.ck-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 7px) 100%, 0 100%);
}

.ck-tag--live {
  color: var(--green);
  border-color: rgba(47, 224, 138, 0.42);
}

.ck-tag--violet {
  color: var(--violet);
  border-color: rgba(122, 92, 255, 0.48);
}

/* ---------- 10. 按钮 ---------- */
.ck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--paper);
  border: 1px solid var(--line);
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% 66%, calc(100% - 11px) 100%, 0 100%);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.ck-btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.ck-btn--primary {
  color: #180900;
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 800;
}

.ck-btn--primary:hover {
  color: #180900;
  background: #FF9440;
  border-color: #FF9440;
  transform: translateY(-1px);
}

/* ---------- 11. 面包屑 / 分隔 / 轨迹 ---------- */
.ck-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  max-width: none;
}

.ck-crumbs__link { color: var(--muted); }
.ck-crumbs__link:hover { color: var(--cyan); }

.ck-crumbs__sep {
  font-family: var(--f-mono);
  color: var(--violet);
}

.ck-crumbs__now { color: var(--paper-bright); }

.ck-divider {
  position: relative;
  height: 1px;
  margin: clamp(40px, 6vw, 96px) 0;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.ck-divider::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.ck-tracks { position: relative; }

.ck-tracks::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 120px,
    rgba(122, 92, 255, 0.08) 120px 121px
  );
  animation: ck-drift 12s linear infinite;
}

@keyframes ck-drift {
  from { background-position: 0 0; }
  to { background-position: 242px 0; }
}

/* ---------- 12. 桌面端：左侧 88px 悬浮导轨 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .ck-burger { display: none; }

  .ck-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--rail-w);
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--bar-h) + 26px) 0 24px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border-top: 0;
    border-right: 1px solid transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  }

  .ck-nav[data-open="true"] { transition: background-color 0.2s var(--ease); }

  :root[data-scrolled="true"] .ck-nav {
    background: rgba(7, 12, 28, 0.94);
    border-right-color: var(--line);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .ck-nav__list {
    gap: 1px;
    padding: 0 7px;
  }

  .ck-nav__link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 2px;
    border-bottom: 0;
    border-left: 2px solid transparent;
    color: var(--muted);
    transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
      border-color 0.16s var(--ease);
  }

  .ck-nav__link:hover {
    color: var(--paper-bright);
    background: rgba(122, 92, 255, 0.1);
    border-left-color: var(--violet);
    padding-left: 2px;
  }

  .ck-nav__idx {
    font-size: 10px;
    letter-spacing: 0.06em;
    opacity: 0.72;
  }

  .ck-nav__label {
    font-family: var(--f-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-align: center;
    word-break: keep-all;
  }

  .ck-nav__link[aria-current="page"] {
    color: var(--paper-bright);
    font-weight: 700;
    background: rgba(37, 230, 216, 0.09);
    border-left-color: var(--cyan);
  }

  .ck-nav__link[aria-current="page"] .ck-nav__idx {
    color: var(--cyan);
    opacity: 1;
  }

  .ck-nav__link[aria-current="page"] .ck-nav__label::after { content: none; }

  .ck-nav__foot { display: none; }
}

/* ---------- 13. 断点微调 ---------- */
@media (max-width: 1199.98px) {
  .ck-bar .ck-live { display: none; }
}

@media (max-width: 1023.98px) {
  .ck-burger { display: inline-flex; }
  .ck-tools .ck-lang { display: none; }
}

@media (max-width: 899.98px) {
  .ck-col-3,
  .ck-col-4,
  .ck-col-6,
  .ck-col-8 { grid-column: span 12; }
}

@media (max-width: 639.98px) {
  .ck-brand__sub { display: none; }
  .ck-brand__name { font-size: 14px; }
  .ck-brand__mark { width: 32px; height: 32px; font-size: 16px; }
  .ck-dl { padding: 8px 13px; font-size: 13px; }
  .ck-nav__label { font-size: 18px; }
  .ck-foot__base { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 640px) {
  .ck-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-foot__brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .ck-foot__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  }
  .ck-foot__brand { grid-column: auto; }
}

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

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

  .ck-tracks::before { animation: none; }
  .ck-live__dot { animation: none; }
  .ck-panel:hover { transform: none; }
  .ck-media:hover img { transform: none; }
  .ck-dl:hover,
  .ck-btn:hover { transform: none; }
}
