/* 德信体育共享样式 /assets/site.css */

:root {
  --color-navy: #0A1F44;
  --color-orange: #FF6B35;
  --color-white: #FFFFFF;
  --color-gray-light: #F5F7FA;
  --color-gray: #333333;
  --color-gray-mid: #666666;
  --color-blue-soft: #E8F1FF;
  --color-orange-soft: #FFE8DE;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", "Roboto Mono", "Liberation Mono", Menlo, Consolas, monospace;
  --radius-card: 1.5rem;
  --radius-pill: 999px;
  --shadow-card: 0 10px 30px rgba(10, 31, 68, 0.08);
  --header-z: 1000;
}

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

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-gray);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
}

.site-main {
  min-height: 60vh;
}

#main-content {
  outline: none;
  scroll-margin-top: 1.5rem;
}

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

a {
  color: var(--color-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-orange);
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  color: var(--color-navy);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

::selection {
  background: var(--color-orange);
  color: var(--color-white);
}

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

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

.container {
  max-width: 75rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4rem;
}

.section--alt {
  background: var(--color-gray-light);
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
  background: var(--color-navy);
  color: var(--color-white);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18rem;
  height: 100%;
  background: rgba(255, 255, 255, 0.035);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 20% 100%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange), #FFB199, transparent);
  pointer-events: none;
}

.header-primary {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.skip-link {
  position: absolute;
  left: -200%;
  top: 0;
  z-index: 200;
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.75rem 0;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  color: var(--color-white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-white);
}

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

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50% 50% 0 50%;
  background: var(--color-orange);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  transform: rotate(-10deg);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.25);
  flex-shrink: 0;
}

.brand--invert:hover {
  color: var(--color-white);
}

.brand-mark--invert {
  background: var(--color-white);
  color: var(--color-navy);
  transform: rotate(10deg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 0.75rem;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  margin: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--color-white);
  border-bottom-color: var(--color-orange);
  background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.18));
}

.header-legacy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--color-orange-soft), #FFD9C9);
  color: var(--color-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.legacy-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
  flex-shrink: 0;
}

.legacy-text {
  opacity: 0.85;
}

.legacy-link {
  margin-left: auto;
  color: var(--color-navy);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--color-orange);
  white-space: nowrap;
}

.legacy-link:hover {
  color: var(--color-white);
  background: var(--color-navy);
}

/* 页脚 */

.site-footer {
  position: relative;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4rem;
  overflow: hidden;
}

.site-footer::before {
  content: "德信体育";
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem 2rem;
}

.footer-brandblock .brand {
  margin-bottom: 1rem;
}

.footer-trust {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-white);
  max-width: 28rem;
}

.footer-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 24rem;
}

.footer-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin: 0 0 0.85rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
  color: var(--color-white);
  padding-left: 0.2rem;
  border-bottom: 1px solid var(--color-orange);
}

.footer-contact {
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.2rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
}

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

.footer-icp {
  letter-spacing: 0.04em;
}

/* 通用按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover {
  background: #F4551F;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 107, 53, 0.32);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 6px 16px rgba(10, 31, 68, 0.12);
}

.btn-light:hover {
  background: var(--color-blue-soft);
  color: var(--color-navy);
  transform: translateY(-2px);
}

/* 标题和文本 */

.eyebrow {
  display: inline-block;
  letter-spacing: 0.14em;
  font-weight: 900;
  color: var(--color-orange);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.section-heading {
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--color-gray-mid);
  max-width: 42rem;
  font-size: 1.05rem;
}

.prose {
  max-width: 46rem;
  color: var(--color-gray);
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.75rem;
}

.prose p {
  margin: 1rem 0;
}

/* 页面 Hero */

.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -3rem;
  right: -4rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.16);
}

.page-hero__title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.page-hero__intro {
  color: rgba(255, 255, 255, 0.8);
  max-width: 40rem;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  min-width: 7.5rem;
}

.hero-stat__num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-orange);
  font-variant-numeric: tabular-nums;
}

.hero-stat__label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.35rem;
  margin: 0 0 2rem;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--color-gray-mid);
}

.breadcrumb a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-gray-mid);
  font-weight: 700;
}

/* 卡片与网格 */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--color-white);
  border: 1px solid #ECEEF2;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 16px 32px rgba(10, 31, 68, 0.12);
}

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card--link:hover {
  color: inherit;
}

.card--link:hover .card__title {
  color: var(--color-orange);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--color-orange-soft);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--color-gray-mid);
  font-size: 0.95rem;
  margin: 0;
}

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

.stat-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid #ECEEF2;
  border-radius: 1.25rem;
  padding: 1.25rem;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  bottom: -1.25rem;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--color-orange-soft);
  opacity: 0.6;
  pointer-events: none;
}

.stat-card__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--color-gray-mid);
  font-weight: 700;
  margin-top: 0.35rem;
}

/* 标签与状态 */

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-blue-soft);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.tag--orange {
  background: var(--color-orange-soft);
  color: var(--color-orange);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-blue-soft);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

/* 表格 */

.table-wrap {
  overflow-x: auto;
  background: var(--color-white);
  border: 1px solid #ECEEF2;
  border-radius: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ECEEF2;
}

.data-table th {
  background: var(--color-blue-soft);
  color: var(--color-navy);
  font-weight: 900;
  font-size: 0.85rem;
  white-space: nowrap;
}

.data-table td {
  font-variant-numeric: tabular-nums;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

/* 提示 */

.notice {
  background: var(--color-orange-soft);
  border-left: 4px solid var(--color-orange);
  border-radius: 0 1rem 1rem 0;
  padding: 1rem 1.25rem;
  color: var(--color-gray);
  font-weight: 700;
}

/* 目录跟随 */

.page-toc {
  position: sticky;
  top: 1.5rem;
  border-left: 3px solid var(--color-orange);
  background: var(--color-gray-light);
  border-radius: 0 1.25rem 1.25rem 0;
  padding: 1.25rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.toc-link {
  display: block;
  text-decoration: none;
  color: var(--color-gray-mid);
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.toc-link:hover {
  color: var(--color-navy);
  background: var(--color-white);
}

.toc-link[aria-current="location"] {
  color: var(--color-white);
  background: var(--color-navy);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: 2.5rem;
  align-items: start;
}

.content-grid__aside {
  position: sticky;
  top: 1.5rem;
}

.content-grid__body {
  min-width: 0;
}

/* 图片容器 */

.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--color-blue-soft), var(--color-orange-soft));
  aspect-ratio: 16 / 9;
}

.figure--card {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
}

.figure__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* 滚动进度与返回顶部 */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-orange), #FFB199);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.4);
  pointer-events: none;
  z-index: 1200;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 1rem;
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  z-index: 900;
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--color-orange);
}

/* 响应式 */

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-grid__aside {
    position: static;
    top: auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--color-navy);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-list {
    flex-direction: column;
  }

  .nav-link {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--color-orange);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.2), transparent);
  }

  .header-legacy {
    flex-wrap: wrap;
  }

  .legacy-link {
    margin-left: 0;
  }

  .footer-map {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .card-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .header-shell {
    padding-inline: 1rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .header-legacy {
    font-size: 0.82rem;
  }

  .legacy-text {
    display: none;
  }

  .footer-top {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .to-top {
    transition: none;
  }

  .nav-toggle-line,
  .card,
  .btn {
    transition: none;
  }
}
