/* ============================================================
   RICORD EXPRESS · 瑞科德列车 —— 简约浅色版
   白 / 灰双色带随机交替 · 单一强调色 · 无装饰噪音
   ============================================================ */

:root {
  --white: #ffffff;
  --gray: #f2f3f5;
  --gray-deep: #e9eaee;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e4e6ea;
  --line-2: #d3d6dc;
  --text: #16181d;
  --text-2: #3d4149;
  --muted: #6d7280;
  --faint: #9aa0aa;
  --accent: #a4743a;
  --accent-hover: #8c6130;
  --accent-soft: rgba(164, 116, 58, .1);
  --accent-line: rgba(164, 116, 58, .3);
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --topbar-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-line); }

.wrap { width: min(var(--wrap), 90vw); margin: 0 auto; }

/* ---------- 背景色带（白 / 灰随机交替） ---------- */
[data-band] { background: var(--white); transition: background .4s ease; }
[data-band="gray"] { background: var(--gray); }
[data-band="white"] { background: var(--white); }

[data-band="gray"] .card,
[data-band="gray"] .tile,
[data-band="gray"] .role-card,
[data-band="gray"] .role-tile,
[data-band="gray"] .item-card,
[data-band="gray"] .mod-card,
[data-band="gray"] .server-card,
[data-band="gray"] .post-card,
[data-band="gray"] .filters,
[data-band="gray"] .searchbar input,
[data-band="gray"] .stat-box,
[data-band="gray"] .auth-card,
[data-band="gray"] .data-panel,
[data-band="gray"] .data-mine,
[data-band="gray"] .table-card { background: var(--white); }

/* ============================================================
   入场
   ============================================================ */
.intro {
  position: fixed;
  inset: -26px;
  z-index: 1000;
  overflow: hidden;
  background: var(--white);
}

/* 裂缝 */
.intro__cracks {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity .32s ease;
}
.intro__cracks path {
  fill: none;
  stroke: #15161a;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .22s ease;
}
/* 洞口铺满后，裂纹反白闪现 */
.intro__cracks.is-inverted path { stroke: #fff; }

/* 裂缝起点 */
.intro__seed {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #15161a;
  opacity: 0;
  transform: scale(.2);
  transition: opacity .5s ease, transform .9s cubic-bezier(.2,1,.3,1);
}
.intro__seed.is-live { opacity: 1; transform: scale(1); }

/* 跳过（无文字，仅图标） */
.intro__skip {
  position: absolute;
  top: 52px;
  right: 58px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--faint);
  opacity: 0;
  transition: opacity .5s ease, color .2s, background .2s;
}
.intro__skip.is-live { opacity: 1; }
.intro__skip:hover { color: var(--text); background: var(--gray); }

/* 洞口 */
.intro__hole {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: min(200px, 46vw);
  height: min(200px, 46vw);
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #05060a 0%, #06070b 60%, #101218 82%, #23262d 100%);
  box-shadow: 0 0 0 1px rgba(18,19,24,.9),
              0 0 0 9px rgba(18,19,24,.05),
              0 0 34px rgba(18,19,24,.2),
              0 20px 50px rgba(0,0,0,.24);
  opacity: 0;
  transform: translate(-50%,-50%) scale(.6);
  transition: opacity .6s ease, transform .85s cubic-bezier(.16,1.02,.3,1);
  pointer-events: none;
  cursor: pointer;
}
.intro__hole.is-open { opacity: 1; transform: translate(-50%,-50%) scale(1); pointer-events: auto; }
.intro__hole.is-open:hover { transform: translate(-50%,-50%) scale(1.06); }
.intro__hole:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }

.intro__hole__glow {
  position: absolute;
  inset: -34%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
  animation: holeBreathe 4.4s ease-in-out infinite;
}
@keyframes holeBreathe {
  0%, 100% { opacity: .5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.09); }
}

/* 洞口里透出的字（独立于洞口，不随其缩放） */
.intro__hole__text {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .32em;
  text-indent: .32em;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.45), 0 0 26px rgba(255,255,255,.22);
  opacity: 0;
  transform: translate(-50%,-50%);
  transition: opacity .5s ease;
  pointer-events: none;
}
.intro__hole__text.is-open { opacity: 1; transition-delay: .18s; }

/* 炸开的碎片 */
.intro__shards { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.intro__shard {
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff;
  opacity: 0;
  will-change: transform, opacity;
}

@media (max-width: 820px) {
  .intro__skip { top: 44px; right: 34px; }
}

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--topbar-h);
  padding: 0 5vw;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
}

.brand__text strong, .brand__text small { display: block; line-height: 1.3; }
.brand__text strong { font-size: 13px; font-weight: 600; letter-spacing: .18em; }
.brand__text small { font-size: 10px; letter-spacing: .18em; color: var(--muted); }

