/* ============================================================
   天天电竞 · 共享站点样式 / assets/site.css
   主题：夜间赛事控制室（深空靛蓝 + 暖纸文字 + 霓虹强调）
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --void-indigo: #070B16;
  --deep-blue: #0D1830;
  --warm-paper: #F3E9D7;
  --parchment-muted: #C8BFAE;
  --neon-cyan: #38F2E1;
  --electric-purple: #8B6CFF;
  --signal-orange: #FF5A36;
  --focus-gold: #FFD166;
  --slate-line: #64708C;
  --signal-green: #8DFFB2;

  --line-soft: rgba(100, 112, 140, 0.34);
  --line-strong: rgba(100, 112, 140, 0.6);
  --ink-cyan: rgba(56, 242, 225, 0.10);
  --ink-purple: rgba(139, 108, 255, 0.12);
  --ink-orange: rgba(255, 90, 54, 0.12);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC Condensed", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --grid-gap: clamp(1rem, 2.4vw, 2rem);
  --radius-sharp: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

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

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

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

button { background: none; border: 0; }

a { color: var(--warm-paper); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- 3. 基底与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--void-indigo);
  background-image:
    radial-gradient(70% 45% at 88% -8%, rgba(139, 108, 255, 0.18), transparent 68%),
    radial-gradient(55% 42% at -6% 6%, rgba(56, 242, 225, 0.12), transparent 70%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--warm-paper);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.35vw + 0.88rem, 1.0625rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--neon-cyan); color: #04110f; }

/* ---------- 4. 可访问性 ---------- */
.skip-link {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 400;
  padding: 0.75rem 1.15rem;
  background: var(--focus-gold);
  color: #14100a;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sharp);
  transition: top 0.16s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sharp);
}

#main-content:focus-visible { outline: 3px solid var(--focus-gold); outline-offset: 6px; }

/* ---------- 5. 排版构件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--neon-cyan);
  opacity: 0.7;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.display-xl { font-size: clamp(3rem, 8vw, 7.5rem); }

.section-title { font-size: clamp(1.75rem, 4vw, 3.5rem); }

.lede {
  max-width: 34em;
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.125rem);
  line-height: 1.85;
  color: var(--parchment-muted);
}

.prose { max-width: 36em; }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--neon-cyan); }

.data {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--parchment-muted);
}

/* ---------- 6. 布局容器与网格 ---------- */
.shell,
.header-shell,
.footer-shell,
.content-wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

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

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.7em 1.25em;
  border: 1px solid transparent;
  border-radius: var(--radius-sharp);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #04110f;
}
.btn--primary:hover { background: var(--warm-paper); border-color: var(--warm-paper); color: #0a0f1c; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--warm-paper);
}
.btn--ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

.btn--compact {
  min-height: 44px;
  padding: 0.45em 0.95em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ---------- 8. 标签与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.32em 0.62em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sharp);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-muted);
  background: rgba(255, 255, 255, 0.02);
}
.tag--cyan { color: var(--neon-cyan); border-color: rgba(56, 242, 225, 0.5); background: var(--ink-cyan); }
.tag--purple { color: var(--electric-purple); border-color: rgba(139, 108, 255, 0.5); background: var(--ink-purple); }
.tag--orange { color: var(--signal-orange); border-color: rgba(255, 90, 54, 0.5); background: var(--ink-orange); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--parchment-muted);
}
.breadcrumb-list li { display: inline-flex; align-items: center; gap: 0.55rem; }
.breadcrumb-list li + li::before { content: "/"; color: var(--slate-line); }
.breadcrumb-list a { color: var(--parchment-muted); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--neon-cyan); }
.breadcrumb-list [aria-current="page"] { color: var(--warm-paper); }

/* ---------- 10. 索引列表组件 ---------- */
.index-list {
  display: grid;
  border-top: 1px solid var(--line-soft);
}
.index-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.index-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--electric-purple);
}
.index-body { min-width: 0; }
.index-body a { text-decoration: none; }
.index-body a:hover { color: var(--neon-cyan); }

