/* 能力槽与宝珠介绍页（orb-guide.html）专属样式；分节、卡片、目录等共用版式来自 guide-dungeon.css。
   CSP 禁止内联样式，所有视觉都写在这里。 */

/* ===== 页头：星夜紫 ===== */
.orb-page .orb-hero {
  background:
    radial-gradient(circle at 85% 50%, rgba(255, 200, 90, .45), transparent 42%),
    radial-gradient(rgba(255, 240, 255, .14) 1.4px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(150deg, #241046 0%, #4b1f7a 50%, #8a3a9c 100%);
}
.orb-page .orb-hero::after { background: linear-gradient(90deg, #e2481b, #ffcf4a, #5ad1a0, #3b9cf3, #c47ae8); }
.orb-page .dg-hero h1 { text-shadow: 0 3px 0 #2a0f4a, 0 0 22px rgba(200, 140, 255, .7); }
.orb-page .dg-eyebrow { color: #ffd88a; }
.orb-page .dg-lead { color: #ffe08a; }
.orb-page .dg-intro { color: #f2e6ff; }
.orb-hero-art {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, 64px);
  gap: 10px;
  margin: 0;
  padding: 18px;
  background: radial-gradient(circle, rgba(255, 220, 140, .35), transparent 70%);
  border-radius: 50%;
}
.orb-hero-art img { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); animation: orb-float 3.2s ease-in-out infinite; }
.orb-hero-art img:nth-child(2n) { animation-delay: .8s; }
.orb-hero-art img:nth-child(3n) { animation-delay: 1.6s; }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .orb-hero-art img { animation: none; } }

/* 本页链接与标题改用紫色调 */
.orb-page .dg-toc a { color: #5a2a8a; }
.orb-page .dg-toc a:hover, .orb-page .dg-toc a.is-active { color: #fff; background: #7a3aa8; border-color: #7a3aa8; }
.orb-page .dg-section > h2 { color: #4b1f7a; }
.orb-page .dg-no { background: linear-gradient(160deg, #b07ae8, #7a3aa8); box-shadow: 0 3px 0 #4b1f7a; }
.orb-page .dg-section h3 { color: #5a2a8a; border-left-color: #c47ae8; }
.orb-page .dg-section strong { color: #7a1fa0; }
.orb-page .dg-check li::before { color: #9a4ad0; }
.orb-page .dg-main a { color: #6a2aa0; }
.orb-page .dg-section summary { color: #5a2a8a; }
.orb-page .dg-footer a { color: #5a2a8a; }

/* ===== 能力槽布局示意 ===== */
.orb-board { margin: 12px 0; padding: 14px 16px; background: linear-gradient(120deg, #f8f2ff, #fff6e8); border: 2px solid #e3d1f3; border-radius: var(--radius-md); }
.orb-board-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.orb-board-label { flex: 0 0 72px; color: #5a2a8a; font-size: 13px; font-weight: 800; }
.orb-board-pets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.orb-board-pets .orb-board-row { flex-direction: column; align-items: stretch; padding: 8px; background: #fff; border: 1.5px solid #e3d1f3; border-radius: 10px; }
.orb-board-pets .orb-board-label { flex: none; text-align: center; }
.ob { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 0 auto; color: #fff; border-radius: 9px; font-size: 13px; font-weight: 900; }
.ob-auto { background: linear-gradient(160deg, #5ad1a0, #23885a); box-shadow: 0 2px 0 #1a6644; }
.ob-key { background: linear-gradient(160deg, #ffc35a, #d07a12); box-shadow: 0 2px 0 #9c5a0a; }
.orb-board-player .ob { margin: 0; }
.orb-board-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0 !important; font-size: 12.5px; font-weight: 700; }
.orb-board-legend .ob { width: 24px; height: 24px; margin: 0 2px 0 8px; font-size: 11px; border-radius: 6px; }

.orb-st { display: inline-block; margin-right: 6px; padding: 0 8px; color: #fff; border-radius: 6px; font-size: 12px; }
.orb-st-lock { background: #6b5a7a; }
.orb-st-open { background: #2f8fd6; }
.orb-st-on { background: #23885a; }

/* ===== 等级梯度图 ===== */
.orb-ladder {
  display: grid;
  grid-template-columns: 64px repeat(5, minmax(0, 1fr));
  gap: 4px 6px;
  align-items: center;
  justify-items: center;
  max-width: 560px;
  margin: 10px auto 6px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid #e3d1f3;
  border-radius: var(--radius-md);
}
.orb-ladder img { width: 44px; height: 44px; image-rendering: pixelated; }
.orb-ladder-head { color: #5a2a8a; font-size: 12px; font-weight: 800; }
.orb-ladder-name { justify-self: stretch; padding: 2px 0; color: #fff; text-align: center; border-radius: 6px; font-size: 13px; font-weight: 800; }
.k-red { background: #c43a2a; }
.k-brown { background: #9a6a36; }
.k-purple { background: #6a3a9a; }
.k-green { background: #3a9a3a; }
.k-blue { background: #2f8fd6; }
.k-gold { background: #c49a10; }
.k-orange { background: #d6741a; }
.k-teal { background: #1f9aa0; }
.k-pink { background: #d63a8a; }
.k-wine { background: #7a1a3a; }
.k-lime { background: #6aa02a; }
.k-white { background: #8a8072; }

/* ===== 数值表 ===== */
.orb-table { width: 100%; margin: 10px 0; border-collapse: collapse; font-size: 13.5px; }
.orb-table th, .orb-table td { padding: 7px 8px; text-align: center; vertical-align: middle; border: 1px solid #eadcf3; }
.orb-table th { color: #4b1f7a; background: #f4ecfb; font-weight: 800; }
.orb-table td:first-child { color: #4b1f7a; font-weight: 800; text-align: left; white-space: nowrap; }
.orb-table td:first-child img { width: 32px; height: 32px; margin-right: 6px; vertical-align: middle; image-rendering: pixelated; }
.orb-table td:nth-child(2) { text-align: left; }
.orb-table td:nth-child(3) { color: #6a4a35; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.orb-table td:nth-child(n+4) { font-weight: 800; white-space: nowrap; }
.orb-table td:last-child { color: #a3290d; }
.orb-table tbody tr:nth-child(even) td { background: #fcf8ff; }
.orb-table tr.orb-row-pet td { background: #f6eefc; }
.orb-table tr.orb-row-pet td:first-child { box-shadow: inset 4px 0 0 #9a4ad0; }

.orb-mini { width: 100%; margin: 8px 0; border-collapse: collapse; font-size: 13px; }
.orb-mini th, .orb-mini td { padding: 6px 8px; text-align: left; border: 1px solid #eadcf3; }
.orb-mini th { color: #4b1f7a; background: #f4ecfb; font-weight: 800; }
.orb-mini td:last-child { font-weight: 800; color: #7a1fa0; }
.orb-decomp { max-width: 640px; }
.orb-decomp td, .orb-decomp th { text-align: center; }

.orb-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.orb-flow div { padding: 10px 14px; text-align: center; background: #fff; border: 2px solid #e3d1f3; border-radius: var(--radius-md); }
.orb-flow b { display: block; color: #5a2a8a; font-size: 16px; }
.orb-flow span { font-size: 13px; font-weight: 700; }

.orb-ops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.orb-ops h4 { color: #5a2a8a; }

/* ===== 平板 ===== */
@media (max-width: 960px) {
  .orb-board-pets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orb-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 手机 ===== */
@media (max-width: 640px) {
  .orb-hero-art { grid-template-columns: repeat(6, 40px); gap: 6px; padding: 6px 0; align-self: center; }
  .orb-hero-art img { width: 40px; height: 40px; }
  .orb-board { padding: 12px 10px; }
  .orb-board-player .orb-board-label { flex-basis: 100%; }
  .orb-board-pets { grid-template-columns: 1fr; gap: 6px; }
  .orb-board-pets .orb-board-row { flex-direction: row; align-items: center; padding: 6px 10px; }
  .orb-board-pets .orb-board-label { flex: 0 0 72px; text-align: left; }
  .orb-board-pets .ob { margin: 0; }
  .orb-ladder { grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 3px 4px; padding: 10px 8px; }
  .orb-ladder img { width: 36px; height: 36px; }
  .orb-flow { grid-template-columns: 1fr; }
  .orb-ops { grid-template-columns: 1fr; }
  /* 数值表在手机上改为卡片：名称与效果一行，五档数值与上限排成一排 */
  .orb-table thead { display: none; }
  .orb-table, .orb-table tbody { display: block; }
  .orb-table tr { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; margin-bottom: 8px; padding: 8px; border: 1px solid #eadcf3; border-radius: 10px; background: #fff; }
  .orb-table tr.orb-row-pet { background: #f6eefc; }
  .orb-table td { display: block; border: 0; padding: 2px 0; background: transparent !important; box-shadow: none !important; }
  .orb-table td:first-child { grid-column: 1 / 4; grid-row: 1; }
  .orb-table td:nth-child(3) { grid-column: 4 / 7; grid-row: 1; text-align: right; align-self: center; }
  .orb-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .orb-table td:nth-child(n+4) { padding: 3px 0; text-align: center; background: #fff3e2 !important; border-radius: 6px; font-size: 12px; }
  .orb-table tr.orb-row-pet td:nth-child(n+4) { background: #efe2fb !important; }
  .orb-table td:nth-child(4)::before { content: "1级"; }
  .orb-table td:nth-child(5)::before { content: "2级"; }
  .orb-table td:nth-child(6)::before { content: "3级"; }
  .orb-table td:nth-child(7)::before { content: "4级"; }
  .orb-table td:nth-child(8)::before { content: "5级"; }
  .orb-table td:nth-child(9)::before { content: "上限"; }
  .orb-table td:nth-child(n+4)::before { display: block; color: #7a3aa8; font-size: 10px; font-weight: 700; }
  .orb-mini { font-size: 12px; }
}
