/* ==========================================================================
   云开赛场 · 共享样式表 (/assets/site.css)
   丹霞赭红 × 沙金 × 深青绿 × 信号黄绿
   ========================================================================== */

/* ---------- 0. 变量 ---------- */
:root {
  --ink: #17110E;
  --paper: #F6F1E7;
  --danxia: #B23B2C;
  --danxia-soft: #E8C4B4;
  --gold: #DFA63C;
  --pine: #0B3B33;
  --grass: #1E6B58;
  --signal: #C9F24B;
  --sand: #8C8177;
  --mist: #D7E5DE;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;

  --shell: 1280px;
  --gutter: 24px;
  --bar-h: 72px;
  --rule: 2px;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

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

button {
  font: inherit;
  color: inherit;
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  box-shadow: 0 0 0 1px var(--ink);
}

/* ---------- 2. 排版工具 ---------- */
.yk-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.yk-headline {
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.yk-prose {
  max-width: 42em;
  font-size: 16px;
  line-height: 1.7;
}

.yk-prose p { margin: 0 0 1.1em; }

.yk-note {
  font-size: 13px;
  line-height: 1.54;
  color: var(--sand);
}

.yk-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--danxia);
  margin: 0 0 12px;
}

/* ---------- 3. 布局骨架 ---------- */
.yk-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.yk-main { display: block; }

.yk-grid {
  display: grid;
  gap: 24px;
}

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

.yk-rule {
  border: 0;
  border-top: var(--rule) solid var(--ink);
  margin: 0;
}

.yk-rule--sand { border-top-color: var(--sand); border-top-width: 1px; }

/* ---------- 4. 按钮与标签 ---------- */
.yk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  border: var(--rule) solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease-out, box-shadow .18s ease-out,
              background-color .18s ease-out, color .18s ease-out,
              border-color .18s ease-out;
}

.yk-btn--solid {
  background: var(--danxia);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}

.yk-btn--solid:hover {
  background: var(--danxia);
  box-shadow: 6px 6px 0 var(--gold);
  transform: translate(-2px, -2px);
}

.yk-btn--ghost:hover {
  background: var(--danxia-soft);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.yk-btn--signal {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.yk-btn--signal:hover {
  box-shadow: 6px 6px 0 var(--grass);
  transform: translate(-2px, -2px);
}

.yk-btn:active { transform: translate(1px, 1px); box-shadow: none; }

.yk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  border: var(--rule) solid var(--ink);
  background: var(--danxia-soft);
  color: var(--ink);
}

.yk-tag--gold { background: var(--gold); font-weight: 800; }
.yk-tag--pine { background: var(--pine); color: var(--paper); }
.yk-tag--mist { background: var(--mist); }

.yk-dot {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--grass);
  border: var(--rule) solid var(--ink);
}

.yk-dot--live { background: var(--signal); }
.yk-dot--gold { background: var(--gold); }
.yk-dot--danxia { background: var(--danxia); }

/* ---------- 5. 图片容器（页面阶段使用） ---------- */
.yk-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--mist);
  border: var(--rule) solid var(--ink);
  box-shadow: 6px 6px 0 var(--danxia);
}

.yk-figure > img,
.yk-figure > .yk-figure__ph {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--yk-ratio, 4 / 3);
  object-fit: cover;
}

.yk-figure__ph {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(11, 59, 51, .10) 0 8px, transparent 8px 16px),
    linear-gradient(140deg, var(--danxia-soft), var(--mist));
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.yk-figure--wide { --yk-ratio: 16 / 9; }
.yk-figure--tall { --yk-ratio: 3 / 4; }
.yk-figure--square { --yk-ratio: 1 / 1; }
.yk-figure--pine { box-shadow: 6px 6px 0 var(--pine); }
.yk-figure--gold { box-shadow: 6px 6px 0 var(--gold); }

/* ==========================================================================
   6. 头部
   ========================================================================== */
.yk-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: var(--paper);
  background: var(--yk-header-bg, rgba(11, 59, 51, .9));
  border-bottom: 3px solid var(--ink);
  transition: background-color .24s ease-out, box-shadow .24s ease-out;
}

.yk-header[data-scrolled="true"] {
  --yk-header-bg: var(--pine);
  box-shadow: 0 8px 0 rgba(23, 17, 14, .18);
}

