/* ===== 登录页 · 官网式布局（暗色战术制图风） ===== */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0b;
  overflow: auto;
  transition: opacity .32s ease;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.auth-overlay.hide { opacity: 0; pointer-events: none; }

/* 背景：径向光 + 制图网格 + 等高线 */
.site-bg { position: fixed; inset: 0; pointer-events: none; }
.site-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 760px at 20% 2%, rgba(200, 176, 120, .085), transparent 60%),
    radial-gradient(820px 600px at 86% 74%, rgba(106, 146, 176, .05), transparent 62%),
    linear-gradient(180deg, #101012 0%, #0b0b0d 56%, #08080a 100%);
}
.site-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 176, 120, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 176, 120, .07) 1px, transparent 1px),
    repeating-radial-gradient(ellipse at 20% 6%, transparent 0 56px, rgba(200, 176, 120, .038) 56px 57px),
    repeating-radial-gradient(ellipse at 82% 92%, transparent 0 64px, rgba(106, 146, 176, .03) 64px 65px);
  background-size: 46px 46px, 46px 46px, auto, auto;
  -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 30%, transparent 82%);
  mask-image: radial-gradient(circle at 50% 22%, #000 26%, transparent 78%);
}

/* 图纸外框：细线 neatline + 对角角标 */
.site-frame {
  position: fixed; inset: 13px; z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(200, 176, 120, .075);
}
.site-frame::before, .site-frame::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 1px solid rgba(200, 176, 120, .24);
}
.site-frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.site-frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.site-shell {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 36px 30px;
  min-height: 100%;
  display: flex; flex-direction: column;
}

