/* ============================================================
   瑞祥电竞 · 共享站点样式 /assets/site.css
   深海蓝基底 + 电光青牵引 + 熔岩橙行动 + 荧光绿状态
   ============================================================ */

/* ---------- 1. 变量 ---------- */
:root {
  --abyss: #06121F;
  --panel: #0B2239;
  --steel: #214B63;
  --cyan: #39E6FF;
  --mist: #C9F7FF;
  --paper: #EAF8FF;
  --lava: #FF6A3D;
  --lime: #B6FF4A;
  --slate: #8FB3C4;
  --alert: #FF4D6D;

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

  --shell-max: 1320px;
  --gutter: clamp(16px, 4vw, 52px);
  --radius: 2px;
  --shadow-hard: 6px 6px 0 #143049;
  --ease: cubic-bezier(.22, .75, .3, 1);
}

/* ---------- 2. Reset 与中文排版 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--mist); }

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

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

/* ---------- 4. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.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;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.9;
  color: var(--paper);
}

/* ---------- 5. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--lime);
  color: #0A1A00;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid var(--abyss);
  border-radius: var(--radius);
  transform: translateY(-220%);
  transition: transform .18s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  color: #0A1A00;
}

/* ---------- 6. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--abyss);
  border-bottom: 2px solid var(--steel);
}

.header-top {
  background: var(--abyss);
  border-bottom: 1px solid rgba(33, 75, 99, .75);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 3vw, 32px);
  min-height: 54px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 58%, 58% 100%, 0 100%);
  box-shadow: 0 0 18px rgba(57, 230, 255, .4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--paper);
}

.brand-line {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--slate);
}

.header-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  background: rgba(11, 34, 57, .92);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(182, 255, 74, .9);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.header-main {
  background: var(--panel);
  border-top: 1px solid rgba(57, 230, 255, .08);
}

.header-main-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: 64px;
  padding-block: 10px;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-item { list-style: none; }

.nav-link {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mist);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav-link:hover {
  color: var(--paper);
  background: rgba(57, 230, 255, .1);
  border-color: var(--steel);
}
.nav-link[aria-current="page"] {
  color: var(--abyss);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(57, 230, 255, .22);
}

.header-cta {
  flex: 0 0 auto;
  font-size: 14px;
  padding: 12px 18px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  color: var(--mist);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform .2s var(--ease), opacity .2s ease;
}

.nav-toggle-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--lime) 58%, var(--lava) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
  border-color: var(--mist);
  color: var(--mist);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: none;
}

.btn--cta {
  background: var(--lava);
  border-color: var(--lava);
  color: #180800;
  box-shadow: 4px 4px 0 rgba(6, 18, 31, .9);
}
.btn--cta:hover {
  background: #FF8156;
  border-color: #FF8156;
  color: #180800;
  box-shadow: var(--shadow-hard);
}

.btn--ghost {
  border-color: var(--steel);
  color: var(--mist);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--lime {
  border-color: var(--lime);
  color: var(--lime);
}
.btn--lime:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--abyss);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 7vw, 96px);
  background: var(--abyss);
  border-top: 2px solid var(--steel);
  color: var(--slate);
  font-size: 14px;
}

.footer-feedback {
  background: var(--lava);
  color: #180800;
  border-bottom: 2px solid var(--steel);
}

.footer-feedback-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 13px;
}

.footer-feedback-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .01em;
  color: #180800;
}
.footer-feedback-text .mono {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid rgba(24, 8, 0, .45);
  border-radius: var(--radius);
  background: rgba(24, 8, 0, .08);
}

.footer-feedback-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid #180800;
  border-radius: var(--radius);
  color: #180800;
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.footer-feedback-link:hover {
  background: #180800;
  color: var(--lava);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(34px, 5vw, 60px);
}

.footer-brand { min-width: 0; }
.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-brand-name {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--paper);
}

.footer-summary {
  margin: 0;
  max-width: 32ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--slate);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.contact-value {
  color: var(--paper);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  min-width: 0;
}

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

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.footer-link {
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.5;
  transition: color .16s ease;
}
.footer-link:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--steel);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal-link {
  font-size: 13px;
  color: var(--slate);
  transition: color .16s ease;
}
.footer-legal-link:hover { color: var(--cyan); }

.footer-icp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--slate);
}

/* ---------- 9. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 130;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  background: rgba(11, 34, 57, .94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease,
              background .16s ease, color .16s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--cyan);
  color: var(--abyss);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding-block: 13px;
  border-bottom: 1px solid rgba(33, 75, 99, .55);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--steel);
}
.breadcrumb-item a { color: var(--slate); }
.breadcrumb-item a:hover { color: var(--cyan); }
.breadcrumb-item[aria-current="page"] { color: var(--mist); }

/* ---------- 11. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  background: #08192A;
}
.media-frame img,
.media-frame video,
.media-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    linear-gradient(140deg, rgba(57, 230, 255, .16), transparent 46%),
    repeating-linear-gradient(90deg, rgba(33, 75, 99, .32) 0 1px, transparent 1px 22px);
}
.media-frame--flat::after { display: none; }
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--hero { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--slate);
}

/* ---------- 12. 区块 / 面板 / 标签 / 网格 ---------- */
.section { padding-block: clamp(36px, 6vw, 80px); }

