/* ============================================================
   /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 { margin: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --mist: #DCE7EC;
  --paper: #F7F2E8;
  --ink: #14262D;
  --deep: #1F3A44;
  --orange: #E86A2C;
  --orange-deep: #B84A16;
  --duobao: #C63B33;
  --amber: #E9A23B;
  --rock: #6E7B80;
  --moss: #748C6A;
  --moss-deep: #4E6546;
  --table: #EBF0F3;
  --clay: #B9785A;

  --shell: 1280px;
  --gutter: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --hair: rgba(31, 58, 68, 0.16);
  --hair-soft: rgba(31, 58, 68, 0.09);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-break: normal;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

p { max-width: 68ch; }
p + p { margin-top: 0.9em; }

#main-content { scroll-margin-top: 24px; }

/* ---------- 4. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 5. 容器与网格 ---------- */
.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.page-shell {
  padding-block: 32px 72px;
}

.section {
  padding-block: 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
}

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.9;
  color: var(--deep);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--hair);
}

/* ---------- 6. 基础组件 ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(31, 58, 68, 0.08);
  color: var(--deep);
  white-space: nowrap;
}

.tag--accent { background: rgba(232, 106, 44, 0.15); color: var(--orange-deep); }
.tag--amber { background: rgba(233, 162, 59, 0.26); color: var(--ink); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--table);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 14px;
  color: var(--deep);
  background: rgba(31, 58, 68, 0.06);
}

.data-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--hair-soft);
  color: var(--ink);
}

.data-table tr[data-highlight] td { background: rgba(233, 162, 59, 0.26); }

/* 图片占位容器基础规则 */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, var(--mist) 0%, var(--table) 58%, var(--paper) 100%);
  border: 1px solid var(--hair-soft);
  isolation: isolate;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(31, 58, 68, 0.07) 0 1px,
    transparent 1px 14px
  );
}

.img-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--16x9 { aspect-ratio: 16 / 9; }
.img-frame--4x3 { aspect-ratio: 4 / 3; }
.img-frame--1x1 { aspect-ratio: 1 / 1; }
.img-frame--3x4 { aspect-ratio: 3 / 4; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.12s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--orange); color: #FFFFFF; }
.btn--accent:hover { background: var(--orange-deep); }

.btn--ghost {
  background: transparent;
  color: var(--deep);
  border-color: var(--hair);
}

.btn--ghost:hover { background: rgba(31, 58, 68, 0.07); color: var(--ink); }

.btn--sm {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { padding-block: 18px 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--rock);
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(110, 123, 128, 0.6);
}

.breadcrumb-link { color: var(--rock); transition: color 0.2s var(--ease); }
.breadcrumb-link:hover { color: var(--orange-deep); }
.breadcrumb-current { color: var(--deep); font-weight: 600; }

/* ============================================================
   9. 页头
   ============================================================ */
.site-header {
  position: relative;
  z-index: 70;
}

/* 9.1 坐标刻度条 */
.header-coord {
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.coord-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
  padding-block: 4px;
}

.coord-id {
  flex: none;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.coord-ticks {
  flex: 1 1 auto;
  min-width: 32px;
  height: 10px;
  border-bottom: 1px solid rgba(220, 231, 236, 0.28);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(220, 231, 236, 0.5) 0 1px,
    transparent 1px 14px
  );
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: auto 6px;
}

.coord-label {
  flex: none;
  color: rgba(220, 231, 236, 0.72);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* 9.2 主横栏 */
.header-bar {
  position: relative;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding-block: 12px;
}

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

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(20, 38, 45, 0.14);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 6px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--paper) 0 2px,
    transparent 2px 5px
  );
  opacity: 0.95;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand-suffix {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  color: var(--orange-deep);
  border: 1px solid rgba(184, 74, 22, 0.42);
  border-radius: 4px;
  padding: 0 4px;
}

.brand-tagline {
  max-width: 11em;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--hair);
  font-size: 12px;
  line-height: 1.5;
  color: var(--rock);
}

