/* ===== 江南体育 Site Kit 共享样式 ===== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-snow-white);
  color: var(--c-black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-black);
}

a {
  color: var(--c-highland-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

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

/* ----- CSS 变量 ----- */
:root {
  --c-highland-blue: #1B3A6B;
  --c-snow-white: #F8FAFC;
  --c-orange: #FF6B35;
  --c-deep-teal: #0F4C5C;
  --c-indigo: #3F2E56;
  --c-wine: #722F37;
  --c-light-gray: #F0F0F0;
  --c-sand: #D4A574;
  --c-black: #0A0A0A;
  --c-green: #2C6E49;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", "SimSun", Georgia, serif;
  --font-mono: "Fira Mono", "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  --content-max: 1400px;
  --header-top-h: 84px;
  --radius: 2px;
}

/* ----- 布局容器 ----- */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 2rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

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

.section {
  padding: 3rem 0;
}

.section-tight {
  padding: 1.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--c-black);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 4px;
  background: var(--c-orange);
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.divider {
  border: none;
  border-top: 1px solid var(--c-light-gray);
  margin: 2rem 0;
}

/* ----- 滚动进度条 ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 10000;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-orange), var(--c-sand));
}

/* ----- 跳转链接 ----- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--c-orange);
  color: var(--c-black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s ease;
}

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

/* ----- 头部 ----- */
.site-header {
  position: relative;
  background:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, 0.025) 18px 36px),
    linear-gradient(135deg, var(--c-highland-blue) 0%, var(--c-deep-teal) 100%);
  border-top: 4px solid var(--c-orange);
  box-shadow: 0 2px 12px rgba(10, 10, 10, 0.12);
  z-index: 1000;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(135deg, rgba(212, 165, 116, 0.55) 0 8px, transparent 8px 16px);
  pointer-events: none;
}

.header-shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 2rem;
  position: relative;
}

.header-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-top-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-snow-white);
  transition: opacity 0.2s ease;
}

.brand:hover {
  color: var(--c-snow-white);
  opacity: 0.85;
}

.brand-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--c-orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  line-height: 1;
}

.brand-suffix {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.75);
  letter-spacing: 0.06em;
}

.header-readout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.35rem 0.85rem;
  color: var(--c-snow-white);
  white-space: nowrap;
}

.readout-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.readout-label {
  color: var(--c-sand);
  letter-spacing: 0.05em;
}

.readout-value {
  color: var(--c-orange);
  font-weight: 700;
}

.readout-divider {
  opacity: 0.35;
  color: var(--c-snow-white);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.45rem 0.75rem;
  color: var(--c-snow-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 107, 53, 0.18);
  border-color: var(--c-orange);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--c-snow-white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) 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(-5px) rotate(-45deg);
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.9rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--c-snow-white);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-orange);
  background: rgba(255, 107, 53, 0.1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-orange);
  background: rgba(255, 107, 53, 0.12);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ----- 页脚 ----- */
.site-footer {
  position: relative;
  background:
    linear-gradient(165deg, var(--c-deep-teal) 0%, var(--c-highland-blue) 55%, #0a1a2e 100%);
  color: var(--c-snow-white);
  margin-top: 3rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-orange);
}

.footer-shell {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 3.5rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
}

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

.footer-brand:hover {
  color: var(--c-orange);
}

.footer-brand .brand-icon {
  width: 12px;
  height: 12px;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
}

.footer-statement {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 0.75rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-sand);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 6px rgba(44, 110, 73, 0.6);
}

.footer-col h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--c-sand);
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.85);
  padding: 0.2rem 0;
}

.footer-list a {
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
  color: var(--c-orange);
  padding-left: 0.25rem;
}

.footer-contact-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(248, 250, 252, 0.75);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.6);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--c-orange);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.5);
}

/* ----- 按钮 ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-black);
}

.btn-primary:hover {
  background: transparent;
  color: var(--c-orange);
}

.btn-outline {
  background: transparent;
  border-color: var(--c-highland-blue);
  color: var(--c-highland-blue);
}

.btn-outline:hover {
  background: var(--c-highland-blue);
  border-color: var(--c-highland-blue);
  color: var(--c-snow-white);
}

/* ----- 面包屑 ----- */
.breadcrumbs {
  padding: 0.9rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  display: inline-block;
  margin: 0 0.6rem;
  color: var(--c-sand);
}

.breadcrumbs a {
  color: var(--c-highland-blue);
  text-decoration: none;
}

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

.breadcrumbs [aria-current="page"] {
  color: var(--c-black);
  font-weight: 700;
}

/* ----- 卡片 ----- */
.card {
  background: var(--c-snow-white);
  border: 1px solid var(--c-light-gray);
  border-top: 3px solid var(--c-highland-blue);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(10, 10, 10, 0.1);
  transform: translateY(-2px);
}

.card-accent {
  border-top-color: var(--c-orange);
}

/* ----- 标签 ----- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--c-light-gray);
  background: var(--c-snow-white);
  color: var(--c-black);
  border-radius: var(--radius);
}

.badge-live {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-black);
}

.badge-warn {
  background: var(--c-wine);
  border-color: var(--c-wine);
  color: var(--c-snow-white);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--c-light-gray);
  color: var(--c-highland-blue);
  border-radius: var(--radius);
}

/* ----- 数据面板 ----- */
.data-panel {
  background: var(--c-highland-blue);
  color: var(--c-snow-white);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.data-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--c-orange);
}

.data-panel h3,
.data-panel .data-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-sand);
  letter-spacing: 0.15em;
  margin-bottom: 0.85rem;
}

/* ----- 索引列表 ----- */
.index-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-list li + li {
  border-top: 1px solid var(--c-light-gray);
}

.index-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.25rem;
  color: var(--c-black);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.index-list a:hover {
  color: var(--c-orange);
  padding-left: 0.6rem;
}

/* ----- 图片框架 ----- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-light-gray);
}

.img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.1) 42%, rgba(255, 255, 255, 0.1) 44%, transparent 44%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(27, 58, 107, 0.03) 10px 20px);
}

.img-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

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

.img-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* ----- 视口显现 ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ----- 响应式 ----- */
@media (max-width: 1024px) {
  .split {
    grid-template-columns: 1fr;
  }

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

  .header-readout {
    display: none;
  }

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

@media (max-width: 768px) {
  .header-shell {
    padding-inline: 1.25rem;
  }

  .header-topline {
    min-height: 64px;
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .brand-suffix {
    font-size: 0.75rem;
  }

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-highland-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(10, 10, 10, 0.25);
  }

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

  .nav-link {
    padding: 0.95rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .footer-shell {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    padding-inline: 1.25rem;
  }
}

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

  .brand-suffix {
    display: none;
  }

  .section {
    padding: 2rem 0;
  }
}