.nav { display: flex; justify-content: center; gap: clamp(14px, 1.9vw, 26px); }

.nav a {
  position: relative;
  padding: 24px 0 22px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 16px;
  height: 1px;
  background: var(--accent);
  transition: left .2s, right .2s;
}

.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { left: 0; right: 0; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }

.icon-button,
.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 13px;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: color .2s, border-color .2s, background .2s;
}

.icon-button { width: 36px; padding: 0; }
.icon-button:hover, .account-link:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.account-link--solid { color: #fff; background: var(--accent); border-color: var(--accent); }
.account-link--solid:hover { color: #fff; background: var(--accent-hover); border-color: var(--accent-hover); }
.account-link.is-signed { max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-button { display: none; }

.lang-wrap { position: relative; }

.lang-menu {
  position: absolute;
  top: 44px;
  right: 0;
  min-width: 140px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 22, 29, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
}

.lang-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { padding: 8px 11px; font-size: 12px; text-align: left; color: var(--muted); border-radius: 6px; }
.lang-menu button:hover { color: var(--text); background: var(--surface-2); }
.lang-menu button.is-active { color: var(--accent); }

/* ============================================================
   通用件
   ============================================================ */
.label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}

.btn--solid { color: #fff; background: var(--accent); }
.btn--solid:hover { transform: translateY(-1px); background: var(--accent-hover); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: var(--white); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  transition: gap .2s, color .2s;
}
.text-link:hover { gap: 10px; color: var(--accent-hover); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

.section { padding: 88px 0; }
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.section-heading-row h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: .02em; }
.section-lead { max-width: 620px; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- 内页页头 ---------- */
.page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; letter-spacing: .02em; line-height: 1.3; }
.page-head p { max-width: 720px; font-size: 15px; color: var(--muted); }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px; }
/* 标题上方的小灰字（如「瑞科德改版」） */
.page-head p.page-head__revision {
  max-width: none;
  margin-bottom: -6px;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--faint);
}

.crumb { display: flex; gap: 8px; font-size: 12px; color: var(--faint); }
.crumb a:hover { color: var(--accent); }

/* ---------- 次级选项卡 ---------- */
.tabs { border-bottom: 1px solid var(--line); background: var(--white); }
.tabs__inner { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0 0; }
.tabs a {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--accent); border-color: var(--accent); }

/* ---------- 筛选 / 搜索 ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

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

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: color .2s, border-color .2s, background .2s;
}
.chip-btn:hover { border-color: var(--line-2); color: var(--text); }
.chip-btn.is-active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip-btn i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--faint)); }
.chip-btn b { font-weight: 500; font-size: 11px; color: var(--faint); }
.chip-btn.is-active b { color: var(--accent); }

.searchbar { display: flex; align-items: center; gap: 8px; min-width: 240px; }
.searchbar input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.searchbar input:focus { border-color: var(--accent-line); }
.searchbar input::placeholder { color: var(--faint); }

.result-count { font-size: 12.5px; color: var(--muted); }

/* ---------- 卡片基类 ---------- */
.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.card h2 { font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.card h3 { font-size: 16px; font-weight: 600; }

/* ============================================================
   首页展示轮播（位于首屏文案区顶部、紧贴灰色声明小字）
   ------------------------------------------------------------
   每张图分两层：`.banner__bg` 是模糊放大的同一张图，做环境底色；
   `.banner__img` 等比完整显示（contain），保证梗图上的文字不被裁掉。
   ============================================================ */
.banner {
  position: relative;
  width: 100%;
  height: var(--hero-media-h, clamp(220px, 34vh, 380px));
  margin: 0 0 22px;
  overflow: hidden;
  background: #0d0e11;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.banner__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.banner__slide.is-active { opacity: 1; pointer-events: auto; }

.banner__bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  /* 用亮度压暗代替额外遮罩层：::after 的层级会盖到前景图上 */
  filter: blur(42px) brightness(.3) saturate(135%);
  transform: scale(1.12);
}

.banner__img {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  user-select: none;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .5);
}

.banner__dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.banner__dot {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  transition: background .25s, width .25s;
}
.banner__dot:hover { background: rgba(255, 255, 255, .62); }
.banner__dot.is-active { width: 36px; background: #fff; }

/* ============================================================
   首屏
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, .82fr);
  /* 顶部对齐：让右栏「列车管理全家福」与左栏的图片展示器处在同一行 */
  align-items: start;
  gap: 60px;
  min-height: calc(100vh - var(--topbar-h));
  padding: 9vh 5vw 11vh;
  /* 展示器与全家福共用的媒体高度（宽屏下两者等高，构成整齐的一行） */
  --hero-media-h: clamp(220px, 34vh, 380px);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
}

