/* wzzh-canyon-digital · 王者峡谷数字竞技中心 */
:root {
  --bg-deep: #0a1220;
  --bg-panel: rgba(14, 28, 48, 0.72);
  --bg-panel-solid: #0e1c30;
  --grad-hero: linear-gradient(135deg, #0a1220 0%, #0d1a2e 45%, #121a35 100%);
  --accent-cyan: #2dd4e8;
  --accent-cyan-dim: rgba(45, 212, 232, 0.35);
  --accent-purple: #8b6cf6;
  --accent-gold: #c9a962;
  --text-primary: #e8eef5;
  --text-muted: #8a9bb5;
  --border-subtle: rgba(120, 160, 200, 0.18);
  --shadow-glow: 0 0 40px rgba(45, 212, 232, 0.08);
  --font-display: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --container: min(1180px, 92vw);
  --header-h: 64px;
  --preview-bar-h: 0px;
}

body.has-preview-notice {
  --preview-bar-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(45, 212, 232, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(139, 108, 246, 0.05), transparent),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%231a2a40' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-cyan); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: #5ee9f7; }
.container { width: var(--container); margin-inline: auto; }

/* Header */
.preview-notice {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #8b2942;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.site-header {
  position: fixed;
  top: var(--preview-bar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 64px;
  height: auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(10, 18, 32, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}
.header-inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 4vw;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  padding-block: 0.45rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-cyan-dim);
  background: linear-gradient(145deg, rgba(45, 212, 232, 0.15), transparent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--accent-cyan);
}
.brand-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 52vw;
}
.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--text-primary); background: rgba(45, 212, 232, 0.08); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(45, 212, 232, 0.25), rgba(45, 212, 232, 0.08));
  border-color: var(--accent-cyan-dim);
  color: var(--text-primary);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(45, 212, 232, 0.2);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-muted);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--preview-bar-h) + var(--header-h));
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 18, 32, 0.96);
  backdrop-filter: blur(16px);
  padding: 1.5rem 4vw 2rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
}

main { padding-top: calc(var(--preview-bar-h) + var(--header-h)); }

/* Hero */
.hero-canyon {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 4vw 4rem;
  max-width: 1280px;
  margin-inline: auto;
}
.hero-canyon::before {
  content: "";
  position: absolute;
  inset: 10% 5% 20% 40%;
  background: radial-gradient(circle, rgba(45, 212, 232, 0.12), transparent 65%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}
@keyframes pulse-glow {
  to { opacity: 0.5; transform: scale(1.05); }
}
.hero-copy { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-purple);
}
.hero-canyon h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 1rem;
}
.hero-canyon h1 em {
  font-style: normal;
  color: var(--accent-cyan);
  font-weight: 700;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32em;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.hero-brief-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 420px;
}
.brief-cell {
  padding: 0.75rem 0.85rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}
.brief-cell strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}
.brief-cell span { font-size: 0.72rem; color: var(--text-muted); }

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 360px;
}
.hero-frame {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-solid);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 32, 0.85) 100%),
    linear-gradient(90deg, rgba(10, 18, 32, 0.4) 0%, transparent 35%);
  pointer-events: none;
}
.hero-orbit {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -20px;
  bottom: 40px;
  border: 1px dashed var(--accent-cyan-dim);
  border-radius: 50%;
  opacity: 0.6;
}
.hero-tag {
  position: absolute;
  left: -12px;
  top: 20%;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  padding: 0.5rem;
  border-left: 2px solid var(--accent-cyan);
}

/* Sections */
.section {
  padding: 4.5rem 0;
  position: relative;
}
.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.section-head p { margin: 0; color: var(--text-muted); }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

