/* 梦回石光远古乐园官网 · 战团玩法介绍页（guide-warband.html）的补充样式。
   叠在 guide-expansion.css + guide-starter.css + wb-crest.css 之上：body.exp-page.st-page.theme-wb。
   零内联样式（CSP）；实机截图与动图由 build/warband-20261205/tools/build_guide_assets.py 生成。 */

/* ================= 1. 配色：营火琥珀 + 古铜 ================= */
.exp-page.theme-wb {
  --exp-primary: #b2561a;
  --exp-primary-soft: #fff3e6;
  --exp-secondary: #7a4a14;
  --exp-secondary-soft: #fbf1df;
  --exp-deep: #5a2a0c;
  --exp-ink: #2d241c;
  --exp-muted: #6f6256;
  --exp-paper: #fffcf7;
  --exp-card: #ffffff;
  --exp-line: #efdcc4;
  --exp-line-strong: #dcbb92;
  --exp-glow: #ffd98a;
  --exp-warm: #ffb15c;
  --exp-hero-bg:
    linear-gradient(100deg, rgba(26, 12, 4, .94) 0%, rgba(44, 20, 6, .86) 42%, rgba(60, 26, 6, .38) 72%, rgba(40, 16, 4, .55) 100%),
    url("/static/wb-banner.webp?v=20261205-1") center 60% / cover no-repeat,
    #2a1406;
  --exp-hero-bar: linear-gradient(90deg, #c96a1e, #ffe08a 50%, #b2561a);
  --exp-badge-grad: linear-gradient(155deg, #c4682a, #6e3210);
}
.theme-wb .exp-hero-lead strong {
  color: var(--exp-glow);
}

/* 页头按钮 */
.wbg-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.wbg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 20px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 230, 180, .7);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wbg-btn.is-gold {
  color: #3a2008;
  background: linear-gradient(180deg, #ffe9a8, #f0b43c);
  border-color: #fff3cf;
  box-shadow: 0 3px 0 #9a6110;
}
.wbg-btn:hover {
  transform: translateY(-2px);
}
.wbg-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* 截图卡：游戏画面是 4:3，不要裁成 16:9 */
.theme-wb .st-pic .exp-media-btn img,
.theme-wb .st-pic .wbg-pic-anim {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.wbg-pic-anim {
  display: block;
  width: 100%;
  height: auto;
  background: #141923;
}
.wbg-pics {
  margin-top: 18px;
}

/* ================= 2. 图文左右并排 ================= */
.wbg-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 16px 0;
}
.wbg-split.is-bag {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.wbg-split.is-ach {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.wbg-split.is-crest {
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: start;
}
.wbg-split .st-rows {
  margin: 0;
}
.wbg-shot,
.wbg-anim {
  margin: 0;
}
.wbg-shot .exp-media-btn,
.wbg-anim img {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: 0 14px 28px -14px rgba(60, 30, 8, .55), 0 0 0 2px var(--exp-line);
}
.wbg-shot .exp-media-btn img,
.wbg-anim img {
  display: block;
  width: 100%;
  height: auto;
  background: #10141a;
}
.wbg-shot.is-bag .exp-media-btn img {
  image-rendering: auto;
}
.wbg-shot figcaption,
.wbg-anim figcaption {
  margin-top: 8px;
  color: var(--exp-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.wbg-anim.is-crest {
  max-width: 360px;
  justify-self: center;
}

.wbg-h3 {
  margin: 20px 0 10px;
  color: var(--exp-deep);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .5px;
}
.wbg-split .wbg-h3:first-child {
  margin-top: 0;
}
.wbg-p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.8;
}

/* ================= 3. 加入誓约提示（不能退出） ================= */
.wbg-oath {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 4px 0 18px;
  padding: 18px 22px;
  overflow: hidden;
  color: #fff3dc;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 196, 92, .28), transparent 42%),
    linear-gradient(135deg, #3a0e0a 0%, #6a1810 48%, #4a1608 100%);
  border: 3px solid #f0b43c;
  border-radius: 20px;
  box-shadow: 0 0 0 3px #7a2410, 0 18px 30px -16px rgba(80, 20, 6, .7);
}
.wbg-oath img {
  display: block;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5));
}
.wbg-oath p {
  margin: 4px 0;
  font-size: 15.5px;
  line-height: 1.75;
}
.wbg-oath strong {
  color: #ffd15a;
  font-weight: 900;
}
.wbg-oath .wbg-oath-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
}
.wbg-oath .wbg-oath-title::before {
  content: "⚠";
  margin-right: 8px;
  color: #ffcf4a;
}
.wbg-oath .wbg-oath-tip {
  margin-top: 8px;
  color: #ffcf9a;
  font-size: 13.5px;
}

/* 三个入口 */
.wbg-entry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.wbg-entry li {
  padding: 12px 14px;
  background: var(--exp-primary-soft);
  border: 2px solid var(--exp-line);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
}
.wbg-entry b {
  display: block;
  margin-bottom: 2px;
  color: var(--exp-primary);
  font-size: 15px;
}

/* 步骤 */
.wbg-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: wbg-step;
}
.wbg-steps li {
  position: relative;
  padding: 40px 14px 14px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: 16px;
  counter-increment: wbg-step;
}
.wbg-steps li::before {
  content: counter(wbg-step);
  position: absolute;
  top: 10px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--exp-badge-grad);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.wbg-steps b {
  display: block;
  margin-bottom: 6px;
  color: var(--exp-deep);
  font-size: 15px;
}
.wbg-steps p {
  margin: 0;
  color: var(--exp-ink);
  font-size: 13.6px;
  line-height: 1.75;
}

/* ================= 4. 仓库：格子标识 ================= */
.wbg-marks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wbg-marks li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: 14px;
}
.wbg-marks b {
  font-size: 15px;
}
.wbg-marks p {
  margin: 2px 0 0;
  color: var(--exp-muted);
  font-size: 13.6px;
  line-height: 1.65;
}
.wbg-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .25), transparent 55%),
    #8d7a5d;
  border: 2px solid #5f4c33;
  border-radius: 8px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.wbg-mark.is-team {
  place-items: start;
  padding: 3px 0 0 5px;
  color: #ffd23a;
  text-shadow: 0 1px 0 #6a3a00, 0 0 4px rgba(0, 0, 0, .6);
}
.wbg-mark.is-bind {
  place-items: start;
  padding: 3px 0 0 5px;
  color: #ff3a2a;
  text-shadow: 0 1px 0 #4a0c06, 0 0 4px rgba(0, 0, 0, .5);
}
.wbg-store-table td.is-ok {
  color: #1f7a3a;
  font-weight: 900;
  white-space: nowrap;
}
.wbg-store-table td.is-no {
  color: #b51d1d;
  font-weight: 900;
  white-space: nowrap;
}
.theme-wb .exp-table tbody tr:nth-child(even) td {
  background: #fffaf3;
}