.hero__ref {
  margin: 0 0 20px;
  max-width: 460px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .04em;
  color: var(--faint);
}

.hero h1 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 600; line-height: 1.22; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero__lead { max-width: 560px; margin: 22px 0 32px; font-size: 15px; line-height: 1.9; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__status { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; font-size: 12px; letter-spacing: .06em; color: var(--faint); }

.station { max-width: 620px; margin: 0 auto; }

.station__media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--gray);
}
.station__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 宽屏下全家福与图片展示器并排成一行：媒体高度取同一个变量，上下边缘严格对齐
   （高度挂在带边框的容器上，靠全局 border-box 与展示器总高一致） */
@media (width > 900px) {
  .station__media { height: var(--hero-media-h, clamp(220px, 34vh, 380px)); }
  .station__media img { height: 100%; aspect-ratio: auto; }
}

.station__card {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.station__card__label { font-size: 10px; letter-spacing: .24em; color: var(--muted); }
.station__card strong { font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.station__card__time { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.station__card__time em { font-style: normal; }
.station__card__time b { font-weight: 600; letter-spacing: .06em; }
.station__card__bar { position: relative; height: 2px; margin-top: 10px; border-radius: 2px; background: var(--gray-deep); overflow: hidden; }
.station__card__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }

/* ---------- 数据条 ---------- */
.stats { padding: 0 0 8px; }

.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.3fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.stats__item { display: flex; flex-direction: column; gap: 2px; padding: 24px 28px; border-right: 1px solid var(--line); }
.stats__item strong { font-size: 28px; font-weight: 600; line-height: 1.3; }
.stats__item span { font-size: 11px; letter-spacing: .18em; color: var(--muted); }

.stats__search { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; color: var(--accent); transition: gap .2s; }
.stats__search:hover { gap: 13px; }

/* ---------- 首页角色卡 ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 258px;
  padding: 26px;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.role-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 22, 29, .06); }
.role-card__line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--role-color); }
.role-card__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.role-card__crest { display: grid; place-items: center; width: 36px; height: 36px; color: var(--role-color); border: 1px solid var(--line-2); border-radius: 50%; }
.role-card__top small { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.role-card strong { margin-top: 22px; font-size: 20px; font-weight: 600; letter-spacing: .06em; }
.role-card code { font-size: 10px; letter-spacing: .1em; color: var(--faint); }
.role-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.role-card__action { margin-top: auto; font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.role-card__action i { margin-left: 5px; font-style: normal; }

/* ---------- 双卡 / 面板 ---------- */
.dispatch { padding: 0 0 88px; }
.dispatch__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; color: var(--accent); border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); }
.tile h3 { font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.tile__text { margin: 10px 0 20px; font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.tile .text-link { margin-top: auto; }

.panels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card--wide { grid-column: 1 / -1; }

.update { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.update time { font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.update h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 600; letter-spacing: .03em; }
.update p { font-size: 13px; line-height: 1.8; color: var(--muted); }

/* 「最近更新」正文：条目很长，做成卡片内的滚动区，避免把首页整体撑高 */
.update__body {
  max-height: min(70vh, 640px);
  margin-top: 4px;
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.update__body::-webkit-scrollbar { width: 6px; }
.update__body::-webkit-scrollbar-track { background: transparent; }
.update__body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.update__body::-webkit-scrollbar-thumb:hover { background: var(--faint); }

.update__body h4 { margin: 20px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--text); }
.update__body h4:first-child { margin-top: 0; }
.update__body h5 { margin: 16px 0 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.update__body p { margin: 0 0 8px; }
.update__body b { font-weight: 600; color: var(--text-2); }
.update__body ol, .update__body ul { margin: 0 0 10px; padding-left: 20px; }
.update__body ol { list-style: decimal; }
.update__body li { margin-bottom: 5px; }
.update__body .upd-note { color: var(--faint); }

/* 新角色列表：角色名 + 阵营标签 + 说明 */
.update__body .upd-roles { padding-left: 0; list-style: none; }
.update__body .upd-roles > li { padding: 11px 0; border-top: 1px dashed var(--line-2); }
.update__body .upd-roles > li:first-child { padding-top: 2px; border-top: 0; }
.update__body .upd-roles > li > b { font-size: 13.5px; color: var(--text); }
.update__body .upd-roles > li > i {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  vertical-align: 1px;
}
.update__body .upd-roles p { margin: 6px 0 0; }
/* 角色条目内的嵌套列表（如权重表、分支子项） */
.update__body .upd-roles ul { margin: 6px 0 0; padding-left: 18px; }
.update__body li > ul { margin-top: 4px; }
/* 行内指令/路径 */
.update__body code {
  padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  word-break: break-all;
}
/* 开发者原话 */
.update__body .upd-quote {
  margin: 0;
  padding: 10px 14px;
  color: var(--text-2);
  font-style: italic;
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

/* 卡片标题行：右侧可跟一个入口链接（如「查看更新日志」） */
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.card__head .text-link { flex: none; }

/* ============================================================
   更新日志页（changelog.html）
   左：版本列表（可滚动）  右：所选版本的完整正文（可滚动）
   ============================================================ */
.clog {
  display: grid;
  grid-template-columns: minmax(230px, 296px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.clog__side { display: grid; gap: 10px; min-width: 0; }
.clog__side-title {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.clog__list {
  display: grid;
  gap: 8px;
  max-height: min(70vh, 660px);
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.clog__item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.clog__item:hover { background: var(--surface-2); border-color: var(--line-2); }
.clog__item.is-active {
  background: var(--surface-2);
  border-color: var(--line-2);
  border-left-color: var(--accent);
}
.clog__item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clog__item time { font-size: 11px; letter-spacing: .1em; color: var(--faint); }
.clog__item.is-active time { color: var(--accent); }
.clog__item strong { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.clog__item-sum { font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.clog__badge {
  flex: none;
  padding: 1px 7px;
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
}

.clog__main { padding: 24px 26px 20px; }
.clog__head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.clog__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.clog__date { font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.clog__title { margin: 8px 0 6px; }
.clog__summary { font-size: 13px; line-height: 1.8; color: var(--muted); }

/* 正文区独立滑动，滚动条样式与「最近更新」卡片一致 */
.clog__body { max-height: min(64vh, 660px); outline: none; }
.clog__body:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (width <= 900px) {
  .clog { grid-template-columns: minmax(0, 1fr); }
  .clog__list { max-height: 32vh; }
  .clog__main { padding: 20px 18px 16px; }
  /* 窄屏不再嵌套滚动：整页滚动更顺手 */
  .clog__body { max-height: none; overflow: visible; padding-right: 0; }
}

.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
/* 可点击(<a>/<button>)与不可点击(<div>)的条目共用同一套带边框的卡片样式 */
.links > a, .links > button, .links > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .2s, border-color .2s;
}
.links > button {
  width: 100%;
  font: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
}
.links > a:hover, .links > button:hover { background: var(--surface-2); border-color: var(--line-2); }
.links > a:focus-visible, .links > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.links > a > svg:first-child, .links > button > svg:first-child, .links > div > svg:first-child { color: var(--accent); }
.links > a span, .links > button span, .links > div span { display: grid; gap: 2px; }
.links small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.links strong { font-size: 14px; font-weight: 500; }
.links em { font-size: 11.5px; font-style: normal; color: var(--muted); }
.links > a > svg:last-child, .links > button > svg:last-child { color: var(--faint); }
.links .is-pending { pointer-events: none; }

/* ---------- 视频 ---------- */
.video-groups { display: grid; gap: 20px; margin-top: 22px; }
.video-group { display: grid; gap: 14px; }
.video-group__title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.video-card { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.video-card__thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; background: var(--gray); color: var(--accent); }
.video-card figcaption { display: grid; gap: 8px; padding: 0 4px 4px; }
.video-card strong { font-size: 14px; font-weight: 500; line-height: 1.5; }
.video-card a { display: inline-flex; align-items: center; gap: 5px; width: fit-content; font-size: 12px; color: var(--muted); }
.video-card a:hover { color: var(--accent); }

.tag { display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; font-size: 10px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; }

/* ============================================================
   档案网格（职业 / 物品）
   ============================================================ */
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.role-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.role-tile:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 22, 29, .06); }
.role-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-tile__no { font-size: 11px; letter-spacing: .16em; color: var(--faint); }
.role-tile__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--role-color); flex: none; }
.role-tile strong { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.role-tile code { font-size: 10.5px; color: var(--faint); word-break: break-all; }
.role-tile p { font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.role-tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: var(--accent); }
.role-tile__foot span { color: var(--faint); }

.item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.item-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, transform .2s;
}
.item-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.item-card__top { display: flex; align-items: center; justify-content: space-between; }
.item-card__thumb { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--gray); color: var(--text-2); }
.item-card__rarity { font-size: 10px; letter-spacing: .12em; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; }
.item-card strong { font-size: 15px; font-weight: 600; }
.item-card p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.item-card__id { font-size: 10px; color: var(--faint); word-break: break-all; }
/* 说明文本长短不一，统一裁剪到 3 行，保证卡片等高 */
.item-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-card__desc.is-empty { color: var(--faint); font-style: italic; }

/* ============================================================
   修饰符（修饰符图鉴 modifiers.html#modifierGrid / 模式页 #modifierList）
   ============================================================ */
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.mod-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.mod-card:hover, .mod-card:focus-visible {
  border-color: color-mix(in srgb, var(--mod, var(--accent)) 45%, var(--line));
  transform: translateY(-2px);
}
.mod-card__top { display: flex; align-items: center; gap: 9px; }
.mod-card__dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--mod, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mod, var(--accent)) 18%, transparent);
}
.mod-card__top strong { font-size: 15px; font-weight: 600; }
.mod-card__flag {
  margin-left: auto;
  padding: 2px 7px;
  font-size: 10px; letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.mod-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); }
.mod-card__no { letter-spacing: .1em; }
.mod-card__scope {
  padding: 2px 8px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--mod, var(--accent)) 74%, var(--text));
  border: 1px solid color-mix(in srgb, var(--mod, var(--accent)) 38%, transparent);
}
.mod-card__desc {
  font-size: 12px; line-height: 1.7; color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-card__desc.is-empty { color: var(--faint); font-style: italic; }

/* 模式页的紧凑总览：只有颜色点 + 名称，点进游戏资料页看完整说明 */
.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color .2s, color .2s;
}
.mod-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--mod, var(--accent)) 45%, var(--line)); }
.mod-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mod, var(--accent)); }
.mod-more { margin-top: 18px; }