/* 9.4 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(20, 38, 45, 0.05);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

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

.nav-toggle-box span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { bottom: 0; }

.nav-toggle[aria-expanded="true"],
.nav-toggle[data-open] {
  background: var(--deep);
  color: var(--paper);
  border-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1),
.nav-toggle[data-open] .nav-toggle-box span:nth-child(1) {
  transform: translateY(5.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2),
.nav-toggle[data-open] .nav-toggle-box span:nth-child(2) {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* 9.5 主导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: navitem;
}

.nav-item { counter-increment: navitem; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--deep);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link::before {
  content: counter(navitem, decimal-leading-zero);
  margin-right: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--rock);
  opacity: 0.8;
}

.nav-link:hover {
  background: rgba(31, 58, 68, 0.07);
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  color: var(--orange-deep);
  background: rgba(233, 162, 59, 0.2);
}

.nav-link[aria-current="page"]::before {
  color: var(--orange-deep);
  opacity: 1;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.nav-cta {
  flex: none;
  margin-left: 12px;
}

/* 9.6 滚动进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--orange), var(--amber) 55%, var(--duobao));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* 9.7 移动端拇指栏 */
.thumb-nav { display: none; }

/* ============================================================
   10. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--hair);
  color: var(--deep);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 380px;
  height: 380px;
  border-radius: 52% 48% 38% 62% / 44% 56% 44% 56%;
  background: radial-gradient(circle at 40% 40%, rgba(116, 140, 106, 0.3), rgba(116, 140, 106, 0) 68%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -110px;
  width: 300px;
  height: 300px;
  border-radius: 60% 40% 55% 45% / 50% 45% 55% 50%;
  background: radial-gradient(circle at 50% 50%, rgba(185, 120, 90, 0.24), rgba(185, 120, 90, 0) 70%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(130px, 0.85fr));
  gap: 40px 28px;
  padding-block: 56px 40px;
}

.footer-brand { max-width: 34ch; }

.brand--footer { margin-bottom: 2px; }

.footer-brandline {
  margin-top: 16px;
  max-width: 22ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-service {
  margin-top: 10px;
  max-width: 30ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--rock);
}

.footer-coltitle {
  position: relative;
  margin-bottom: 14px;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rock);
}

.footer-coltitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
  color: var(--deep);
  transition: color 0.2s var(--ease);
}

.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--orange);
  transition: width 0.2s var(--ease), margin-right 0.2s var(--ease);
}

.footer-link:hover { color: var(--orange-deep); }

.footer-link:hover::before {
  width: 10px;
  margin-right: 6px;
}

.footer-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding-block: 18px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--deep);
}

.footer-contact-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rock);
}

.footer-mail,
.footer-tel {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.footer-tel { font-variant-numeric: tabular-nums; }

.footer-addr {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--rock);
}

.footer-bar {
  position: relative;
  z-index: 1;
  background: var(--deep);
  color: rgba(220, 231, 236, 0.86);
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.footer-copy { color: rgba(220, 231, 236, 0.72); }

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(220, 231, 236, 0.62);
}

.footer-icp::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
}

/* ============================================================
   11. 滚动显现协议
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.48s var(--ease),
    translate 0.48s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal][data-revealed] {
  opacity: 1;
  translate: 0 0;
}

/* ============================================================
   12. 响应式
   ============================================================ */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }
}

@media (max-width: 1020px) {
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .nav-link::before { margin-right: 5px; }
  .footer-top {
    grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(120px, 1fr));
    gap: 32px 22px;
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-left: 0;
    padding: 14px 20px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    box-shadow: 0 24px 44px rgba(20, 38, 45, 0.16);
  }

  .primary-nav[data-open] { display: flex; }

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

  .nav-link {
    padding: 13px 12px;
    border-radius: 10px;
    font-size: 16px;
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    min-height: 46px;
    font-size: 16px;
  }

  .thumb-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: block;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 242, 232, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--hair);
    box-shadow: 0 -10px 30px rgba(20, 38, 45, 0.08);
  }

  .thumb-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }

  .thumb-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 2px;
    border-radius: 10px;
    color: var(--rock);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
  }

  .thumb-index {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    opacity: 0.8;
  }

  .thumb-label {
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  .thumb-link[aria-current="page"] {
    color: var(--orange-deep);
    background: rgba(233, 162, 59, 0.18);
  }

  .thumb-link[aria-current="page"] .thumb-index { opacity: 1; }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    padding-block: 44px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-brandline { max-width: 26ch; }
  .footer-service { max-width: 34ch; }

  .footer-bar { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 620px) {
  .coord-label { display: none; }
  .coord-inner { gap: 10px; }
  .section { padding-block: 40px; }
  .page-shell { padding-block: 24px 56px; }
  .panel { padding: 20px; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { font-size: 12px; gap: 6px 18px; }
  .footer-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================================================
   13. Reduced Motion
   ============================================================ */
@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;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
  }

  .scroll-progress { transition: none; }
}
