/* ============================================================
   斗地主现金 · 全站共享样式表  /assets/site.css
   深墨绿牌桌底 + 筹码金强调 + 警示红状态
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --ink: #0B2B22;
  --ink-2: #123B2E;
  --felt: #1C5A43;
  --gold: #D4A94A;
  --brass: #E8C46A;
  --red: #C0392B;
  --cream: #F4F0E6;
  --rock: #8A8C86;
  --clay: #A65E44;
  --black: #101512;
  --teal: #3E7F6A;

  --rail: 236px;
  --shell: 1180px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", "Source Han Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --line-w: 2px;
  --shadow-hard: 6px 6px 0 rgba(6, 20, 15, 0.55);
  --shadow-mid: 4px 4px 0 rgba(6, 20, 15, 0.45);
  --shadow-lift: 0 16px 38px rgba(0, 0, 0, 0.42);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(0deg, rgba(244, 240, 230, 0.024) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(244, 240, 230, 0.024) 0 1px, transparent 1px 4px);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

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

button { font: inherit; }

a { color: var(--brass); }

ul, ol { margin: 0; }

#main-content { display: block; min-width: 0; }

/* ---------- 3. 基础排版 ---------- */
h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--cream);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

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

/* ---------- 4. 焦点可见 ---------- */
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/* ============================================================
   5. 页头 —— 框架式导航（桌面纵向轨道 / 移动粘性顶栏）
   ============================================================ */
.sk-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
}

/* 滚动进度条 */
.sk-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(212, 169, 74, 0.16);
  z-index: 95;
  pointer-events: none;
}
.sk-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--brass));
  transition: width 0.12s linear;
}

/* 跳转链接 */
.sk-skip {
  position: absolute;
  left: 14px;
  top: -120px;
  z-index: 130;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--black);
  transition: top 0.18s var(--ease);
}
.sk-skip:focus { top: 12px; }

/* 品牌 + 汉堡 */
.sk-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: var(--ink-2);
  border-bottom: 1px solid rgba(212, 169, 74, 0.24);
}

.sk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--cream);
}
.sk-brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--brass);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  font-size: 17px;
  line-height: 1;
}
.sk-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sk-brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.sk-brand__sub {
  display: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--rock);
  white-space: nowrap;
}

.sk-burger {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 13px;
  background: transparent;
  color: var(--brass);
  border: 2px solid var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.sk-burger:hover { background: var(--gold); color: var(--ink); }
.sk-burger__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}
.sk-burger__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.sk-burger[aria-expanded="true"] .sk-burger__bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.sk-burger[aria-expanded="true"] .sk-burger__bar:nth-child(2) { opacity: 0; }
.sk-burger[aria-expanded="true"] .sk-burger__bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航（移动端抽屉） */
.sk-nav {
  display: none;
  background: var(--ink-2);
  border-top: 1px solid rgba(212, 169, 74, 0.2);
}
.sk-nav[data-open] { display: block; }

.sk-nav__caption {
  margin: 0;
  padding: 14px 18px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--rock);
  text-transform: uppercase;
}

.sk-nav__list { list-style: none; padding: 0; }

.sk-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid rgba(212, 169, 74, 0.16);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}
.sk-nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--rock);
}
.sk-nav__link:hover {
  background: rgba(28, 90, 67, 0.7);
  color: var(--brass);
  box-shadow: inset 4px 0 0 0 rgba(212, 169, 74, 0.65);
}
.sk-nav__link[aria-current="page"] {
  background: var(--felt);
  color: var(--brass);
  box-shadow: inset 4px 0 0 0 var(--gold);
}
.sk-nav__link[aria-current="page"] .sk-nav__idx { color: var(--gold); }

.sk-nav__foot { padding: 16px 18px 20px; }
.sk-nav__foot .sk-btn { width: 100%; justify-content: center; }

.sk-header__spine { display: none; }

/* ============================================================
   6. 页脚
   ============================================================ */
.sk-footer {
  margin-top: auto;
  background: var(--ink);
  border-top: 3px solid var(--gold);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(212, 169, 74, 0.045) 0 2px,
    transparent 2px 10px
  );
}
.sk-footer__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 20px 28px;
}
.sk-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(212, 169, 74, 0.3);
}
.sk-footer__brand {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--cream);
}
.sk-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--gold);
  color: var(--brass);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.sk-footer__back:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-mid);
}

.sk-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.sk-footer__col { min-width: 0; }
.sk-footer__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.sk-footer__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 15px;
}
.sk-footer__list a {
  color: #CFC9BB;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.sk-footer__list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.sk-footer__list--plain li {
  color: #CFC9BB;
  font-size: 14.5px;
  word-break: break-word;
}
.sk-footer__text {
  margin: 0;
  font-size: 14.5px;
  color: #CFC9BB;
}
.sk-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 169, 74, 0.18);
  font-size: 13px;
  color: var(--rock);
}
.sk-footer__base p { margin: 0; }

/* ============================================================
   7. 通用组件
   ============================================================ */
