/* 必一体育 LEAGUE BIYI — 共享核心样式 */
/* 数据竞技场双栏索引系统 */

:root {
  --navy: #0A1F3C;
  --navy-deep: #06132A;
  --red: #E53935;
  --red-dark: #B71C1C;
  --gold: #F5A623;
  --teal: #1B5E60;
  --wine: #7B1E3A;
  --warm-white: #F5F7FA;
  --graphite: #2C3E50;
  --sky: #4A90D9;
  --green: #27AE60;
  --border-light: rgba(10, 31, 60, 0.14);
  --border-navy: rgba(245, 246, 250, 0.18);
  --font-heading: "Noto Sans SC", sans-serif;
  --font-body: "Noto Serif SC", serif;
  --shell-gutter: clamp(20px, 4vw, 56px);
  --nav-width: 360px;
  --content-max: 1200px;
  --radius: 0px;
  --shadow-panel: 0 10px 30px rgba(6, 19, 42, 0.08);
  --red-glow: 0 0 0 1px rgba(229, 57, 53, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--warm-white);
  color: var(--graphite);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

button {
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

/* ---------- 布局骨架 ---------- */
.site-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}

.main-window {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

/* ---------- 左侧命令栏 ---------- */
.command-panel {
  background: var(--navy);
  color: var(--warm-white);
  border-right: none;
  position: relative;
  z-index: 100;
  clip-path: polygon(0 0, 100% 0, calc(100% - 0px) 100%, 0 100%);
}

.command-panel__inner {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
  min-height: 100%;
  border-right: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--border-navy);
}

.brand-svg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.7);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* 导航 */
.site-nav {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.site-nav__index {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: rgba(245, 247, 250, 0.4);
  margin: 20px 0 8px;
  text-transform: uppercase;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: rgba(245, 247, 250, 0.82);
  padding: 10px 12px;
  border-left: 3px solid transparent;
  transition: all 0.18s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link::before,
.nav-link::after {
  content: "";
  display: block;
  background: var(--gold);
  opacity: 0;
  width: 5px;
  height: 5px;
  transition: opacity 0.18s ease;
}

.nav-link::before {
  margin-right: 6px;
}

.nav-link::after {
  margin-left: 6px;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(245, 246, 250, 0.06);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  background: rgba(229, 57, 53, 0.15);
  border-left-color: var(--red);
  font-weight: 900;
}

.nav-link[aria-current="page"]::before,
.nav-link[aria-current="page"]::after {
  opacity: 1;
}

/* 状态轨道 */
.status-rail {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-navy);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-rail__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-rail__text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(245, 247, 250, 0.72);
}

.nav-quick {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.85);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(245, 246, 250, 0.2);
  width: 100%;
}

.nav-quick:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* 徽标 */
.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--navy);
  background: var(--gold);
  padding: 4px 8px;
  text-transform: uppercase;
}

.badge--live {
  background: var(--red);
  color: #fff;
}

/* 导航移动按钮 */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 246, 250, 0.3);
  color: var(--warm-white);
  font-family: var(--font-heading);
  padding: 10px 14px;
  margin: 12px 0;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.nav-toggle__line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.nav-toggle__line + .nav-toggle__line {
  margin-top: 4px;
}

.nav-toggle__label {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* ---------- 顶部进度条 ---------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  z-index: 2000;
  pointer-events: none;
}

.progress-track__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  transition: width 0.1s linear;
}

/* ---------- 头部移动快捷入口 ---------- */
.mobile-quickbar {
  display: none;
}

/* ---------- 通用按钮 ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--warm-white);
  color: var(--graphite);
  border: 1px solid var(--border-navy);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  line-height: 1;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

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

.btn-ghost:hover {
  background: var(--navy);
  color: var(--warm-white);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--graphite);
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 8px 0 24px;
  gap: 8px;
}

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

.breadcrumb li + li::before {
  content: "//";
  color: var(--red);
  font-weight: 900;
}

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

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

/* ---------- 页面主体与章节 ---------- */
.page-main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--shell-gutter) 80px;
}

.section-block {
  position: relative;
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
}

.section-block[data-section-theme="navy"] {
  background: var(--navy);
  color: var(--warm-white);
  padding: 56px var(--shell-gutter);
  margin: 24px calc(-1 * var(--shell-gutter));
  padding-left: calc(var(--shell-gutter) + 4px);
  border-left: 4px solid var(--red);
}

.section-block[data-section-theme="teal"] {
  background: var(--teal);
  color: var(--warm-white);
  padding: 56px var(--shell-gutter);
  margin: 24px calc(-1 * var(--shell-gutter));
}

.section-block[data-section-theme="wine"] {
  background: var(--wine);
  color: var(--warm-white);
  padding: 56px var(--shell-gutter);
  margin: 24px calc(-1 * var(--shell-gutter));
}

