/* ==========================================================================
   凤凰体育 Site Kit — 共享样式
   文件：/assets/site.css
   ========================================================================== */

/* 1. 设计变量
   ========================================================================== */
:root {
  /* 品牌色 */
  --phn-orange: #F25C05;
  --phn-orange-dark: #C64503;
  --phn-navy: #2B3A42;
  --phn-cream: #F7F2E9;
  --phn-stone: #D8D5C8;
  --phn-moss: #7A8B6F;
  --phn-terracotta: #C46A4A;
  --phn-gold: #D4AF37;
  --phn-ink: #1A1D1C;
  --phn-gray: #6E6E6A;

  /* 字体栈 */
  --phn-font-heading: 'Oswald', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --phn-font-body: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --phn-font-mono: 'Roboto Mono', 'Courier New', monospace;

  /* 布局与层级 */
  --phn-container: 1200px;
  --phn-radius: 6px;
  --phn-z-header: 100;
  --phn-z-progress: 300;
  --phn-z-skip: 200;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
  margin: 0;
}

img,
picture,
svg,
video {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 3. 基础排版
   ========================================================================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--phn-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--phn-ink);
  background: var(--phn-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--phn-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--phn-ink);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--phn-orange-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--phn-orange);
}

::selection {
  background: var(--phn-orange);
  color: #fff;
}

/* 4. 布局容器
   ========================================================================== */
.container {
  width: min(var(--phn-container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.page-title {
  font-family: var(--phn-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--phn-gray);
  max-width: 720px;
}

#main-content {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}

/* 5. 焦点可见
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--phn-orange);
  outline-offset: 2px;
}

.btn-download:focus-visible,
.board-panel:focus-visible {
  outline: none;
  position: relative;
}

.btn-download:focus-visible::after,
.board-panel:focus-visible::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 2px solid var(--phn-ink);
  pointer-events: none;
}

/* 6. 跳过链接
   ========================================================================== */
.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: var(--phn-z-skip);
  transform: translateY(-150%);
  background: var(--phn-orange);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--phn-font-body);
  border-radius: 0 0 var(--phn-radius) var(--phn-radius);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* 7. 滚动进度条
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--phn-z-progress);
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--phn-orange) 0%, var(--phn-gold) 100%);
  pointer-events: none;
  border-radius: 0 3px 3px 0;
}

/* 8. 页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--phn-z-header);
  overflow: hidden;
  background: rgba(247, 242, 233, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 213, 200, 0.7);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 14px,
    rgba(242, 92, 5, 0.025) 14px,
    rgba(242, 92, 5, 0.025) 15px
  );
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(216, 213, 200, 0.94);
  box-shadow: 0 4px 20px rgba(26, 29, 28, 0.08);
}

.masthead {
  width: min(var(--phn-container), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 0;
}

/* 8.1 品牌组合
   ========================================================================== */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--phn-ink);
}

.brand-lockup:hover {
  color: var(--phn-orange);
}

.flame-mark {
  display: block;
  width: 21px;
  height: 28px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--phn-gold) 0%, var(--phn-orange) 55%, var(--phn-orange-dark) 100%);
  border-radius: 0 50% 50% 50%;
  transform: rotate(-45deg);
  box-shadow: 0 0 12px rgba(242, 92, 5, 0.3);
}

.brand-name-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-cn {
  display: block;
  font-family: var(--phn-font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--phn-ink);
}

.brand-en {
  display: block;
  font-family: var(--phn-font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--phn-gray);
  line-height: 1;
  margin-top: 3px;
  text-transform: uppercase;
}

/* 8.2 页头操作区
   ========================================================================== */
.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--phn-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--phn-orange);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: var(--phn-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-download-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--phn-font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.btn-download-text {
  font-family: var(--phn-font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 8.3 移动端菜单开关
   ========================================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid rgba(110, 110, 106, 0.3);
  padding: 10px 14px;
  font-family: var(--phn-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--phn-ink);
  cursor: pointer;
  border-radius: var(--phn-radius);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--phn-orange);
  color: var(--phn-orange);
}

.nav-toggle-label {
  font-size: 14px;
  letter-spacing: 0.1em;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 8.4 导航面板
   ========================================================================== */
.nav-panel {
  position: relative;
}

.nav-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 110, 106, 0.25), transparent);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 14px;
  color: var(--phn-ink);
  font-family: var(--phn-font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--phn-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--phn-orange);
}

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

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

.nav-index {
  font-family: var(--phn-font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--phn-gray);
  min-width: 18px;
  transition: color 0.2s ease;
}

.nav-link:hover .nav-index,
.nav-link[aria-current='page'] .nav-index {
  color: var(--phn-orange);
}

