/* =========================================
   多宝体育 Site Kit 共享样式
   ========================================= */

:root {
  --cream: #F4EEDF;
  --ink: #1F1710;
  --rust: #D9531E;
  --navy: #0B2E4F;
  --gold: #C69A5A;
  --sand: #D6C9BC;
  --clay: #A4573A;
  --muted: #6A5C4F;
  --line: #B7A894;
  --ok: #2F855A;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --container: 1280px;

  --shadow-panel: 0 12px 32px rgba(31, 23, 16, 0.06);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
  padding-bottom: 24px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease-out;
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 4px 20px rgba(31, 23, 16, 0.03);
}

.site-header__bar {
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--ink);
}

.site-brand__logo {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--navy);
  border-radius: 12px;
  padding: 4px 10px;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-brand__slogan {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--rust);
  background: rgba(217, 83, 30, 0.08);
  border: 1px solid rgba(217, 83, 30, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.site-header__command {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* ---------- Navigation ---------- */

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease-out, background-color 0.2s ease-out;
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.site-nav__link:hover {
  color: var(--ink);
  background: var(--sand);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink);
  background: transparent;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--rust);
  border-radius: 2px;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 0;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}

.site-nav-toggle:hover {
  background: var(--ink);
}

.site-nav-toggle__label {
  line-height: 1.2;
}

.site-nav-toggle__icon {
  width: 16px;
  height: 12px;
  position: relative;
}

.site-nav-toggle__icon::before,
.site-nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s ease-out, top 0.25s ease-out;
}

.site-nav-toggle__icon::before {
  top: 0;
}

.site-nav-toggle__icon::after {
  bottom: 0;
}

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

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

/* ---------- Scroll progress ---------- */

.site-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 10;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  transition: width 0.1s linear;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--navy);
  color: var(--cream);
  padding: 56px 24px 28px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 20px,
    var(--rust) 20px 24px,
    transparent 24px 60px
  );
  opacity: 0.5;
}

.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.site-footer__logo {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.site-footer__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer__slogan {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}

.site-footer__trust {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 238, 223, 0.7);
  max-width: 360px;
}

.site-footer__list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 238, 223, 0.85);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease-out;
}

.site-footer__list a::before {
  content: "→";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.site-footer__list a:hover {
  color: var(--gold);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(244, 238, 223, 0.85);
}

.site-footer__contact p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__contact p::before {
  content: "●";
  font-size: 8px;
  color: var(--gold);
}

.site-footer__bottom {
  border-top: 1px solid rgba(244, 238, 223, 0.15);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(244, 238, 223, 0.6);
}

.site-footer__icp {
  font-family: var(--font-mono);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding: 24px 0 0;
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
  margin-right: 8px;
}

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--rust);
}

.breadcrumb__link[aria-current="page"] {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- Page title ---------- */

.page-title {
  padding: 48px 0 8px;
  max-width: 880px;
}

.page-title__index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 8px;
}

.page-title__main {
  font-size: clamp(2.75rem, 6vw, 5.75rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-title__lede {
  font-size: 18px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 640px;
}

/* ---------- Section ---------- */

.section {
  padding: 64px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section__index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 200;
  line-height: 1.15;
  margin-top: 4px;
}

.section__title strong {
  font-weight: 700;
  color: var(--navy);
}

.section__lede {
  color: var(--muted);
  margin-top: 8px;
  max-width: 560px;
}

.section__body {
  margin-top: 24px;
}

/* ---------- Panel ---------- */

.panel {
  background: #FCF9F1;
  border: 1px solid var(--sand);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-panel);
}

.panel--navy {
  background: var(--navy);
  color: var(--cream);
  border-color: transparent;
}

.panel--navy .panel__title {
  color: var(--cream);
}

/* ---------- Data card ---------- */

.data-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  justify-content: space-between;
}

.data-card--navy {
  background: var(--navy);
}

.data-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 238, 223, 0.6);
}

.data-card__value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  background: var(--rust);
  color: var(--cream);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s ease-out;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217, 83, 30, 0.24);
}

.btn--navy {
  background: var(--navy);
  color: var(--cream);
}

.btn--navy:hover {
  box-shadow: 0 10px 24px rgba(11, 46, 79, 0.32);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}

/* ---------- Details ---------- */

.details {
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  background: #FCF9F1;
  padding: 20px 24px;
}

.details summary {
  list-style: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.details summary::-webkit-details-marker {
  display: none;
}

.details summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--rust);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.details[open] summary::before {
  content: "–";
}

.details__body {
  padding: 16px 0 0 36px;
  color: var(--muted);
}

/* ---------- Grid ---------- */

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

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

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---------- Image slot ---------- */

.image-slot {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(11, 46, 79, 0.08), rgba(198, 154, 90, 0.12)),
    var(--sand);
  border: 1px dashed var(--line);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  overflow: hidden;
}

.image-slot::before {
  content: "IMG";
  opacity: 0.5;
}

.image-slot--ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.image-slot--ratio-4-3 {
  aspect-ratio: 4 / 3;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .site-header__command {
    display: none;
  }

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

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

  .site-nav {
    flex-basis: 100%;
    order: 99;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease-out);
  }

  .site-nav[data-open] {
    max-height: 480px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 16px;
  }

  .site-nav__link {
    display: flex;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
  }

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

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

@media (max-width: 720px) {
  .site-footer {
    padding: 40px 20px 24px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
