/* ==========================================================================
   凤凰体育娱乐 · /assets/site.css
   共享外壳：reset / 令牌 / 中文排版 / 页头 / 页脚 / 通用组件
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd, figure, blockquote, pre {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--fx-gold); outline-offset: 3px; }
::selection { background: var(--fx-orange); color: #fff; }

/* ---------- 02. 令牌 ---------- */
:root {
  --fx-orange: #E8481C;
  --fx-orange-deep: #B51F18;
  --fx-green: #1E7A5A;
  --fx-green-soft: #A8D8C4;
  --fx-night: #0B1B33;
  --fx-night-soft: #263B5E;
  --fx-gold: #C9A227;
  --fx-cream: #F6F0E4;
  --fx-ink: #2C1A12;
  --fx-white: #FFFFFF;

  --font-display: "Inter", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
                  "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas,
               "Liberation Mono", Menlo, monospace;

  --shell: 1320px;
  --gutter: clamp(18px, 4.6vw, 64px);
  --rail-h: 30px;
  --bar-h: 72px;
  --header-h: calc(var(--rail-h) + var(--bar-h));

  --line-ink: rgba(44, 26, 18, 0.16);
  --line-cream: rgba(246, 240, 228, 0.16);
}

/* ---------- 03. 中文排版与页面底 ---------- */
body {
  min-height: 100vh;
  background-color: var(--fx-cream);
  background-image:
    linear-gradient(rgba(44, 26, 18, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 26, 18, 0.038) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--fx-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fx-ink);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#main-content { display: block; }

/* ---------- 04. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--fx-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-180%);
  transition: transform 0.24s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 05. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 120;
  background-color: rgba(11, 27, 51, 0);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(11, 27, 51, 0.88) 0%,
    rgba(11, 27, 51, 0.52) 62%,
    rgba(11, 27, 51, 0) 100%);
  transition: opacity 0.4s ease;
}

.site-header.is-solid {
  background-color: var(--fx-night);
  box-shadow: 0 1px 0 0 rgba(201, 162, 39, 0.8);
}
.site-header.is-solid::before { opacity: 0; }

.header-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--rail-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-cream);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 240, 228, 0.66);
  white-space: nowrap;
}

.rail-item { overflow: hidden; text-overflow: ellipsis; }
.rail-brand { color: rgba(246, 240, 228, 0.82); }

.rail-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fx-gold);
}

.rail-cert .dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--fx-orange);
  box-shadow: 0 0 0 3px rgba(232, 72, 28, 0.22);
}

.rail-ver { color: rgba(246, 240, 228, 0.55); }

.header-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
  min-height: var(--bar-h);
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--fx-cream);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--fx-orange), var(--fx-orange-deep));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--fx-gold);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.16; }

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(246, 240, 228, 0.62);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 2px;
  color: rgba(246, 240, 228, 0.8);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.24s ease;
}

.nav-link:hover { color: var(--fx-white); }

.nav-idx {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--fx-gold);
  transform: translateY(3px);
}

.nav-label { display: inline-block; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--fx-orange);
  transition: right 0.3s ease;
}
.nav-link:hover::after { right: 0; }

.nav-link[aria-current="page"] { color: var(--fx-white); }
.nav-link[aria-current="page"]::after { right: 0; background: var(--fx-orange); }

.nav-foot { display: none; }

/* 头部操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  padding: 10px 14px;
  border: 1px solid rgba(246, 240, 228, 0.34);
  color: var(--fx-cream);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  transition: border-color 0.24s ease, background-color 0.24s ease;
}
.nav-toggle:hover { border-color: var(--fx-gold); background: rgba(201, 162, 39, 0.12); }

.nav-toggle-mark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: currentColor; }
.nav-toggle-text { line-height: 1; }

/* 阅读进度 */
.header-progress {
  position: relative;
  z-index: 1;
  height: 2px;
  background: rgba(246, 240, 228, 0.14);
}
.header-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--fx-orange), var(--fx-gold));
}