/* 9. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--phn-navy);
  color: rgba(247, 242, 233, 0.85);
  margin-top: 80px;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 22px,
    rgba(247, 242, 233, 0.02) 22px,
    rgba(247, 242, 233, 0.02) 23px
  );
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--phn-orange) 0%, var(--phn-gold) 100%);
  z-index: 1;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

.footer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--phn-cream);
}

.footer-brand-lockup:hover {
  color: var(--phn-gold);
}

.footer-brand-lockup .flame-mark {
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.footer-brand-name {
  font-family: var(--phn-font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--phn-cream);
  line-height: 1;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 242, 233, 0.68);
  max-width: 380px;
  margin-bottom: 16px;
}

.footer-trust {
  display: inline-block;
  font-family: var(--phn-font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(212, 175, 55, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 4px 10px;
  border-radius: 2px;
}

.footer-col {
  position: relative;
}

.footer-heading {
  font-family: var(--phn-font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--phn-cream);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-heading::before {
  content: '// ';
  font-family: var(--phn-font-mono);
  color: var(--phn-orange);
  font-size: 14px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-list a {
  color: rgba(247, 242, 233, 0.72);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--phn-gold);
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(247, 242, 233, 0.78);
  line-height: 1.5;
}

.footer-contact-label {
  flex-shrink: 0;
  font-family: var(--phn-font-mono);
  font-size: 12px;
  color: var(--phn-gold);
  background: rgba(212, 175, 55, 0.12);
  padding: 1px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.footer-service-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 242, 233, 0.5);
}

/* 页脚底栏
   ========================================================================== */
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(247, 242, 233, 0.1);
}

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

.footer-copy {
  font-size: 13px;
  color: rgba(247, 242, 233, 0.55);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: rgba(247, 242, 233, 0.68);
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--phn-gold);
}

.footer-legal-divider {
  color: rgba(247, 242, 233, 0.25);
  font-family: var(--phn-font-mono);
  font-size: 12px;
}

.footer-icp {
  font-size: 13px;
  color: rgba(247, 242, 233, 0.45);
  font-family: var(--phn-font-mono);
  letter-spacing: 0.04em;
}

/* 10. 面包屑
   ========================================================================== */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 28px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: var(--phn-gray);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '//';
  margin: 0 8px;
  font-family: var(--phn-font-mono);
  color: var(--phn-stone);
  font-size: 12px;
}

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

.breadcrumb-item a:hover {
  color: var(--phn-orange);
}

.breadcrumb-item[aria-current='page'] {
  color: var(--phn-orange);
  font-weight: 600;
}

/* 11. 栅格
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

/* 12. 切角面板
   ========================================================================== */
.board-panel {
  position: relative;
  background: var(--phn-stone);
  padding: 28px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.25s ease, transform 0.25s ease;
}

.board-panel--cream {
  background: #fff;
  border: 1px solid var(--phn-stone);
}

.board-panel--dark {
  background: var(--phn-navy);
  color: rgba(247, 242, 233, 0.85);
}

.board-panel:hover {
  transform: translateY(-2px);
}

/* 13. 数据标签与辅助组件
   ========================================================================== */
.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--phn-moss);
  color: #fff;
  font-family: var(--phn-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--phn-cream);
  border: 1px solid var(--phn-stone);
  font-size: 12px;
  color: var(--phn-gray);
  border-radius: 2px;
  font-family: var(--phn-font-mono);
  letter-spacing: 0.04em;
}

.speed-line {
  display: block;
  height: 3px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--phn-orange), transparent);
  transform: skewX(-30deg);
  margin: 16px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title-index {
  font-family: var(--phn-font-mono);
  font-size: 14px;
  color: var(--phn-orange);
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* 14. 滚动显现
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 15. 响应式
   ========================================================================== */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .masthead {
    width: min(100%, 100% - 32px);
  }

  .masthead-top {
    min-height: 60px;
    padding: 10px 0;
  }

  .brand-cn {
    font-size: 20px;
  }

  .brand-en {
    font-size: 9px;
  }

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

  .nav-panel {
    display: none;
    border-top: 1px solid rgba(110, 110, 106, 0.15);
  }

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

  .nav-links {
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px 0 16px;
    gap: 0;
  }

  .nav-item + .nav-item {
    border-top: 1px solid rgba(110, 110, 106, 0.12);
  }

  .nav-link {
    padding: 14px 12px;
  }

  .nav-link::after {
    left: 12px;
    right: auto;
    width: 32px;
    bottom: auto;
    top: 0;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }

  .nav-link:hover::after,
  .nav-link[aria-current='page']::after {
    transform: scaleY(1);
  }

  .nav-index {
    min-width: 24px;
  }

  .btn-download-text {
    display: none;
  }

  .btn-download {
    gap: 0;
    padding: 10px 14px;
  }

  .btn-download-mono {
    font-size: 12px;
    padding: 4px 8px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 32px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .footer-legal {
    flex-wrap: wrap;
  }

  .section {
    padding: 48px 0;
  }

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

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .masthead {
    width: calc(100% - 32px);
  }

  .brand-lockup {
    gap: 8px;
  }

  .flame-mark {
    width: 18px;
    height: 24px;
  }

  .brand-cn {
    font-size: 18px;
  }

  .brand-en {
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .masthead-actions {
    gap: 8px;
  }

  .nav-toggle {
    padding: 8px 10px;
  }

  .footer-contact-item {
    flex-direction: column;
    gap: 2px;
  }
}

/* 16. 减少动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .site-header,
  .btn,
  .nav-link,
  .nav-link::after,
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after,
  .board-panel,
  a,
  .footer-nav-list a,
  .footer-legal a {
    transition: none;
  }

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