/* ==========================================================================
   皇冠体育 · 全站共享样式
   深空蓝底 · 金色/橙色强调 · 切角面板 · 数据路径导航
   ========================================================================== */

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

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

body {
  margin: 0;
  background: #F0F4F8;
  color: #0B1B3A;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  color: #0B1B3A;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: #00D4FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

:focus-visible {
  outline: 2px solid #FF6B00;
  outline-offset: 2px;
}

/* ---------- 变量 ---------- */
:root {
  --deep-blue: #0B1B3A;
  --mid-blue: #1B3A6B;
  --slate: #F0F4F8;
  --gold: #F5B942;
  --orange: #FF6B00;
  --cyan: #00D4FF;
  --purple: #8B5CF6;
  --mist: #E6EDF5;
  --muted: #94A3B8;
  --green: #10B981;
  --ink: #0B1B3A;
  --rail-width: 272px;
  --font-data: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- 布局基础 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (min-width: 1024px) {
  body {
    margin-left: var(--rail-width);
  }
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2000;
  display: inline-block;
  padding: 11px 22px;
  background: linear-gradient(135deg, #F5B942, #FF6B00);
  color: #0B1B3A;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top 0.2s ease;
}

.skip-link:hover {
  text-decoration: none;
}

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

/* ---------- 页头框架 ---------- */
.site-header {
  position: relative;
  z-index: 1000;
}

.header-shell {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(120deg, rgba(0, 212, 255, 0.05) 0%, transparent 34%),
    linear-gradient(180deg, #0B1B3A 0%, #0E2148 55%, #0B1B3A 100%);
  border-right: 1px solid rgba(0, 212, 255, 0.14);
  z-index: 1000;
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #E6EDF5;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
  color: #0B1B3A;
  background: linear-gradient(135deg, #F5B942, #FF6B00);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #E6EDF5;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---------- 滚动进度 ---------- */
.header-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  pointer-events: none;
  z-index: 2;
}

.header-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #F5B942, #FF6B00);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
  will-change: transform;
}

/* ---------- 主导航 ---------- */
.site-nav {
  flex: 1;
  padding: 8px 16px 12px 20px;
  overflow-y: auto;
}

.nav-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 18px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #94A3B8;
}

.nav-caption-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: #00D4FF;
  transform: rotate(45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #E6EDF5;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover {
  text-decoration: none;
}

.nav-route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 34px;
  font-family: var(--font-data);
  font-size: 12px;
  color: #F5B942;
  opacity: 0.65;
  transition: opacity 0.25s ease;
}

.nav-route::after {
  content: "";
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, #F5B942, transparent);
  opacity: 0.45;
}

.nav-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #00D4FF;
  background: rgba(0, 212, 255, 0.08);
  border-left-color: #00D4FF;
}

.nav-link:hover .nav-route,
.nav-link:focus-visible .nav-route {
  opacity: 1;
}

.nav-link[aria-current="page"] {
  color: #FF6B00;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.13), rgba(255, 107, 0, 0.02));
  border-left-color: #FF6B00;
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-route {
  opacity: 1;
  color: #FF6B00;
}

.nav-link[aria-current="page"] .nav-route::after {
  background: linear-gradient(90deg, #FF6B00, transparent);
}

/* ---------- 页头数据指标 ---------- */
.header-stats {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.header-stats-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.header-stat {
  background: rgba(27, 58, 107, 0.5);
  border-left: 2px solid #F5B942;
  padding: 10px 12px;
}

.header-stat-label {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #94A3B8;
  letter-spacing: 0.08em;
}

.header-stat-value {
  display: block;
  font-family: var(--font-data);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #F5B942;
}

.header-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.trail-dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: #00D4FF;
  transform: rotate(45deg);
}

.trail-dot-gold {
  background: #F5B942;
}

.trail-dot-orange {
  background: #FF6B00;
}

.trail-dot-purple {
  background: #8B5CF6;
}

.trail-line {
  flex: none;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, #00D4FF, rgba(0, 212, 255, 0.25));
}

/* ---------- 移动端导航开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 0;
  padding: 8px 12px;
  color: #E6EDF5;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(0, 212, 255, 0.12);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: #F5B942;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- 移动端遮罩 ---------- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 28, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  z-index: 999;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

/* ---------- 页头响应式 ---------- */
@media (max-width: 1023px) {
  body {
    margin-left: 0;
  }

  .header-shell {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    bottom: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #0B1B3A, #0E2148);
    border-right: 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  }

  .header-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    display: none;
  }

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

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

  .header-progress {
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
  }

  .header-progress span {
    background: linear-gradient(90deg, #F5B942, #FF6B00);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86%, 340px);
    flex: none;
    padding: 24px 18px 30px;
    background: linear-gradient(180deg, #0B1B3A 0%, #0E2148 60%, #0B1B3A 100%);
    border-right: 1px solid rgba(0, 212, 255, 0.22);
    box-shadow: 24px 0 48px rgba(4, 10, 26, 0.45);
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1001;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .nav-caption {
    margin-left: 4px;
  }

  .nav-list {
    gap: 4px;
  }

  .header-stats {
    display: none;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: #0B1B3A;
  color: #E6EDF5;
  border-top: 1px solid rgba(0, 212, 255, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F5B942 0%, #FF6B00 40%, #00D4FF 100%);
  opacity: 0.9;
}

.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 52px 32px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
}

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

.footer-brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #0B1B3A;
  background: linear-gradient(135deg, #F5B942, #FF6B00);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #E6EDF5;
  line-height: 1.2;
}

.footer-brand-slogan {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #94A3B8;
}

.footer-trust {
  font-size: 14px;
  line-height: 1.8;
  color: #94A3B8;
  max-width: 44ch;
  margin-bottom: 20px;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-stat {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 14px;
  background: rgba(27, 58, 107, 0.45);
  border-left: 2px solid #F5B942;
  font-size: 12px;
  line-height: 1.5;
  color: #94A3B8;
  white-space: nowrap;
}

.footer-stat strong {
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 700;
  color: #F5B942;
}

.footer-heading {
  margin: 4px 0 18px;
  padding-left: 12px;
  border-left: 2px solid #F5B942;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E6EDF5;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #00D4FF;
  transform: translateX(4px);
  text-decoration: none;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #94A3B8;
}

.footer-contact-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: #F5B942;
  transform: rotate(45deg);
}

.contact-email {
  font-family: var(--font-data);
  font-size: 13px;
  color: #E6EDF5;
  word-break: break-all;
}

.contact-phone {
  font-family: var(--font-data);
  font-size: 14px;
  color: #E6EDF5;
  letter-spacing: 0.04em;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-size: 13px;
  color: #94A3B8;
}

/* ---------- 页脚响应式 ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 44px 24px 32px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 20px 28px;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-bottom-inner {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 通用组件：按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-solid {
  color: #0B1B3A;
  background: linear-gradient(135deg, #F5B942, #FF6B00);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  filter: drop-shadow(0 4px 12px rgba(245, 185, 66, 0.25));
}

.btn-solid:hover {
  filter: brightness(1.06) drop-shadow(0 6px 16px rgba(255, 107, 0, 0.3));
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.7);
  color: #00D4FF;
}

.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.08);
  color: #00D4FF;
  transform: translateY(-2px);
}

/* ---------- 通用组件：面板 ---------- */
.panel {
  background: #FFFFFF;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(11, 27, 58, 0.05), 0 10px 30px rgba(11, 27, 58, 0.06);
  padding: 28px;
}

.panel-cut {
  background: #FFFFFF;
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  filter: drop-shadow(0 8px 20px rgba(11, 27, 58, 0.1));
}

/* ---------- 通用组件：章节眉题 ---------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #FF6B00;
}

.section-tag::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, #FF6B00, transparent);
}

/* ---------- 通用组件：面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 12px 0 0;
  font-size: 13px;
  color: #94A3B8;
}

.breadcrumbs a {
  color: #00D4FF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #FF6B00;
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: #94A3B8;
  opacity: 0.55;
  font-family: var(--font-data);
}

.breadcrumbs [aria-current="page"] {
  color: #0B1B3A;
  font-weight: 600;
}

/* ---------- 通用组件：数据文本 ---------- */
.data-text {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.data-display {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #1B3A6B;
  background: #F0F4F8;
  border-left: 2px solid #00D4FF;
  padding: 6px 12px;
}

/* ---------- 通用组件：响应式图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(139, 92, 246, 0.12)), #1B3A6B;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

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

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

.media-frame.media-ratio-square {
  aspect-ratio: 1 / 1;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #E6EDF5;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-align: center;
}

.media-placeholder::before {
  content: "";
  position: absolute;
  top: 28%;
  left: 0;
  width: 68%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00D4FF, transparent);
  opacity: 0.7;
}

.media-placeholder::after {
  content: "";
  position: absolute;
  bottom: 28%;
  right: 0;
  width: 46%;
  height: 1px;
  background: linear-gradient(270deg, transparent, #FF6B00, transparent);
  opacity: 0.6;
}

/* ---------- 滚动显现 ---------- */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease;
    transition-delay: 0ms !important;
  }
}
