/* ===================== 凤凰体育入口 / site.css =====================
   共享层：Reset、变量、排版、头部、页脚、通用组件
   页面专属布局由各页 CSS 自行扩展
   ================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }
input, textarea, select { font: inherit; }

/* ---------- 变量 ---------- */
:root {
  --phn-orange: #FF6A00;
  --phn-red: #E63946;
  --bg-deep: #0B1D2B;
  --bg-card: #132C3C;
  --star-purple: #3A506B;
  --moon-gray: #E0E1DD;
  --dim-blue: #778DA9;
  --white: #FFFFFF;
  --gold: #FFC300;

  --font-title: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-data: 'JetBrains Mono', 'Roboto Mono', monospace;

  --header-h: 66px;
  --content-w: 1200px;
  --content-pad: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --radius-sm: 12px;
  --border-w: 2px;
  --shadow-card: 6px 6px 0 0 rgba(58, 80, 107, 0.3);
  --shadow-card-hover: 10px 10px 0 0 rgba(58, 80, 107, 0.5);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --speed: 180ms;
}

/* ---------- 基础排版 ---------- */
body {
  background: var(--bg-deep);
  color: var(--moon-gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--white);
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a { color: var(--white); transition: color var(--speed) var(--ease); }
a:hover { color: var(--phn-orange); }

p { max-width: 70ch; }

::selection {
  background: var(--phn-orange);
  color: var(--bg-deep);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-deep);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: var(--phn-orange); }

:focus-visible {
  outline: 2px dashed var(--white);
  outline-offset: 3px;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--content-pad);
  width: 100%;
}

.section {
  padding: clamp(32px, 6vw, 72px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.section-link {
  font-size: 0.875rem;
  color: var(--dim-blue);
  border-bottom: 2px solid var(--dim-blue);
  padding-bottom: 2px;
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.section-link:hover {
  color: var(--phn-orange);
  border-color: var(--phn-orange);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--phn-orange);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 4px 4px 0 0 rgba(230, 57, 70, 0.5);
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 29, 43, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-w) solid var(--phn-orange);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--phn-orange), var(--phn-red));
  z-index: 2;
  pointer-events: none;
  transition: width 60ms linear;
}

.header-inner {
  position: relative;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--content-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
  transition: opacity var(--speed) var(--ease);
}
.brand:hover { opacity: 0.85; color: inherit; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--phn-orange) 0%, var(--phn-red) 100%);
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.4rem;
  border-radius: 12px;
  box-shadow: 3px 3px 0 0 rgba(255, 106, 0, 0.45);
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 2px;
}

.brand-text {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--phn-orange);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--moon-gray);
  white-space: nowrap;
  transition: color var(--speed) var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--phn-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--white); }

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

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--phn-orange);
}

