/* 军团展示（roster）—— 纸面 + 暗场两套 token，组件只引用 var(--rs-*)。
   命名空间 rs-，不碰 wiki 现有 .card/.topbar/.nav/.doc。 */

:root {
  --rs-bg: #f7f6f3;
  --rs-bg-alt: #efece5;
  --rs-surface: #ffffff;
  --rs-surface-2: #f4f1ea;
  --rs-line: #e5e1d8;
  --rs-line-strong: #d7d1c4;
  --rs-ink: #1c1a17;
  --rs-ink-2: #5a544b;
  --rs-ink-3: #6e675c;
  --rs-accent: #f2b94b;
  --rs-accent-ink: #a06a12;
  --rs-accent-ink-strong: #8a5a10;
  --rs-accent-soft: #fdf4e0;

  --rs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --rs-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  --rs-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(1.875rem, 1.4rem + 1.9vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-lg: 1.0625rem;
  --fs-md: 0.9375rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-label: 0.75rem;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  --w-container: 1200px;
  --nav-h: 72px;
  --pad-x: 24px;
  --section-y: clamp(48px, 7vw, 96px);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-ctl: 10px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(28, 26, 23, 0.05);
  --sh-2: 0 10px 28px -18px rgba(28, 26, 23, 0.35);
  --sh-3: 0 22px 60px -36px rgba(28, 26, 23, 0.45);
  --sh-glow: 0 0 0 1px rgba(242, 185, 75, 0.3), 0 12px 32px -16px rgba(180, 121, 27, 0.4);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 260ms;
}

[data-surface="stage"] {
  --rs-bg: #12100e;
  --rs-bg-alt: #17140f;
  --rs-surface: #1a1714;
  --rs-surface-2: #221d18;
  --rs-line: rgba(242, 185, 75, 0.18);
  --rs-line-strong: rgba(242, 185, 75, 0.32);
  --rs-ink: #efe7d8;
  --rs-ink-2: #b8ae9c;
  --rs-ink-3: #8b8478;
  --rs-accent: #e9c26a;
  --rs-accent-ink: #e9c26a;
  --rs-accent-ink-strong: #f2b94b;
  --rs-accent-soft: rgba(242, 185, 75, 0.1);
  --sh-1: 0 1px 0 rgba(242, 185, 75, 0.06);
  --sh-2: 0 18px 46px -30px rgba(0, 0, 0, 0.9);
  --sh-3: 0 28px 80px -40px rgba(0, 0, 0, 0.95);
}

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

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

body.rs-body {
  margin: 0;
  background: var(--rs-bg);
  color: var(--rs-ink);
  font-family: var(--rs-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.rs-body img {
  max-width: 100%;
}

.rs-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
}

.rs-skip:focus {
  left: 12px;
  top: 12px;
  padding: 10px 16px;
  background: var(--rs-accent);
  color: #1c1a17;
  border-radius: var(--r-ctl);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 顶栏 */

.rs-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--rs-bg) 92%, transparent);
  border-bottom: 1px solid var(--rs-line);
  backdrop-filter: saturate(140%) blur(10px);
}

.rs-nav__inner {
  max-width: var(--w-container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.rs-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.rs-nav__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--rs-accent);
  color: #1c1a17;
  font-family: var(--rs-serif);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--sh-glow);
}

.rs-nav__names {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.rs-nav__names strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.rs-nav__names small {
  font-family: var(--rs-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--rs-ink-3);
  text-transform: uppercase;
}

.rs-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1 1 auto;
}

.rs-nav__links a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--rs-ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.rs-nav__links a:hover {
  color: var(--rs-ink);
  background: var(--rs-surface-2);
}

.rs-nav__links a.is-active {
  color: var(--rs-ink);
  font-weight: 600;
}

.rs-nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--rs-accent);
}

.rs-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}

.rs-nav__toggle {
  display: none;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rs-line-strong);
  border-radius: var(--r-ctl);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--fs-sm);
  cursor: pointer;
}

/* ---------------------------------------------------------------- 版心 */

.rs-main {
  display: block;
  min-height: 60vh;
}

