/* =========================================================
   YABO888赛事 · 共享站点样式 /assets/site.css
   高原竞技场坐标系统：锐利直角 · 精密网格 · 档案标签
   ========================================================= */

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

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

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

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

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

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%;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 珠宝色分区 */
  --c-teal: #1B5E7A;
  --c-teal-dark: #17506A;
  --c-deep: #0E3A4C;
  --c-deep-2: #0A2C3A;
  --c-mist: #F4F1EA;
  --c-paper: #FBFAF6;
  --c-ink: #1F2A30;
  --c-lava: #E85A2A;
  --c-lava-lite: #FF7A45;
  --c-grass: #4A9E5C;
  --c-sand: #D9A441;
  --c-line: #DCE7EA;
  --c-indigo: #23364A;

  /* 字体 */
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 尺度 */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 0px;
  --cut: 14px;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(16px, 0.6vw + 14px, 17.5px);
  line-height: 1.8;
  letter-spacing: 0.015em;
  color: var(--c-ink);
  background-color: var(--c-mist);
  background-image:
    repeating-linear-gradient(90deg, rgba(220, 231, 234, 0.55) 0 1px, transparent 1px 96px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.62rem); }
h4 { font-size: clamp(1.02rem, 1.2vw, 1.2rem); }

p { text-wrap: pretty; }

strong, b {
  font-weight: 800;
  color: var(--c-deep);
}

::selection {
  background: var(--c-lava);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--c-lava-lite);
  outline-offset: 3px;
}

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

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--c-lava);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: #fff;
  background: var(--c-deep);
  border-bottom: 1px solid rgba(220, 231, 234, 0.18);
}

/* 6.1 上层：品牌说明 */
.header-top {
  background: var(--c-deep);
  border-bottom: 1px solid rgba(220, 231, 234, 0.14);
}

