/* ============================================================
   凤凰体育看台 — 共享样式 /assets/site.css
   夜场看台 / 切角档案 / 赤金渐变
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #0B0D12;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 132px; }

/* ---------- 2. 变量 ---------- */
:root {
  --phx-ink: #0B0D12;
  --phx-navy: #101A2E;
  --phx-navy-deep: #0E1524;
  --phx-red: #E23A2E;
  --phx-orange: #FF6B2C;
  --phx-gold: #F2B544;
  --phx-teal: #1FB6A6;
  --phx-cream: #F7F1E8;
  --phx-fog: #A9AFBA;
  --phx-ember: #7A1F1A;
  --phx-hi: #FFD98A;

  --phx-shell-w: 1240px;
  --phx-gutter: clamp(18px, 4vw, 40px);

  --phx-font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --phx-font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --phx-font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --phx-ease: cubic-bezier(.22, .68, .24, 1);
  --phx-z-header: 80;
  --phx-z-panel: 60;
  --phx-z-toggle: 65;
  --phx-z-progress: 120;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--phx-ink);
  background-image:
    radial-gradient(80% 46% at 88% -6%, rgba(226, 58, 46, .17), transparent 62%),
    radial-gradient(58% 34% at 0% 0%, rgba(242, 181, 68, .07), transparent 72%);
  background-repeat: no-repeat;
  color: var(--phx-cream);
  font-family: var(--phx-font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5 {
  font-family: var(--phx-font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.028em;
  color: var(--phx-cream);
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7vw, 112px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.012em; }
h4 { font-size: 18px; line-height: 1.35; letter-spacing: 0; font-weight: 800; }

p { max-width: 68ch; }
strong { font-weight: 800; color: var(--phx-cream); }
small { font-size: 13px; color: var(--phx-fog); }

::selection {
  background: var(--phx-red);
  color: #fff;
}

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

/* ---------- 4. 布局容器 ---------- */
.phx-shell {
  width: 100%;
  max-width: var(--phx-shell-w);
  margin-inline: auto;
  padding-inline: var(--phx-gutter);
}

.phx-section { padding-block: clamp(48px, 7vw, 96px); }

.phx-grid {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .phx-grid--asym { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
}

/* ---------- 5. 跳转链接 ---------- */
.phx-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 12px 20px;
  background: var(--phx-gold);
  color: var(--phx-ink);
  font-family: var(--phx-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 3px;
  transition: transform .2s var(--phx-ease);
}

.phx-skip:focus,
.phx-skip:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--phx-hi);
  outline-offset: 2px;
}

/* ---------- 6. 页头 ---------- */
.phx-header {
  position: sticky;
  top: 0;
  z-index: var(--phx-z-header);
  background: var(--phx-ink);
}

.phx-topbar {
  background: var(--phx-ink);
  border-bottom: 1px solid rgba(242, 181, 68, .13);
}

.phx-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px clamp(16px, 3vw, 40px);
  padding-block: 11px;
}

/* 品牌 */
.phx-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--phx-cream);
  text-decoration: none;
}

.phx-brand__mark {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(142deg, var(--phx-red) 0%, var(--phx-orange) 54%, var(--phx-gold) 100%);
  clip-path: polygon(50% 0, 100% 30%, 86% 100%, 50% 80%, 14% 100%, 0 30%);
}

.phx-brand__wing {
  width: 16px;
  height: 16px;
  transform: skewX(-12deg);
  background: linear-gradient(112deg,
    var(--phx-ink) 0 42%,
    transparent 42% 57%,
    var(--phx-ink) 57% 100%);
}

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

.phx-brand__name {
  font-family: var(--phx-font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.012em;
}

.phx-brand__tag {
  margin-top: 3px;
  font-family: var(--phx-font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--phx-fog);
}

/* 本月更新提示 */
.phx-update {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: 0;
  padding: 5px 14px 5px 11px;
  border: 1px solid rgba(31, 182, 166, .34);
  border-radius: 999px;
  background: rgba(31, 182, 166, .09);
  font-size: 12.5px;
  line-height: 1.5;
}

.phx-update__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phx-teal);
  box-shadow: 0 0 0 4px rgba(31, 182, 166, .16);
}

.phx-update__label {
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--phx-teal);
  white-space: nowrap;
}

.phx-update__text {
  color: var(--phx-fog);
  min-width: 0;
}

/* 下层看台栏 */
.phx-navrow {
  position: relative;
  z-index: var(--phx-z-panel);
  background: linear-gradient(100deg, #101A2E 0%, #121A28 46%, #0B0D12 100%);
  border-bottom: 1px solid rgba(242, 181, 68, .2);
}

.phx-navrow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(112deg, transparent 0 60%, rgba(226, 58, 46, .16) 60% 60.6%, transparent 60.6%),
    linear-gradient(112deg, transparent 0 74%, rgba(242, 181, 68, .14) 74% 74.5%, transparent 74.5%),
    repeating-linear-gradient(112deg, rgba(255, 107, 44, .07) 0 1px, transparent 1px 17px);
}