/* Feature tabs */
.feature-deck {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 380px;
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  padding: 0.5rem;
}
.feature-tab {
  text-align: left;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.feature-tab:hover { color: var(--text-primary); }
.feature-tab[aria-selected="true"] {
  background: rgba(45, 212, 232, 0.1);
  color: var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}
.feature-panels { padding: 1.5rem 1.75rem; position: relative; }
.feature-panel { display: none; animation: fade-in 0.35s ease; }
.feature-panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feature-panel h3 { margin: 0 0 0.75rem; font-size: 1.25rem; }
.feature-panel p { color: var(--text-muted); margin: 0 0 1rem; }
.feature-panel img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Linked feature list */
.feature-chain {
  display: grid;
  gap: 0;
  counter-reset: feat;
}
.chain-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.chain-item::before {
  counter-increment: feat;
  content: counter(feat, decimal-leading-zero);
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 700;
  padding-top: 0.15rem;
}
.chain-item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.chain-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.chain-thumb {
  width: 100px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  opacity: 0.9;
}

/* Canyon showcase */
.canyon-stage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  min-height: 420px;
}
.canyon-main {
  grid-row: span 2;
  position: relative;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.canyon-main img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.canyon-main .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(10, 18, 32, 0.92));
}
.canyon-side {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  min-height: 140px;
}
.canyon-side img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.canyon-side figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  background: rgba(10, 18, 32, 0.75);
  color: var(--text-muted);
}

/* Steps */
.steps-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  position: relative;
}
.steps-rail::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan-dim), transparent);
}
.step-card {
  position: relative;
  padding: 1.25rem 1rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--bg-deep);
}
.step-card h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.step-card p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }

/* Changelog */
.changelog-axis {
  border-left: 2px solid var(--border-subtle);
  margin-left: 0.5rem;
  padding-left: 1.75rem;
}
.log-entry {
  position: relative;
  padding-bottom: 2rem;
}
.log-entry::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--text-muted);
}
.log-entry.is-latest::before {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-dim);
}
.log-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}
.log-meta .ver {
  color: var(--accent-purple);
  font-weight: 600;
}
.log-meta time { color: var(--text-muted); }
.log-entry h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.log-entry p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 720px; }
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--bg-panel);
}
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.faq-trigger:hover { background: rgba(255,255,255,0.02); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  transition: transform 0.25s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); border-color: var(--accent-cyan); }
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner {
  overflow: hidden;
  padding: 0 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.faq-item.is-open .faq-panel-inner { padding-bottom: 1rem; }

/* Subpage */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}
.page-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero p { margin: 0; color: var(--text-muted); max-width: 36em; }
.content-narrow { max-width: 720px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-card {
  padding: 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.contact-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }

/* Related & flink */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.related-link-card {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: border-color 0.2s, transform 0.2s;
}
.related-link-card:hover {
  border-color: var(--accent-cyan-dim);
  transform: translateX(2px);
  color: var(--text-primary);
}
.flink-section { padding-top: 2rem; }
.flinks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.flink-item {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.flink-item:hover { color: var(--accent-cyan); }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 12, 22, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--accent-gold); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.img-fallback {
  background: linear-gradient(135deg, #152238, #0e1c30);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  min-height: 120px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 全局组件（回顶 / 友链等）===== */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan-dim);
  background: rgba(10, 18, 32, 0.9);
  color: var(--accent-cyan);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }

@media (max-width: 1200px) {
  .nav-desktop {
    max-width: 46vw;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1024px) {
  .hero-canyon { grid-template-columns: 1fr; min-height: auto; padding-bottom: 3rem; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; }
  .feature-deck { grid-template-columns: 1fr; }
  .feature-tabs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .feature-panel.is-active { grid-template-columns: 1fr; }
  .canyon-stage { grid-template-columns: 1fr; }
  .canyon-main { grid-row: auto; }
  .steps-rail { grid-template-columns: 1fr 1fr; }
  .steps-rail::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .hero-brief-strip { grid-template-columns: 1fr; max-width: none; }
  .chain-item { grid-template-columns: 36px 1fr; }
  .chain-thumb { display: none; }
  .steps-rail { grid-template-columns: 1fr; }
  .related-links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