.header-top-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background:
    linear-gradient(150deg, var(--c-mist) 0 16%, transparent 16%),
    linear-gradient(150deg, var(--c-sand) 0 44%, var(--c-lava) 44% 72%, var(--c-teal) 72%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand-tagline {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  line-height: 1.2;
  color: rgba(220, 231, 234, 0.78);
}

/* 6.2 快捷通道 */
.quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-link {
  display: inline-block;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  color: rgba(220, 231, 234, 0.86);
  border: 1px solid rgba(220, 231, 234, 0.26);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.quick-link:hover,
.quick-link:focus-visible {
  color: #fff;
  background: rgba(232, 90, 42, 0.2);
  border-color: var(--c-lava);
}

/* 6.3 下层：栏目导航 */
.header-bar {
  position: relative;
  background-image:
    repeating-linear-gradient(90deg, rgba(220, 231, 234, 0.08) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, var(--c-teal), var(--c-teal-dark));
}

.header-bar-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-main {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: rgba(244, 241, 234, 0.82);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 18px;
  background: var(--c-lava);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(14, 58, 76, 0.42);
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(14, 58, 76, 0.6);
}

.nav-link[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-block;
  padding: 11px 20px;
  background: var(--c-lava);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--c-lava-lite);
  transform: translateX(2px);
}

/* 6.4 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 14px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  border: 1px solid rgba(220, 231, 234, 0.4);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--c-lava-lite);
  background: rgba(232, 90, 42, 0.18);
}

.nav-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle-box::before { top: 0; }
.nav-toggle-box::after { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  display: inline-block;
}

/* 6.5 滚动进度刻度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
  background: rgba(14, 58, 76, 0.45);
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-lava), var(--c-sand));
  transition: width 0.12s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  color: rgba(220, 231, 234, 0.86);
  background-color: var(--c-deep);
  background-image:
    repeating-linear-gradient(90deg, rgba(220, 231, 234, 0.07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(220, 231, 234, 0.05) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, var(--c-deep) 0%, var(--c-deep-2) 72%);
  border-top: 4px solid var(--c-lava);
  padding-block: clamp(40px, 6vw, 76px) 26px;
  font-size: 14px;
  line-height: 1.75;
}

.footer-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr));
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid rgba(220, 231, 234, 0.18);
}

.footer-brand {
  min-width: 0;
}

.footer-brandline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-note {
  margin-top: 12px;
  max-width: 34ch;
  color: rgba(220, 231, 234, 0.7);
}

.footer-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 11px 20px;
  background: var(--c-lava);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background: var(--c-lava-lite);
  transform: translateY(-2px);
}

.footer-col {
  min-width: 0;
}

.footer-title {
  position: relative;
  margin-bottom: 16px;
  padding-left: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  line-height: 1.4;
  color: var(--c-sand);
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 13px;
  background: var(--c-lava);
  transform: translateY(-50%);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  color: rgba(220, 231, 234, 0.82);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  padding-left: 6px;
}

.footer-meta {
  display: grid;
  gap: 8px;
  padding-block: 22px;
  border-bottom: 1px solid rgba(220, 231, 234, 0.18);
}

.footer-contact-line {
  color: rgba(220, 231, 234, 0.9);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.footer-service {
  color: rgba(220, 231, 234, 0.6);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-top: 20px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(220, 231, 234, 0.62);
}

.footer-copy,
.footer-icp {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-legal-links a {
  color: rgba(220, 231, 234, 0.74);
  transition: color 0.16s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--c-lava-lite);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn-primary {
  background: var(--c-lava);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--c-lava-lite);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--c-teal);
  border-color: var(--c-teal);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: #fff;
  background: var(--c-teal);
}

/* ---------- 9. 标签与刻度标题 ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
  border: 1px solid currentColor;
  color: var(--c-teal);
}

.tag--lava { color: var(--c-lava); }
.tag--grass { color: var(--c-grass); }
.tag--sand { color: var(--c-sand); }

.tag--solid {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1.4;
  color: var(--c-lava);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-lava);
}

/* ---------- 10. 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}

.card--cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.card--indigo {
  background: var(--c-indigo);
  border-color: rgba(220, 231, 234, 0.22);
  color: var(--c-mist);
}

.card--indigo strong {
  color: #fff;
}

/* ---------- 11. 媒体容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--c-teal);
  background-image:
    repeating-linear-gradient(45deg, rgba(220, 231, 234, 0.16) 0 1px, transparent 1px 16px),
    linear-gradient(140deg, var(--c-teal) 0%, var(--c-deep) 62%, var(--c-indigo) 100%);
  border: 1px solid var(--c-line);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(232, 90, 42, 0.9) 0 3px, transparent 3px),
    linear-gradient(180deg, rgba(232, 90, 42, 0.9) 0 3px, transparent 3px);
  background-repeat: no-repeat;
  background-position: left bottom, left top;
}

.media-frame > img,
.media-frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--ratio { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--sq { aspect-ratio: 1 / 1; }

/* ---------- 12. 数字指标 ---------- */
.stat {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--c-teal);
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: rgba(31, 42, 48, 0.62);
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(31, 42, 48, 0.62);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--c-lava);
  opacity: 0.75;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-teal);
}

/* ---------- 14. 滚动显现 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 960px) {
  .header-bar-inner {
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 10px;
    min-height: 0;
  }

  .header-cta { order: 1; }
  .nav-toggle { order: 2; display: inline-flex; }

  .nav-main {
    order: 3;
    flex-basis: 100%;
    display: none;
    margin-top: 4px;
    border-top: 1px solid rgba(220, 231, 234, 0.22);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 15px 12px 15px 22px;
    border-bottom: 1px solid rgba(220, 231, 234, 0.14);
  }

  .nav-link::before { left: 0; }

  .nav-link[aria-current="page"] {
    background: rgba(232, 90, 42, 0.18);
    border-left: 0;
  }

  .nav-list li:last-child .nav-link {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .header-top-inner {
    min-height: 56px;
    gap: 12px;
    padding-block: 8px;
    flex-wrap: wrap;
  }

  .brand-name { font-size: 18px; }

  .quick-links {
    width: 100%;
    gap: 6px;
  }

  .quick-link {
    padding: 6px 10px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }

  .grid-2,
  .grid-3,
  .grid-auto {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-legal-links {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand-tagline {
    letter-spacing: 0.16em;
    font-size: 11px;
  }

  .header-cta {
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* ---------- 16. 减弱动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .nav-link:hover,
  .btn-primary:hover,
  .footer-cta:hover,
  .header-cta:hover,
  .footer-links a:hover {
    transform: none;
  }
}
