/* ==========================================================
   凤凰安装站 · 全站共享样式表
   文件路径 /assets/site.css
   设计语言：运动赛事广播终端 / 火焰橙红 × 夜空蓝
   ========================================================== */

/* ---------- 01. 设计令牌 ---------- */
:root {
  --phx-flame: #FF5A1F;
  --phx-flame-soft: #FF7A50;
  --phx-night: #0A1428;
  --phx-night-blue: #10233F;
  --phx-indigo: #1E4E79;
  --phx-gold: #D4AF37;
  --phx-cream: #F7F3EF;
  --phx-text: #1A1A1A;
  --phx-text-2: #5A5A5A;
  --phx-success: #2E7D32;
  --phx-danger: #C62828;
  --phx-glass-border: rgba(255, 255, 255, 0.15);

  --phx-font-headline: "Arial Black", "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
  --phx-font-body: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;

  --phx-space-1: 8px;
  --phx-space-2: 16px;
  --phx-space-3: 24px;
  --phx-space-4: 40px;
  --phx-space-5: 64px;
  --phx-space-6: 96px;

  --phx-container-w: 1200px;
  --phx-radius-sm: 4px;
  --phx-radius-md: 10px;
  --phx-radius-lg: 16px;

  --phx-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 02. Reset 与基础排版 ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--phx-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--phx-text);
  background-color: var(--phx-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main[id="main-content"] {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phx-font-headline);
  font-weight: 900;
  line-height: 1.2;
  color: inherit;
}

p {
  margin-bottom: 1em;
}

ul,
ol {
  padding-left: 1.25em;
}

a {
  color: var(--phx-indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

::selection {
  background: var(--phx-flame);
  color: #ffffff;
}

/* ---------- 03. 通用容器与分区 ---------- */
.phx-container {
  width: 100%;
  max-width: var(--phx-container-w);
  margin-inline: auto;
  padding-inline: var(--phx-space-2);
}

.phx-section {
  padding-block: var(--phx-space-5);
}

.phx-section--dark {
  background: var(--phx-night);
  color: #CAD5E0;
  padding-block: var(--phx-space-6);
}

.phx-section--light {
  background: var(--phx-cream);
}

.phx-section--flame {
  background: var(--phx-flame);
  color: #ffffff;
}

.phx-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phx-flame);
  margin-bottom: 10px;
}

.phx-section-kicker::before {
  content: "";
  width: 14px;
  height: 4px;
  background: var(--phx-flame);
  transform: skewX(-30deg);
  flex-shrink: 0;
}

.phx-section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--phx-space-2);
}

.phx-lead {
  font-size: 18px;
  color: var(--phx-text-2);
  line-height: 1.6;
  margin-bottom: 1.2em;
}

.phx-muted {
  font-size: 14px;
  color: var(--phx-text-2);
}

.phx-accent {
  color: var(--phx-flame);
  font-weight: 700;
}

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

.phx-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--phx-flame), transparent);
  margin: var(--phx-space-4) 0;
}

.phx-skew-line {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  background: linear-gradient(90deg, var(--phx-flame) 0 25%, transparent 25% 50%, var(--phx-indigo) 50% 75%, transparent 75%);
  transform: skewX(-15deg);
}

/* ---------- 04. 按钮 ---------- */
.phx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--phx-radius-md);
  background-color: transparent;
  color: inherit;
  font-family: var(--phx-font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--phx-transition),
    border-color var(--phx-transition),
    color var(--phx-transition),
    box-shadow var(--phx-transition),
    transform var(--phx-transition);
}

.phx-btn--primary {
  background-color: var(--phx-flame);
  border-color: var(--phx-flame);
  color: #ffffff;
}

.phx-btn--primary:hover {
  background-color: var(--phx-flame-soft);
  border-color: var(--phx-flame-soft);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.3);
  transform: translateY(-2px);
}

.phx-btn--ghost {
  border-color: var(--phx-text);
  color: var(--phx-text);
}

.phx-btn--ghost:hover {
  background-color: var(--phx-text);
  border-color: var(--phx-text);
  color: var(--phx-cream);
}

.phx-btn--light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.phx-btn--light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--phx-flame-soft);
  color: var(--phx-flame-soft);
}

.phx-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
  border-width: 1.5px;
}

.phx-btn--block {
  display: flex;
  width: 100%;
}

/* ---------- 05. 面包屑 ---------- */
.phx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: var(--phx-space-1) 0;
  margin-bottom: var(--phx-space-3);
  font-size: 13px;
  color: var(--phx-text-2);
}

