/* 梦回石光远古乐园官网 · 深渊魔王专题页（guide-abyss.html）
   在专题共用样式 guide-expansion.css 之上：body.exp-page.theme-abyss 的主题色，以及本页独有的组件
   （命数条示意、流程步骤、五殿卡片、词条卡、评级、周榜奖励、商店商品、常见问题）。
   严格遵守 CSP：零内联样式。 */

/* ================= 1. 主题：幽渊紫 × 魂火青 ================= */
.exp-page.theme-abyss {
  --exp-primary: #6a3fc4;
  --exp-primary-soft: #f3eefe;
  --exp-secondary: #0f8f8a;
  --exp-secondary-soft: #e6f8f6;
  --exp-deep: #33206b;
  --exp-ink: #262233;
  --exp-muted: #686378;
  --exp-paper: #fcfbff;
  --exp-card: #ffffff;
  --exp-line: #e0d8f3;
  --exp-line-strong: #c3b3ea;
  --exp-glow: #8ff3e0;
  --exp-warm: #d9b8ff;
  --exp-hero-bg:
    radial-gradient(circle at 14% 18%, rgba(72, 232, 205, .24), transparent 46%),
    radial-gradient(circle at 88% 84%, rgba(170, 92, 255, .38), transparent 50%),
    radial-gradient(rgba(255, 255, 255, .06) 1.3px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(135deg, #0a0914 0%, #1a1238 44%, #2c1553 76%, #12303a 100%);
  --exp-hero-bar: linear-gradient(90deg, #35d8c0, #c9a6ff 50%, #ff8a5c);
  --exp-badge-grad: linear-gradient(155deg, #7a4fd6, #3c2385);
}
.theme-abyss .exp-table tbody tr:nth-child(even) td {
  background: #faf7ff;
}
.theme-abyss .exp-hero-frame {
  background: #000;
}
.theme-abyss .exp-card.is-warm {
  border-color: #b9e4df;
}

/* ================= 2. 命数条示意 ================= */
.ab-lifebar {
  margin: 4px 0 18px;
  padding: 18px 20px 14px;
  color: #efeaff;
  background:
    radial-gradient(circle at 12% 0%, rgba(72, 232, 205, .16), transparent 55%),
    linear-gradient(135deg, #141026, #24184a 60%, #17303a);
  border: 3px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
}
.ab-lifebar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 12px;
}
.ab-lifebar-boss {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 1.5px;
}
.ab-lifebar-turn {
  color: #b9b0d8;
  font-size: 13px;
  font-weight: 700;
}
.ab-lifebar-turn b {
  color: #ffd76a;
  font-size: 20px;
}
.exp-section ol.ab-cells {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.exp-section .ab-cells li {
  position: relative;
  display: grid;
  place-items: center;
  height: 40px;
  margin: 0;
  color: #7f779c;
  background: #1d1837;
  border: 2px solid #3a3160;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}
.ab-cells li.is-lit {
  color: #06302b;
  background: linear-gradient(180deg, #8ff3e0, #2fc7b0);
  border-color: #c8fff4;
  box-shadow: 0 0 12px rgba(72, 232, 205, .45);
}
.ab-cells li.is-cur {
  color: #fff;
  background: linear-gradient(180deg, #ff8a5c, #d93a2b);
  border-color: #ffd0bd;
  box-shadow: 0 0 14px rgba(255, 110, 70, .55);
}
.ab-cells li.is-pass::before {
  content: "通关线";
  position: absolute;
  top: -19px;
  left: 50%;
  padding: 0 6px;
  color: #241604;
  background: #ffd76a;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 16px;
  white-space: nowrap;
  transform: translateX(-50%);
}
.ab-cells li.is-crown::after {
  content: "👑";
  position: absolute;
  top: -20px;
  right: -4px;
  font-size: 15px;
}
.ab-lifebar-hp {
  height: 10px;
  margin: 12px 0 0;
  overflow: hidden;
  background: #0f0c1f;
  border: 1.5px solid #3a3160;
  border-radius: 999px;
}
.ab-lifebar-hp i {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #ff5a3c, #ffb347);
  border-radius: 999px;
}
.ab-lifebar figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 12px;
  color: #c9c2e4;
  font-size: 12.5px;
}
.ab-lifebar figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ab-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.ab-dot.is-lit { background: #4fe0c8; }
.ab-dot.is-cur { background: #f0553a; }
.ab-dot.is-pass { background: #ffd76a; border-radius: 999px; }
.ab-dot.is-crown { background: #1d1837; border: 2px solid #ffd76a; }

/* ================= 3. 流程步骤 ================= */
.exp-section ol.ab-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  counter-reset: ab-step;
}
.exp-section .ab-steps li {
  position: relative;
  margin: 0;
  padding: 16px 14px 14px 16px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
  counter-increment: ab-step;
}
.ab-steps li::before {
  content: counter(ab-step);
  position: absolute;
  top: -12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--exp-badge-grad);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.ab-steps li b {
  display: block;
  margin-top: 4px;
  color: var(--exp-deep);
  font-size: 15px;
}
.ab-steps li span {
  display: block;
  margin-top: 4px;
  color: var(--exp-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ================= 4. 规则卡 ================= */
.ab-rules .exp-card {
  position: relative;
  padding-top: 18px;
}
.ab-rules .tag-pill {
  margin: 0 0 6px;
}
.ab-rules .exp-card h4 {
  margin: 4px 0 6px;
}

/* ================= 5. 五殿卡片 ================= */
.ab-halls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 6px;
}
.ab-hall {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px -10px rgba(40, 20, 90, .45);
}
.ab-hall.is-final {
  border-color: #c9a6ff;
  box-shadow: 0 8px 22px -10px rgba(120, 60, 220, .6);
}
.ab-hall-art {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #0d0b18;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}
.ab-hall-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 15;
  object-fit: cover;
  transition: transform .35s var(--ease-out);
}
.ab-hall-art:hover img {
  transform: scale(1.05);
}
.ab-hall-no {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  color: #fff;
  background: rgba(15, 10, 35, .78);
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.ab-hall.is-final .ab-hall-no {
  color: #241604;
  background: linear-gradient(180deg, #ffe58f, #ffba49);
  border-color: #fff;
}
.ab-hall-body {
  padding: 10px 12px 12px;
}
.exp-section .ab-hall-body h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.exp-section .ab-hall-role {
  margin: 2px 0 6px;
  color: var(--exp-primary);
  font-size: 12.5px;
  font-weight: 800;
}
.exp-section .ab-hall-body ul {
  margin: 0;
  padding-left: 16px;
  color: var(--exp-muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.exp-section .ab-hall-body li {
  margin: 1px 0;
}
.exp-section .ab-zoom-tip {
  margin: 4px 0 0;
  color: var(--exp-muted);
  font-size: 12.5px;
  text-align: right;
}

/* ================= 6. 词条卡 ================= */
.exp-section h4.ab-affix-title {
  display: inline-block;
  margin: 16px 0 8px;
  padding: 3px 14px;
  color: #fff;
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 1px;
}
.ab-affix-title.is-weak { background: #1d8f96; }
.ab-affix-title.is-threat { background: #c2382b; }
.exp-section ul.ab-affixes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.exp-section ul.ab-affixes.is-threat {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.exp-section .ab-affix {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f1fbfa, #fff 70%);
  border: 2px solid #c9e9e6;
  border-radius: var(--radius-md);
}
.exp-section .ab-affixes.is-threat .ab-affix {
  background: linear-gradient(180deg, #fff4f1, #fff 70%);
  border-color: #f1cdc6;
}
.ab-affix img {
  flex: none;
  width: 56px;
  height: 56px;
}
.ab-affix b {
  color: var(--exp-deep);
  font-size: 15.5px;
}
.exp-section .ab-affix p {
  margin: 2px 0 0;
  color: #4d4860;
  font-size: 13px;
  line-height: 1.7;
}

/* ================= 7. 战场图 ================= */
.ab-bgs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
}
.ab-bgs .exp-media-card figcaption {
  text-align: center;
}

/* ================= 8. 点数表、评级、周榜奖励 ================= */
.ab-points td,
.ab-points th {
  text-align: center;
  white-space: nowrap;
}
.ab-points td:first-child,
.ab-points th:first-child {
  text-align: left;
}
.ab-points tr.is-total td:first-child {
  text-align: right;
}
.exp-section .ab-scroll-tip {
  display: none;
  margin: 4px 0 0;
  color: var(--exp-muted);
  font-size: 12px;
  text-align: center;
}
.exp-section ul.ab-grades,
.exp-section ul.ab-rank-pay {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.exp-section .ab-grades li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.exp-section .ab-grades .ab-grade-img {
  flex: none;
  width: 64px;
  height: 44px;
  object-fit: contain;
}
.exp-section .ab-grades li {
  min-height: 46px;
}
.ab-grade {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 26px;
  color: #fff;
  border-radius: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: .5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.ab-grade.is-sss { background: linear-gradient(135deg, #ffcf4a, #ff7a3c 55%, #c53bd6); }
.ab-grade.is-s { background: linear-gradient(135deg, #ffb83d, #e8862c); }
.ab-grade.is-a { background: linear-gradient(135deg, #8a63e6, #5a37b8); }
.ab-grade.is-b { background: linear-gradient(135deg, #36b3a8, #17807a); }
.ab-grade.is-c { background: linear-gradient(135deg, #9aa0ad, #6b7180); }
.exp-section .ab-rank-pay li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 5px 0;
  padding: 6px 12px;
  background: #fff;
  border: 1.5px solid var(--exp-line);
  border-radius: 10px;
}
.ab-rank-pay li b {
  color: var(--exp-deep);
}
.ab-rank-pay li span {
  color: #b26a00;
  font-weight: 900;
}
.ab-rank-pay li:first-child {
  background: linear-gradient(90deg, #fff6d6, #fff);
  border-color: #f0d68a;
}

/* ================= 9. 商店商品 ================= */
.exp-section ul.ab-shop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}
.exp-section .ab-goods {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 14px 12px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
}
.ab-goods.is-top {
  background: linear-gradient(180deg, #fff8e6, #fff 70%);
  border-color: #ecd08f;
}
.ab-goods-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ab-goods-bind {
  padding: 1px 10px;
  color: #a2470d;
  background: #fff1e2;
  border: 1.5px solid #f0c9a3;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.ab-h-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-h-icon img {
  flex: none;
}
.ab-goods-kind {
  align-self: flex-start;
  padding: 1px 10px;
  color: var(--exp-primary);
  background: var(--exp-primary-soft);
  border: 1.5px solid var(--exp-line-strong);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.ab-goods b {
  color: var(--exp-deep);
  font-size: 16px;
  line-height: 1.4;
}
.exp-section .ab-goods p {
  flex: 1;
  margin: 0;
  color: var(--exp-muted);
  font-size: 12.8px;
  line-height: 1.7;
}
.ab-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 8px;
  color: var(--exp-muted);
  border-top: 1.5px dashed var(--exp-line);
  font-size: 12.5px;
  font-weight: 700;
}
.ab-price img {
  flex: none;
  align-self: center;
}
.ab-price i {
  margin-right: 2px;
  color: #b26a00;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

/* ================= 10. 常见问题 ================= */
.ab-faq {
  display: grid;
  gap: 8px;
}
.ab-faq details {
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
}
.ab-faq details[open] {
  border-color: var(--exp-line-strong);
  background: linear-gradient(180deg, var(--exp-primary-soft), #fff 60%);
}
.ab-faq summary {
  padding: 11px 16px;
  color: var(--exp-deep);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
}
.ab-faq summary:hover {
  color: var(--exp-primary);
}
.exp-section .ab-faq details p {
  margin: 0;
  padding: 0 16px 13px 32px;
  color: #4d4860;
}

/* ================= 11. 响应式 ================= */
@media (max-width: 980px) {
  .ab-halls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exp-section ul.ab-shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ab-bgs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exp-section ol.ab-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .exp-section ul.ab-affixes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .ab-lifebar {
    padding: 14px 12px 12px;
  }
  .exp-section ol.ab-cells {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 5px;
    padding-top: 8px;
  }
  .ab-halls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ab-hall.is-final {
    grid-column: 1 / -1;
    flex-direction: row;
  }
  .ab-hall.is-final .ab-hall-art {
    flex: 0 0 46%;
  }
  .ab-hall.is-final .ab-hall-body {
    align-self: center;
  }
  .exp-section ul.ab-affixes,
  .exp-section ul.ab-affixes.is-threat {
    grid-template-columns: 1fr;
  }
  .ab-bgs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exp-section ul.ab-shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ab-goods.is-top {
    grid-column: 1 / -1;
  }
  .exp-section ol.ab-steps {
    grid-template-columns: 1fr;
  }
  .exp-section .ab-faq details p {
    padding-left: 16px;
  }
  .exp-section .ab-scroll-tip {
    display: block;
  }
}

/* 页脚：全站页脚是草绿色底，这里把字提亮，保证看得清 */
.theme-abyss .exp-footer {
  color: #f3fbe9;
  border-radius: 16px;
  font-family: inherit;
  letter-spacing: .5px;
}
.theme-abyss .exp-footer a {
  color: #fff;
}