.panel {
  background: var(--panel);
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
}
.panel--bare { background: transparent; }
.panel--cyan { border-color: var(--cyan); }
.panel--lava { border-color: var(--lava); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: rgba(6, 18, 31, .7);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  line-height: 1.6;
  text-transform: uppercase;
}
.tag--cyan {
  border-color: rgba(57, 230, 255, .55);
  color: var(--cyan);
  background: rgba(57, 230, 255, .08);
}
.tag--lime {
  border-color: rgba(182, 255, 74, .6);
  color: var(--lime);
  background: rgba(182, 255, 74, .08);
}
.tag--lava {
  border-color: rgba(255, 106, 61, .6);
  color: var(--lava);
  background: rgba(255, 106, 61, .08);
}
.tag--alert {
  border-color: rgba(255, 77, 109, .65);
  color: var(--alert);
  background: rgba(255, 77, 109, .08);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--asym { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ---------- 13. 章节跟随目录 ---------- */
.spy-nav {
  position: sticky;
  top: 150px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--steel);
}

.spy-link {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--slate);
  transition: color .16s ease, background .16s ease;
}
.spy-link:hover { color: var(--mist); }
.spy-link.is-active {
  color: var(--cyan);
  background: rgba(57, 230, 255, .1);
  font-weight: 700;
}

/* ---------- 14. 显现场景 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--asym { grid-template-columns: minmax(0, 1fr); }
}

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

  .header-main-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .header-cta {
    font-size: 13px;
    padding: 10px 14px;
  }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    order: 3;
    background: var(--panel);
    border-top: 2px solid var(--steel);
    border-bottom: 2px solid var(--steel);
    padding: 10px var(--gutter) 18px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, .55);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .site-header[data-open] .primary-nav { display: flex; }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
  }

  .nav-link {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 0;
    border-bottom: 1px solid rgba(33, 75, 99, .6);
  }
  .nav-link[aria-current="page"] { box-shadow: none; }

  .site-header[data-open] .nav-toggle {
    border-color: var(--cyan);
    color: var(--cyan);
  }
  .site-header[data-open] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(.2);
  }
  .site-header[data-open] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

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

  .spy-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-top: 2px solid var(--steel);
    padding-left: 0;
    padding-top: 10px;
  }
}

@media (max-width: 760px) {
  .header-top-inner { min-height: 48px; padding-block: 6px; }
  .header-main-inner { min-height: 56px; padding-block: 8px; }
  .header-status { display: none; }
  .brand-name { font-size: 17px; }
  .brand-line { font-size: 11px; }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .footer-feedback-inner { justify-content: flex-start; }
  .footer-feedback-text { font-size: 14px; }

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

@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;
  }

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