.phx-breadcrumb li {
  display: flex;
  align-items: center;
}

.phx-breadcrumb li + li::before {
  content: "→";
  margin: 0 10px;
  color: var(--phx-flame);
  font-weight: 700;
}

.phx-breadcrumb a {
  color: var(--phx-indigo);
  text-decoration: none;
}

.phx-breadcrumb a:hover {
  color: var(--phx-flame);
  text-decoration: underline;
}

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

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

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

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

/* ---------- 07. 卡片 / 玻璃 / 图片 / 标记 ---------- */
.phx-card {
  position: relative;
  background: var(--phx-cream);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--phx-radius-lg);
  padding: var(--phx-space-3);
  transition: box-shadow var(--phx-transition), transform var(--phx-transition);
}

.phx-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--phx-flame);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--phx-transition);
}

.phx-card:hover {
  box-shadow: 0 12px 32px rgba(10, 20, 40, 0.1);
  transform: translateY(-4px);
}

.phx-card:hover::after {
  transform: scaleY(1);
}

.phx-card__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: var(--phx-space-1);
}

.phx-glass {
  background: rgba(16, 35, 63, 0.72);
  border: 1px solid var(--phx-glass-border);
  border-radius: var(--phx-radius-lg);
  padding: var(--phx-space-3);
  color: #E8EDF2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.phx-photo {
  position: relative;
  border-radius: var(--phx-radius-md);
  overflow: hidden;
  background-color: var(--phx-night);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.04) 75%, transparent 75%, transparent);
  background-size: 18px 18px;
  aspect-ratio: 16 / 9;
  min-height: 170px;
}

.phx-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.phx-photo:hover img {
  transform: scale(1.04);
}

.phx-photo--portrait {
  aspect-ratio: 3 / 4;
}

.phx-photo--wide {
  aspect-ratio: 21 / 9;
}

.phx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.14);
  color: var(--phx-flame);
}

.phx-badge--gold {
  background: rgba(212, 175, 55, 0.16);
  color: #A8840A;
}

.phx-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--phx-radius-sm);
  background: rgba(30, 78, 121, 0.12);
  color: var(--phx-indigo);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--phx-transition), color var(--phx-transition);
}

.phx-tag:hover {
  background: var(--phx-indigo);
  color: #ffffff;
}

/* ---------- 08. 头部 ---------- */
.phx-header {
  position: relative;
}

.phx-header__topbar {
  background: var(--phx-night);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phx-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--phx-space-2);
  padding-block: 8px;
}

.phx-header__tagline {
  margin: 0;
  letter-spacing: 0.02em;
}

.phx-header__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
}

.phx-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--phx-success);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.25);
  flex-shrink: 0;
}

.phx-header__main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--phx-cream);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.phx-header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--phx-space-3);
  min-height: 68px;
}

.phx-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--phx-flame), var(--phx-flame-soft), var(--phx-gold));
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 105;
  pointer-events: none;
}

.phx-skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  background: var(--phx-flame);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 0 0 var(--phx-radius-md) 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.phx-skip-link:focus-visible {
  transform: translateY(0);
}

/* 品牌 */
.phx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.phx-brand__mark {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--phx-flame);
  border-radius: 10px 4px 10px 4px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.25);
}

.phx-brand__mark::before {
  content: "";
  position: absolute;
  top: -6px;
  right: -8px;
  width: 22px;
  height: 54px;
  background: var(--phx-night);
  transform: rotate(24deg);
}

.phx-brand__mark::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 5px;
  width: 16px;
  height: 16px;
  background: var(--phx-gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.phx-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.phx-brand__title {
  font-family: var(--phx-font-headline);
  font-size: 19px;
  font-weight: 900;
  color: var(--phx-text);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.phx-brand__sub {
  font-size: 11px;
  color: var(--phx-text-2);
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-top: 2px;
}

.phx-brand--light .phx-brand__mark {
  box-shadow: 0 0 22px rgba(255, 90, 31, 0.3);
}

.phx-brand--light .phx-brand__title {
  color: #ffffff;
}

.phx-brand--light .phx-brand__sub {
  color: #A9B7C4;
}

/* 桌面导航 */
.phx-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.phx-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--phx-text);
  text-decoration: none;
  border-radius: var(--phx-radius-sm);
  transition: color var(--phx-transition);
}

