/* ==========================================================
   LM体育·官方 全站共享样式 /assets/site.css
   ========================================================== */

/* ---------- 1. Reset 与变量 ---------- */
:root {
  --primary-deep-green: #0B3D2E;
  --secondary-gold: #D4AF37;
  --accent-brick-red: #7B3F00;
  --off-white: #F5F0E8;
  --pure-white: #FFFFFF;
  --neutral-gray: #8A8A8A;
  --dark-text: #1A1A1A;
  --light-green-tint: #E0EDE6;
  --gold-tint: #F5EBC4;
  --deep-black: #0A0A0A;
  --heading-font: 'Archivo Black', 'Noto Sans SC', sans-serif;
  --body-font: 'Inter', 'Noto Sans SC', sans-serif;
  --data-font: 'JetBrains Mono', 'Courier New', monospace;
  --accent-font: 'Noto Serif SC', 'Songti SC', serif;
  --container-width: 1200px;
  --header-height: 88px;
  --transition-speed: 0.3s;
}

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

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

body {
  font-family: var(--body-font);
  background-color: var(--off-white);
  color: var(--dark-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: var(--primary-deep-green);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

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

ul, ol {
  list-style: none;
}

a {
  color: var(--primary-deep-green);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

button {
  font-family: var(--body-font);
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
}

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid var(--secondary-gold);
}

::selection {
  background: var(--secondary-gold);
  color: var(--primary-deep-green);
}

/* ---------- 2. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary-gold), var(--accent-brick-red));
  z-index: 1000;
  transition: width 0.12s linear;
}

/* ---------- 3. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--secondary-gold);
  color: var(--primary-deep-green);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
  font-size: 0.9rem;
}

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

/* ---------- 4. 容器与主内容 ---------- */
.container {
  width: min(100% - 48px, var(--container-width));
  margin-inline: auto;
}

.main-content {
  flex: 1;
  outline: none;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  background: var(--primary-deep-green);
  border-bottom: 1px solid var(--secondary-gold);
  position: relative;
  z-index: 500;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 88px;
  height: 4px;
  background: linear-gradient(135deg, var(--secondary-gold) 50%, transparent 50%);
  z-index: 501;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  flex-shrink: 0;
}

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

.brand__name {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--secondary-gold);
  line-height: 1.15;
  text-transform: uppercase;
  transition: color var(--transition-speed) ease;
}

.brand__tag {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: rgba(212, 175, 55, 0.6);
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 28px);
}

.nav__link {
  display: inline-block;
  padding: 10px 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--off-white);
  letter-spacing: 0.06em;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-speed) ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  background: var(--secondary-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.nav__link:hover {
  color: var(--secondary-gold);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--secondary-gold);
}

/* ---------- 6. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--secondary-gold);
  border-radius: 2px;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.28);
}

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

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

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

/* ---------- 7. 页脚 ---------- */
.site-footer {
  background: var(--primary-deep-green);
  color: var(--off-white);
  border-top: 3px solid var(--secondary-gold);
  margin-top: auto;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent 40%, var(--accent-brick-red) 40%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__name {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: var(--secondary-gold);
  letter-spacing: 0.04em;
  display: inline-block;
  transition: color var(--transition-speed) ease;
}

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

.footer__slogan {
  font-family: var(--accent-font);
  font-size: 0.92rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.6;
  max-width: 30ch;
}

.footer__heading {
  font-family: var(--heading-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: inline-block;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  color: rgba(245, 240, 232, 0.85);
  font-size: 0.92rem;
  position: relative;
  display: inline-block;
  padding-left: 14px;
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer__link::before {
  content: '\203A';
  position: absolute;
  left: 0;
  color: var(--secondary-gold);
  font-weight: 700;
}

.footer__link:hover {
  color: var(--secondary-gold);
  padding-left: 18px;
}

.footer__contact-item {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.85);
  line-height: 1.55;
  margin-bottom: 6px;
}

.footer__contact-note {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.55);
  margin-top: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
}

.footer__copyright,
.footer__icp {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.04em;
}

/* ---------- 8. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid transparent;
  border-radius: 2px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--gold {
  background: var(--secondary-gold);
  color: var(--primary-deep-green);
  border-color: var(--secondary-gold);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn--gold:hover {
  background: var(--accent-brick-red);
  color: var(--off-white);
  border-color: var(--accent-brick-red);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-deep-green);
  border-color: var(--primary-deep-green);
  border-radius: 2px;
}

.btn--ghost:hover {
  background: var(--primary-deep-green);
  color: var(--secondary-gold);
}

/* ---------- 9. 章节块与标签 ---------- */
.section-block {
  padding: 72px 0;
  position: relative;
}

.section-block--green {
  background: var(--light-green-tint);
}

.section-block--gold {
  background: var(--gold-tint);
}

.section-block--dark {
  background: var(--deep-black);
  color: var(--off-white);
}

.section-block--dark h1,
.section-block--dark h2,
.section-block--dark h3,
.section-block--dark .section-number {
  color: var(--secondary-gold);
}

.section-label {
  display: inline-flex;
  align-items: stretch;
  background: var(--primary-deep-green);
  color: var(--secondary-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

.section-label::before {
  content: attr(data-index);
  background: var(--accent-brick-red);
  color: var(--pure-white);
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--data-font);
  font-size: 0.78rem;
  margin-right: 14px;
}

.section-label__text {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px 10px 0;
}

.section-number {
  font-family: var(--data-font);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--primary-deep-green);
  opacity: 0.08;
  line-height: 1;
  user-select: none;
  letter-spacing: -0.04em;
  display: block;
}

/* ---------- 10. 数据卡片 ---------- */
.data-card {
  background: var(--pure-white);
  border: 1px solid var(--primary-deep-green);
  padding: 28px;
  border-radius: 2px;
  position: relative;
  box-shadow: 4px 4px 0 rgba(11, 61, 46, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 rgba(11, 61, 46, 0.12);
}

.data-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--secondary-gold);
}