.phx-navrow__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

/* 导航 */
.phx-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 24px);
}

.phx-nav__link {
  position: relative;
  display: inline-block;
  padding: 19px 2px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  color: var(--phx-cream);
  transition: color .2s ease;
}

.phx-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--phx-red), var(--phx-gold));
  transition: transform .28s var(--phx-ease);
}

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

.phx-nav__link[aria-current="page"] { color: var(--phx-hi); }
.phx-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--phx-orange), var(--phx-hi));
}

.phx-nav__link:focus-visible {
  outline: 2px solid var(--phx-hi);
  outline-offset: 4px;
}

/* 页头 CTA */
.phx-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--phx-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(118deg, var(--phx-red) 0%, var(--phx-orange) 62%, var(--phx-gold) 132%);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: filter .2s ease;
}

.phx-cta:hover { filter: brightness(1.14) saturate(1.05); }

.phx-cta:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--phx-ink), inset 0 0 0 4px var(--phx-hi);
}

/* 移动端抽屉按钮 */
.phx-navtoggle {
  position: relative;
  z-index: var(--phx-z-toggle);
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(242, 181, 68, .42);
  border-radius: 3px;
  background: rgba(16, 26, 46, .78);
  color: var(--phx-cream);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.phx-navtoggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.phx-navtoggle__bars span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--phx-gold);
  transition: transform .26s var(--phx-ease), opacity .18s linear;
}

.phx-navtoggle[aria-expanded="true"] .phx-navtoggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.phx-navtoggle[aria-expanded="true"] .phx-navtoggle__bars span:nth-child(2) { opacity: 0; }
.phx-navtoggle[aria-expanded="true"] .phx-navtoggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.phx-navtoggle:focus-visible {
  outline: 2px solid var(--phx-hi);
  outline-offset: 3px;
}

/* ---------- 7. 页脚 ---------- */
.phx-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  overflow: hidden;
  border-top: 1px solid rgba(242, 181, 68, .22);
  background:
    radial-gradient(96% 118% at 10% 0%, rgba(226, 58, 46, .18), transparent 58%),
    linear-gradient(180deg, #101A2E 0%, #0B0D12 64%);
}

.phx-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(112deg,
    transparent 0 46px,
    rgba(247, 241, 232, .035) 46px 47px);
}

.phx-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 56px);
  padding-block: clamp(46px, 7vw, 84px) clamp(30px, 4vw, 46px);
}

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

@media (min-width: 1000px) {
  .phx-footer__grid {
    grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, .82fr));
  }
}

.phx-footer__brand { min-width: 0; }
.phx-brand--footer { margin-bottom: 16px; }

.phx-footer__desc {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--phx-fog);
}

.phx-footer__icp {
  margin-top: 20px;
  font-family: var(--phx-font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: rgba(169, 175, 186, .82);
}

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

.phx-footer__title {
  margin-bottom: 15px;
  font-family: var(--phx-font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--phx-gold);
}

.phx-footer__title::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--phx-red), var(--phx-gold));
}

.phx-footer__list li + li { margin-top: 9px; }

.phx-footer__list a {
  display: inline-block;
  font-size: 14.5px;
  color: rgba(247, 241, 232, .84);
  transition: color .2s ease, transform .2s var(--phx-ease);
}

.phx-footer__list a:hover,
.phx-footer__list a:focus-visible {
  color: var(--phx-hi);
  transform: translateX(3px);
}

.phx-contact li {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--phx-fog);
  word-break: break-word;
}

.phx-contact li + li { margin-top: 12px; }

.phx-contact strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--phx-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(242, 181, 68, .9);
}

.phx-footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 20px 30px;
  border-top: 1px solid rgba(247, 241, 232, .1);
  font-size: 12.5px;
  color: rgba(169, 175, 186, .86);
}

.phx-footer__base p { max-width: none; }

/* ---------- 8. 通用组件 ---------- */
.phx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--phx-font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--phx-ink);
  background: var(--phx-gold);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform .22s var(--phx-ease), background-color .2s ease, border-color .2s ease, color .2s ease;
}

.phx-btn:hover {
  transform: translateY(-2px);
  background: var(--phx-hi);
}

.phx-btn--flame {
  color: #fff;
  background: linear-gradient(118deg, var(--phx-red), var(--phx-orange));
}

.phx-btn--flame:hover {
  background: linear-gradient(118deg, #f04a3c, #ff8148);
}

.phx-btn--ghost {
  color: var(--phx-cream);
  background: transparent;
  border-color: rgba(242, 181, 68, .46);
}

.phx-btn--ghost:hover {
  color: var(--phx-hi);
  background: rgba(242, 181, 68, .1);
  border-color: var(--phx-gold);
}

.phx-btn:focus-visible {
  outline: 3px solid var(--phx-ink);
  box-shadow: 0 0 0 6px var(--phx-hi);
}

.phx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--phx-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--phx-gold);
}