.rs-wrap {
  width: 100%;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.rs-hero {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--pad-x) clamp(32px, 5vw, 56px);
}

.rs-eyebrow {
  margin: 0 0 var(--sp-3);
  font-family: var(--rs-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rs-accent-ink);
}

.rs-hero h1 {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-display);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.rs-hl {
  display: inline-block;
  position: relative;
  z-index: 0;
}

.rs-hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--rs-accent);
  opacity: 0.42;
  border-radius: 2px;
  z-index: -1;
}

.rs-lead {
  max-width: 62ch;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--rs-ink-2);
}

.rs-meta {
  margin: 0;
  font-family: var(--rs-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  color: var(--rs-ink-3);
}

.rs-quote {
  max-width: 44ch;
  margin: 0 0 var(--sp-4);
  font-family: var(--rs-serif);
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--rs-ink-2);
}

/* ---------------------------------------------------------------- 分组 */

.rs-section {
  padding: var(--section-y) 0;
}

.rs-group {
  border-top: 1px solid var(--rs-line);
}

.rs-group--alt {
  background: var(--rs-bg-alt);
}

.rs-group__head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.rs-group__no {
  padding-top: 6px;
  font-family: var(--rs-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rs-accent-ink);
}

.rs-group__text {
  flex: 1 1 auto;
}

.rs-group__head h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rs-group__head h2 small {
  margin-left: 8px;
  font-family: var(--rs-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--rs-ink-3);
  vertical-align: 0.35em;
}

.rs-group__head p {
  margin: 0;
  max-width: 60ch;
  color: var(--rs-ink-2);
  font-size: var(--fs-md);
}

.rs-group__count {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid var(--rs-line-strong);
  border-radius: var(--r-pill);
  font-family: var(--rs-mono);
  font-size: var(--fs-label);
  color: var(--rs-ink-3);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 成员卡 */

.rs-grid {
  display: grid;
  gap: 24px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
}

.rs-member {
  position: relative;
  padding: var(--sp-6);
  background: var(--rs-surface);
  border: 1px solid var(--rs-line);
  border-radius: var(--r-md);
  text-align: center;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rs-member:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--rs-line-strong);
}

.rs-member.is-highlight {
  border-color: var(--rs-accent);
  box-shadow: var(--sh-glow);
}

.rs-member.is-highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--rs-accent);
}

.rs-member__avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  overflow: hidden;
  background: var(--rs-surface-2);
  box-shadow: 0 0 0 2px var(--rs-accent), 0 0 0 6px var(--rs-surface);
}

.rs-member__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.rs-initial {
  display: none;
}

.is-fallback .rs-initial {
  display: block;
  font-family: var(--rs-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.is-fallback {
  display: grid !important;
  place-items: center;
  background: var(--rs-surface-2);
  color: var(--rs-accent-ink);
  font-family: var(--rs-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}

.rs-member__name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rs-member__en {
  margin: 4px 0 0;
  font-family: var(--rs-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rs-accent-ink);
}

.rs-member__role {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-xs);
  color: var(--rs-ink-3);
}

.rs-member__bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--rs-ink-2);
}

.rs-member__badges,
.rs-member__links {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.rs-member__links {
  flex-direction: column;
  gap: 2px;
  font-family: var(--rs-mono);
  font-size: 11px;
  color: var(--rs-ink-3);
}

.rs-member__links li span {
  margin-right: 6px;
  opacity: 0.7;
}

.rs-badge {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--rs-accent-soft);
  color: var(--rs-accent-ink-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 空态 */

.rs-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  padding: var(--sp-8);
  border: 1px dashed var(--rs-line-strong);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--rs-ink-3);
}

.rs-empty__title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--rs-ink-2);
}

.rs-empty__hint {
  margin: 0;
  font-size: var(--fs-sm);
}

/* ---------------------------------------------------------------- 按钮 / chip */

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--rs-ink);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.rs-btn:focus-visible {
  outline: 2px solid var(--rs-accent-ink);
  outline-offset: 2px;
}

.rs-btn--primary {
  background: var(--rs-accent);
  color: #1c1a17;
  box-shadow: var(--sh-glow);
}