/* 弹窗里的小节标题：效果 / 背景故事 */
.modal__detail h4 {
  margin: 0 0 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.item-card__price { margin-top: auto; font-size: 12px; color: var(--accent); }

/* ============================================================
   服务器
   ============================================================ */
.server-groups { display: grid; gap: 32px; }
.server-group__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.server-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.server-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.server-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.server-card strong { font-size: 15px; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status-pill.is-online { color: #2f7f5f; border-color: rgba(47, 127, 95, .35); }
.status-pill.is-online i { background: #2f7f5f; }
.status-pill.is-maintenance { color: var(--accent); border-color: var(--accent-line); }
.status-pill.is-maintenance i { background: var(--accent); }

.server-card__bar { height: 4px; border-radius: 4px; background: var(--gray-deep); overflow: hidden; }
.server-card__bar i { display: block; height: 100%; background: var(--accent); }
.server-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); }
.server-card__meta b { font-weight: 600; color: var(--text); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 32px; }
.stat-box { display: grid; gap: 2px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stat-box strong { font-size: 26px; font-weight: 600; line-height: 1.3; }
.stat-box span { font-size: 11px; letter-spacing: .16em; color: var(--muted); }

/* ============================================================
   论坛
   ============================================================ */
.forum-list { display: grid; gap: 10px; }

/* 实时动态状态条 */
.live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
}
.live-status strong { font-weight: 600; }
.live-status__stamp { color: var(--muted); }
.live-status__stamp b { font-weight: 500; color: var(--text-2); }

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7f5f;
  animation: livePulse 1.9s ease-out infinite;
}
.live-status.is-paused .live-dot { background: var(--faint); animation: none; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(47,127,95,.5); }
  70% { box-shadow: 0 0 0 9px rgba(47,127,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,127,95,0); }
}

