/* =========================================================
   凤凰体育娱乐 · 共享基础样式
   文件位置：/assets/site.css
   范围：reset / 变量 / 中文排版 / 头部 / 导航 / 页脚 /
        按钮 / 面包屑 / 容器 / 网格 / 基础组件 / 动效协议
   ========================================================= */

/* ---------- 0. 设计变量 ---------- */
:root {
  --phx-bg: #0A0A0F;
  --phx-bg-blue: #0F1D3D;
  --phx-gold: #E8B84B;
  --phx-gold-soft: #F5D68A;
  --phx-red: #D83832;
  --phx-crimson: #A61B3C;
  --phx-white: #F5F6FA;
  --phx-gray: #9AA4B2;
  --phx-steel: #6B7280;
  --phx-green: #22C55E;

  --phx-font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --phx-font-mono: "JetBrains Mono", "Roboto Mono", monospace;

  --phx-radius-sm: 10px;
  --phx-radius-md: 16px;
  --phx-radius-lg: 28px;
  --phx-radius-pill: 999px;
  --phx-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);

  --phx-container: 1220px;
  --phx-gap: 24px;
  --phx-header-h: 76px;
  --phx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 1. Reset 与基础元素 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  font-family: var(--phx-font-body);
  font-size: 1rem;
  line-height: 1.75;
  background:
    radial-gradient(1200px 620px at 86% -8%, rgba(216, 56, 50, 0.10), transparent 60%),
    radial-gradient(900px 520px at -8% 18%, rgba(232, 184, 75, 0.07), transparent 55%),
    var(--phx-bg);
  color: var(--phx-white);
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

a:hover {
  color: var(--phx-gold-soft);
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--phx-white);
}

::selection {
  background: var(--phx-gold);
  color: #20160a;
}

/* ---------- 2. 可访问性 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -72px;
  left: 24px;
  z-index: 999;
  padding: 12px 22px;
  background: var(--phx-gold);
  color: #20160a;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 14px 14px;
  transition: top 0.25s var(--phx-ease);
}

.skip-link:focus {
  top: 0;
  color: #20160a;
}

:focus-visible {
  outline: 3px solid var(--phx-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content {
  scroll-margin-top: calc(var(--phx-header-h) + 12px);
}

#main-content:focus {
  outline: none;
}

/* ---------- 3. 品牌 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--phx-white);
  line-height: 1.2;
  border-radius: var(--phx-radius-md);
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--phx-gold-soft);
}

.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--phx-crimson), var(--phx-gold));
  box-shadow: 0 0 0 1px rgba(232, 184, 75, 0.30), 0 6px 18px rgba(216, 56, 50, 0.28);
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--phx-bg);
  border-radius: 9px;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: linear-gradient(140deg, var(--phx-gold) 0%, var(--phx-red) 95%);
  clip-path: polygon(50% 4%, 72% 15%, 88% 40%, 86% 72%, 64% 96%, 50% 76%, 36% 96%, 14% 72%, 12% 40%, 28% 15%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.05em;
}

.brand__sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--phx-gold);
}

/* ---------- 4. 头部 ---------- */
.phx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.90);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(232, 184, 75, 0.18);
}

.phx-header::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--phx-gold), var(--phx-crimson) 60%, transparent);
}

.phx-header__inner {
  position: relative;
  max-width: var(--phx-container);
  margin: 0 auto;
  height: var(--phx-header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- 5. 导航 ---------- */
.phx-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phx-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phx-nav__list a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--phx-radius-pill);
  color: var(--phx-white);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.phx-nav__list a:hover {
  background: rgba(232, 184, 75, 0.08);
  color: var(--phx-gold-soft);
}

.phx-nav__list a[aria-current="page"] {
  color: var(--phx-gold);
  background: rgba(232, 184, 75, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 184, 75, 0.30);
}

.nav-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(232, 184, 75, 0.30);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(232, 184, 75, 0.08);
  border-color: var(--phx-gold);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--phx-gold);
  border-radius: 99px;
  transition: transform 0.25s var(--phx-ease), opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: var(--phx-radius-pill);
  font-family: var(--phx-font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--phx-ease), color 0.25s var(--phx-ease),
    border-color 0.25s var(--phx-ease), box-shadow 0.25s var(--phx-ease), transform 0.15s var(--phx-ease);
}

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