/* ---------- 11. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sharp);
  background:
    linear-gradient(148deg, rgba(13, 24, 48, 0.95), rgba(6, 10, 20, 0.98) 62%),
    var(--deep-blue);
}
.media-frame img,
.media-frame svg,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 12. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 11, 22, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-top {
  background: linear-gradient(90deg, rgba(13, 24, 48, 0.92), rgba(7, 11, 22, 0.86));
  border-bottom: 1px solid var(--line-soft);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-top .header-shell { min-height: 66px; }
.header-main .header-shell { min-height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--warm-paper);
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(56, 242, 225, 0.55);
  border-radius: var(--radius-sharp);
  background: var(--ink-cyan);
  box-shadow: inset 0 0 18px rgba(56, 242, 225, 0.22);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.brand:hover .brand-mark { box-shadow: inset 0 0 22px rgba(56, 242, 225, 0.42), 0 0 16px rgba(56, 242, 225, 0.28); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--parchment-muted);
}

.header-aux {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.aux-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--parchment-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.aux-link:hover { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-line);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 44px;
  margin-left: auto;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sharp);
  color: var(--warm-paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.nav-toggle-bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.15rem, 1vw, 0.9rem);
  flex-wrap: wrap;
}
.nav-item { display: flex; }
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.55rem;
  border-bottom: 2px solid transparent;
  color: var(--warm-paper);
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--slate-line);
  transition: color 0.18s var(--ease);
}
.nav-text { font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--neon-cyan); border-bottom-color: rgba(56, 242, 225, 0.6); }
.nav-link:hover .nav-index { color: var(--neon-cyan); }
.nav-link[aria-current="page"] { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }
.nav-link[aria-current="page"] .nav-index { color: var(--focus-gold); }

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(178deg, rgba(13, 24, 48, 0.98) 0%, rgba(6, 10, 20, 1) 78%);
  border-top: 1px solid var(--line-soft);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--electric-purple) 46%, var(--signal-orange) 100%);
  opacity: 0.85;
}

.footer-shell { padding-block: clamp(2.5rem, 5vw, 4rem) 1.75rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--warm-paper);
}
.footer-tagline {
  margin-top: 0.65rem;
  max-width: 24em;
  font-size: 0.95rem;
  color: var(--parchment-muted);
}
.footer-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-line);
}

.footer-col-title {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.footer-links { display: grid; gap: 0.1rem; }
.footer-link {
  display: inline-block;
  padding: 0.42rem 0;
  color: var(--parchment-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer-link:hover { color: var(--warm-paper); text-decoration: underline; text-underline-offset: 4px; }

.contact-list { display: grid; gap: 0.65rem; }
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.contact-key {
  flex: 0 0 auto;
  min-width: 2.9em;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-line);
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--warm-paper);
  word-break: break-all;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sharp);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--parchment-muted);
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.copy-btn:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); background: var(--ink-cyan); }

.footer-contact-link {
  margin-top: 0.9rem;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--parchment-muted);
}
.footer-icp { color: var(--parchment-muted); }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}
.legal-links .footer-link { font-size: 0.78rem; padding: 0.3rem 0; }

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

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-top .header-shell { flex-wrap: wrap; padding-block: 0.5rem; gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.8fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-label { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-main .header-shell { flex-wrap: wrap; row-gap: 0.5rem; padding-bottom: 0.5rem; }
  .primary-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .primary-nav[data-open] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.5rem 0.85rem;
    animation: navDrop 0.18s var(--ease) both;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 0.3rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link[aria-current="page"] { border-bottom-color: var(--line-soft); background: var(--ink-cyan); }
  .nav-link[aria-current="page"] .nav-text { color: var(--neon-cyan); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .header-top .header-shell { min-height: 58px; }
  .aux-link { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 0.8rem; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.08em; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .index-item { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .index-item > :last-child { grid-column: 2; }
}

@media (max-width: 420px) {
  .btn--compact { display: none; }
}

/* ---------- 16. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0ms !important;
  }
  .primary-nav[data-open] { animation: none !important; }
}

/* ---------- 17. 打印友好 ---------- */
@media print {
  body {
    background: #ffffff !important;
    color: #14161c !important;
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .nav-toggle { display: none !important; }
  a { color: #14161c !important; text-decoration: underline; }
  html.js-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}
