/* 梦回石光远古乐园官网 · 巅峰之塔 1～199 层（星渊圣殿）专题页样式（guide-tower.css）
   基于专题共用样式 guide-expansion.css 扩展：body.exp-page.theme-tower 主题色与专属组件。
   严格遵守 CSP：零内联样式。 */

/* ================= 1. 主题：星渊湛蓝 × 璀璨流金 ================= */
.exp-page.theme-tower {
  --exp-primary: #1d5ba8;
  --exp-primary-soft: #ecf3fc;
  --exp-secondary: #b87314;
  --exp-secondary-soft: #fff6e6;
  --exp-deep: #103568;
  --exp-ink: #1f2836;
  --exp-muted: #5d697a;
  --exp-paper: #fafcff;
  --exp-card: #ffffff;
  --exp-line: #d4e1f2;
  --exp-line-strong: #afc6e4;
  --exp-glow: #8ce4ff;
  --exp-warm: #ffd978;
  --exp-hero-bg:
    radial-gradient(circle at 15% 18%, rgba(102, 212, 255, .28), transparent 46%),
    radial-gradient(circle at 86% 82%, rgba(255, 196, 82, .30), transparent 50%),
    radial-gradient(rgba(255, 255, 255, .07) 1.3px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(135deg, #091428 0%, #132c56 44%, #1e3f73 74%, #3c2c16 100%);
  --exp-hero-bar: linear-gradient(90deg, #3da5ff, #ffe08a 50%, #f0942b);
  --exp-badge-grad: linear-gradient(155deg, #2670cc, #113a73);
}
.theme-tower .exp-table tbody tr:nth-child(even) td {
  background: #f7faff;
}
.theme-tower .exp-hero-frame {
  background: #081122;
}
.theme-tower .exp-card.is-warm {
  border-color: #ecd3a2;
}
.theme-tower .exp-main,
.theme-tower .exp-section,
.theme-tower .exp-tabs-wrap,
.theme-tower .exp-table-wrap,
.theme-tower .exp-hero > * {
  min-width: 0;
  max-width: 100%;
}
.theme-tower .exp-table th:nth-child(1),
.theme-tower .exp-table th:nth-child(2),
.theme-tower .exp-table th:nth-child(3),
.theme-tower .exp-table td:nth-child(1),
.theme-tower .exp-table td:nth-child(2),
.theme-tower .exp-table td:nth-child(3) {
  white-space: nowrap;
}
.theme-tower .exp-table-wrap {
  overflow-x: auto;
}
.theme-tower .exp-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--exp-primary-soft);
  border: 1px solid var(--exp-line-strong);
  border-radius: var(--radius-lg);
}
.theme-tower .exp-foot-nav .btn-leaf-ghost {
  color: var(--exp-deep);
  background: #fff;
  border-color: var(--exp-line-strong);
}
.theme-tower .exp-foot-nav .btn-leaf-ghost:hover {
  color: #fff;
  background: var(--exp-primary);
}

/* ================= 2. 双篇爬塔阶梯流转示意 ================= */
.tw-ladder {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin: 14px 0 18px;
}
.tw-stage {
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 2px solid var(--exp-line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 18px rgba(16, 53, 104, .06);
}
.tw-stage.is-sanctuary {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 212, 112, .22), transparent 52%),
    linear-gradient(180deg, #fffdf7, #f3f7ff);
  border-color: #dab56c;
}
.tw-stage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.tw-stage-badge {
  display: inline-block;
  padding: 3px 11px;
  color: #fff;
  background: var(--exp-badge-grad);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}
.tw-stage.is-sanctuary .tw-stage-badge {
  color: #3a2204;
  background: linear-gradient(135deg, #ffe08a, #f2a93b);
}
.tw-stage-floors {
  color: var(--exp-deep);
  font-size: 14px;
  font-weight: 800;
}
.tw-stage h3 {
  margin: 0 0 8px;
  color: var(--exp-ink);
  font-size: 19px;
}
.tw-stage ul {
  margin: 0;
  padding-left: 18px;
  color: var(--exp-muted);
  font-size: 14px;
  line-height: 1.72;
}
.tw-stage li + li {
  margin-top: 4px;
}
.tw-ladder-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--exp-primary);
  font-weight: 900;
  text-align: center;
}
.tw-ladder-arrow b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, #2670cc, #d4881c);
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(29, 91, 168, .25);
}
.tw-ladder-arrow small {
  margin-top: 6px;
  color: var(--exp-muted);
  font-size: 12px;
  line-height: 1.35;
}