.btn:active {
  transform: scale(0.97);
}

.btn--solid {
  background: linear-gradient(135deg, var(--phx-gold-soft) 0%, var(--phx-gold) 100%);
  color: #20160a;
  box-shadow: 0 8px 24px rgba(232, 184, 75, 0.25);
}

.btn--solid:hover {
  box-shadow: 0 10px 34px rgba(232, 184, 75, 0.38);
  color: #1c1406;
}

.btn--ghost {
  border-color: rgba(232, 184, 75, 0.50);
  background: rgba(232, 184, 75, 0.05);
  color: var(--phx-gold);
}

.btn--ghost:hover {
  border-color: var(--phx-gold);
  background: rgba(232, 184, 75, 0.12);
  color: var(--phx-gold-soft);
}

.btn--outline-red {
  border-color: rgba(216, 56, 50, 0.55);
  background: transparent;
  color: var(--phx-red);
}

.btn--outline-red:hover {
  border-color: var(--phx-red);
  background: rgba(216, 56, 50, 0.10);
  color: #ff6b66;
}

/* ---------- 7. 页脚 ---------- */
.phx-footer {
  position: relative;
  margin-top: 96px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 29, 61, 0.55) 28%, var(--phx-bg) 100%);
  border-top: 1px solid rgba(232, 184, 75, 0.18);
}

.phx-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--phx-gold) 25%, var(--phx-red) 65%, transparent);
  opacity: 0.50;
  pointer-events: none;
}

.phx-footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.5fr;
  gap: 48px;
  max-width: var(--phx-container);
  margin: 0 auto;
  padding: 72px 28px 40px;
}

.phx-footer__brand .brand {
  margin-bottom: 16px;
}

.phx-footer__statement {
  color: var(--phx-gray);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 46ch;
}