.phx-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--phx-red), var(--phx-gold));
}

.phx-mono {
  font-family: var(--phx-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.phx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--phx-font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--phx-hi);
  background: rgba(242, 181, 68, .1);
  border: 1px solid rgba(242, 181, 68, .32);
  border-radius: 2px;
}

.phx-card {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(160deg, rgba(16, 26, 46, .94), rgba(11, 13, 18, .94));
  border: 1px solid rgba(242, 181, 68, .18);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.phx-breadcrumb { padding-block: 20px 0; }

.phx-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--phx-font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  color: var(--phx-fog);
}

.phx-breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(169, 175, 186, .48);
}

.phx-breadcrumb__list a { color: var(--phx-fog); transition: color .2s ease; }
.phx-breadcrumb__list a:hover { color: var(--phx-hi); }
.phx-breadcrumb__list [aria-current="page"] { color: var(--phx-gold); }

/* 图片容器基础规则（页面阶段放入 img/picture） */
.phx-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--phx-navy);
  background-image:
    linear-gradient(150deg, rgba(226, 58, 46, .24), rgba(16, 26, 46, .92) 56%, rgba(11, 13, 18, .96));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.phx-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(112deg,
    rgba(247, 241, 232, .05) 0 1px,
    transparent 1px 22px);
}

.phx-media > img,
.phx-media > picture,
.phx-media > picture > img,
.phx-media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phx-media--wide { aspect-ratio: 21 / 9; }
.phx-media--tall { aspect-ratio: 3 / 4; }
.phx-media--square { aspect-ratio: 1 / 1; }
.phx-media--hero { aspect-ratio: 16 / 9; }

@media (min-width: 900px) {
  .phx-media--hero { aspect-ratio: 2 / 1; }
}

.phx-rule {
  height: 1px;
  margin-block: clamp(28px, 4vw, 52px);
  border: 0;
  background: linear-gradient(90deg, var(--phx-red), rgba(242, 181, 68, .5) 32%, rgba(247, 241, 232, .08) 100%);
}

.phx-prose p + p,
.phx-prose ul + p,
.phx-prose p + ul,
.phx-prose h3 + p { margin-top: 1.05em; }

.phx-prose a {
  color: var(--phx-hi);
  text-decoration: underline;
  text-underline-offset: .24em;
  text-decoration-color: rgba(242, 181, 68, .55);
}

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

.phx-prose li {
  position: relative;
  padding-left: 20px;
}

.phx-prose li + li { margin-top: .5em; }

.phx-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 9px;
  height: 2px;
  background: var(--phx-orange);
}

/* ---------- 9. 动效 ---------- */
html.phx-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--phx-ease), transform .5s var(--phx-ease);
}

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

.phx-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--phx-z-progress);
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
  background: linear-gradient(90deg, var(--phx-red), var(--phx-orange) 55%, var(--phx-gold));
  transition: transform .12s linear;
}

body.phx-nav-open { overflow: hidden; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1000px) {
  .phx-topbar__inner { padding-block: 10px; }
  .phx-nav__link { font-size: 14.5px; letter-spacing: .03em; }
}

@media (max-width: 900px) {
  .phx-navtoggle { display: inline-flex; }

  .phx-nav {
    position: fixed;
    inset: 0;
    z-index: var(--phx-z-panel);
    display: block;
    padding: calc(86px + env(safe-area-inset-top, 0px)) var(--phx-gutter) 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(120% 80% at 92% 0%, rgba(226, 58, 46, .3), transparent 60%),
      linear-gradient(166deg, #101A2E 0%, #0B0D12 78%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .28s var(--phx-ease),
                transform .28s var(--phx-ease),
                visibility .28s linear;
  }

  .phx-header[data-open="true"] .phx-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .phx-nav__list li + li { border-top: 1px solid rgba(247, 241, 232, .09); }

  .phx-nav__link {
    display: block;
    width: 100%;
    padding: 17px 2px;
    font-family: var(--phx-font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .phx-nav__link::after { bottom: 9px; height: 3px; }

  .phx-navrow .phx-cta { display: none; }

  .phx-navrow__inner { min-height: 58px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .phx-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding-block: 12px;
  }

  .phx-update { font-size: 11.5px; padding-right: 12px; }
  .phx-update__text { white-space: normal; }

  .phx-brand__mark { width: 32px; height: 32px; }
  .phx-brand__name { font-size: 16px; }

  .phx-footer__base {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 34px;
  }
}

/* ---------- 11. 可访问性与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  html.phx-js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .phx-progress { display: none; }

  .phx-btn:hover,
  .phx-footer__list a:hover { transform: none; }
}
