/* =================================================================
   凤凰体育注册 · 共享外壳样式
   /assets/site.css
   ================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 16px);
}

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

ul, ol { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration: none; }

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

button { background: none; border: 0; padding: 0; cursor: pointer; }

table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink-900: #0A0E14;
  --ink-800: #141A22;
  --paper: #F4EFE7;
  --paper-hi: #FFFCF6;
  --flame: #FF4D00;
  --flame-soft: #FF8A3D;
  --cyan: #00E5FF;
  --cyan-deep: #0B7C8C;
  --graphite: #5A6472;
  --line: #2A323C;
  --green: #35D07F;

  --rail: 88px;
  --topbar: 56px;

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

  --ease: cubic-bezier(.2, .8, .3, 1);
}

/* ---------- 3. 全局排版与页面基底 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail);
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.16;
  color: var(--paper-hi);
}

h1 { font-size: clamp(30px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 28px); }
h4 { font-size: 20px; letter-spacing: -.01em; }

p { max-width: 40em; }

strong { font-weight: 700; }

::selection { background: var(--flame); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 4. 骨架工具 ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(18px, 3.6vw, 56px);
}

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

.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: 10px;
  left: calc(var(--rail) + 10px);
  z-index: 120;
  padding: 10px 18px;
  background: var(--flame);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* ---------- 5. 阅读进度条 ---------- */
.rail-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  background: var(--flame);
  transform: scaleY(0);
  transform-origin: top center;
  pointer-events: none;
  z-index: 62;
}

/* ---------- 6. 顶栏（移动端） ---------- */
.topbar { display: none; }

/* ---------- 7. 品牌轨道（桌面侧栏） ---------- */
.rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0 20px;
  background: var(--ink-800);
  border-right: 1px solid var(--line);
  z-index: 66;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.rail__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--flame);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  transition: background .16s var(--ease);
}

.rail__mark:hover { background: var(--flame-soft); }

.rail__tagline {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  line-height: 1;
  color: var(--graphite);
  max-width: none;
}

.rail__nav {
  flex: 1 1 auto;
  width: 100%;
  overflow-x: visible;
  overflow-y: auto;
  scrollbar-width: none;
}

.rail__nav::-webkit-scrollbar { display: none; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 64px;
  min-height: 56px;
  padding: 8px 0;
  border: 1px solid transparent;
  color: var(--graphite);
  transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}

.rail__code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  line-height: 1;
}

.rail__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  z-index: 5;
  padding: 6px 12px;
  background: var(--ink-900);
  border: 1px solid var(--line);
  color: var(--paper-hi);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--paper-hi);
  background: rgba(244, 239, 231, .05);
  border-color: var(--line);
}

.rail__link:hover .rail__label,
.rail__link:focus-visible .rail__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.rail__link[aria-current="page"] {
  color: var(--paper-hi);
  background: rgba(255, 77, 0, .1);
  border-color: var(--flame);
}

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

.rail__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 22px;
  background: var(--flame);
  transform: translateY(-50%);
}

.rail__quick {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 12px 6px 0;
  border-top: 1px solid var(--line);
}

.rail__quick a {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--graphite);
  padding: 3px 2px;
  transition: color .16s var(--ease);
}

.rail__quick a:hover { color: var(--cyan); }

/* ---------- 8. 遮罩 ---------- */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, .72);
  opacity: 0;
  pointer-events: none;
  z-index: 82;
  transition: opacity .18s var(--ease);
}

.nav-scrim[data-open] {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-hi);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}

.btn:hover {
  border-color: var(--flame-soft);
  background: rgba(255, 77, 0, .12);
  transform: translateX(2px);
}

.btn--flame {
  background: var(--flame);
  border-color: var(--flame);
  color: var(--ink-900);
}

.btn--flame:hover {
  background: var(--flame-soft);
  border-color: var(--flame-soft);
}

.btn--cyan {
  border-color: rgba(0, 229, 255, .45);
  color: var(--cyan);
}

.btn--cyan:hover {
  background: rgba(0, 229, 255, .12);
  border-color: var(--cyan);
}

.btn--ghost { color: var(--paper); }