.yk-skip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 90;
  transform: translateY(-140%);
  padding: 12px 20px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
  border: var(--rule) solid var(--ink);
  transition: transform .16s ease-out;
}

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

/* 品牌行 */
.yk-header__bar { border-bottom: 1px solid rgba(246, 241, 231, .16); }

.yk-header__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: var(--bar-h);
}

.yk-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-width: 0;
}

.yk-brand__glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  background: var(--danxia);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  border: var(--rule) solid var(--ink);
  box-shadow: 3px 3px 0 var(--gold);
}

.yk-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.yk-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.yk-brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--danxia-soft);
  white-space: nowrap;
  max-height: 20px;
  transition: opacity .2s ease-out, max-height .2s ease-out;
}

.yk-header[data-scrolled="true"] .yk-brand__sub {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.yk-header[data-scrolled="true"] .yk-brand__name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
}

/* 主导航 */
.yk-nav { min-width: 0; }

.yk-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yk-nav__list li { margin: 0; }

.yk-nav__list a {
  display: block;
  padding: 8px 11px;
  font-size: 14px;
  color: var(--paper);
  border: var(--rule) solid transparent;
  transition: border-color .18s ease-out, background-color .18s ease-out,
              color .18s ease-out, box-shadow .18s ease-out;
}

.yk-nav__list a:hover {
  border-color: var(--signal);
  background: rgba(201, 242, 75, .14);
  color: var(--paper);
}

.yk-nav__list a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* 工具区 */
.yk-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yk-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--paper);
  border: var(--rule) solid rgba(246, 241, 231, .34);
  transition: border-color .18s ease-out, color .18s ease-out, background-color .18s ease-out;
}

.yk-quick:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(201, 242, 75, .10);
}

.yk-quick__dot {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--signal);
  box-shadow: 0 0 0 2px rgba(201, 242, 75, .28);
}

.yk-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--paper);
  background: var(--danxia);
  border: var(--rule) solid var(--ink);
  box-shadow: 3px 3px 0 var(--gold);
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.yk-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--signal);
}

.yk-cta:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 var(--gold);
}

/* 移动端菜单按钮 */
.yk-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  color: var(--paper);
  border: var(--rule) solid rgba(246, 241, 231, .34);
  cursor: pointer;
  transition: border-color .18s ease-out, color .18s ease-out;
}

.yk-nav-toggle:hover { border-color: var(--signal); color: var(--signal); }

.yk-nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
}

.yk-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color .16s ease-out;
}

.yk-nav-toggle__bars::before,
.yk-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .16s ease-out, top .16s ease-out;
}

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

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

/* 轮次轴 */
.yk-rounds {
  background: rgba(23, 17, 14, .18);
  border-top: 1px solid rgba(246, 241, 231, .14);
}

.yk-rounds__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
}

.yk-rounds__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--signal);
}

.yk-rounds__track {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  overscroll-behavior-x: contain;
}

.yk-rounds__track::-webkit-scrollbar { height: 4px; }
.yk-rounds__track::-webkit-scrollbar-track { background: rgba(246, 241, 231, .12); }
.yk-rounds__track::-webkit-scrollbar-thumb { background: var(--gold); }

.yk-round {
  flex: none;
  min-width: 40px;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--paper);
  background: transparent;
  border: var(--rule) solid rgba(246, 241, 231, .24);
  cursor: pointer;
  transition: border-color .16s ease-out, color .16s ease-out,
              background-color .16s ease-out, box-shadow .16s ease-out;
}

.yk-round:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.yk-round[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--signal);
}

/* 面包屑条 */
.yk-crumb-bar {
  background: var(--pine);
  border-top: 1px solid rgba(246, 241, 231, .12);
}

.yk-crumb-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.yk-crumb { min-width: 0; }

.yk-crumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.yk-crumb__list li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--sand);
}

.yk-crumb__list a {
  color: var(--danxia-soft);
  border-bottom: 1px solid transparent;
  transition: color .16s ease-out, border-color .16s ease-out;
}

.yk-crumb__list a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.yk-crumb__list li[aria-current="page"] {
  color: var(--paper);
  font-weight: 800;
}

.yk-back {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--paper);
  border: var(--rule) solid rgba(246, 241, 231, .30);
  transition: border-color .16s ease-out, color .16s ease-out, background-color .16s ease-out;
}

.yk-back:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(201, 242, 75, .10);
}