.rs-btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.rs-btn--ghost {
  border-color: var(--rs-line-strong);
  color: var(--rs-ink-2);
}

.rs-btn--ghost:hover {
  border-color: var(--rs-ink-3);
  color: var(--rs-ink);
  background: var(--rs-surface-2);
}

.rs-btn--danger:hover {
  border-color: #c0574d;
  color: #a8402f;
  background: rgba(192, 87, 77, 0.08);
}

.rs-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: var(--fs-xs);
}

.rs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-8);
}

.rs-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--rs-line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--rs-ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rs-chip:hover {
  color: var(--rs-ink);
  border-color: var(--rs-ink-3);
}

.rs-chip.is-active {
  background: var(--rs-accent);
  border-color: var(--rs-accent);
  color: #1c1a17;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 暗场带 CTA */

.rs-band {
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--rs-bg);
  color: var(--rs-ink);
  border-top: 1px solid var(--rs-line);
}

.rs-band__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.rs-band h2 {
  margin: 0 0 var(--sp-3);
  font-family: var(--rs-serif);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.2;
}

.rs-band p {
  margin: 0 0 var(--sp-6);
  color: var(--rs-ink-2);
  font-size: var(--fs-md);
}

/* ---------------------------------------------------------------- 荣誉殿堂 */

.rs-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(233, 194, 106, 0.16), transparent 68%),
    radial-gradient(600px 300px at 12% 108%, rgba(233, 194, 106, 0.08), transparent 70%),
    var(--rs-bg);
}

.rs-stage__beams {
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  pointer-events: none;
  opacity: 0.5;
}

.rs-stage__beam {
  position: absolute;
  top: -180px;
  width: 220px;
  height: 780px;
  background: linear-gradient(180deg, rgba(233, 194, 106, 0.22), rgba(233, 194, 106, 0));
  filter: blur(28px);
  transform: rotate(14deg);
}

.rs-stage__beam:nth-child(1) {
  left: 18%;
}

.rs-stage__beam:nth-child(2) {
  left: 46%;
  transform: rotate(-10deg);
  opacity: 0.7;
}

.rs-stage__beam:nth-child(3) {
  right: 16%;
  transform: rotate(18deg);
  opacity: 0.5;
}

.rs-stage__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(233, 194, 106, 0.5), transparent),
    radial-gradient(1px 1px at 68% 18%, rgba(233, 194, 106, 0.4), transparent),
    radial-gradient(1px 1px at 42% 72%, rgba(239, 231, 216, 0.35), transparent),
    radial-gradient(1px 1px at 84% 62%, rgba(239, 231, 216, 0.3), transparent),
    radial-gradient(1px 1px at 12% 84%, rgba(233, 194, 106, 0.3), transparent);
  opacity: 0.6;
}

.rs-hero--stage {
  position: relative;
  text-align: center;
  padding-top: calc(var(--nav-h) + 64px);
}

.rs-hero--stage .rs-meta,
.rs-hero--stage .rs-quote {
  margin-left: auto;
  margin-right: auto;
}

.rs-hall__title {
  font-family: var(--rs-serif);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rs-hall__body {
  position: relative;
  padding-bottom: var(--sp-16);
}

.rs-niches {
  display: grid;
  justify-content: center;
  gap: 76px 32px;
  grid-template-columns: repeat(3, minmax(0, 360px));
}

.rs-niche {
  position: relative;
  min-height: 352px;
  padding: 40px 24px 32px;
  border: 1px solid var(--rs-line);
  border-radius: var(--r-xs);
  background: linear-gradient(180deg, var(--rs-surface), var(--rs-bg-alt));
  text-align: center;
  box-shadow: var(--sh-2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
}

.rs-niche::before {
  content: "";
  position: absolute;
  inset: -1px 24% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rs-accent), transparent);
  opacity: 0.8;
}

.rs-niche::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(233, 194, 106, 0.12), transparent 70%);
  pointer-events: none;
  border-radius: 0 0 var(--r-xs) var(--r-xs);
}