/* ================= 3. 十大主题区域层主动态卡片 ================= */
.tw-zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.tw-zone-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(16, 53, 104, .05);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.tw-zone-card:hover {
  transform: translateY(-2px);
  border-color: var(--exp-line-strong);
  box-shadow: 0 10px 22px rgba(16, 53, 104, .10);
}
.tw-zone-card.is-deep {
  background: linear-gradient(180deg, #ffffff, #f9f7ff);
  border-color: #d8d2ef;
}
.tw-zone-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 10px 8px 26px;
  background:
    radial-gradient(circle at 50% 42%, rgba(120, 206, 255, .24), transparent 65%),
    linear-gradient(165deg, #0d1b36, #19315c 62%, #112240);
  border: 2px solid #29497d;
  border-radius: 14px;
  overflow: hidden;
}
.tw-zone-card.is-deep .tw-zone-art {
  background:
    radial-gradient(circle at 50% 42%, rgba(206, 162, 255, .24), transparent 65%),
    linear-gradient(165deg, #171233, #2b1f59 62%, #191636);
  border-color: #493884;
}
.tw-zone-art img {
  width: auto;
  max-width: 116px;
  height: auto;
  max-height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .48));
}
.tw-zone-elem {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  padding: 2px 6px;
  color: #e4f1ff;
  background: rgba(8, 18, 38, .76);
  border: 1px solid rgba(140, 200, 255, .32);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.tw-zone-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.tw-zone-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.tw-floor-pill {
  display: inline-block;
  padding: 2px 9px;
  color: #fff;
  background: var(--exp-badge-grad);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.tw-zone-card.is-deep .tw-floor-pill {
  background: linear-gradient(145deg, #5d40b8, #352175);
}
.tw-zone-head h3 {
  margin: 0;
  color: var(--exp-ink);
  font-size: 17px;
}
.tw-boss-sub {
  margin: 0;
  color: var(--exp-muted);
  font-size: 13px;
}
.tw-trait-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
}
.tw-trait-tag {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 7px;
  color: var(--exp-deep);
  background: var(--exp-primary-soft);
  border: 1px solid var(--exp-line-strong);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}
.tw-trait-tag.is-guard {
  color: #7c4405;
  background: #fff3dc;
  border-color: #ecc886;
}

/* ================= 4. 每周 14 种随机变化分组卡片 ================= */
.tw-affix-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.tw-affix-box {
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-lg);
}
.tw-affix-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 16px;
}
.tw-affix-cat {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.tw-affix-cat.is-def { color: #0f4c8a; background: #e3f0ff; }
.tw-affix-cat.is-atk { color: #962d1c; background: #ffe9e5; }
.tw-affix-cat.is-hex { color: #5b2e9c; background: #f1e9ff; }
.tw-affix-cat.is-tac { color: #166644; background: #e3f8ee; }

.tw-affix-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.6;
}
.tw-affix-items b {
  color: var(--exp-ink);
}

/* ================= 5. 奖励品质胶囊与周榜三甲/商店卡片 ================= */
.tw-q {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}
.tw-q.is-bp {
  color: #4a2800;
  background: linear-gradient(135deg, #ffe38f, #f6b73c);
  border: 1px solid #d99316;
}
.tw-q.is-top {
  color: #5b248f;
  background: #f4ebff;
  border: 1px solid #d1b5f7;
}
.tw-q.is-mid {
  color: #144d8c;
  background: #e8f2ff;
  border: 1px solid #b5d2f6;
}
.tw-q.is-base {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.tw-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 22px;
}
.tw-rank-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-lg);
}
.tw-rank-card.is-r1 {
  background: linear-gradient(135deg, #fffdf5, #fff5d9);
  border-color: #e4b654;
}
.tw-rank-card.is-r2 {
  background: linear-gradient(135deg, #fafcff, #eef4fb);
  border-color: #b7c9df;
}
.tw-rank-card.is-r3 {
  background: linear-gradient(135deg, #fffaf6, #fceddf);
  border-color: #dfb48c;
}
.tw-rank-no {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
}
.tw-rank-card.is-r1 .tw-rank-no { color: #523000; background: linear-gradient(145deg, #ffe285, #eba428); }
.tw-rank-card.is-r2 .tw-rank-no { color: #1e3552; background: linear-gradient(145deg, #e5eef9, #b8cbe2); }
.tw-rank-card.is-r3 .tw-rank-no { color: #572b0c; background: linear-gradient(145deg, #f8d4b4, #d79762); }
.tw-rank-info strong {
  display: block;
  color: var(--exp-ink);
  font-size: 16px;
}
.tw-rank-info span {
  color: var(--exp-muted);
  font-size: 13px;
}

.tw-item-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.tw-item-inline img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}

@media (max-width: 920px) {
  .tw-ladder {
    grid-template-columns: 1fr;
  }
  .tw-ladder-arrow {
    flex-direction: row;
    gap: 10px;
    padding: 2px 0;
  }
  .tw-zones,
  .tw-affix-groups,
  .tw-podium {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .tw-zone-card {
    grid-template-columns: 1fr;
  }
  .tw-zone-art {
    min-height: 124px;
  }
}