.phx-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: var(--phx-flame);
  transform: scaleX(0);
  transform-origin: left top;
  transition: transform var(--phx-transition);
}

.phx-nav__link:hover,
.phx-nav__link:focus-visible {
  color: var(--phx-flame);
}

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

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

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

/* 移动导航切换按钮 */
.phx-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--phx-font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--phx-text);
  line-height: 1;
}

.phx-nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--phx-text);
  border-radius: 2px;
  transition: transform var(--phx-transition), opacity var(--phx-transition), background var(--phx-transition);
}

.phx-nav-toggle:hover .phx-nav-toggle__bar {
  background: var(--phx-flame);
}

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

.phx-nav-toggle[aria-expanded="true"] .phx-nav-toggle__bar--2 {
  opacity: 0;
}

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

.phx-nav-toggle__text {
  display: block;
}

/* ---------- 09. 页脚 ---------- */
.phx-footer {
  background: var(--phx-night);
  color: #A9B7C4;
  font-size: 14px;
  line-height: 1.65;
  margin-top: auto;
  position: relative;
}

.phx-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--phx-flame) 0 30%, var(--phx-flame-soft) 30% 60%, var(--phx-indigo) 60% 100%);
}

.phx-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1.2fr;
  gap: var(--phx-space-4);
  padding-block: var(--phx-space-5) var(--phx-space-4);
}

.phx-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--phx-space-1);
}

.phx-footer__tagline {
  font-size: 16px;
  font-weight: 700;
  color: #E8EDF2;
  margin: var(--phx-space-1) 0 0;
}

.phx-footer__trust {
  font-size: 13px;
  color: #8495A5;
  line-height: 1.6;
  margin: var(--phx-space-2) 0 0;
  border-left: 3px solid var(--phx-flame);
  padding-left: 12px;
  max-width: 340px;
}

.phx-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--phx-space-3);
}

.phx-footer__nav-group {
  min-width: 0;
}

.phx-footer__heading {
  font-family: var(--phx-font-headline);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--phx-glass-border);
}

.phx-footer__nav-list,
.phx-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phx-footer__nav-list li,
.phx-footer__contact-list li {
  margin-bottom: 10px;
}

.phx-footer__nav-list a {
  position: relative;
  display: inline-block;
  color: #B8C4D0;
  text-decoration: none;
  transition: color var(--phx-transition), padding-left var(--phx-transition);
}

.phx-footer__nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--phx-flame);
  transform: translateY(-50%);
  transition: width var(--phx-transition);
}

.phx-footer__nav-list a:hover {
  color: var(--phx-flame-soft);
  padding-left: 18px;
}

.phx-footer__nav-list a:hover::before {
  width: 12px;
}

.phx-footer__contact {
  min-width: 0;
}

.phx-footer__contact-list li {
  display: flex;
  gap: 8px;
  line-height: 1.6;
}

.phx-footer__contact-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--phx-flame);
  transform: rotate(45deg);
}

.phx-footer__bottom {
  border-top: 1px solid var(--phx-glass-border);
  padding-block: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.phx-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--phx-space-2);
  flex-wrap: wrap;
  font-size: 13px;
  color: #6E8091;
}

.phx-footer__copy,
.phx-footer__icp {
  margin: 0;
}

/* ---------- 10. 无障碍焦点 ---------- */
:focus-visible {
  outline: 3px solid var(--phx-flame);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- 11. 响应式断点 ---------- */
@media (max-width: 991px) {
  .phx-grid--3,
  .phx-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 767px) {
  .phx-header__topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 6px;
  }

  .phx-header__nav-inner {
    min-height: 60px;
  }

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

  .phx-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    display: none;
    background: var(--phx-night);
    border-top: 3px solid var(--phx-flame);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  }

  .phx-nav[data-open] {
    display: block;
  }

  .phx-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .phx-nav__item {
    border-bottom: 1px solid var(--phx-glass-border);
  }

  .phx-nav__link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0;
    font-size: 16px;
  }

  .phx-nav__link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }

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

  .phx-nav__link[aria-current="page"] {
    color: var(--phx-flame-soft);
    background: rgba(255, 90, 31, 0.08);
  }

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

  .phx-footer__top {
    grid-template-columns: 1fr;
    gap: var(--phx-space-3);
    padding-block: var(--phx-space-4);
  }

  .phx-footer__brand {
    grid-column: auto;
  }

  .phx-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- 12. 动效偏好 ---------- */
@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;
  }
}
