/* GameVault 导航页样式：无外部字体、无图片请求，全部系统栈 */
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-glow: #12171f;
  --panel: #12161c;
  --panel-hi: #171d25;
  --line: #232b36;
  --line-soft: #1a2129;
  --text: #e7eaf0;
  --text-dim: #98a2b3;
  --text-faint: #6b7686;
  --focus: #8ab4ff;
  --accent: #8ab4ff;
  --radius: 14px;
  --maxw: 1080px;
  --gap: 1rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding: 0 1.25rem 3rem;
  background-color: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, var(--bg-glow) 0%, var(--bg) 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 8px 0;
  background: var(--panel-hi);
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  z-index: 10;
}

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

/* ---------- 页头 ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.hero__mark {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-faint);
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero__tagline {
  margin: 0.75rem 0 0;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  color: var(--text-dim);
}

/* ---------- 站点网格 ---------- */
.board {
  max-width: var(--maxw);
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: stretch;
}

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  padding: 1.35rem 1.35rem 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--panel-hi);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.card__tagline {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.card__desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.55;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.7;
}

.badge {
  flex: none;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.7;
  white-space: nowrap;
  color: var(--text-dim);
}

.badge--main {
  border-color: #2c6a4c;
  color: #7ed6a5;
}

.badge--independent {
  border-color: #6c5730;
  color: #e0c07a;
}

.card__notice {
  margin: 0.15rem 0 0;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.card__notice::before {
  content: "◦ ";
}

/* 备用入口：整卡可点时，内层链接自己接管点击 */
.card__alt {
  margin: 0.1rem 0 0;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.card__alt-link {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card__alt-link:hover {
  color: var(--text);
}

.card__alt-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- 状态提示 ---------- */
.state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.state--warn {
  border-color: #6c5730;
  color: #e0c07a;
}

.state code {
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  background: var(--panel-hi);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82em;
}

/* ---------- 反馈入口（仅 feedbackEmail 非空时出现） ---------- */
.foot__feedback {
  margin: 0 0 0.5rem;
}

.foot__feedback a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.foot__feedback a:hover {
  border-color: var(--text-faint);
  background: var(--panel);
}

.foot__feedback a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- 页脚 ---------- */
.foot {
  max-width: var(--maxw);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.foot__line {
  margin: 0.15rem 0;
}

.foot__line--dim {
  color: #55606e;
}

/* ---------- 无障碍：尊重减弱动态 ---------- */
@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;
  }

  .card:hover {
    transform: none;
  }
}