/* 头部 CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--phn-orange);
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--phn-orange);
  box-shadow: 4px 4px 0 0 rgba(255, 106, 0, 0.35);
  flex-shrink: 0;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.header-cta::after {
  content: '→';
  font-size: 1.1em;
  line-height: 1;
  font-family: sans-serif;
  transition: transform var(--speed) var(--ease);
}

.header-cta:hover {
  background: var(--bg-deep);
  color: var(--phn-orange);
  border-color: var(--phn-orange);
  box-shadow: 6px 6px 0 0 rgba(255, 106, 0, 0.5);
}
.header-cta:hover::after { transform: translateX(3px); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 2px solid var(--dim-blue);
  border-radius: var(--radius-sm);
  background: transparent;
  flex-shrink: 0;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.nav-toggle:hover {
  border-color: var(--phn-orange);
  background: rgba(255, 106, 0, 0.08);
}
.nav-toggle:focus-visible {
  outline: 2px dashed var(--white);
  outline-offset: 2px;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

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

/* ---------- 响应式头部 ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .header-cta { margin-right: 4px; }

  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 2px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 2px solid var(--phn-orange);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--content-pad) 14px;
    display: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }

  .site-nav[data-open] {
    display: flex;
    animation: nav-fade 160ms var(--ease) both;
  }

  .site-nav a {
    padding: 13px 10px;
    font-size: 0.9375rem;
    border-bottom: 1px solid rgba(119, 141, 169, 0.2);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a::after { display: none; }

  .site-nav a[aria-current="page"] {
    color: var(--phn-orange);
    font-weight: 700;
  }

  @keyframes nav-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .brand-text { font-size: 0.95rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }
  .header-cta { padding: 8px 12px; font-size: 0.75rem; }
  .header-inner { gap: 12px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 3px solid var(--phn-orange);
  position: relative;
}

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

.footer-inner {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px) var(--content-pad) 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(119, 141, 169, 0.25);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--phn-orange) 0%, var(--phn-red) 100%);
  color: var(--bg-deep);
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 10px;
  box-shadow: 3px 3px 0 0 rgba(255, 106, 0, 0.35);
  flex-shrink: 0;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--dim-blue);
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 0.7813rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--phn-orange);
  margin-bottom: 12px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-link {
  padding: 3px 0;
  font-size: 0.8438rem;
  color: var(--moon-gray);
}
.footer-link:hover { color: var(--phn-orange); }

.footer-contact-item {
  font-size: 0.8438rem;
  color: var(--dim-blue);
  padding: 3px 0;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 18px;
}

.footer-copy,
.footer-icp {
  font-size: 0.7813rem;
  color: var(--dim-blue);
  margin: 0;
}

.footer-note {
  width: 100%;
  font-size: 0.75rem;
  color: rgba(119, 141, 169, 0.65);
  margin: 2px 0 0;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 2px solid var(--phn-orange);
  color: var(--white);
  font-family: var(--font-data);
  font-size: 0.7188rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.to-top[hidden] { display: none; }

.to-top:hover {
  background: var(--phn-orange);
  color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.to-top-arrow {
  font-size: 1rem;
  line-height: 1;
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  box-shadow: 4px 4px 0 0 rgba(58, 80, 107, 0.3);
}

.btn-primary {
  background: var(--phn-orange);
  color: var(--bg-deep);
  border-color: var(--phn-orange);
  box-shadow: 4px 4px 0 0 rgba(230, 57, 70, 0.4);
}
.btn-primary:hover {
  background: var(--bg-deep);
  color: var(--phn-orange);
  border-color: var(--phn-orange);
  box-shadow: 6px 6px 0 0 rgba(255, 106, 0, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--moon-gray);
  border-color: var(--dim-blue);
}
.btn-secondary:hover {
  border-color: var(--phn-orange);
  color: var(--phn-orange);
  box-shadow: 4px 4px 0 0 rgba(255, 106, 0, 0.2);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--dim-blue);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--dim-blue); }
.breadcrumb a:hover { color: var(--phn-orange); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current {
  color: var(--white);
  font-weight: 600;
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-data);
  font-size: 0.7188rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(255, 195, 0, 0.08);
  border: 1px solid rgba(255, 195, 0, 0.4);
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag-live {
  color: var(--phn-red);
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.45);
}

.tag-live::before {
  content: '●';
  font-size: 0.8em;
  margin-right: 4px;
  animation: live-pulse 2s ease-in-out infinite;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phn-red);
  margin-right: 6px;
  vertical-align: middle;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border: var(--border-w) solid var(--dim-blue);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--phn-orange);
}

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ---------- 统计块 ---------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-data);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.stat-value[data-accent] { color: var(--phn-orange); }
.stat-label {
  font-size: 0.75rem;
  color: var(--dim-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- 数据行 ---------- */
.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(119, 141, 169, 0.18);
}
.data-row:last-child { border-bottom: none; }
.data-row-label {
  font-size: 0.8125rem;
  color: var(--dim-blue);
}
.data-row-value {
  font-family: var(--font-data);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
}

/* ---------- 分割线 ---------- */
.divider {
  height: var(--border-w);
  background: linear-gradient(90deg, var(--phn-orange) 0%, var(--bg-card) 100%);
  border: none;
  margin: 32px 0;
  opacity: 0.55;
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: var(--border-w) solid var(--dim-blue);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 29, 43, 0.55) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

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

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

/* ---------- 工具 ---------- */
.text-dim { color: var(--dim-blue); }
.text-white { color: var(--white); }
.text-orange { color: var(--phn-orange); }
.text-small { font-size: 0.8125rem; }
.text-data { font-family: var(--font-data); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ---------- 响应式页脚 ---------- */
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* ---------- 减少动效 ---------- */
@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;
  }
}
