/* =========================================================
   RAIDER · V5：转场 + 字体可读性
   ========================================================= */

/* ---------- 全站字体栈：中文优先用系统中黑体，标题用重字 ---------- */
body,
button,
input,
select,
textarea {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- 逐页转场：扫描线擦除（0.3s） ---------- */
.route-fx {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: #08080b;
  overflow: hidden;
}

.route-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 4px
  );
}

.route-fx::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff2fae 26%, #5b7cff 68%, transparent);
  box-shadow: 0 0 26px rgba(255, 47, 174, 0.85);
}

.route-fx i {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(36, 64, 255, 0) 0 30%,
      rgba(36, 64, 255, 0.18) 30% 32%,
      rgba(36, 64, 255, 0) 32% 66%,
      rgba(255, 47, 174, 0.16) 66% 68%,
      rgba(255, 47, 174, 0) 68%
    );
}

.route-fx.is-cover {
  visibility: visible;
  animation: fxCover 0.15s linear forwards;
}

.route-fx.is-cover::after {
  animation: fxLine 0.3s linear;
}

.route-fx.is-reveal {
  visibility: visible;
  animation: fxReveal 0.16s linear forwards;
}

@keyframes fxCover {
  from {
    opacity: 0;
    transform: translateY(-5%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fxReveal {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(5%);
  }
}

@keyframes fxLine {
  from {
    top: -3px;
  }
  to {
    top: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-fx {
    display: none !important;
  }
}

/* ---------- 字体可读性：小字抬底、淡字加深 ---------- */
/* 常见小号 meta 标签 */
.mono,
.tag,
.badge,
.server-no,
.op-no,
.card-head .mono,
.dt-kv span,
.readout span,
.cmd-pill,
.sh-pill,
.sec-kicker,
.club-kicker,
.page-head .kicker {
  font-size: max(10.5px, 0.7em);
  letter-spacing: 0.12em;
}

/* 卡片里的小数据标签（MAP / PING / 战绩） */
.op-data span,
.server-meta span,
.event-meta span,
.card-meta span,
.club-stats span,
.op-meta span {
  font-size: 10.5px;
  color: rgba(244, 244, 242, 0.6);
  letter-spacing: 0.1em;
}

/* 淡色正文加深 */
.club-intro,
.sec-head p,
.owner-bio,
.card-body p,
.dt-desc,
.cmd-hint,
.foot-links,
.footer p,
.order-note,
.event-desc,
.troop-desc {
  color: rgba(244, 244, 242, 0.62);
}

/* 表格可读性 */
.table th {
  font-size: 11px;
  color: rgba(244, 244, 242, 0.58);
  letter-spacing: 0.1em;
}

.table td {
  font-size: 13px;
  color: rgba(244, 244, 242, 0.88);
}

.table td.mono,
.table th.mono {
  font-size: 11.5px;
}

/* 导航 */
.nav > a {
  font-size: 13.5px;
}

/* 按钮 */
.btn,
.yy-btn {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.btn-sm {
  font-size: 12px;
}

/* 正文基准 */
body {
  font-size: 14px;
  line-height: 1.65;
}

/* 标题字重（避免细体看不清） */
.sec-head h2,
.page-head h1,
.card-head h3,
.event-card h3,
.member-name,
.op-name,
.server-name {
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* 小屏再抬一档 */
@media (max-width: 760px) {
  .mono,
  .tag,
  .badge,
  .server-no,
  .op-no {
    font-size: 11px;
  }

  .table td {
    font-size: 13.5px;
  }
}


/* ---------- 图片上的文字：加投影 + 加深压暗层，保证可读 ---------- */
.server-name,
.server-group,
.server-no,
.op-name,
.event-card h3,
.member-card h3,
.server-card .badge,
.server-card .tag {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.92), 0 0 2px rgba(0, 0, 0, 0.9);
}

.server-veil {
  background: linear-gradient(180deg, rgba(8, 8, 11, 0.4) 0%, rgba(8, 8, 11, 0.74) 44%, #08080b 100%);
}

.server-cover {
  filter: grayscale(1) contrast(1.1) brightness(0.66);
}

.server-card:hover .server-cover {
  filter: grayscale(1) contrast(1.1) brightness(0.74);
}


/* =========================================================
   字体根因修复：Share Tech Mono / Orbitron / Bebas Neue / Anton
   都没有中文字形，中文会逐字回退到宋体，看起来又细又歪。
   做法：① 给三个字体变量补中文回退；② 中文为主的交互元素
   直接用中文无衬线栈。
   ========================================================= */
:root {
  --font-cn: "Inter", "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, "Cascadia Mono", Consolas, "Courier New",
    "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", monospace;
  --font-tech: "Orbitron", ui-monospace, Consolas, "PingFang SC", "Microsoft YaHei",
    "Source Han Sans SC", sans-serif;
  --font-display: "Bebas Neue", Impact, "Arial Narrow", "PingFang SC", "Microsoft YaHei",
    "Source Han Sans SC", sans-serif;
}

/* 按钮 / 导航 / 标签：中文用无衬线，字重和字距按中文调 */
.btn,
.btn-sm,
.btn-lg,
.yy-btn,
.tab,
.page-btn,
.section-more,
.nav > a,
.foot-links a,
.admin-nav a,
.poster-btn,
.dt-actions .btn,
.sh-cta .btn,
.cmd-foot,
.rank-tabs .tab {
  font-family: var(--font-cn) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 中文标题块：用中文重体，不用拉丁展示体 */
.sec-head h2,
.page-head h1,
.card-head h3,
.event-card h3,
.member-card .member-name,
.op-name,
.server-name,
.table th,
.card h3,
.detail-head h2,
.panel-head h3,
.admin-card span,
.admin-panel-head h3 {
  font-family: var(--font-cn) !important;
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* 正文与说明 */
p,
li,
td,
th,
span,
small,
label,
input,
textarea,
select {
  font-family: var(--font-cn);
}

/* 需要等宽感的地方保持等宽，但中文有回退 */
.mono,
.mono *,
.code,
.poster-hint,
.kicker,
.club-kicker,
.sec-kicker,
.readout span,
.readout b,
.cmd-pill,
.sh-pill,
.stat-tile span,
.stat-tile b {
  font-family: var(--font-mono);
}


/* ---------- 恢复首屏大标题的 Anton（逐字 span 不能被通用规则覆盖） ---------- */
.club-hero h1,
.club-hero h1 .tch,
.club-hero h1 .tspace,
.club-hero h1 em {
  font-family: "Anton", var(--font-display) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0.005em !important;
}

/* 数字/战役统计继续用展示体（拉丁），中文回退已包含在 --font-display */
.club-stats b,
.sh-stats b {
  font-family: "Anton", var(--font-display);
}