.rs-niche:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3), var(--sh-glow);
}

.rs-niches:has(.rs-niche:hover) .rs-niche:not(:hover) {
  opacity: 0.55;
  filter: brightness(0.72) saturate(0.7);
}

.rs-niche--featured {
  border-color: var(--rs-line-strong);
}

.rs-niche__crown {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--rs-accent);
  font-size: 16px;
}

.rs-niche__portrait {
  width: 132px;
  height: 132px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  overflow: hidden;
  background: var(--rs-surface-2);
  box-shadow: 0 0 0 1px var(--rs-line-strong), 0 0 42px -6px rgba(233, 194, 106, 0.55);
}

.rs-niche__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.14) brightness(0.96) contrast(1.05);
}

.rs-niche__name {
  margin: 0;
  font-family: var(--rs-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.rs-niche__en {
  margin: 4px 0 0;
  font-family: var(--rs-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rs-accent);
}

.rs-niche__award {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-xs);
  color: var(--rs-ink-2);
}

.rs-niche__rule {
  display: block;
  width: 40px;
  height: 1px;
  margin: var(--sp-4) auto;
  background: linear-gradient(90deg, transparent, var(--rs-accent), transparent);
}

.rs-niche__line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--rs-ink-2);
}

.rs-niche__era {
  margin: var(--sp-4) 0 0;
  font-family: var(--rs-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--rs-ink-3);
}

.rs-wall {
  position: relative;
  padding-bottom: var(--sp-16);
}

.rs-wall__head h2 {
  margin: 0 0 4px;
  font-size: var(--fs-h2);
  font-weight: 600;
}

.rs-wall__head p {
  margin: 0 0 var(--sp-6);
  color: var(--rs-ink-3);
  font-size: var(--fs-sm);
}

.rs-wall__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.rs-wall__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rs-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.02);
}

.rs-wall__avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rs-surface-2);
}

.rs-wall__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-wall__avatar .is-fallback {
  font-size: 14px;
}

.rs-wall__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rs-wall__text strong {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-wall__text small {
  font-size: 11px;
  color: var(--rs-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-callout {
  position: relative;
  padding-bottom: var(--sp-20);
}

.rs-callout > div {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--rs-line-strong);
  border-radius: var(--r-md);
  background: var(--rs-accent-soft);
  text-align: center;
}

.rs-callout h2 {
  margin: 0 0 var(--sp-2);
  font-family: var(--rs-serif);
  font-size: var(--fs-h2);
  font-weight: 600;
}

.rs-callout p {
  margin: 0 0 var(--sp-5);
  color: var(--rs-ink-2);
  font-size: var(--fs-md);
}

/* ---------------------------------------------------------------- 教官 */

.rs-teach-wrap {
  padding-bottom: var(--sp-16);
}

.rs-teach-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1080px;
  margin: 0 auto;
}

.rs-teach {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1px solid var(--rs-line);
  border-radius: var(--r-md);
  background: var(--rs-surface);
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.rs-teach:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

.rs-teach__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rs-teach__avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rs-surface-2);
  box-shadow: 0 0 0 1px var(--rs-line-strong);
}

.rs-teach__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-teach__avatar .is-fallback {
  font-size: 1.75rem;
}

.rs-teach__id h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.rs-teach__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--rs-ink-3);
  letter-spacing: 0.02em;
}

.rs-teach__teachers {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--rs-accent-ink);
  font-weight: 600;
}

.rs-teach__summary {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--rs-ink-2);
}

.rs-teach__syllabus {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--rs-ink-2);
}

.rs-teach__more summary {
  cursor: pointer;
  font-size: var(--fs-xs);
  color: var(--rs-accent-ink);
  margin-bottom: 6px;
}

.rs-teach__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rs-line);
}

.rs-teach__time {
  font-family: var(--rs-mono);
  font-size: 12px;
  color: var(--rs-ink-3);
}

/* ---------------------------------------------------------------- 页脚 */

.rs-foot {
  border-top: 1px solid var(--rs-line);
  background: var(--rs-bg-alt);
}