/* ---------- 10. 标签 / 面包屑 / 面板 / 切角 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--flame { color: var(--flame); border-color: rgba(255, 77, 0, .45); }
.tag--cyan  { color: var(--cyan);  border-color: rgba(0, 229, 255, .4); }
.tag--green { color: var(--green); border-color: rgba(53, 208, 127, .4); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--graphite);
}

.crumb li { display: inline-flex; align-items: center; }

.crumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: var(--line);
}

.crumb a { transition: color .16s var(--ease); }
.crumb a:hover { color: var(--cyan); }

.panel {
  background: var(--ink-800);
  border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--paper {
  background: var(--paper);
  border-color: #D9D1C4;
  color: #131A22;
}

.panel--paper h1,
.panel--paper h2,
.panel--paper h3,
.panel--paper h4 { color: #0A0E14; }

.slice {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-800);
  border: 1px solid var(--line);
}

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

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

.media__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  background: rgba(10, 14, 20, .82);
  border: 1px solid var(--line);
  color: var(--paper-hi);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- 12. 网格 / 数据 / 时间轴 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--cyan);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--graphite);
}

.timeline {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -29px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--line);
}

.timeline__item--on::before {
  background: var(--flame);
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 77, 0, .16);
}

/* ---------- 13. 页脚 ---------- */
.foot {
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr 1.3fr;
  gap: 48px;
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 44px);
}

.foot__col { min-width: 0; }

.foot__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--paper-hi);
  line-height: 1.2;
}

.foot__logo-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--flame);
}

.foot__lead {
  margin-top: 14px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite);
}

.foot__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--graphite);
}

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

.foot__list a {
  font-size: 14px;
  color: var(--paper);
  transition: color .16s var(--ease);
}

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

.foot__contact {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.foot__contact > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.foot__contact dt {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.foot__contact dd {
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--graphite);
}

.foot__bar p { max-width: none; }

.foot__pin {
  position: fixed;
  left: calc(var(--rail) + 18px);
  bottom: 18px;
  z-index: 58;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(10, 14, 20, .88);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  backdrop-filter: blur(8px);
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}

.foot__pin::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  flex: 0 0 auto;
}

.foot__pin:hover {
  color: var(--flame-soft);
  border-color: var(--flame);
  background: rgba(255, 77, 0, .14);
}

/* ---------- 14. 平板断点 ---------- */
@media (max-width: 1100px) {
  .foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

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

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 981px) {
  .foot__bar { padding-left: 168px; }
}

/* ---------- 15. 移动断点 ---------- */
@media (max-width: 980px) {
  body {
    padding-left: 0;
    padding-top: var(--topbar);
  }

  .skip-link { left: 12px; }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 84;
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--topbar);
    padding: 0 12px 0 14px;
    background: rgba(20, 26, 34, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .topbar__mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: var(--flame);
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  }

  .topbar__brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--paper-hi);
  }

  .topbar__toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    transition: color .16s var(--ease), border-color .16s var(--ease);
  }

  .topbar__toggle[aria-expanded="true"] {
    color: var(--flame);
    border-color: var(--flame);
  }

  .topbar__bars {
    width: 18px;
    height: 12px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
  }

  .nav-scrim { top: var(--topbar); }

  .rail {
    top: var(--topbar);
    bottom: 0;
    width: min(84vw, 300px);
    align-items: stretch;
    gap: 14px;
    padding: 20px 0 26px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .22s var(--ease);
    z-index: 86;
  }

  .rail[data-open] {
    transform: translateX(0);
    box-shadow: 24px 0 70px rgba(0, 0, 0, .62);
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
  }

  .rail__mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .rail__tagline {
    writing-mode: horizontal-tb;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .rail__nav { width: 100%; }

  .rail__list {
    align-items: stretch;
    gap: 2px;
    padding: 0 12px;
  }

  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-left: 2px solid transparent;
    color: var(--paper);
  }

  .rail__code { font-size: 11px; color: var(--graphite); }

  .rail__label {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    border: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
  }

  .rail__link:hover .rail__label,
  .rail__link:focus-visible .rail__label { transform: none; }

  .rail__link[aria-current="page"] {
    border-color: transparent;
    border-left-color: var(--flame);
  }

  .rail__link[aria-current="page"]::before { display: none; }

  .rail__quick {
    align-items: stretch;
    gap: 2px;
    padding: 14px 12px 0;
  }

  .rail__quick a {
    font-size: 13px;
    padding: 9px 14px;
  }

  .foot__pin {
    left: 14px;
    bottom: 14px;
  }
}

/* ---------- 16. 手机断点 ---------- */
@media (max-width: 700px) {
  body { font-size: 15px; }

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

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .foot__col--brand { grid-column: auto; }

  .foot__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 76px;
  }

  .foot__contact > div { grid-template-columns: 38px minmax(0, 1fr); }
}

/* ---------- 17. 减少动效 ---------- */
@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;
  }
}
