/* ==========================================================================
   LOVEBET赛场 · 全站共享样式 /assets/site.css
   分层结构：纸底 → 色块 → 超大文字 → 图像裁切 → 索引标签
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --cream: #F3EBDD;
  --ink: #171310;
  --red: #E12B23;
  --yellow: #F2C230;
  --green: #123B32;
  --blue: #14263F;
  --kraft: #C8B9A3;
  --brown: #75685A;
  --warm: #FFFDF7;
  --orange: #FF6B35;

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --shell: 1320px;
  --gutter: 24px;
  --radius: 2px;
  --line: 2px solid var(--ink);
  --ease: 190ms cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p { margin: 0 0 1em; }

ul,
ol { margin: 0; padding-left: 1.2em; }

a { color: inherit; }

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(48px, 9vw, 132px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -0.01em; }

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

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 120;
  display: inline-block;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: top var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 5. 阅读进度 ---------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  pointer-events: none;
  background: transparent;
}

.progress-track__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 55%, var(--yellow) 100%);
  transition: width 90ms linear;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--cream);
  border-bottom: var(--line);
}

.header-strip {
  background: var(--ink);
  color: var(--cream);
}

.header-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding-block: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .09em;
  line-height: 1.5;
}

.header-strip__batch,
.header-strip__meta { margin: 0; }

.header-strip__batch::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--red);
  border: 1px solid var(--yellow);
  vertical-align: 1px;
}

.header-strip__meta { color: var(--kraft); }

.header-bar {
  position: relative;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(200, 185, 163, .18) 0,
    rgba(200, 185, 163, .18) 1px,
    transparent 1px,
    transparent 5px
  );
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 13px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}

.brand__card {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 34px;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 3px;
  transform: rotate(-6deg);
  box-shadow: 5px 5px 0 0 var(--yellow), 5px 5px 0 2px var(--ink);
  transition: transform var(--ease), box-shadow var(--ease);
}

.brand:hover .brand__card,
.brand:focus-visible .brand__card {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 7px 7px 0 0 var(--yellow), 7px 7px 0 2px var(--ink);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.brand__accent {
  margin-left: 4px;
  color: var(--red);
}

/* 命令栏导航 */
.command-nav {
  flex: 1 1 auto;
  min-width: 0;
}

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

.command-nav__item { margin: 0; }

.command-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.command-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--brown);
  transition: color var(--ease);
}

.command-nav__label { display: inline-block; }

.command-nav__link:hover {
  background: var(--yellow);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.command-nav__link:hover .command-nav__index { color: var(--ink); }

.command-nav__link[aria-current="page"] {
  background: var(--red);
  border-color: var(--ink);
  color: var(--yellow);
}

.command-nav__link[aria-current="page"] .command-nav__index { color: var(--yellow); }

.command-nav__cta { display: none; }

/* 动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}

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

.btn--red:hover,
.btn--red:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

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

.btn--yellow:hover,
.btn--yellow:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--yellow);
}

/* ---------- 8. 移动菜单按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.nav-toggle:hover { background: var(--red); border-color: var(--red); }

.nav-toggle[aria-expanded="true"] {
  background: var(--yellow);
  border-color: var(--ink);
  color: var(--ink);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

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

.nav-toggle__text { line-height: 1; }

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--cream);
}

.footer-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 44px,
    var(--yellow) 44px 88px,
    var(--kraft) 88px 132px
  );
}

.site-footer::after {
  content: "LOVEBET";
  position: absolute;
  right: -0.05em;
  bottom: -0.3em;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(90px, 17vw, 230px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(243, 235, 221, .055);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: 0 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(38px, 6vw, 64px) 36px;
}

.footer-brand__tag {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--yellow);
}

.footer-brand__tag::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--red);
  vertical-align: 1px;
}

.footer-brand__line {
  margin: 0 0 18px;
  max-width: 22em;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--warm);
}

.footer-brand__contact {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  letter-spacing: .04em;
  color: rgba(243, 235, 221, .74);
  word-break: break-word;
}

.footer-brand__note {
  margin: 0;
  font-size: 13px;
  color: var(--kraft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 38px);
}

.footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(200, 185, 163, .32);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.4;
  color: var(--yellow);
}

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

.footer-link {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 2px solid transparent;
  color: rgba(243, 235, 221, .86);
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease), transform var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
  transform: translateX(3px);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 2px solid rgba(200, 185, 163, .28);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  line-height: 1.7;
  color: rgba(243, 235, 221, .62);
}

.footer-legal__meta { margin: 0; }

/* ---------- 10. 页面通用骨架 ---------- */
.section { padding-block: clamp(44px, 6.5vw, 92px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  line-height: 1.6;
  color: var(--red);
}

.page-title { font-size: clamp(44px, 8vw, 104px); }

.lead {
  max-width: 720px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.85;
  color: var(--brown);
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.85;
}

.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.4em 0 .5em; font-size: clamp(26px, 3vw, 36px); }
.prose h3 { margin: 1.2em 0 .4em; }
.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--brown);
}

.breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--kraft);
  transition: border-color var(--ease), color var(--ease);
}

.breadcrumbs a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.breadcrumbs__sep { color: var(--kraft); }

/* ---------- 11. 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--warm);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--kraft);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--yellow);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 1.6;
}

.tag--yellow { background: var(--yellow); }
.tag--red { background: var(--red); color: var(--warm); }

/* ---------- 12. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--green);
}

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

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

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

.media--night { background: var(--blue); }
.media--paper { background: var(--kraft); }
.media--red { background: var(--red); }

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  background: rgba(23, 19, 16, .82);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
}

/* ---------- 13. 进入动画（配合 data-reveal） ---------- */
[data-reveal] {
  transition: opacity 420ms ease, transform 420ms ease;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }

  .header-actions .btn--ghost { display: none; }

  .command-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 16px var(--gutter) 22px;
    background: var(--cream);
    border-bottom: var(--line);
    box-shadow: 0 16px 0 rgba(23, 19, 16, .08);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .command-nav[data-open] {
    display: block;
    animation: nav-drop 180ms ease-out;
  }

  .command-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .command-nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    border-bottom: 2px solid var(--kraft);
    font-size: 16px;
  }

  .command-nav__link:hover,
  .command-nav__link[aria-current="page"] { transform: none; }

  .command-nav__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }
}

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .grid--7-5,
  .grid--5-7,
  .grid--4-8 { grid-template-columns: minmax(0, 1fr); }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

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

  .header-bar__inner { gap: 12px; padding-block: 11px; }

  .brand__text { font-size: 18px; }

  .brand__card { width: 22px; height: 29px; box-shadow: 4px 4px 0 0 var(--yellow), 4px 4px 0 2px var(--ink); }

  .header-actions .btn--red { padding: 9px 12px; font-size: 13px; }
}

@media (max-width: 620px) {
  .header-strip__meta { display: none; }

  .header-strip__inner { justify-content: flex-start; font-size: 11px; letter-spacing: .06em; }

  .header-actions .btn--red { display: none; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .brand__text { font-size: 16px; }
}

/* ---------- 15. 减弱动态效果 ---------- */
@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;
  }

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

  .brand:hover .brand__card,
  .brand:focus-visible .brand__card,
  .command-nav__link:hover,
  .btn:hover,
  .btn:focus-visible,
  .card:hover,
  .media:hover img,
  .footer-link:hover,
  .footer-link:focus-visible { transform: none; }
}