.rs-foot__inner {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) var(--pad-x) var(--sp-6);
  display: grid;
  gap: var(--sp-8);
  grid-template-columns: 1.4fr 1fr 1fr;
}

.rs-foot__brand {
  margin: 0 0 var(--sp-2);
  font-family: var(--rs-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rs-foot__note {
  margin: 0;
  max-width: 36ch;
  font-size: var(--fs-sm);
  color: var(--rs-ink-3);
}

.rs-foot__title {
  margin: 0 0 var(--sp-2);
  font-family: var(--rs-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rs-ink-3);
}

.rs-foot__col a {
  display: block;
  padding: 3px 0;
  color: var(--rs-ink-2);
  font-size: var(--fs-sm);
  text-decoration: none;
}

.rs-foot__col a:hover {
  color: var(--rs-accent-ink);
}

.rs-foot__legal {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--sp-8);
  font-family: var(--rs-mono);
  font-size: 11px;
  color: var(--rs-ink-3);
}

/* ---------------------------------------------------------------- 后台 */

.rs-admin {
  padding-bottom: var(--sp-20);
}

.rs-admin h1 {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-h1);
  font-weight: 700;
}

.rs-admin__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: var(--sp-6) 0 var(--sp-8);
  border-bottom: 1px solid var(--rs-line);
}

.rs-admin__tabs a {
  position: relative;
  padding: 10px 14px;
  color: var(--rs-ink-2);
  font-size: var(--fs-sm);
  text-decoration: none;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.rs-admin__tabs a:hover {
  background: var(--rs-surface-2);
  color: var(--rs-ink);
}

.rs-admin__tabs a.is-active {
  color: var(--rs-ink);
  font-weight: 600;
}

.rs-admin__tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  background: var(--rs-accent);
}

.rs-admin__view {
  margin-left: auto;
  font-family: var(--rs-mono);
  font-size: var(--fs-xs) !important;
}

.rs-admin__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.rs-admin__back {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
}

.rs-admin__back a {
  color: var(--rs-accent-ink);
  text-decoration: none;
}

.rs-card {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--rs-line);
  border-radius: var(--r-md);
  background: var(--rs-surface);
  box-shadow: var(--sh-1);
}

.rs-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.rs-form__title {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-h3);
  font-weight: 600;
}

.rs-form__hint {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--rs-ink-3);
}

.rs-form__grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rs-form__grid--tight {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.rs-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rs-line);
}

.rs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rs-field--wide {
  grid-column: 1 / -1;
}

.rs-field__label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rs-ink-2);
}

.rs-field__label em {
  color: #c0574d;
  font-style: normal;
}

.rs-field__hint {
  font-size: 11px;
  color: var(--rs-ink-3);
}

.rs-field input[type="text"],
.rs-field input[type="url"],
.rs-field input[type="number"],
.rs-field input[type="file"],
.rs-field select,
.rs-field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--rs-line-strong);
  border-radius: var(--r-ctl);
  background: var(--rs-bg);
  color: var(--rs-ink);
  font: inherit;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.rs-field textarea {
  resize: vertical;
  min-height: 72px;
}

.rs-field input:focus,
.rs-field select:focus,
.rs-field textarea:focus {
  outline: none;
  border-color: var(--rs-accent);
  box-shadow: 0 0 0 3px rgba(242, 185, 75, 0.35);
}

.rs-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--rs-ink-2);
  cursor: pointer;
}

.rs-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--rs-accent-ink);
}

.rs-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}

.rs-admin__rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.rs-admin__row {
  margin: 0;
  padding: var(--sp-4);
  border: 1px solid var(--rs-line);
  border-radius: var(--r-md);
  background: var(--rs-bg-alt);
}

.rs-admin__row legend {
  padding: 0 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.rs-admin__row legend code {
  font-family: var(--rs-mono);
  font-size: 11px;
  color: var(--rs-ink-3);
}

.rs-admin__row--new {
  border-style: dashed;
  background: transparent;
}

.rs-admin__list {
  overflow-x: auto;
}

.rs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.rs-table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rs-line);
  font-family: var(--rs-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rs-ink-3);
  text-align: left;
  white-space: nowrap;
}