.data-card__tag {
  display: inline-block;
  background: var(--gold-tint);
  color: var(--primary-deep-green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.data-card__title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-deep-green);
  margin-bottom: 8px;
  line-height: 1.4;
}

.data-card__desc {
  font-size: 0.88rem;
  color: var(--neutral-gray);
  line-height: 1.65;
}

.data-text {
  font-family: var(--data-font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-brick-red);
  letter-spacing: -0.02em;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--light-green-tint);
}

.breadcrumb__item {
  color: var(--neutral-gray);
}

.breadcrumb__item--current {
  color: var(--primary-deep-green);
  font-weight: 600;
}

.breadcrumb__separator {
  color: var(--secondary-gold);
  font-weight: 700;
}

/* ---------- 12. 分隔线 / 装饰 ---------- */
.divider-gold {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-gold) 0%, var(--secondary-gold) 84px, transparent 84px);
  margin: 40px 0;
}

.diagonal-cut {
  position: absolute;
  width: 120px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-brick-red) 55%, transparent 55%);
}

/* ---------- 13. 图片容器基础 ---------- */
.img-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--primary-deep-green);
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame--wide {
  aspect-ratio: 21 / 9;
}

.img-frame--portrait {
  aspect-ratio: 3 / 4;
}

.img-frame::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.65);
  background:
    repeating-linear-gradient(135deg, transparent 0px, transparent 12px, rgba(212, 175, 55, 0.06) 12px, rgba(212, 175, 55, 0.06) 24px),
    var(--primary-deep-green);
  text-align: center;
  padding: 0 20px;
  z-index: 1;
}

.img-frame--subject {
  border: 1px solid var(--secondary-gold);
}

/* ---------- 14. 注释 ---------- */
.footnote {
  font-size: 0.78rem;
  color: var(--neutral-gray);
  line-height: 1.6;
  margin-top: 8px;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 72px;
  }

  .nav__list {
    gap: 12px;
  }

  .nav__link {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--container-width));
  }

  .header__inner {
    min-height: 64px;
    height: auto;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-deep-green);
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid var(--secondary-gold);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav[data-open] {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    padding: 16px;
  }

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

  .nav__item {
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  }

  .nav__item:last-child {
    border-bottom: none;
  }

  .nav__link {
    display: block;
    padding: 14px 8px;
    font-size: 0.95rem;
    color: var(--off-white);
  }

  .nav__link::after {
    left: 8px;
    bottom: 8px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }

  .section-block {
    padding: 48px 0;
  }
}

@media (max-width: 480px) {
  .brand__name {
    font-size: 1.1rem;
  }

  .brand__tag {
    font-size: 0.6rem;
    letter-spacing: 0.24em;
  }

  .btn {
    width: 100%;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ---------- 16. 打印 ---------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-progress,
  .nav-toggle,
  .skip-link {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .section-block {
    padding: 24px 0;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