.sk-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}
.sk-section { padding-block: 48px; }

.sk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}
.sk-kicker::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.sk-h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 7.4vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.sk-h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.sk-h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sk-lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.8;
  color: #D8D2C4;
  margin: 0 0 22px;
}

.sk-prose { max-width: 72ch; }
.sk-prose p { margin: 0 0 1.15em; }
.sk-prose h3 { margin-top: 1.6em; }

.sk-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(18, 59, 46, 0.85);
  border-left: 3px solid rgba(212, 169, 74, 0.5);
  font-size: 15px;
  color: #CFC9BB;
}
.sk-aside {
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--clay);
  font-size: 15px;
  color: #CFC9BB;
}

.sk-hr {
  height: 2px;
  border: 0;
  margin: 32px 0;
  background: rgba(212, 169, 74, 0.28);
}

.sk-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.sk-tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(212, 169, 74, 0.5);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.sk-tag--clay { border-color: rgba(166, 94, 68, 0.75); color: #D79A80; }
.sk-tag--live { border-color: rgba(192, 57, 43, 0.75); color: #E48076; }

/* 按钮族 */
.sk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--brass);
  border: 2px solid var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease),
    transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.sk-btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-mid);
}
.sk-btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--brass);
  box-shadow: 5px 5px 0 rgba(6, 20, 15, 0.5);
}
.sk-btn--gold:hover {
  background: var(--brass);
  color: var(--ink);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(6, 20, 15, 0.5);
}
.sk-btn--ghost {
  border-color: rgba(212, 169, 74, 0.45);
  color: #CFC9BB;
}
.sk-btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 169, 74, 0.12);
  color: var(--brass);
  box-shadow: none;
  transform: translate(1px, 1px);
}

/* 面包屑 */
.sk-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--rock);
}
.sk-crumbs li::after {
  content: "/";
  margin-left: 8px;
  color: rgba(138, 140, 134, 0.6);
}
.sk-crumbs li:last-child::after { content: ""; }
.sk-crumbs a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s var(--ease);
}
.sk-crumbs a:hover { border-bottom-color: var(--gold); }

/* 网格与卡片 */
.sk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.sk-card {
  position: relative;
  padding: 22px 20px;
  background: var(--felt);
  border: var(--line-w) solid rgba(212, 169, 74, 0.38);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.sk-card:hover {
  border-color: var(--gold);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(6, 20, 15, 0.55);
}
.sk-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}
.sk-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brass);
}

/* 图片容器（页面阶段填入 <img>） */
.sk-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(244, 240, 230, 0.05) 0 2px, transparent 2px 9px),
    var(--ink-2);
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-hard);
}
.sk-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sk-figure--16x9 { aspect-ratio: 16 / 9; }
.sk-figure--4x3 { aspect-ratio: 4 / 3; }
.sk-figure--square { aspect-ratio: 1 / 1; }
.sk-figure__cap {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--rock);
}

/* 技能树式路径 */
.sk-path {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.sk-path__item {
  position: relative;
  margin-left: 15px;
  padding: 0 0 26px 46px;
  border-left: 2px solid rgba(212, 169, 74, 0.35);
}
.sk-path__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.sk-path__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -16px;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border: 2px solid var(--gold);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.sk-path__title {
  margin: 4px 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}
.sk-path__text {
  margin: 0;
  font-size: 15px;
  color: #CFC9BB;
}

/* ============================================================
   8. 响应式
   ============================================================ */
@media (min-width: 640px) {
  .sk-header__top { padding: 12px 24px; }
  .sk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
  .sk-shell { padding-inline: 28px; }
  .sk-section { padding-block: 60px; }
  .sk-grid { gap: 22px; }
}

@media (min-width: 720px) {
  .sk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sk-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  body { padding-left: var(--rail); }

  .sk-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 3px solid var(--gold);
    z-index: 88;
  }

  .sk-header__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 18px 18px;
    background: transparent;
    border-bottom: 2px solid rgba(212, 169, 74, 0.3);
  }
  .sk-brand__mark { width: 38px; height: 38px; font-size: 19px; }
  .sk-brand__sub { display: block; }
  .sk-burger { display: none; }

  .sk-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
    background: transparent;
    border-top: 0;
  }
  .sk-nav__caption { padding: 10px 18px 12px; }
  .sk-nav__link {
    padding: 10px 18px;
    font-size: 15px;
    border-top: 1px solid rgba(212, 169, 74, 0.12);
  }
  .sk-nav__foot {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid rgba(212, 169, 74, 0.2);
  }

  .sk-header__spine {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-self: flex-start;
    margin: 0 0 18px 20px;
    height: 118px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--rock);
  }

  .sk-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .sk-footer__inner { padding: 52px 32px 32px; }
}

@media (min-width: 1050px) {
  .sk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .sk-section { padding-block: 76px; }
}

/* ---------- 9. 减少动态效果 ---------- */
@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;
  }
  .sk-btn:hover,
  .sk-card:hover,
  .sk-footer__back:hover { transform: none; }
}