.phx-footer__title {
  color: var(--phx-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.phx-footer__col ul {
  display: grid;
  gap: 10px;
}

.phx-footer__col a {
  color: var(--phx-gray);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.phx-footer__col a:hover {
  color: var(--phx-gold);
  padding-left: 4px;
}

.phx-footer__contact li {
  color: var(--phx-gray);
  font-size: 0.88rem;
  line-height: 1.8;
}

.phx-footer__note {
  color: var(--phx-steel);
  font-size: 0.78rem;
  line-height: 1.6;
}

.phx-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: var(--phx-container);
  margin: 0 auto;
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(154, 164, 178, 0.14);
  color: var(--phx-steel);
  font-size: 0.8rem;
}

/* ---------- 8. 容器与区块 ---------- */
.phx-container {
  width: 100%;
  max-width: var(--phx-container);
  margin: 0 auto;
  padding: 0 28px;
}

.phx-section {
  padding: 80px 0;
}

.phx-section--deep {
  padding: 120px 0;
}

.phx-section--tight {
  padding: 48px 0;
}

/* ---------- 9. 网格 ---------- */
.phx-grid {
  display: grid;
  gap: var(--phx-gap);
}

.phx-grid--2 {
  grid-template-columns: 1fr;
}

.phx-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .phx-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .phx-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 10. 排版工具 ---------- */
.display-title {
  font-family: var(--phx-font-body);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--phx-white);
}

.section-title {
  font-family: var(--phx-font-body);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.30;
  color: var(--phx-white);
}

.lead-text {
  color: var(--phx-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 64ch;
}

.caption-text {
  color: var(--phx-gray);
  font-size: 0.75rem;
  line-height: 1.60;
}

.mono-num {
  font-family: var(--phx-font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.text-gold {
  color: var(--phx-gold);
}

.text-red {
  color: var(--phx-red);
}

.text-green {
  color: var(--phx-green);
}

.text-gray {
  color: var(--phx-gray);
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  margin: 0 0 36px;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--phx-gray);
  font-size: 0.85rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--phx-steel);
}

.breadcrumb a {
  color: var(--phx-gray);
  transition: color 0.2s ease;
}

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

.breadcrumb li[aria-current="page"] {
  color: var(--phx-gold);
}

/* ---------- 12. 媒体容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--phx-radius-lg);
  background: linear-gradient(145deg, #17284a 0%, var(--phx-bg) 100%);
  border: 1px solid rgba(232, 184, 75, 0.14);
  box-shadow: var(--phx-shadow);
}

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

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

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

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(216, 56, 50, 0.12) 0%, transparent 50%, rgba(10, 10, 15, 0.40) 100%);
  pointer-events: none;
}

/* ---------- 13. 基础组件 ---------- */
.stat-card {
  padding: 28px;
  border-radius: var(--phx-radius-lg);
  background: linear-gradient(160deg, rgba(15, 29, 61, 0.85) 0%, rgba(10, 10, 15, 0.90) 100%);
  border: 1px solid rgba(232, 184, 75, 0.14);
  transition: transform 0.25s var(--phx-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 184, 75, 0.38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.stat-card__value {
  font-family: var(--phx-font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.10;
  color: var(--phx-gold);
  font-variant-numeric: tabular-nums;
}

.stat-card__label {
  margin-top: 8px;
  color: var(--phx-gray);
  font-size: 0.85rem;
  line-height: 1.50;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--phx-radius-pill);
  background: rgba(232, 184, 75, 0.10);
  border: 1px solid rgba(232, 184, 75, 0.34);
  color: var(--phx-gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-pill--red {
  background: rgba(216, 56, 50, 0.10);
  border-color: rgba(216, 56, 50, 0.42);
  color: #ff837d;
}

.tag-pill--green {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.34);
  color: var(--phx-green);
}

.slash-panel {
  position: relative;
  overflow: hidden;
  padding: 52px;
  border-radius: var(--phx-radius-lg);
  background: linear-gradient(112deg, #152649 0%, var(--phx-bg-blue) 48%, #17202e 100%);
  border: 1px solid rgba(232, 184, 75, 0.12);
}

.slash-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  right: 6%;
  width: 130px;
  background: linear-gradient(180deg, rgba(232, 184, 75, 0.32) 0%, rgba(216, 56, 50, 0) 70%);
  transform: rotate(18deg);
  pointer-events: none;
}

.slash-panel--red::before {
  background: linear-gradient(180deg, rgba(216, 56, 50, 0.30) 0%, rgba(232, 184, 75, 0) 70%);
}

.phx-timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid rgba(232, 184, 75, 0.28);
  display: grid;
  gap: 28px;
}

.phx-timeline__item {
  position: relative;
}

.phx-timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--phx-gold);
  box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.14);
}

.phx-timeline__item--red::before {
  background: var(--phx-red);
  box-shadow: 0 0 0 4px rgba(216, 56, 50, 0.14);
}

.phx-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(232, 184, 75, 0.45) 30%, rgba(216, 56, 50, 0.30) 70%, transparent);
}

/* ---------- 14. 动效协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1023px) {
  .nav-toggle {
    display: block;
  }

  .phx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 20px 22px;
    background: rgba(10, 10, 15, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(232, 184, 75, 0.20);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.50);
  }

  .phx-nav[data-open] {
    display: flex;
    max-height: calc(100vh - var(--phx-header-h));
    overflow-y: auto;
  }

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

  .phx-nav__list a {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.98rem;
  }

  .phx-nav__list a[aria-current="page"] {
    background: rgba(232, 184, 75, 0.10);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 2px;
  }
}

@media (max-width: 767px) {
  .phx-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 28px 32px;
  }

  .phx-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .phx-header__inner {
    padding: 0 18px;
  }

  .phx-container {
    padding: 0 18px;
  }

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

  .phx-section--deep {
    padding: 68px 0;
  }

  .slash-panel {
    padding: 30px 22px;
  }
}

/* ---------- 16. 减少动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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