.rs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rs-line);
  vertical-align: middle;
}

.rs-table tr:last-child td {
  border-bottom: 0;
}

.rs-table__person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rs-table__person > span:last-child {
  display: flex;
  flex-direction: column;
}

.rs-table__person small {
  font-family: var(--rs-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--rs-ink-3);
}

.rs-table__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--rs-surface-2);
  flex: 0 0 auto;
}

.rs-table__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rs-table__avatar .is-fallback {
  font-size: 15px;
}

.rs-table__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.rs-table__actions form {
  margin: 0;
}

.rs-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--rs-surface-2);
  color: var(--rs-ink-3);
  font-size: 11px;
  white-space: nowrap;
}

.rs-tag--ok {
  background: var(--rs-accent-soft);
  color: var(--rs-accent-ink-strong);
}

.rs-flash {
  margin: 0 0 var(--sp-4);
  padding: 10px 14px;
  border: 1px solid var(--rs-line-strong);
  border-left: 3px solid var(--rs-accent);
  border-radius: var(--r-sm);
  background: var(--rs-accent-soft);
  font-size: var(--fs-sm);
  color: var(--rs-ink-2);
}

.rs-admin code {
  font-family: var(--rs-mono);
  font-size: 12px;
  color: var(--rs-ink-2);
}

/* ---------------------------------------------------------------- 断点 */

@media (min-width: 1280px) {
  .rs-grid {
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .rs-teach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-foot__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {
  .rs-niches {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 60px;
    --pad-x: 16px;
  }

  .rs-nav__links,
  .rs-nav__actions .rs-btn {
    display: none;
  }

  .rs-nav__toggle {
    display: inline-flex;
    align-items: center;
  }

  body.rs-nav-open .rs-nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--sp-3) var(--pad-x) var(--sp-4);
    background: var(--rs-bg);
    border-bottom: 1px solid var(--rs-line);
    box-shadow: var(--sh-2);
  }

  body.rs-nav-open .rs-nav__links a {
    padding: 12px;
    border-radius: var(--r-sm);
  }

  body.rs-nav-open .rs-nav__links a.is-active::after {
    display: none;
  }

  .rs-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-member {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .rs-hero--stage {
    padding-top: calc(var(--nav-h) + 40px);
  }

  .rs-teach-grid,
  .rs-foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-admin__view {
    margin-left: 0;
  }

  .rs-table__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .rs-niches {
    grid-template-columns: minmax(0, 360px);
    gap: 48px 0;
  }

  .rs-niche {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .rs-member:hover,
  .rs-niche:hover,
  .rs-teach:hover,
  .rs-btn--primary:hover {
    transform: none;
  }
}

/* 组选择器：复用 /wiki/static/squads.js 的 DOM 契约（.squad-picker 等），外观走 roster token。 */
.squad-picker { position: relative; }

.squad-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.squad-chips:empty { display: none; }

.squad-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid var(--rs-line-strong);
  border-radius: 999px;
  background: var(--rs-accent-soft);
  color: var(--rs-ink);
  font-size: var(--fs-sm);
}

.squad-chip-x {
  margin-left: 1px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rs-ink-3);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.squad-chip-x:hover { color: var(--rs-ink); }

.squad-input {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--rs-line-strong);
  border-radius: 10px;
  background: var(--rs-surface);
  color: var(--rs-ink);
  font: inherit;
  font-size: var(--fs-md);
}

.squad-input:focus { outline: 2px solid var(--rs-accent); outline-offset: 1px; }

.squad-menu {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--rs-line-strong);
  border-radius: 10px;
  background: var(--rs-surface);
  box-shadow: 0 8px 24px rgba(28, 26, 23, .14);
}

.squad-menu-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  font-size: var(--fs-md);
  cursor: pointer;
}

.squad-menu-item:hover,
.squad-menu-item.active { background: var(--rs-surface-2); }

.squad-menu-empty { padding: 8px 11px; font-size: var(--fs-sm); color: var(--rs-ink-3); }

.squad-readonly .squad-input { display: none; }