.post-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.post-card:hover { border-color: var(--accent-line); box-shadow: 0 10px 24px rgba(20, 22, 29, .05); }

.post-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--accent-soft);
}

.post-main { display: grid; gap: 6px; min-width: 0; }
.post-main > .line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-main strong { font-size: 15px; font-weight: 600; line-height: 1.5; }
.post-main p { font-size: 13px; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--faint); }

.post-stats { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.post-stats b { font-weight: 600; color: var(--text); }

/* 刚送达的动态 */
.post-card.is-new { animation: liveIn 1s cubic-bezier(.2,.9,.2,1); }
@keyframes liveIn {
  from { opacity: 0; transform: translateY(-10px); background: var(--accent-soft); border-color: var(--accent-line); }
}

.cat-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--gray-deep); color: var(--text-2); }

.rules { margin-top: 26px; padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 13px; color: var(--muted); }

/* ============================================================
   登录 / 受限面板
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1fr minmax(340px, .8fr); gap: 24px; align-items: start; }

.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.auth-tabs button { flex: 1; padding: 9px; font-size: 13px; color: var(--muted); border-radius: 7px; transition: background .2s, color .2s; }
.auth-tabs button.is-active { color: var(--accent); background: var(--white); box-shadow: 0 1px 3px rgba(20, 22, 29, .08); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.field input, .field textarea {
  min-height: 44px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--accent-line); }
.field small { font-size: 11.5px; color: var(--faint); }

.form-note { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.form-note a { color: var(--accent); }

/* 表单反馈 */
.form-msg { margin: 14px 0 0; font-size: 13px; min-height: 1px; }
.form-msg.is-ok { color: #2f7f5f; }
.form-msg.is-bad { color: #c0392b; }

/* 输入行 / 行内提示 / 密码可见切换 */
.field .field__wrap { display: flex; align-items: stretch; gap: 8px; font-size: inherit; letter-spacing: normal; color: inherit; }
.field__wrap input { flex: 1 1 auto; min-width: 0; }
.field__hint { margin: -8px 0 14px; font-size: 12px; line-height: 1.7; color: var(--faint); }
.field__hint:empty { display: none; }
.field__hint.is-bad { color: #c0392b; }
.field__hint.is-ok { color: #2f7f5f; }
.field__hint.is-dev { color: var(--accent); }
.field__hint b { font-variant-numeric: tabular-nums; letter-spacing: .16em; font-weight: 700; }

.field__eye {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  min-height: 44px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: color .2s, border-color .2s;
}
.field__eye:hover { color: var(--accent); border-color: var(--accent-line); }
.field__eye svg { width: 18px; height: 18px; }

.btn--block { width: 100%; }
.btn--sm { flex: none; min-height: 44px; padding: 0 15px; font-size: 13px; white-space: nowrap; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* 账户服务连接状态 */
.auth-notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.auth-notice[hidden] { display: none; }
.auth-notice strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.auth-notice p { font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.auth-notice code { padding: 1px 5px; font-size: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.auth-notice.is-warn { border-color: #e8cda6; background: #fdf8f0; }
.auth-notice.is-warn strong { color: #8a5a1c; }
.auth-notice.is-ok { border-color: #cfe3d7; background: #f3f9f5; }
.auth-notice.is-ok strong { color: #2f7f5f; }
.auth-notice.is-dev { border-color: var(--accent-line); background: var(--accent-soft); }
.auth-notice.is-dev strong { color: var(--accent); }
.auth-notice__code { font-variant-numeric: tabular-nums; letter-spacing: .2em; font-weight: 700; font-size: 15px; color: var(--text); }

/* 登录态面板 */
.session {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.session__body { flex: 1; min-width: 0; }
.session__body strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session__body p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.session__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.session__dot.is-on { background: #2f7f5f; }

.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.feature__icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); border: 1px solid var(--line); border-radius: 9px; background: var(--accent-soft); }
.feature h4 { font-size: 14px; font-weight: 600; }
.feature p { font-size: 12.5px; color: var(--muted); }

.notice {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.notice h2 { font-size: 22px; font-weight: 600; }
.notice p { font-size: 14px; color: var(--muted); }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-tile { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.hub-tile strong { font-size: 15px; font-weight: 600; }
.hub-tile p { font-size: 12.5px; color: var(--muted); }
.hub-tile .tag { width: fit-content; }

/* ---------- 介绍页分节 ---------- */
.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* 三张并排（如游戏资料页的修饰符来源说明），窄屏沿用上面的单列降级 */
.prose-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.prose-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.prose-card p { font-size: 13.5px; line-height: 1.85; color: var(--muted); }

.numbered { display: grid; gap: 12px; counter-reset: ch; }
.numbered li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: ch;
}
.numbered li::before {
  content: "0" counter(ch);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--accent);
  padding-top: 4px;
}
.numbered h3 { font-size: 17px; font-weight: 600; }
.numbered p { margin-top: 6px; font-size: 13.5px; line-height: 1.85; color: var(--muted); }

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mode-card { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.mode-card strong { font-size: 17px; font-weight: 600; }
.mode-card p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.mode-card .tag { width: fit-content; }

.table-card { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.table-card table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-card th, .table-card td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table-card th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table-card tr:last-child td { border-bottom: 0; }
.table-card td:last-child { color: var(--muted); }

/* ============================================================
   页脚
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 34px 0;
  font-size: 12px;
  color: var(--muted);
}
.footer__mark { font-size: 11px; letter-spacing: .24em; color: var(--text); }
.footer__links { display: flex; gap: 18px; }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--accent); }

/* ============================================================
   弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 22, 29, .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s, visibility .24s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 30px 70px rgba(20, 22, 29, .18);
  transform: translateY(14px);
  transition: transform .28s cubic-bezier(.2,.9,.2,1);
}
.modal.is-open .modal__panel { transform: none; }

.modal__head { display: flex; align-items: center; justify-content: space-between; }
.modal__no { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.modal__panel h3 { margin: 14px 0 0; font-size: 26px; font-weight: 600; letter-spacing: .04em; }
.modal__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.modal__panel p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.modal__panel dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.modal__panel dt { letter-spacing: .1em; color: var(--accent); }
.modal__panel dd { margin: 0; }

/* 角色详细档案：多行机制说明，用左侧强调色细线串起来 */
.modal__detail {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--role-color, var(--accent)) 35%, transparent);
}
.modal__detail p { margin: 0 0 10px; font-size: 13px; line-height: 1.95; color: var(--muted); }
.modal__detail p:last-child { margin-bottom: 0; }
.modal__detail p.lead { color: var(--text-2); font-weight: 500; }

.modal__close { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; }
.modal__close:hover { color: var(--text); border-color: var(--line-2); }

.chip { display: inline-flex; align-items: center; padding: 4px 11px; font-size: 11px; letter-spacing: .1em; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; }

/* ============================================================
   响应式
   ============================================================ */
@media (width <= 1180px) {
  .hero { gap: 40px; padding-left: 5vw; padding-right: 5vw; }
  .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 1100px) {
  .hero { grid-template-columns: 1fr 380px; }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid, .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
}

@media (width <= 980px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 60px; padding: 0 20px; }
  .menu-button { display: inline-flex; }
  .nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    max-height: calc(100vh - 60px);
    overflow: auto;
    padding: 6px 20px 16px;
    background: rgba(255, 255, 255, .99);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .dispatch__inner { grid-template-columns: 1fr; }
  .footer__inner { justify-content: center; text-align: center; }
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 900px) {
  .hero { display: block; min-height: auto; padding: 70px 5vw 90px; }
  .station { margin: 44px 0 0; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__search { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 20px 28px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 68px 0; }
  .prose-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card { grid-template-columns: 42px 1fr; }
  .post-stats { grid-column: 2; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
}

@media (width <= 720px) {
  .panels__grid, .links, .video-grid, .mode-grid, .hub-grid, .mod-grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .stats__inner { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .roles, .archive-grid, .server-grid { grid-template-columns: 1fr; }
  .tile, .card, .auth-card, .notice, .prose-card { padding: 22px; }
  .intro__ticket { flex-direction: column; align-items: flex-start; gap: 12px; }
  .toolbar { grid-template-columns: 1fr; }
  .searchbar { width: 100%; min-width: 0; }
  .page-head { padding: 44px 0 32px; }
  .post-card { grid-template-columns: 1fr; }
  .numbered li { grid-template-columns: 1fr; gap: 8px; }
  .mc-card__grid { grid-template-columns: 1fr; }
  .thread__meta { flex-wrap: wrap; }
  .banner { height: clamp(180px, 26vh, 260px); }
  .banner__dots { right: 12px; bottom: 10px; }
}

/* ============================================================
   服务器监视卡片
   ============================================================ */
.mc-card {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.mc-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.mc-card__head strong { font-weight: 600; }
.mc-card__head code {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}
.mc-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 10px;
}
.mc-card__grid dt { font-size: 11px; letter-spacing: .12em; color: var(--faint); }
.mc-card__grid dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.mc-card__motd {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-dot.is-off { background: var(--faint); animation: none; }
.live-status__src { color: var(--faint); }
.live-status__src code { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   列车论坛
   ============================================================ */
.board-composer { margin-bottom: 18px; }
.board-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.board-form input,
.board-form textarea,
.reply-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}
.board-form input:focus,
.board-form textarea:focus,
.reply-form textarea:focus { outline: none; border-color: var(--accent-line); }
.board-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-form__who { font-size: 12px; color: var(--muted); }

.board-gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.board-gate p { margin: 0; font-size: 13.5px; color: var(--text-2); }

.board-list { display: grid; gap: 10px; }
.thread {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.thread__head { display: flex; align-items: center; gap: 10px; }
.thread__head strong { font-size: 15.5px; font-weight: 600; }
.thread__body { margin: 8px 0 12px; font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.thread__meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.thread__toggle, .thread__del {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}
.thread__del { color: var(--faint); }
.thread__del:hover { color: #c0392b; }
.thread__replies {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.reply { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); }
.reply p { margin: 0 0 4px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; }
.reply span { font-size: 11.5px; color: var(--faint); }
.reply-form { display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   服务器监视：卡片地址与待查询状态
   ============================================================ */
.server-card__addr { display: block; font-size: 11.5px; letter-spacing: .04em; color: var(--faint); }
.status-pill.is-pending { color: var(--muted); border-color: var(--line-2); }
.status-pill.is-pending i { background: var(--faint); }

/* ============================================================
   官方视频：内嵌播放器
   ============================================================ */
.video-card--player { grid-column: 1 / -1; }
.video-frame { position: relative; }
.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0c;
  object-fit: contain;
  cursor: pointer;
}
/* 大号遮罩播放按钮：只覆盖中央按钮本身，不挡住原生控制条 */
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 3px;
  color: #fff;
  background: rgba(20, 22, 29, .55);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  backdrop-filter: blur(3px);
  transform: translate(-50%, -50%);
  transition: opacity .22s, background .22s, transform .22s;
  cursor: pointer;
}
.video-play:hover { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.video-frame.is-playing .video-play { opacity: 0; pointer-events: none; }
.video-loading {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.video-frame.is-buffering .video-loading { opacity: 1; animation: videoSpin .8s linear infinite; }
@keyframes videoSpin { to { transform: rotate(360deg); } }
.video-card .video-card__src { font-size: 12px; color: var(--muted); text-decoration: none; }
a.video-card__src { display: inline-flex; align-items: center; color: var(--accent); text-underline-offset: 3px; transition: opacity .2s; }
a.video-card__src:hover { text-decoration: underline; opacity: .85; }

/* ============================================================
   二维码弹窗（社区加群 / 赞助收款码）
   ============================================================ */
.modal__panel--qr { width: min(400px, 100%); text-align: center; }
.modal__panel--qr .modal__head { margin-bottom: 6px; }
.modal__panel--qr h3 { margin: 6px 0 0; font-size: 22px; }
.qr-box {
  display: grid;
  place-items: center;
  margin: 20px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.qr-box img { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 6px; }
.qr-note { margin: 16px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.qr-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.qr-state strong { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.qr-state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: qrPulse 1.4s ease-in-out infinite;
}
.qr-state.is-thanks { border-color: var(--accent); background: rgba(200, 55, 60, .07); }
.qr-state.is-thanks strong { color: var(--accent); font-weight: 600; }
.qr-state.is-thanks::before { animation: none; background: var(--accent); }
@keyframes qrPulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.qr-manual {
  margin-top: 12px;
  padding: 7px 14px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  transition: color .2s, border-color .2s;
  cursor: pointer;
}
.qr-manual:hover { color: var(--accent); border-color: var(--accent); }


/* ============================================================
   游戏数据：实时数据面板（data.html）
   走势图里的每根柱子都是一个真实采样点，不做平滑或插值
   ============================================================ */
.data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
}

.data-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.data-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.data-panel__head h2 { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.data-panel__hint { flex: none; padding-top: 2px; font-size: 11.5px; color: var(--faint); }
.data-panel__foot { font-size: 12px; color: var(--muted); }
.data-panel .result-count { margin: 0; }

/* 在线人数走势：固定 60 个槽位，最新样本靠右，柱子宽度不随样本数变化 */
.data-chart { min-height: 168px; display: flex; align-items: flex-end; }
.spark {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  width: 100%;
  height: 168px;
  border-bottom: 1px solid var(--line);
}
.spark__slot { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.spark__bar {
  width: 100%;
  border: 1px solid var(--accent-line);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: var(--accent-soft);
  transition: height .4s ease;
}
.spark__bar.is-now { background: var(--accent); border-color: var(--accent); }

/* 实时事件流 */
.data-feed { display: grid; gap: 9px; }
.data-feed__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.data-feed__row:last-child { padding-bottom: 0; border-bottom: 0; }
.data-feed__row p {
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-feed__time { flex: none; font-size: 11.5px; color: var(--faint); }

/* 统计卡：补一行说明与文本型数值 */
.stat-box__note { font-style: normal; font-size: 11px; color: var(--faint); }
.stat-box__text { font-size: 15px; }
.stat-row--tight {
  grid-template-columns: repeat(auto-fit, minmax(102px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}
.stat-row--tight .stat-box { padding: 14px 16px; }
.stat-row--tight .stat-box strong { font-size: 20px; }
/* 卡片里的小统计卡：用浅底与卡片拉开层次 */
.card .stat-row--tight .stat-box { background: var(--surface-2); }

/* 服务器卡片：版本 / 容量 / MOTD */
.server-card__meta--sub { color: var(--faint); }
.server-card__motd {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 我的实时数据 */
.data-mine {
  display: grid;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.data-mine__head { display: flex; align-items: center; gap: 12px; }
.data-mine__who { flex: 1; min-width: 0; }
.data-mine__who strong { display: block; font-size: 14.5px; font-weight: 600; }
.data-mine__who p { font-size: 12px; color: var(--muted); }

/* 自动刷新开关的开启态 */
#dataAuto.is-on {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* 实时状态条在窄屏折行时，不要在一个词中间断开 */
.live-status strong { white-space: nowrap; }

@media (width <= 980px) {
  .data-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (width <= 560px) {
  .spark, .data-chart { height: 132px; min-height: 132px; }
  .data-feed__row { grid-template-columns: auto minmax(0, 1fr); }
  .data-feed__time { grid-column: 2; }
  .data-mine__head { flex-wrap: wrap; }
}