/* 动图 + 说明并排 */
.wbg-anim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 18px 0 6px;
}
.wbg-anim-text .st-rows {
  margin: 0;
}

/* ================= 5. 成就表 ================= */
.wbg-ach-table {
  min-width: 720px;
}
.wbg-ach-table td {
  vertical-align: middle;
}
.wbg-ach-name {
  white-space: nowrap;
}
.wbg-ach-name img {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(60, 30, 8, .35));
}
.wbg-ach-name b {
  color: var(--exp-deep);
  font-size: 14.5px;
  vertical-align: middle;
}
.wbg-pt {
  color: #b2561a;
  font-size: 16px;
  font-weight: 900;
  text-align: center !important;
  white-space: nowrap;
}
.wbg-ach-table th:last-child {
  text-align: center;
}
.wbg-tier td {
  color: #fff;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 1px;
  border-left: 0 !important;
}
.wbg-tier small {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: .9;
}
.theme-wb .exp-table tbody tr.wbg-tier.is-t1 td { background: linear-gradient(90deg, #8a7a66, #b4a487); }
.theme-wb .exp-table tbody tr.wbg-tier.is-t2 td { background: linear-gradient(90deg, #7a5a3a, #b08458); }
.theme-wb .exp-table tbody tr.wbg-tier.is-t3 td { background: linear-gradient(90deg, #9a6a12, #d9a531); color: #2a1800; }
.theme-wb .exp-table tbody tr.wbg-tier.is-t4 td { background: linear-gradient(90deg, #3d4a7a, #7a8ccf); }
.wbg-ach-table tr.is-locked td {
  color: var(--exp-muted);
}
.wbg-ach-table tr.is-locked img {
  filter: grayscale(.85) opacity(.7);
}

/* ================= 6. 团徽五阶 ================= */
.wbg-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
}
.wbg-ladder li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 14px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 214, 140, .22), transparent 62%),
    linear-gradient(180deg, #2a1a10, #17100a);
  border: 2px solid #5a3a1c;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .12);
}
.wbg-ladder .wbr-crest {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55));
}
.wbg-ladder b {
  margin-top: 8px;
  color: #ffe4b0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
}
.wbg-ladder small {
  margin-top: 2px;
  color: #ffbf5a;
  font-size: 12.5px;
  font-weight: 800;
}
.wbg-ladder p {
  margin: 6px 0 0;
  color: rgba(255, 238, 210, .78);
  font-size: 12.5px;
  line-height: 1.55;
}
.wbg-ladder li.is-l4 {
  border-color: #c9922a;
}
.wbg-ladder li.is-l5 {
  background:
    radial-gradient(circle at 50% 32%, rgba(180, 220, 255, .28), transparent 62%),
    linear-gradient(180deg, #1c2236, #10131d);
  border-color: #8fb8ff;
}
.wbg-ladder li.is-l5 b {
  color: #e6f1ff;
}
.wbg-ladder li.is-l5 small {
  color: #a9cbff;
}
@media (prefers-reduced-motion: no-preference) {
  .wbg-ladder li.is-l4 .wbr-crest,
  .wbg-ladder li.is-l5 .wbr-crest {
    animation: wbg-float 4.2s ease-in-out infinite;
  }
  .wbg-ladder li.is-l5 .wbr-crest {
    animation-delay: -1.4s;
  }
}
@keyframes wbg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* 图腾与配色 */
.wbg-totems,
.wbg-colors {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px;
  list-style: none;
  background: linear-gradient(180deg, #23160d, #150e08);
  border: 2px solid #5a3a1c;
  border-radius: 16px;
}
.wbg-colors {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.wbg-totems li,
.wbg-colors li {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffe4b0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.wbg-totems .wbr-crest,
.wbg-colors .wbr-crest {
  width: 100%;
  max-width: 64px;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 2px;
}

/* ================= 7. 荣誉榜 ================= */
.wbg-rank {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  color: #fff3dc;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 196, 92, .25), transparent 55%),
    linear-gradient(135deg, #24140a 0%, #3e2410 55%, #2a1608 100%);
  border: 3px solid #e0a23a;
  border-radius: 20px;
}
.wbg-rank-crests {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.wbg-rank-crests .wbr-crest {
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55));
}
.wbg-rank-crests .wbr-crest:nth-child(2) {
  width: 140px;
  height: 140px;
}
.wbg-rank-text p {
  margin: 0 0 10px;
  font-size: 14.8px;
  line-height: 1.8;
}
.wbg-rank-text strong {
  color: #ffd15a;
}
.wbg-rank-text .wbg-btn {
  margin-top: 6px;
}

/* ================= 8. 响应式 ================= */
@media (max-width: 980px) {
  .wbg-split,
  .wbg-split.is-bag,
  .wbg-split.is-ach,
  .wbg-anim-row {
    grid-template-columns: 1fr;
  }
  .wbg-split.is-crest {
    grid-template-columns: 1fr;
  }
  .wbg-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wbg-ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wbg-rank {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .wbg-oath {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 14px;
  }
  .wbg-oath img {
    width: 64px;
  }
  .wbg-oath .wbg-oath-title {
    font-size: 18px;
  }
  .wbg-oath p {
    font-size: 14.5px;
  }
  .wbg-entry,
  .wbg-steps {
    grid-template-columns: 1fr;
  }
  .wbg-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wbg-ladder .wbr-crest {
    width: 92px;
    height: 92px;
  }
  .wbg-totems {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wbg-colors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wbg-rank {
    padding: 16px 14px;
  }
  .wbg-rank-crests .wbr-crest {
    width: 80px;
    height: 80px;
  }
  .wbg-rank-crests .wbr-crest:nth-child(2) {
    width: 108px;
    height: 108px;
  }

  /* 成就表在手机上改成一张张卡片，不用横向滚动 */
  .wbg-ach-wrap {
    overflow: visible;
    background: none;
    border: 0;
  }
  .wbg-ach-table {
    min-width: 0;
  }
  .wbg-ach-table thead {
    display: none;
  }
  .wbg-ach-table,
  .wbg-ach-table tbody,
  .wbg-ach-table tr,
  .wbg-ach-table td {
    display: block;
    width: 100%;
  }
  .wbg-ach-table tr {
    margin: 0 0 10px;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--exp-line);
    border-radius: 14px;
  }
  .wbg-ach-table tr.wbg-tier {
    margin-top: 16px;
    border: 0;
  }
  .wbg-ach-table td {
    padding: 4px 14px;
    border: 0 !important;
  }
  .theme-wb .wbg-ach-table tbody tr:nth-child(even) td {
    background: none;
  }
  .wbg-ach-table td.wbg-ach-name {
    padding-top: 10px;
    white-space: normal;
  }
  .wbg-ach-table td[data-k]::before {
    content: attr(data-k) "：";
    color: var(--exp-muted);
    font-size: 12.5px;
    font-weight: 800;
  }
  .wbg-ach-table td.wbg-pt {
    padding-bottom: 10px;
    font-size: 14px;
    text-align: left !important;
  }
  .wbg-tier td {
    padding: 10px 14px !important;
    border-radius: 12px;
  }
  .wbg-tier small {
    display: block;
    margin: 2px 0 0;
  }
}

/* ================= 9. 细节修正 ================= */
/* 本页自己的列表不要通用的左缩进 */
.exp-section .wbg-entry,
.exp-section .wbg-steps,
.exp-section .wbg-marks,
.exp-section .wbg-ladder,
.exp-section .wbg-totems,
.exp-section .wbg-colors {
  padding-left: 0;
}
.exp-section .wbg-totems,
.exp-section .wbg-colors {
  padding: 10px;
}
.exp-section .wbg-ladder li,
.exp-section .wbg-marks li,
.exp-section .wbg-entry li,
.exp-section .wbg-steps li,
.exp-section .wbg-totems li,
.exp-section .wbg-colors li {
  margin: 0;
}
/* 图文并排时说明行的标题栏窄一点，正文不被挤成一条 */
@media (min-width: 981px) {
  .wbg-split .st-rows > li,
  .wbg-anim-text .st-rows > li {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 4px 14px;
  }
}
.theme-wb .exp-table tbody tr.wbg-tier.is-t1 td { background: linear-gradient(90deg, #6e5f4c, #9a8667); }
.wbg-fig2 figure {
  margin: 0;
}
.theme-wb .st-plan-col.is-c {
  border-top-color: #d9a531;
}
/* 通用链接样式会把按钮字变成链接色，这里按钮自己定 */
.exp-main a.wbg-btn {
  color: #fff;
  background: rgba(20, 8, 2, .45);
  text-decoration: none;
}
.exp-main a.wbg-btn.is-gold {
  color: #3a2008;
  background: linear-gradient(180deg, #ffe9a8, #f0b43c);
}
.exp-main a.wbg-btn:hover {
  color: #fff;
}
.exp-main a.wbg-btn.is-gold:hover {
  color: #3a2008;
}