/* ---- 顶栏 ---- */
.site-nav {
  display: flex; align-items: center; gap: 28px;
  height: 66px; flex: 0 0 auto;
  border-bottom: 1px solid rgba(200, 176, 120, .13);
  position: relative;
}
.site-brand { display: flex; align-items: center; gap: 11px; }
.sb-mark {
  width: 2px; height: 26px; border-radius: 1px;
  background: linear-gradient(180deg, #e6d4a2, #8a7c54);
  box-shadow: 0 0 10px rgba(200, 176, 120, .4);
}
.sb-name { font-size: 15px; letter-spacing: 6px; color: #e2ddcd; font-weight: 700; line-height: 1.1; }
.sb-sub { font-size: 8.5px; letter-spacing: 2px; color: #5a5a56; margin-top: 3px; }
/* 导航居中，两侧品牌 / 状态 */
.site-links {
  display: flex; gap: 30px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.site-links a {
  font-size: 11.5px; letter-spacing: 2.2px; color: #757570; cursor: pointer;
  padding: 5px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.site-links a:hover { color: #d8d0b8; border-color: rgba(200, 176, 120, .5); }
.site-links a.on { color: #e0cd96; border-color: #c8b078; }
.site-status {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  padding: 4px 9px 4px 8px; border-radius: 2px;
  border: 1px solid rgba(122, 168, 120, .16);
  background: rgba(122, 168, 120, .035);
  font-size: 9.5px; letter-spacing: 1.2px; color: #7c8278;
}
.st-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #7aa878;
  box-shadow: 0 0 7px rgba(122, 168, 120, .8); animation: stPulse 2.4s ease-in-out infinite;
}
@keyframes stPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
/* v4.34：停服态——顶栏徽标转赤，代替登录卡内的停机提示 */
.site-status.is-off {
  border-color: rgba(176, 106, 90, .26);
  background: rgba(176, 106, 90, .05);
  color: #9d7a70;
}
.site-status.is-off .st-dot {
  background: #b06a5a;
  box-shadow: 0 0 7px rgba(176, 106, 90, .85);
  animation-duration: 1.6s;
}

/* ---- Hero ---- */
/* 左：品牌文案　右：登录卡（与下方排行榜同宽，左右边缘对齐） */
.site-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 348px;
  gap: 64px; align-items: end;
  padding: 32px 0 28px;
}
.hero-l { position: relative; padding-left: 26px; }
.hero-l::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 0; width: 1px;
  background: linear-gradient(180deg, rgba(200, 176, 120, .5), rgba(200, 176, 120, .1) 46%, rgba(200, 176, 120, .26));
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 16px; font-size: 10px; letter-spacing: 2.4px; color: #bcae82;
}
.hero-tag::before {
  content: ''; width: 20px; height: 1px;
  background: linear-gradient(90deg, #c8b078, rgba(200, 176, 120, .1));
}
.hero-title {
  margin: 0; font-size: 54px; line-height: 1; font-weight: 700;
  letter-spacing: 12px; color: #eee8d8;
  text-shadow: 0 0 44px rgba(200, 176, 120, .16);
}
.hero-title-gap { display: inline-block; width: 14px; }
.hero-en {
  margin-top: 14px; font-size: 9px; letter-spacing: 3.4px;
  color: #6b6b62; text-transform: uppercase;
}
.hero-desc {
  margin: 13px 0 19px; max-width: 420px;
  font-size: 13px; line-height: 1.9;
  color: #8c877c; letter-spacing: .5px;
}
.hero-stats {
  display: flex; gap: 0; margin: 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(200, 176, 120, .15);
  border-bottom: 1px solid rgba(200, 176, 120, .15);
}
.hero-stats li {
  flex: 1; padding: 11px 0 10px 18px; text-align: left;
  border-right: 1px solid rgba(200, 176, 120, .1);
}
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li:last-child { border-right: 0; }
.hero-stats b {
  display: block; font-size: 22px; font-weight: 700; color: #dcd4c0;
  letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: 9px; letter-spacing: 1.8px; color: #5f5f5b; }

/* ---- 登录卡 ---- */
.auth-panel {
  width: 100%; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(27, 27, 26, .97), rgba(17, 17, 17, .98));
  border: 1px solid rgba(200, 176, 120, .2);
  border-radius: 2px;
  box-shadow: 0 24px 68px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .03);
  padding: 18px 22px 15px;
  position: relative;
}
.auth-panel::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, transparent, #c8b078, transparent);
  opacity: .8;
}
.auth-panel::after {
  content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 176, 120, .45), transparent);
}
.ap-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px;
  font-size: 11.5px; letter-spacing: 4px; color: #cfcbb9;
}
.ap-bar { width: 2px; height: 12px; background: #c8b078; border-radius: 1px; }
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}
.auth-tab {
  flex: 1; padding: 10px 0 9px; font-size: 11.5px; letter-spacing: 3.5px; cursor: pointer;
  color: #77776f; background: transparent;
  border: 0; border-bottom: 1px solid transparent;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.auth-tab:hover { color: #b4b0a2; }
.auth-tab.active {
  color: #e8dfc4; background: transparent;
  border-bottom-color: #c8b078;
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span { font-size: 10px; letter-spacing: 2.2px; color: #74746c; }
.auth-field input {
  height: 36px; padding: 0 11px; font-size: 13px; color: #ded8c8;
  background: rgba(9, 9, 9, .55); border: 1px solid #2f2f2a; border-radius: 2px; outline: none;
  letter-spacing: .5px; font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: #50504a; }
.auth-field input:focus {
  border-color: rgba(200, 176, 120, .55);
  box-shadow: 0 0 0 2px rgba(200, 176, 120, .09);
}
.auth-err { min-height: 15px; font-size: 11px; line-height: 15px; color: #c86a6a; letter-spacing: .5px; }
.auth-btn {
  margin-top: 2px; height: 40px; font-size: 13px; letter-spacing: 6px; cursor: pointer;
  color: #1a1710;
  background: linear-gradient(180deg, #e0cc9f, #c2ab78);
  border: 1px solid #a8925e; border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 14px rgba(0, 0, 0, .45);
  font-family: inherit; font-weight: 700; transition: filter .15s, box-shadow .15s;
}
.auth-btn:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 18px rgba(200, 176, 120, .12); }
.auth-btn:active { filter: brightness(.94); }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
/* v4.33 停服态：官网照常展示战况快照，仅禁止注册/登录 */
.auth-offline-tip {
  margin-bottom: 10px; padding: 8px 10px; font-size: 10.5px; line-height: 1.65; letter-spacing: .4px;
  color: #d8b98a; background: rgba(150, 90, 50, .12);
  border: 1px solid rgba(190, 130, 80, .38); border-left: 2px solid #c08a52; border-radius: 2px;
}
.auth-offline-tip b { color: #e8c98a; font-weight: 400; margin-right: 6px; letter-spacing: 1px; }
.auth-form.is-offline .auth-field { opacity: .5; }
.wm-offline-note {
  margin-top: 6px; font-size: 9.5px; letter-spacing: 1px; color: #b08a58;
  text-align: right; opacity: .9;
}
.war-map.is-snapshot { filter: saturate(.55) brightness(.82); }
.auth-foot { margin-top: 12px; text-align: center; font-size: 9.5px; letter-spacing: 1.1px; color: #4e4e48; }

/* ---- 公告通栏：整幅宽，压在地图与排行榜之上 ---- */
.site-notice { padding-top: 24px; }
.notice-tip {
  margin-left: auto; padding-right: 2px;
  font-size: 9.5px; letter-spacing: 1px; color: #4c4c46;
}
.notice-tip.is-link { cursor: pointer; transition: color .15s; }
.notice-tip.is-link:hover { color: #c8b078; }

/* ---- 主区：地图 + 右侧竖栏（排行榜 / 玩法速览） ---- */
.site-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  column-gap: 42px;
  align-items: stretch;
  padding-top: 34px;
  margin-bottom: 6px;
}
.live-map { min-width: 0; }
.col-side {
  min-width: 0; display: flex; flex-direction: column; gap: 26px;
}
.col-side .live-rank { flex: 1 1 auto; }
.col-side .site-guide { flex: 0 0 auto; }
.live-stamp { margin-left: 10px; font-size: 9.5px; letter-spacing: .6px; color: #5c5c52; }

.war-map {
  position: relative;
  border: 1px solid rgba(200, 176, 120, .22);
  border-radius: 2px;
  background: #0a0d10;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5), inset 0 0 46px rgba(0, 0, 0, .62);
  outline: 1px solid rgba(200, 176, 120, .07);
  outline-offset: 5px;
}
#warMapCanvas { display: block; cursor: crosshair; }

/* 图框：角标 + 暗角 */
.wm-frame {
  position: absolute; inset: 7px; z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 58px rgba(0, 0, 0, .58);
}
.wm-frame i {
  position: absolute; width: 12px; height: 12px;
  border: 0 solid rgba(200, 176, 120, .46);
}
.wm-frame i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.wm-frame i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.wm-frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.wm-frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* 指北针与比例尺 */
.wm-north {
  position: absolute; left: 12px; top: 11px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  pointer-events: none; color: #a99a72;
}
.wm-north b { font-weight: 400; font-size: 9px; letter-spacing: 1.5px; }
.wm-north i {
  width: 1px; height: 13px;
  background: linear-gradient(180deg, #c8b078, rgba(200, 176, 120, .12));
  box-shadow: 0 0 6px rgba(200, 176, 120, .22);
}
.wm-scale {
  position: absolute; right: 12px; bottom: 11px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  pointer-events: none;
  font-size: 8.5px; letter-spacing: .5px; color: #6a6458;
}
.wm-scale i {
  width: 54px; height: 4px;
  border-left: 1px solid rgba(200, 176, 120, .36);
  border-right: 1px solid rgba(200, 176, 120, .36);
  border-bottom: 1px solid rgba(200, 176, 120, .36);
}

.wm-tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  transform: translate(-50%, -142%);
  padding: 4px 8px; border-radius: 2px;
  background: rgba(9, 11, 14, .96);
  border: 1px solid rgba(200, 176, 120, .34);
  pointer-events: none; opacity: 0; transition: opacity .12s;
  white-space: nowrap;
}
.wm-tip.on { opacity: 1; }
.wm-tip b { display: block; font-weight: 400; font-size: 11px; letter-spacing: 1px; color: #e8dfc4; }
.wm-tip span { display: block; margin-top: 2px; font-size: 9.5px; letter-spacing: .4px; color: #7d786c; }

.wm-legend {
  position: absolute; left: 12px; bottom: 11px; z-index: 2;
  display: flex; gap: 11px; align-items: center;
  padding: 4px 8px; border-radius: 2px;
  background: rgba(9, 11, 14, .8);
  border: 1px solid rgba(200, 176, 120, .12);
  font-size: 9.5px; letter-spacing: .4px; color: #7f7a6e;
}
.wm-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; vertical-align: -1px; }
.wm-legend .lg-player { background: #e8c888; }
.wm-legend .lg-npc { background: #a8608f; }
.wm-legend .lg-neutral { background: #6a6a60; }
.wm-legend .lg-line { width: 9px; height: 1px; vertical-align: 2px; border-top: 1px solid #b8a060; background: none; }
/* 玩家势力：每人一色的小方块（v4.28），名字跟在后面 */
.wm-legend .lg-pdot { background: #e8c888; }
.wm-legend .lg-more { color: #6a655a; }

/* 地图下方的战术数据条（原右上角浮层移出，避免压住州名/城池） */
.wm-stat {
  display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px;
  margin-top: 12px; padding: 10px 0 11px;
  border-top: 1px solid rgba(200, 176, 120, .12);
  border-bottom: 1px solid rgba(200, 176, 120, .12);
  font-size: 9.5px; letter-spacing: .4px; color: #6f6a5f;
}
.wm-stat span { padding: 0 14px; border-left: 1px solid rgba(200, 176, 120, .1); }
.wm-stat span:first-child { padding-left: 0; border-left: 0; }
.wm-stat b { font-weight: 400; color: #c8b078; font-variant-numeric: tabular-nums; }

/* 排行榜：竖向撑满地图高度，列表居中留白，页脚压到最底 */
.live-rank {
  min-width: 0; display: flex; flex-direction: column;
  align-self: stretch; padding-right: 2px;
}
.rank-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(200, 176, 120, .14);
}
.rank-tab {
  flex: 1; padding: 10px 0 9px; font-size: 11px; letter-spacing: 2.5px; cursor: pointer;
  color: #77776f; background: transparent;
  border: 0; border-bottom: 1px solid transparent;
  font-family: inherit; transition: color .15s, border-color .15s;
}
.rank-tab:hover { color: #b8b2a0; }
.rank-tab.on { color: #e8dfc4; border-bottom-color: #c8b078; }
.rank-head {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 16px;
  gap: 8px; padding: 8px 2px 6px;
  font-size: 9px; letter-spacing: 1.4px; color: #53534c;
}
.rank-head span:nth-child(3) { text-align: right; }
.rank-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; display: flex; flex-direction: column;
}
.rank-row {
  position: relative;
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 16px;
  gap: 8px; align-items: center;
  flex: 1 1 0; min-height: 26px;
  padding: 0 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, .045);
  transition: background .12s;
}
.rank-row:last-child { border-bottom: 0; }
.rk-bar {
  position: absolute; left: 0; top: 1px; bottom: 1px; z-index: 0;
  background: linear-gradient(90deg, rgba(200, 176, 120, .09), rgba(200, 176, 120, .015));
  pointer-events: none;
}
.rank-row.top .rk-bar {
  background: linear-gradient(90deg, rgba(200, 176, 120, .16), rgba(200, 176, 120, .02));
}
.rk-i, .rk-name, .rk-v, .rk-u { position: relative; z-index: 1; }
.rk-i { font-size: 10px; color: #5f5f56; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.rk-name { font-size: 12px; letter-spacing: .4px; color: #9d988b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-v { font-size: 12.5px; color: #c8c0aa; font-variant-numeric: tabular-nums; text-align: right; }
.rk-u { font-size: 9.5px; color: #565650; }
.rank-row.top .rk-i { color: #c8b078; }
.rank-row.top .rk-name { color: #ded6c2; }
.rank-row.top .rk-v { color: #e6d3a0; }
.rank-row:hover { background: rgba(200, 176, 120, .03); }

/* AI 势力进榜：名字后加一个"势力"小标签，与玩家区分（v4.28） */
.rank-row .rk-ai {
  display: inline-block; margin-left: 5px; padding: 0 3px;
  font-style: normal; font-size: 8px; letter-spacing: .5px;
  color: #7c7562; border: 1px solid rgba(200, 176, 120, .22); border-radius: 1px;
  transform: translateY(-1px);
}
.rank-row.is-ai .rk-name { color: #a49c86; }

/* 空榜：一段提示 + 占位行，把榜单区自然填满 */
.rank-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 0 13px;
  border-bottom: 1px dashed rgba(200, 176, 120, .13);
  text-align: center;
}
.re-mark {
  display: block; width: 8px; height: 8px; flex: 0 0 auto; margin-bottom: 3px;
  border: 1px solid rgba(200, 176, 120, .42); transform: rotate(45deg);
}
.rank-empty b { font-weight: 400; font-size: 11px; letter-spacing: 1.8px; color: #7b7564; }
.rank-empty span { font-size: 9.5px; letter-spacing: 1.4px; color: #4d4d47; }
/* 占位行：均分剩余高度，先给榜单一个「待填」的形状 */
.rank-skel { flex: 1 1 0; align-items: center; min-height: 22px; }
.rank-skel .rk-i { color: #3e3e39; }
.rank-skel .rk-name {
  height: 3px; width: 52%;
  background: linear-gradient(90deg, rgba(200, 176, 120, .32), rgba(200, 176, 120, .06));
}
.rank-skel .rk-v { color: #3a3a35; }

.rank-foot {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid rgba(200, 176, 120, .1);
  font-size: 9.5px; letter-spacing: .5px; line-height: 1.65; color: #4e4e48;
}

/* ---- 公告详情弹层 ---- */
.site-modal {
  position: fixed; inset: 0; z-index: 12; display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 6, 8, .78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.site-modal.on { display: flex; }
.site-modal.on .sm-box { animation: smIn .18s ease-out both; }
@keyframes smIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
.sm-box {
  position: relative;
  width: min(520px, 88vw); max-height: 76vh; overflow: auto;
  padding: 20px 22px 24px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(29, 29, 28, .99), rgba(17, 17, 17, .99));
  border: 1px solid rgba(200, 176, 120, .24);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .72);
}
.sm-box::before {
  content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 176, 120, .5), transparent);
}
.sm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sm-tag { padding: 1px 6px; border-radius: 2px; border: 1px solid transparent; font-size: 9px; letter-spacing: 1px; }
.sm-tag.t-up { color: #c8b078; border-color: rgba(200, 176, 120, .35); background: rgba(200, 176, 120, .07); }
.sm-tag.t-bal { color: #6a92b0; border-color: rgba(106, 146, 176, .35); background: rgba(106, 146, 176, .07); }
.sm-tag.t-sys { color: #7aa878; border-color: rgba(122, 168, 120, .32); background: rgba(122, 168, 120, .07); }
.sm-date { font-size: 10px; color: #565650; font-variant-numeric: tabular-nums; }
.sm-close {
  margin-left: auto; width: 22px; height: 22px; line-height: 19px; text-align: center;
  font-size: 14px; cursor: pointer; color: #7d7d7d;
  background: transparent; border: 1px solid #2c2c2c; border-radius: 2px; font-family: inherit;
}
.sm-close:hover { color: #e0cd96; border-color: rgba(200, 176, 120, .4); }
.sm-title { font-size: 14px; line-height: 1.7; letter-spacing: .5px; color: #e0d9c6; margin-bottom: 10px; }
.sm-body { font-size: 12px; line-height: 2; letter-spacing: .3px; color: #8e8a80; white-space: normal; word-break: break-word; }
.sm-body p { margin: 0 0 10px; }
.sm-body p:last-child { margin-bottom: 0; }
.sm-body ul { margin: 0 0 10px; padding-left: 18px; }
.sm-body li { margin: 0 0 5px; }
.sm-body li:last-child { margin-bottom: 0; }
.sm-body .nc-h { font-size: 12.5px; font-weight: normal; color: #d8c08a; letter-spacing: 1px; margin: 2px 0 8px; padding-left: 8px; border-left: 2px solid rgba(200,176,120,.45); }
.sm-body .nc-red { color: #d98a7a; }
.sm-body .nc-gold { color: #d8c08a; }
.sm-body .nc-green { color: #9fd3a6; }
.sm-body .nc-blue { color: #8fb8d8; }
.sm-body .nc-gray { color: #a0a0a0; }

/* ---- v4.61 全部动态（首页「查看全部动态」）---- */
.na-box { width: min(700px, 92vw); }
.na-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.na-tab {
  padding: 3px 12px; font-size: 10px; letter-spacing: 1.5px; cursor: pointer;
  color: #77736a; background: #191919; border: 1px solid #2b2b2b; border-radius: 2px;
  font-family: inherit; transition: color .12s, border-color .12s, background .12s;
}
.na-tab:hover { color: #b9b4a8; border-color: #3a3a3a; background: #1e1e1e; }
.na-tab.on { color: #14120b; background: #c8b078; border-color: #c8b078; font-weight: bold; }
.na-body { max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.na-body::-webkit-scrollbar { width: 5px; }
.na-list { list-style: none; margin: 0; padding: 0; }
.na-item { border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.na-h {
  display: grid; grid-template-columns: 46px 44px minmax(0, 1fr) 16px;
  gap: 10px; align-items: center; padding: 9px 4px; cursor: pointer; transition: background .15s;
}
.na-h:hover { background: rgba(200, 176, 120, .035); }
.na-t { font-size: 12px; color: #a8a294; line-height: 1.6; letter-spacing: .3px; }
.na-x { text-align: center; font-size: 12px; color: #6a6454; transition: color .15s, transform .15s; }
.na-h:hover .na-x { color: #c8b078; }
.na-item.open .na-x { color: #c8b078; transform: rotate(45deg); }
.na-c { display: none; padding: 2px 4px 14px 56px; font-size: 12px; line-height: 1.95; color: #8e8a80; }
.na-item.open .na-c { display: block; }

/* ---- v4.50 需求1：史记（每日一史 + 大事记）----
   需求：这些 .ch-* 只服务于登录页史记弹窗，必须限定在 .auth-overlay 内。
   否则 `.ch-day` / `.ch-tag` / `.ch-body` 会串到游戏内「世界史书」的同名 class，
   把日期小标注撑成带边框的大色块（登录页样式后加载，还压过建筑史书的样式）。 */
.auth-overlay .ch-box { width: min(620px, 92vw); }
.auth-overlay .ch-box .sm-body { white-space: normal; }
.auth-overlay .ch-tabs { display: flex; gap: 6px; margin: 0 0 12px; }
.auth-overlay .ch-tab {
  padding: 3px 12px; font-size: 10px; letter-spacing: 1.5px; cursor: pointer;
  color: #77736a; background: #191919; border: 1px solid #2b2b2b; border-radius: 2px;
  font-family: inherit; transition: color .12s, border-color .12s, background .12s;
}
.auth-overlay .ch-tab:hover { color: #b9b4a8; border-color: #3a3a3a; background: #1e1e1e; }
.auth-overlay .ch-tab.on { color: #14120b; background: #c8b078; border-color: #c8b078; font-weight: bold; }
.auth-overlay .ch-body { max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.auth-overlay .ch-body::-webkit-scrollbar { width: 5px; }
.auth-overlay .ch-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.auth-overlay .ch-note { font-size: 10px; letter-spacing: .5px; color: #5f5b52; margin-bottom: 8px; }
.auth-overlay .ch-empty { padding: 26px 0; text-align: center; font-size: 11px; line-height: 2.1; color: #6b675d; }
.auth-overlay .ch-empty span { font-size: 10px; color: #565650; }
.auth-overlay .ch-daily, .auth-overlay .ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.auth-overlay .ch-day {
  padding: 10px 12px; background: #181817; border: 1px solid #262624;
  border-left: 2px solid #c8b078; border-radius: 3px;
}
.auth-overlay .ch-day-h { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.auth-overlay .ch-day-h b { font-size: 12px; letter-spacing: 1.5px; color: #d8c894; font-weight: normal; }
.auth-overlay .ch-day-h span { font-size: 9px; letter-spacing: .5px; color: #6f6b60; font-variant-numeric: tabular-nums; }
.auth-overlay .ch-day p { margin: 0; font-size: 11px; line-height: 1.95; color: #a8a49a; }
.auth-overlay .ch-ev {
  padding: 9px 12px 10px; background: #181817; border: 1px solid #262624;
  border-left: 2px solid #3a3a3a; border-radius: 3px;
}
.auth-overlay .ch-ev.k-war { border-left-color: #8a5a4a; }
.auth-overlay .ch-ev.k-politics { border-left-color: #6a5a86; }
.auth-overlay .ch-ev.k-trend { border-left-color: #c8b078; }
.auth-overlay .ch-ev.k-daily { border-left-color: #4d4735; }
.auth-overlay .ch-ev-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.auth-overlay .ch-tag {
  padding: 0 4px; font-size: 9px; letter-spacing: 1px; color: #b9a86a;
  border: 1px solid #3d3a30; border-radius: 2px;
}
.auth-overlay .ch-ev-d { font-size: 9px; color: #5f5b52; font-variant-numeric: tabular-nums; }
.auth-overlay .ch-ev-t { font-size: 12px; line-height: 1.8; letter-spacing: .5px; color: #ddd6c4; }
.auth-overlay .ch-ev-b { margin: 4px 0 0; font-size: 10.5px; line-height: 1.95; color: #908c82; }

.sec-h {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 176, 120, .13);
  font-size: 12px; letter-spacing: 3.2px; color: #cfc6ae;
}
.sec-idx {
  font-style: normal; font-size: 9px; letter-spacing: 1px;
  color: #6e6650; min-width: 15px;
  font-variant-numeric: tabular-nums;
}
.sec-bar { width: 2px; height: 12px; background: #c8b078; border-radius: 1px; }
.sec-h em {
  margin-left: auto; font-style: normal; font-size: 9px;
  letter-spacing: 2.2px; color: #585850;
}
.news-list {
  list-style: none; margin: 0; padding: 0;
  /* 公告通栏：头条整行 + 下方两列（4 条） */
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 46px;
}
.news-row:first-child { grid-column: 1 / -1; }
.news-row:first-child .news-t { color: #c6c0b0; }
.news-row:first-child .news-d { color: #7a7462; }
.news-row {
  display: grid; grid-template-columns: 48px 40px minmax(0, 1fr) 12px;
  gap: 10px; align-items: baseline;
  padding: 8px 10px 8px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, .05);
  transition: background .15s;
  cursor: pointer;
}
.news-row:hover { background: rgba(200, 176, 120, .035); }
.news-d { font-size: 10px; color: #565650; font-variant-numeric: tabular-nums; letter-spacing: .5px; transition: color .15s; }
.news-row:hover .news-d { color: #8a8168; }
.news-arrow {
  font-size: 11px; line-height: 1; color: #6a6454;
  opacity: .35; transition: opacity .15s, transform .15s, color .15s;
}
.news-row:hover .news-arrow { opacity: 1; color: #c8b078; transform: translateX(2px); }
.news-tag {
  font-size: 9px; letter-spacing: 1px; text-align: center;
  padding: 1px 0; border-radius: 2px; border: 1px solid transparent;
}
.news-tag.t-up { color: #c8b078; border-color: rgba(200, 176, 120, .35); background: rgba(200, 176, 120, .07); }
.news-tag.t-bal { color: #6a92b0; border-color: rgba(106, 146, 176, .35); background: rgba(106, 146, 176, .07); }
.news-tag.t-sys { color: #7aa878; border-color: rgba(122, 168, 120, .32); background: rgba(122, 168, 120, .07); }
.news-t { font-size: 12px; color: #9c978a; line-height: 1.7; letter-spacing: .3px; }
.news-row:hover .news-t { color: #cfc6ae; }

.guide-list { list-style: none; margin: 0; padding: 0; counter-reset: gi; }
.guide-list li {
  font-size: 11.5px; line-height: 1.85; color: #87837a;
  padding: 8px 0 8px 27px; position: relative;
  border-bottom: 1px dashed rgba(255, 255, 255, .04);
}
.guide-list li:last-child { border-bottom: 0; }
.guide-list li::before {
  counter-increment: gi;
  content: counter(gi, decimal-leading-zero);
  position: absolute; left: 2px; top: 9px;
  font-size: 9px; letter-spacing: 1px; color: #6d6450;
  font-variant-numeric: tabular-nums;
}
.guide-list li::after {
  content: ''; position: absolute; left: 22px; top: 15px;
  width: 1px; height: 11px;
  background: rgba(200, 176, 120, .12);
}
.guide-list b { color: #c8b078; font-weight: 400; margin-right: 5px; letter-spacing: 1px; }

/* ---- 页脚 ---- */
.site-foot {
  flex: 0 0 auto;
  margin-top: 30px; padding-top: 14px;
  border-top: 1px solid rgba(200, 176, 120, .11);
  font-size: 9.5px; letter-spacing: 1.4px; color: #4a4a45;
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}
.foot-mark {
  width: 4px; height: 4px; background: #8a7c54;
  transform: rotate(45deg); flex: 0 0 auto;
}
.foot-sep { color: #2e2e2a; }
.foot-ver { margin-left: auto; color: #3c3c38; letter-spacing: 1.2px; }

/* ---- 顶部账号 chip（登录后挂在游戏顶栏） ---- */
.auth-chip { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line, #2c2c2c); }
.auth-chip-name { font-size: 10px; color: var(--txt, #a8a8a8); letter-spacing: 1px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-logout {
  font-size: 10px; letter-spacing: 1px; cursor: pointer; padding: 3px 8px;
  color: var(--txt-dim, #7d7d7d); background: rgba(28,28,28,.86); border: 1px solid #404040; border-radius: 3px;
  font-family: inherit;
}
.auth-logout:hover { color: #e0a0a0; border-color: #5c3c3c; background: #2e2020; }

/* ---- 入场：只做一次轻微上浮，尊重减少动态偏好 ---- */
@keyframes atlasIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.site-hero { animation: atlasIn .55s cubic-bezier(.22, .7, .25, 1) both; }
.site-notice { animation: atlasIn .6s cubic-bezier(.22, .7, .25, 1) .05s both; }
.site-body { animation: atlasIn .6s cubic-bezier(.22, .7, .25, 1) .1s both; }
@media (prefers-reduced-motion: reduce) {
  .site-hero, .site-notice, .site-body,
  .st-dot, .site-modal.on .sm-box { animation: none; }
}

/* ---- 响应式 ---- */
@media (max-width: 1040px) {
  .site-shell { padding: 0 28px 26px; }
  .site-hero { grid-template-columns: 1fr; gap: 32px; padding: 38px 0 34px; }
  .hero-l { padding-left: 20px; }
  .hero-title { font-size: 46px; letter-spacing: 9px; }
  .hero-r { display: flex; justify-content: flex-start; }
  .auth-panel { max-width: 420px; }
  /* 窄屏：公告单列，地图与右栏上下堆叠 */
  .news-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    column-gap: 0;
  }
  .site-body { grid-template-columns: 1fr; column-gap: 0; row-gap: 30px; }
  .col-side { gap: 26px; }
  .col-side .live-rank { flex: 0 0 auto; }
  .rank-list { flex: 0 0 auto; }
  .rank-empty { margin: 0; }
}
@media (max-width: 640px) {
  .site-frame { display: none; }
  .site-shell { padding: 0 16px 20px; }
  .site-links { display: none; }
  .site-nav { height: 56px; }
  .hero-l { padding-left: 0; }
  .hero-l::before { display: none; }
  .hero-title { font-size: 34px; letter-spacing: 6px; }
  .hero-en { font-size: 8px; letter-spacing: 2.4px; }
  .hero-tag { font-size: 9.5px; letter-spacing: 2px; }
  .hero-stats li { padding: 10px 0 10px 10px; }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats b { font-size: 18px; }
  .site-body { row-gap: 24px; }
  .site-notice { padding-top: 24px; }
  .notice-tip:not(.is-link) { display: none; }
  .news-row { grid-template-columns: 42px 38px minmax(0, 1fr) 10px; gap: 8px; }
  .auth-panel { padding: 16px; max-width: none; }
  .auth-panel::after { left: 16px; right: 16px; }
  .wm-stat { font-size: 9px; padding: 9px 0 10px; }
  .wm-stat span { padding: 0 10px; }
  .wm-legend { left: 10px; bottom: 10px; gap: 8px; font-size: 9px; }
  .wm-north, .wm-scale { display: none; }
  .rank-head { grid-template-columns: 24px minmax(0, 1fr) auto 14px; }
  .rank-row { grid-template-columns: 24px minmax(0, 1fr) auto 14px; }
  .guide-list li { padding-left: 24px; }
  .guide-list li::after { left: 19px; }
}

/* ============================================================
   v4.51 官网「名将」名录（点击导航「名将」弹出）
   —— 卡片 + 兵种评级 + 技能说明 + 机制动画演示（纯 SVG/CSS，无外部资源）
   ============================================================ */
.gen-modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(8, 8, 9, .82); backdrop-filter: blur(3px);
  padding: 28px 20px; overflow: auto;
}
.gen-modal.on { display: block; }
.gen-shell {
  max-width: 1080px; margin: 0 auto; position: relative;
  background: linear-gradient(180deg, #16161a, #101013);
  border: 1px solid rgba(200, 176, 120, .28); border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
}
.gen-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px 12px; border-bottom: 1px solid #2a2a2e;
}
.gen-title { font-size: 15px; letter-spacing: 4px; color: #e8dfc4; }
.gen-title em { font-style: normal; font-size: 9px; letter-spacing: 2px; color: #6b6656; margin-left: 8px; }
.gen-count { font-size: 10px; color: #8a8272; letter-spacing: 1px; }
.gen-close {
  margin-left: auto; width: 26px; height: 26px; line-height: 24px; text-align: center;
  background: transparent; border: 1px solid #3a3a3e; color: #9a9484; border-radius: 2px;
  cursor: pointer; font-size: 14px; font-family: inherit;
}
.gen-close:hover { border-color: #7a6a44; color: #e8cf9a; }
.gen-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 20px 0; }
.gen-chip {
  font-size: 10px; letter-spacing: 1px; padding: 4px 10px; cursor: pointer; font-family: inherit;
  background: transparent; color: #8e8878; border: 1px solid #34343a; border-radius: 999px;
}
.gen-chip:hover { color: #d8cfa8; border-color: #5c5440; }
.gen-chip.on { color: #1a1710; background: linear-gradient(180deg, #dcc794, #bfa870); border-color: #a8925e; }
.gen-search {
  margin-left: auto; width: 150px; height: 26px; padding: 0 9px; font-size: 11px; font-family: inherit;
  color: #d8d2c2; background: rgba(255, 255, 255, .03);
  border: 1px solid #34343a; border-radius: 2px; outline: none; letter-spacing: .5px;
}
.gen-search:focus { border-color: #7a6a44; }
.gen-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px; padding: 14px 20px 22px;
}
.gen-card {
  position: relative; padding: 12px 13px 11px;
  background: rgba(22, 22, 26, .86);
  border: 1px solid #2e2e34; border-left: 2px solid #5a5344; border-radius: 3px;
}
.gen-card:hover { border-color: #4a463c; border-left-color: #c8a86a; background: rgba(28, 28, 32, .92); }
.gen-card-top { display: flex; align-items: baseline; gap: 7px; }
.gen-name { font-size: 14px; letter-spacing: 2px; color: #eee6d2; }
.gen-force {
  font-size: 9px; padding: 1px 5px; border-radius: 2px; letter-spacing: 1px;
  color: #cfc4a4; border: 1px solid #4a4638; background: rgba(200, 176, 120, .08);
}
.gen-force.f-魏 { color: #9fb6d8; border-color: #3d4c62; background: rgba(90, 130, 190, .10); }
.gen-force.f-蜀 { color: #d8a89a; border-color: #5e3f38; background: rgba(190, 100, 80, .10); }
.gen-force.f-吴 { color: #9ec8b6; border-color: #35564a; background: rgba(80, 160, 130, .10); }
.gen-force.f-群 { color: #c9bc9a; border-color: #4c4736; background: rgba(180, 165, 120, .10); }
.gen-sub { margin-left: auto; font-size: 9.5px; color: #7d7768; letter-spacing: 1px; }
.gen-unit {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap;
  font-size: 9.5px; color: #8e8878; letter-spacing: .5px;
}
.gen-unit b { color: #c9c2ae; font-weight: 400; }
.ug { display: inline-block; min-width: 12px; text-align: center; font-size: 9px; line-height: 13px;
  border-radius: 2px; padding: 0 3px; margin-left: 3px; }
.ug-S { color: #f0d79a; border: 1px solid #8a6f32; background: rgba(200, 160, 70, .16); }
.ug-A { color: #e2c98e; border: 1px solid #6f5c30; background: rgba(170, 140, 70, .12); }
.ug-B { color: #b9bcae; border: 1px solid #4a4f44; background: rgba(140, 150, 130, .10); }
.ug-C { color: #a89a88; border: 1px solid #4a4438; background: rgba(140, 120, 100, .08); }
.ug-D { color: #9a7a72; border: 1px solid #4a3532; background: rgba(150, 90, 80, .08); }
.gen-skill { margin-top: 9px; padding-top: 8px; border-top: 1px dashed #2b2b30; }
.gen-skill-h { font-size: 10px; letter-spacing: 1px; color: #c8b98e; margin-bottom: 3px; }
.gen-skill-h i { font-style: normal; font-size: 8.5px; color: #6d675a; margin-left: 6px; letter-spacing: .5px; }
.gen-skill-d { font-size: 10.5px; line-height: 1.75; color: #98917f; letter-spacing: .3px; }
.gen-skill-d b { color: #d8cfb0; font-weight: 400; }
.gen-empty { grid-column: 1 / -1; text-align: center; color: #6d675a; font-size: 11px; padding: 30px 0; }

@media (max-width: 720px) {
  .gen-modal { padding: 10px 8px; }
  .gen-grid { grid-template-columns: 1fr; padding: 10px 12px 16px; }
  .gen-search { width: 100%; margin-left: 0; }
}

/* ============================================================
   v4.53 官网「兵种志」与「赛季战局」
   ============================================================ */
.gen-hint { font-size: 9px; color: #6f695c; letter-spacing: .5px; margin-left: auto; }

/* —— 兵种卡 —— */
.u-card { padding-bottom: 10px; }
.u-bars { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.u-bar-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; align-items: center; gap: 6px; }
.u-bar-k { font-size: 9px; color: #7d7768; }
.u-bar { height: 5px; background: #1c1c20; border: 1px solid #26262b; border-radius: 3px; overflow: hidden; }
.u-bar-fill { display: block; height: 100%; border-radius: 2px; }
.u-b-atk { background: linear-gradient(90deg, #8a4a3a, #c0705a); }
.u-b-def { background: linear-gradient(90deg, #3d5570, #6f8fb0); }
.u-b-speed { background: linear-gradient(90deg, #4a6a4a, #86b086); }
.u-b-siege { background: linear-gradient(90deg, #6a5a34, #b8996a); }
.u-bar-v { font-size: 9px; color: #c8bfa4; text-align: right; }
.u-flavor { margin-top: 8px; font-size: 10px; line-height: 1.7; color: #98917f; }
.u-counters { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.u-c-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.u-c-k { font-size: 9px; color: #6f695c; letter-spacing: 1px; }
.u-chip {
    font-size: 9px; padding: 1px 5px; border-radius: 2px; letter-spacing: .5px;
    border: 1px solid #343a34; color: #9c9484; background: rgba(255,255,255,.02);
}
.u-chip.good { color: #9fd3a6; border-color: #3c5640; background: rgba(90,160,110,.10); }
.u-chip.bad { color: #d39a8a; border-color: #563c38; background: rgba(170,90,80,.10); }
.u-chip.none { color: #5f5a50; border-style: dashed; }

/* —— 循环克制图 —— */
.u-cycle-box {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 10px 14px; border: 1px solid #2c2c32; border-radius: 3px;
    background: linear-gradient(180deg, rgba(26,26,30,.9), rgba(18,18,21,.9));
}
.u-cycle { width: 240px; height: 84px; flex: 0 0 auto; }
.u-cycle-t { font-size: 10px; letter-spacing: 2px; color: #c8b98e; }
.u-cycle-note { font-size: 10px; color: #8e8878; line-height: 1.8; }

/* —— 克制总表 —— */
.unit-matrix-wrap { padding: 4px 20px 20px; }
.unit-matrix { overflow-x: auto; border: 1px solid #26262b; border-radius: 3px; padding: 8px; background: #101013; }
.um-row { display: flex; align-items: center; }
.um-cell { width: 20px; height: 18px; line-height: 18px; text-align: center; font-size: 8.5px; color: #8a8272; }
.um-th { color: #b0a88a; }
.um-corner { width: 26px; font-size: 8px; color: #6f695c; }
.um-good { color: #d8e8d0; background: rgba(90, 160, 110, .28); }
.um-bad { color: #e8cfc8; background: rgba(170, 90, 80, .26); }
.um-eq { color: #6f695c; background: rgba(255, 255, 255, .03); }
.um-na { background: transparent; }

/* —— 战局 —— */
.war-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; padding: 14px 20px 6px; }
.war-left { min-width: 0; }
.war-stat { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10px; color: #8a8272; padding-bottom: 8px; }
.war-stat b { color: #e0d2ac; font-weight: 400; }
.war-map-box { position: relative; border: 1px solid #2c2c32; border-radius: 3px; overflow: hidden; background: #0d0f10; }
.war-map-box canvas { display: block; width: 100%; height: auto; }
.war-legend {
    position: absolute; left: 8px; bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap;
    padding: 4px 8px; font-size: 9px; color: #9a9484; background: rgba(12,12,14,.82);
    border: 1px solid #2c2c32; border-radius: 2px;
}
.war-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 1px; vertical-align: middle; }
.war-legend-tip { color: #6f695c; }
.war-ranks { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 400px; overflow-y: auto; }
.wr-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 76px 34px; align-items: center; gap: 6px; font-size: 9.5px; padding: 2px 0; }
.wr-idx { color: #5f5a50; text-align: right; }
.wr-name { color: #c9c2ae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-name i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.wr-name em { font-style: normal; font-size: 8px; color: #6f695c; margin-left: 5px; }
.wr-bar { height: 6px; background: #1a1a1e; border-radius: 3px; overflow: hidden; }
.wr-bar i { display: block; height: 100%; }
.wr-num { color: #b8b0a0; text-align: right; }
.war-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 6px 20px 20px; }
.war-col { min-width: 0; }
.war-campaigns { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-height: 260px; overflow-y: auto; }
.wc-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center;
    padding: 6px 8px; border: 1px solid #26262b; border-left: 2px solid #5c4a34; border-radius: 2px;
    background: rgba(24, 24, 28, .7); font-size: 9.5px;
}
.wc-route { color: #d8cfb8; letter-spacing: .5px; }
.wc-lv { font-size: 8.5px; padding: 1px 5px; border-radius: 2px; border: 1px solid #3a3a34; color: #a89a88; }
.wc-lv1 { color: #d8bf8a; border-color: #5c4a2e; }
.wc-lv2 { color: #e8b47a; border-color: #6a4526; }
.wc-lv3 { color: #f0a08a; border-color: #7a3a2e; background: rgba(170, 80, 60, .12); }
.wc-k { color: #c08a72; }
.wc-ago { color: #6f695c; font-size: 8.5px; }
.wc-top { grid-column: 1 / -1; color: #8a8272; font-size: 8.5px; margin-top: 2px; }
.war-trend { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.wt-cond { font-size: 9.5px; color: #8a8272; margin-bottom: 4px; }
.wt-row { display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: #7d7768; padding: 3px 6px; border-radius: 2px; }
.wt-row i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a40; flex: 0 0 auto; }
.wt-done { color: #9aa894; }
.wt-done i { background: #6f8f6a; }
.wt-cur { color: #e8d3a0; background: rgba(200, 176, 120, .08); border: 1px solid #4a4430; }
.wt-cur i { background: #d8bf8a; box-shadow: 0 0 6px rgba(216, 191, 138, .6); }
@media (max-width: 860px) {
    .war-grid, .war-bottom { grid-template-columns: 1fr; }
}

/* v4.54 兵种志：三大系标签配色（盾/骑/弓） */
.gen-force.f-shield { color: #a9b2bd; border-color: #3f4a56; background: rgba(150, 165, 185, .10); }
.gen-force.f-cavalry { color: #d8b878; border-color: #5c4a26; background: rgba(200, 165, 90, .10); }
.gen-force.f-archer { color: #9ec0d8; border-color: #35505f; background: rgba(110, 165, 200, .10); }

/* ============================================================
   v4.54 官网「玩法手册」：左目录 / 右正文（沿用站点暗金色调）
   ============================================================ */
.rule-modal .rule-shell {
  max-width: 1180px; margin: 0 auto; position: relative;
  background: linear-gradient(180deg, #16161a, #101013);
  border: 1px solid rgba(200, 176, 120, .28); border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .65);
  display: flex; flex-direction: column; max-height: calc(100vh - 56px);
}
.rule-wrap { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 0; flex: 1 1 auto; }
.rule-toc {
  border-right: 1px solid #2a2a2e; padding: 10px 8px 16px; overflow-y: auto;
  background: rgba(14, 14, 17, .55);
}
.rule-toc::-webkit-scrollbar, .rule-body::-webkit-scrollbar { width: 6px; }
.rule-toc::-webkit-scrollbar-thumb, .rule-body::-webkit-scrollbar-thumb { background: #35353b; border-radius: 3px; }
.rule-toc-item {
  display: flex; align-items: baseline; gap: 7px; width: 100%; text-align: left;
  padding: 7px 8px; margin-bottom: 2px; cursor: pointer; font-family: inherit;
  background: transparent; border: 0; border-left: 2px solid transparent; border-radius: 0 2px 2px 0;
  color: #8e8878; font-size: 10.5px; letter-spacing: .6px; line-height: 1.5;
}
.rule-toc-item i { font-style: normal; font-size: 8.5px; color: #5f5a50; font-variant-numeric: tabular-nums; }
.rule-toc-item:hover { color: #d8cfa8; background: rgba(200, 176, 120, .06); }
.rule-toc-item.on {
  color: #f0e2bc; background: rgba(200, 176, 120, .10); border-left-color: #c8a86a;
}
.rule-toc-item.on i { color: #c8a86a; }
.rule-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.rule-body { padding: 16px 22px 10px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.rule-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 18px 12px; border-top: 1px solid #26262b;
}
.rule-pos { font-size: 9.5px; color: #6f695c; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.rule-nav {
  height: 24px; padding: 0 10px; font-size: 10px; font-family: inherit; cursor: pointer;
  color: #cfc4a4; background: rgba(200, 176, 120, .08);
  border: 1px solid #4a4638; border-radius: 2px; letter-spacing: .5px;
}
.rule-nav:hover:not(:disabled) { color: #1a1710; background: linear-gradient(180deg, #dcc794, #bfa870); border-color: #a8925e; }
.rule-nav:disabled { opacity: .35; cursor: not-allowed; }

/* —— 正文排版 —— */
.rule-ch-head { display: flex; align-items: baseline; gap: 9px; padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px solid #2a2a2e; }
.rule-ch-no { font-size: 8.5px; letter-spacing: 2px; color: #6f695c; }
.rule-ch-title { font-size: 14px; letter-spacing: 2px; color: #eee6d2; }
.rule-body h3 {
  font-size: 11.5px; font-weight: 400; letter-spacing: 1.4px; color: #e0cfa2;
  margin: 16px 0 7px; padding-left: 8px; border-left: 2px solid #8a7448;
}
.rule-body h4 { font-size: 10.5px; font-weight: 400; letter-spacing: 1px; color: #c9c2ae; margin: 11px 0 5px; }
.rule-body p { font-size: 10.5px; line-height: 1.95; color: #a29a88; margin: 5px 0; letter-spacing: .3px; }
.rule-body b { color: #e8dcbc; font-weight: 400; }
.rule-body code {
  font-family: inherit; font-size: 9.5px; padding: 0 3px; color: #d8c8a0;
  background: rgba(200, 176, 120, .10); border: 1px solid #3a3428; border-radius: 2px;
}
.rule-body ul, .rule-body ol { margin: 5px 0 5px 2px; padding-left: 16px; }
.rule-body li { font-size: 10.5px; line-height: 1.9; color: #a29a88; margin: 2px 0; letter-spacing: .3px; }
.rule-body li::marker { color: #7a6a44; }
.rule-body blockquote {
  margin: 8px 0; padding: 6px 10px; border-left: 2px solid #6a5a34;
  background: rgba(200, 176, 120, .05); color: #9a9484; font-size: 10px; line-height: 1.85;
}
.rule-body hr { border: 0; border-top: 1px solid #26262b; margin: 14px 0; }
.rl-tbl { overflow-x: auto; margin: 8px 0; border: 1px solid #2a2a2e; border-radius: 3px; }
.rule-body table { width: 100%; border-collapse: collapse; font-size: 10px; }
.rule-body thead th {
  text-align: left; padding: 6px 8px; font-weight: 400; letter-spacing: .8px;
  color: #d8cba4; background: rgba(200, 176, 120, .09); border-bottom: 1px solid #33332f; white-space: nowrap;
}
.rule-body tbody td { padding: 5px 8px; color: #9c9484; border-bottom: 1px solid #232327; line-height: 1.7; }
.rule-body tbody tr:last-child td { border-bottom: 0; }
.rule-body tbody tr:hover td { background: rgba(200, 176, 120, .04); }
@media (max-width: 780px) {
  .rule-wrap { grid-template-columns: 1fr; }
  .rule-toc {
    border-right: 0; border-bottom: 1px solid #2a2a2e; max-height: 128px;
    display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start;
  }
  .rule-toc-item { width: auto; border-left: 0; border: 1px solid #34343a; border-radius: 999px; padding: 4px 9px; }
  .rule-toc-item.on { border-color: #a8925e; }
  .rule-body { padding: 12px 14px 8px; }
}