.section-block[data-section-theme="light"] {
  background: var(--warm-white);
}

.container-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-panel);
  position: relative;
}

.container-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
}

.container-panel--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-navy);
}

.page-heading-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.page-heading-section__index {
  font-family: var(--font-heading);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.3em;
}

.page-heading-section h1,
.page-heading-section h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0;
}

.page-kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 内容标题层级 ---------- */
h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin: 24px 0 16px;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

p {
  margin-bottom: 16px;
  max-width: 65ch;
}

/* ---------- 标签列表 ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tag-item {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border-navy);
  color: var(--navy);
  padding: 6px 12px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-radius: var(--radius);
}

.tag-item:hover {
  border-color: var(--red);
  color: var(--red);
}

.tag-item[data-active="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ---------- 数据卡片 ---------- */
.info-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--navy);
  padding: 22px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-panel);
  transform: translateX(4px);
  border-left-color: var(--red);
}

.info-card--compact {
  padding: 16px;
}

.info-card__title {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--navy);
  font-size: 1.05rem;
}

.info-card__meta {
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 6px;
}

/* ---------- 响应式图片容器 ---------- */
.responsive-image {
  position: relative;
  display: block;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  min-height: 220px;
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.responsive-image::before {
  content: "IMG";
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(6, 19, 42, 0.6);
  padding: 4px 8px;
  border-left: 2px solid var(--gold);
}

.responsive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.responsive-image:hover img {
  transform: scale(1.03);
}

/* ---------- 表格数据基础 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  background: transparent;
}

.data-table th {
  background: var(--navy);
  color: var(--warm-white);
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover td {
  background: rgba(229, 57, 53, 0.06);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 247, 250, 0.72);
  border-top: 2px solid var(--red);
  padding: 0;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--shell-gutter);
}

.footer-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 22px 0;
}

.footer-band + .footer-band {
  border-top: 1px solid var(--border-navy);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-brand__slogan {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(245, 247, 250, 0.6);
}

.footer-contact__item {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: rgba(245, 247, 250, 0.82);
}

.footer-contact__item a {
  color: var(--sky);
}

.footer-contact__item a:hover {
  color: var(--gold);
}

.footer-legal__copy,
.footer-legal__link,
.footer-legal__icp {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(245, 247, 250, 0.58);
}

.footer-legal__link {
  color: var(--sky);
}

.footer-legal__link:hover {
  color: var(--gold);
}

.footer-legal__icp {
  margin-left: auto;
  letter-spacing: 0.06em;
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(229, 57, 53, 0.6);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--red);
  color: #fff;
}

/* ---------- 网格 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

/* ---------- 分割线 ---------- */
.divider-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  margin: 40px 0;
}

/* ---------- 移动端主导航抽屉 ---------- */
@media (max-width: 992px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .command-panel {
    clip-path: none;
    background: var(--navy);
    border-bottom: 3px solid var(--red);
  }

  .command-panel__inner {
    min-height: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .brand-lockup {
    border-bottom: none;
    padding: 8px 0;
  }

  .nav-toggle {
    display: flex;
    width: auto;
    margin: 0;
    padding: 8px 14px;
  }

  .nav-toggle__label {
    order: 2;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 8px;
    order: 3;
  }

  .site-nav[data-open="true"] {
    display: flex;
    flex-direction: column;
  }

  .site-nav__index {
    margin-top: 8px;
  }

  .nav-link {
    padding: 14px 12px;
    border-left: 4px solid transparent;
    font-size: 1.1rem;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--red);
  }

  .status-rail {
    margin-top: 12px;
    padding-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .status-rail__item {
    flex: 1 1 40%;
  }

  .main-window {
    margin-left: 0;
  }

  .site-footer {
    border-left: none;
  }
}

@media (max-width: 600px) {
  .command-panel__inner {
    padding: 14px 16px;
  }

  .brand-svg {
    width: 40px;
    height: 40px;
  }

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

  .brand-slogan {
    font-size: 0.72rem;
  }

  .page-main {
    padding: 32px 16px 64px;
  }

  .nav-toggle__label {
    display: none;
  }

  .nav-toggle {
    width: 48px;
    padding: 12px;
    justify-content: center;
  }

  .section-block[data-section-theme="navy"],
  .section-block[data-section-theme="teal"],
  .section-block[data-section-theme="wine"] {
    margin: 16px -16px;
    padding: 40px 20px;
  }

  .footer-band {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal__icp {
    margin-left: 0;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .btn {
    width: 100%;
  }

  .container-panel {
    padding: 18px;
  }
}

/* ---------- 大屏巩固左右分栏 ---------- */
@media (min-width: 993px) {
  .site-shell {
    grid-template-columns: minmax(300px, 360px) 1fr;
  }

  .command-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
  }

  .main-window {
    margin-left: 0;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .back-to-top,
  .btn,
  .nav-link,
  .info-card {
    transition: none;
  }
}
