/*
  Echopact 官网共享样式（多页面版本）。
  作用：
  1) 提供统一 header/footer/按钮/卡片体系；
  2) 支持 World/Media/Community/Updates/FAQ 页面结构；
  3) 保持纯静态 CSS，可直接被 dist 输出使用。
*/
:root {
  color-scheme: dark;
  --bg: #060b14;
  --panel: #0d172b;
  --panel-soft: #101d33;
  --text: #e8f1ff;
  --muted: #9db6d6;
  --line: #28446e;
  --accent: #7bd2ff;
  --accent-2: #b786ff;
  --max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(123, 210, 255, 0.22), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(183, 134, 255, 0.2), transparent 30%),
    var(--bg);
  line-height: 1.58;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--text);
  color: #000;
  padding: 6px 12px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(6, 11, 20, 0.8);
  border-bottom: 1px solid rgba(123, 210, 255, 0.25);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current='page'] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}

main,
.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section { padding: 70px 0 14px; }
.hero { padding-top: 92px; }

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  max-width: 15ch;
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin-bottom: 12px;
}

.subtitle,
.lead {
  max-width: 70ch;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(13, 23, 43, 0.75);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #081423;
  font-weight: 700;
}

.card-grid,
.community-links,
.slot-grid,
.keyart-grid,
.devlog-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 16px;
  border: 1px solid rgba(123, 210, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(13, 23, 43, 0.95), rgba(10, 16, 30, 0.95));
}

.media-placeholder,
.trailer-slot {
  border: 1px solid rgba(123, 210, 255, 0.3);
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(17, 32, 57, 0.85), rgba(11, 17, 29, 0.85));
}

.media-placeholder svg,
.trailer-slot svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.slot,
.keyart-slot {
  min-height: 112px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(123, 210, 255, 0.35);
  border-radius: 12px;
  background: rgba(10, 18, 34, 0.7);
  padding: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid rgba(123, 210, 255, 0.35);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  font-size: 12px;
}

.list-panel {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.list-panel li {
  border-left: 3px solid rgba(123, 210, 255, 0.5);
  padding: 8px 12px;
  background: rgba(10, 20, 36, 0.7);
}

.meta-inline {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
}

.link-card {
  text-decoration: none;
  color: inherit;
}

.details-wrap details,
details {
  border: 1px solid rgba(123, 210, 255, 0.22);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: rgba(10, 16, 30, 0.82);
}
summary {
  cursor: pointer;
  font-weight: 600;
}

.site-footer {
  margin-top: 54px;
  margin-bottom: 32px;
  color: var(--muted);
  border-top: 1px solid rgba(123, 210, 255, 0.2);
  padding-top: 16px;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(7, 12, 22, 0.95);
  }
  .site-nav.open { display: flex; }
}