/* ---------- 06. 页脚控制台 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  padding-top: clamp(46px, 6vw, 84px);
  background: var(--fx-night);
  color: var(--fx-cream);
  border-top: 3px solid var(--fx-orange);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 240, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 228, 0.05) 1px, transparent 1px);
  background-size: 88px 88px;
}

.footer-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(26px, 3.6vw, 54px);
  padding-bottom: clamp(32px, 4.4vw, 60px);
  border-bottom: 1px solid var(--line-cream);
}

.footer-brand { min-width: 0; }

.footer-mark {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--fx-orange), var(--fx-orange-deep));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.footer-name { font-size: 22px; font-weight: 700; letter-spacing: 0.06em; }

.footer-latin {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fx-gold);
}

.footer-claim {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(246, 240, 228, 0.6);
  max-width: 30ch;
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--fx-green-soft);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  font-size: 15px;
  color: rgba(246, 240, 228, 0.82);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.22s ease, border-color 0.22s ease;
}
.footer-list a:hover { color: var(--fx-white); border-bottom-color: var(--fx-orange); }

.footer-version {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(201, 162, 39, 0.48);
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--fx-gold);
}
.footer-version span {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(246, 240, 228, 0.68);
}

.footer-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 3px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fx-cream);
  border-bottom: 2px solid var(--fx-orange);
  transition: color 0.22s ease;
}
.footer-feedback::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--fx-orange);
}
.footer-feedback:hover { color: var(--fx-orange); }

.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 48px);
  padding-block: clamp(28px, 3.6vw, 46px);
  border-bottom: 1px solid var(--line-cream);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 32px;
}

.contact-row { min-width: 0; }

.contact-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--fx-green-soft);
  margin-bottom: 5px;
}

.contact-row dd {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(246, 240, 228, 0.9);
  word-break: break-word;
}

.contact-note {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(246, 240, 228, 0.5);
  max-width: 46ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(18px, 3vw, 36px);
  padding-block: 26px 34px;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }

.footer-legal a {
  font-size: 14px;
  color: rgba(246, 240, 228, 0.74);
  transition: color 0.22s ease;
}
.footer-legal a:hover { color: var(--fx-orange); }

.footer-icp,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(246, 240, 228, 0.48);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  padding: 10px 16px;
  border: 1px solid rgba(246, 240, 228, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fx-cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease,
              background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--fx-orange); border-color: var(--fx-orange); color: #fff; }

/* ---------- 07. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background-color 0.24s ease, color 0.24s ease,
              border-color 0.24s ease, transform 0.24s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--fx-orange);
  border-color: var(--fx-orange);
  color: #fff;
}
.btn-primary:hover { background: var(--fx-orange-deep); border-color: var(--fx-orange-deep); }

.btn-outline {
  background: transparent;
  border-color: rgba(246, 240, 228, 0.42);
  color: var(--fx-cream);
}
.btn-outline:hover { border-color: var(--fx-gold); color: var(--fx-gold); }

.btn-ghost {
  background: transparent;
  border-color: rgba(44, 26, 18, 0.4);
  color: var(--fx-ink);
}
.btn-ghost:hover { border-color: var(--fx-orange); color: var(--fx-orange); }

.btn-block { width: 100%; }

/* ---------- 08. 结构工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 128px); }
.section--cream { background: var(--fx-cream); }
.section--tint { background: rgba(168, 216, 196, 0.26); }
.section--night { background: var(--fx-night); color: var(--fx-cream); }
.section--night h1,
.section--night h2,
.section--night h3 { color: var(--fx-cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fx-orange);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.rule { height: 1px; border: 0; background: var(--line-ink); }
.rule--dark { background: var(--line-cream); }

.prose { max-width: 40em; font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 1.1em; }

.grid { display: grid; gap: clamp(18px, 2.6vw, 34px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(44, 26, 18, 0.6);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "／"; color: var(--fx-gold); }
.breadcrumb a { transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--fx-orange); }
.breadcrumb--dark { color: rgba(246, 240, 228, 0.62); }
.breadcrumb--dark a:hover { color: var(--fx-gold); }

/* 图片占位容器（页面阶段放入 img） */
.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--fx-night-soft);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(205deg, rgba(232, 72, 28, 0.2), transparent 58%);
}
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame:hover img { transform: scale(1.04); }

/* 显现协议 */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- 09. 响应式 ---------- */
@media (max-width: 1024px) {
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-tag { display: none; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 360px);
    margin: 0;
    padding: calc(var(--rail-h) + var(--bar-h) + 26px) 26px 40px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--fx-night);
    border-left: 1px solid rgba(201, 162, 39, 0.45);
    transform: translateX(105%);
    transition: transform 0.42s cubic-bezier(0.22, 0.8, 0.24, 1);
    overflow-y: auto;
    z-index: 130;
  }
  .site-nav[data-open] { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line-cream); }
  .nav-link { width: 100%; padding: 16px 0; font-size: 17px; align-items: center; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--fx-white); }
  .nav-link[aria-current="page"] .nav-label {
    padding-bottom: 2px;
    border-bottom: 2px solid var(--fx-orange);
  }

  .nav-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }

  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(11, 27, 51, 0.62);
  }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .rail-cert { display: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { margin-inline-start: 0; }
  .btn { padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .media-frame:hover img { transform: none; }
  .btn:hover { transform: none; }
}