/* 滚动进度 */
.yk-progress {
  position: absolute;
  left: 0;
  bottom: -3px;
  display: block;
  width: 0;
  height: 3px;
  background: var(--signal);
  pointer-events: none;
}

/* ==========================================================================
   7. 页脚
   ========================================================================== */
.yk-footer {
  margin-top: 96px;
  background: var(--pine);
  color: var(--paper);
  border-top: 4px solid var(--ink);
}

.yk-footer__band {
  background: var(--gold);
  color: var(--ink);
  border-bottom: var(--rule) solid var(--ink);
}

.yk-footer__band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.yk-footer__batch,
.yk-footer__rhythm { margin: 0; }

.yk-footer__code {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-weight: 800;
  background: var(--ink);
  color: var(--gold);
}

.yk-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr 1fr;
  gap: 36px 28px;
  padding-block: 56px 48px;
}

.yk-footer__brand { min-width: 0; }

.yk-brand--footer { margin-bottom: 16px; }

.yk-footer__note {
  margin: 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(246, 241, 231, .68);
}

.yk-footer__note--sm { margin-top: 14px; }

.yk-footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--gold);
}

.yk-footer__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yk-footer__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .16s ease-out, border-color .16s ease-out;
}

.yk-footer__list a:hover {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.yk-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yk-contact__item {
  display: grid;
  gap: 3px;
}

.yk-contact__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--sand);
}

.yk-contact__val {
  font-size: 14px;
  line-height: 1.55;
  color: var(--paper);
  word-break: break-word;
}

.yk-footer__legal {
  border-top: 1px solid rgba(246, 241, 231, .18);
}

.yk-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding-block: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(246, 241, 231, .72);
}

.yk-footer__icp,
.yk-footer__copy { margin: 0; }

.yk-top {
  margin-left: auto;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--paper);
  background: transparent;
  border: var(--rule) solid rgba(246, 241, 231, .30);
  cursor: pointer;
  transition: border-color .16s ease-out, color .16s ease-out, background-color .16s ease-out;
}

.yk-top:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(201, 242, 75, .10);
}

/* ==========================================================================
   8. 进入视口（JS 加类后才生效）
   ========================================================================== */
[data-reveal].yk-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease-out, transform .28s ease-out;
}

[data-reveal].yk-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   9. 响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .yk-nav__list a {
    padding: 8px 8px;
    font-size: 13px;
  }
  .yk-quick__text { display: none; }
  .yk-quick { padding: 8px 10px; }
}

@media (max-width: 1080px) {
  :root { --bar-h: 62px; }

  .yk-header__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .yk-brand { grid-area: 1 / 1 / 2 / 2; }

  .yk-nav-toggle {
    display: inline-flex;
    grid-area: 1 / 2 / 2 / 3;
  }

  .yk-tools { display: none; }

  .yk-nav {
    grid-area: 2 / 1 / 3 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
  }

  .yk-nav[data-open="true"] {
    max-height: min(560px, 72vh);
    overflow-y: auto;
  }

  .yk-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
  }

  .yk-nav__list li { width: 100%; }

  .yk-nav__list a {
    padding: 13px 4px;
    font-size: 16px;
    border: 0;
    border-bottom: 1px solid rgba(246, 241, 231, .14);
  }

  .yk-nav__list a:hover { background: rgba(201, 242, 75, .12); }

  .yk-nav__list a[aria-current="page"] {
    background: transparent;
    color: var(--signal);
    box-shadow: none;
    border-bottom-color: var(--signal);
  }

  .yk-rounds__inner { gap: 8px; padding-block: 7px; }
  .yk-crumb-bar__inner { min-height: 36px; }
}

@media (max-width: 1024px) {
  .yk-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    padding-block: 44px 40px;
  }
  .yk-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }

  body { font-size: 15px; }

  .yk-footer { margin-top: 64px; }

  .yk-footer__band-inner { font-size: 11px; }

  .yk-crumb__list,
  .yk-back,
  .yk-footer__legal-inner { font-size: 11px; }

  .yk-back { padding: 4px 8px; }

  .yk-top { margin-left: 0; }
}

@media (max-width: 640px) {
  .yk-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 36px 32px;
  }

  .yk-brand__sub { font-size: 10px; letter-spacing: .05em; }
}

@media (max-width: 420px) {
  .yk-brand__sub { display: none; }
  .yk-nav-toggle__label { display: none; }
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal].yk-reveal {
    opacity: 1;
    transform: none;
  }
}
