/* 梦回石光远古乐园官网 · 大型资料片专题共用样式（guide-expansion.css）
   适用页面：
   - guide-craft.html（第五、第六职业：百草炼金师 & 远古工匠） -> body.exp-page.theme-craft
   - guide-petequip.html（新宠物装备系统：石光兽装 2.0）       -> body.exp-page.theme-petequip
   - guide-v113.html（石光焕新篇 v1.13 全景指南）              -> body.exp-page.theme-v113
   严格遵守 CSP：零内联样式，全部主题色、组件状态与响应式排版集中于本文件。 */

/* ================= 1. 主题色板定义 ================= */
.exp-page {
  --exp-primary: #1f7a53;
  --exp-primary-soft: #e9f7ef;
  --exp-secondary: #c9621e;
  --exp-secondary-soft: #fff2e6;
  --exp-deep: #144932;
  --exp-ink: #242d27;
  --exp-muted: #646e67;
  --exp-paper: #fcfefa;
  --exp-card: #ffffff;
  --exp-line: #d5e5d9;
  --exp-line-strong: #b7d3bf;
  --exp-glow: #9ef2ba;
  --exp-warm: #ffc46b;
  --exp-hero-bg:
    radial-gradient(circle at 14% 18%, rgba(92, 232, 154, .28), transparent 46%),
    radial-gradient(circle at 88% 84%, rgba(255, 146, 56, .34), transparent 48%),
    radial-gradient(rgba(255, 255, 255, .07) 1.3px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(135deg, #0d261d 0%, #17402f 44%, #3c2214 78%, #5c2a12 100%);
  --exp-hero-bar: linear-gradient(90deg, #2fb878, #ffd166 50%, #e86f24);
  --exp-badge-grad: linear-gradient(155deg, #259162, #145237);
  min-width: 0;
  color: var(--exp-ink);
}

/* 石光兽装 2.0：暗金古铜 × 星晶紫珀 */
.exp-page.theme-petequip {
  --exp-primary: #9b5618;
  --exp-primary-soft: #fdf3e7;
  --exp-secondary: #6b3ec2;
  --exp-secondary-soft: #f3edff;
  --exp-deep: #592f0b;
  --exp-ink: #2b241f;
  --exp-muted: #6f645c;
  --exp-paper: #fffcf8;
  --exp-card: #ffffff;
  --exp-line: #ead9c7;
  --exp-line-strong: #d5b99b;
  --exp-glow: #ffd782;
  --exp-warm: #d7b8ff;
  --exp-hero-bg:
    radial-gradient(circle at 15% 20%, rgba(255, 204, 96, .27), transparent 45%),
    radial-gradient(circle at 86% 84%, rgba(168, 108, 255, .34), transparent 48%),
    radial-gradient(rgba(255, 255, 255, .07) 1.3px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(135deg, #1b120b 0%, #3b2312 46%, #2c1a47 78%, #45236b 100%);
  --exp-hero-bar: linear-gradient(90deg, #e08b2c, #ffe08a 50%, #9b6bff);
  --exp-badge-grad: linear-gradient(155deg, #b8681f, #6b380c);
}

/* v1.13 焕新篇：晴空星海 × 流光金珀 */
.exp-page.theme-v113 {
  --exp-primary: #1b6bb3;
  --exp-primary-soft: #eaf4fe;
  --exp-secondary: #d47617;
  --exp-secondary-soft: #fff4e6;
  --exp-deep: #104273;
  --exp-ink: #212a34;
  --exp-muted: #5f6b78;
  --exp-paper: #f9fcff;
  --exp-card: #ffffff;
  --exp-line: #d2e2f3;
  --exp-line-strong: #adc9e8;
  --exp-glow: #8ee6ff;
  --exp-warm: #ffd470;
  --exp-hero-bg:
    radial-gradient(circle at 16% 20%, rgba(108, 218, 255, .3), transparent 46%),
    radial-gradient(circle at 88% 84%, rgba(255, 192, 76, .32), transparent 48%),
    radial-gradient(rgba(255, 255, 255, .075) 1.3px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(135deg, #0b1b33 0%, #153866 46%, #244f86 76%, #543716 100%);
  --exp-hero-bar: linear-gradient(90deg, #38a8ff, #9cf0ff 48%, #ffb83d);
  --exp-badge-grad: linear-gradient(155deg, #2480d1, #11477a);
}

/* ================= 2. 顶栏扩展与主容器 ================= */
.exp-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.exp-top-actions .back-home {
  margin-left: 0;
}
.exp-top-actions .back-home.is-sub {
  color: var(--exp-deep);
  background: var(--exp-primary-soft);
  border-color: var(--exp-line-strong);
}
.exp-top-actions .back-home.is-sub:hover {
  color: #fff;
  background: var(--exp-primary);
  border-color: var(--exp-primary);
}

.exp-main {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
  padding: 18px 0 52px;
}
.exp-main a {
  color: var(--exp-primary);
  text-underline-offset: 3px;
}
.exp-main img {
  max-width: 100%;
  height: auto;
}

/* 像素图标锐利渲染 */
.px-icon {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ================= 3. 页头旗舰横幅（.exp-hero） ================= */
.exp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .95fr);
  align-items: center;
  gap: 28px;
  padding: 32px 34px 36px;
  overflow: hidden;
  color: #f6f4ff;
  background: var(--exp-hero-bg);
  border: 3px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard-lg);
}
.exp-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--exp-hero-bar);
  opacity: .92;
}
.exp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 4px 12px;
  color: #16181d;
  background: linear-gradient(90deg, var(--exp-glow), var(--exp-warm));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.exp-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.16;
  letter-spacing: 3px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .34), 0 0 24px rgba(255, 255, 255, .16);
}
.exp-hero-sub {
  margin: 8px 0 0;
  color: var(--exp-glow);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.5px;
}
.exp-hero-lead {
  margin: 14px 0 18px;
  color: rgba(248, 246, 255, .92);
  font-size: 14.5px;
  line-height: 1.85;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.exp-tags li {
  padding: 5px 13px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1.5px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.exp-tags li.is-gold {
  color: #241604;
  background: linear-gradient(180deg, #ffe58f, #ffba49);
  border-color: #fff;
  font-weight: 900;
}

.exp-hero-showcase {
  margin: 0;
}
.exp-hero-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #10141a;
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 20px;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .68);
  cursor: zoom-in;
  transition: transform .28s var(--ease-out), box-shadow .28s ease;
}
.exp-hero-frame:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 22px 42px -10px rgba(0, 0, 0, .78);
}
.exp-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.exp-hero-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
  color: rgba(255, 255, 255, .86);
  font-size: 12.5px;
}
.exp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  color: #fff;
  background: rgba(0, 0, 0, .46);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.exp-live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #4ef08a;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ef08a;
}

/* 顶部说明条 */
.exp-notice {
  margin: 14px 0 0;
  padding: 11px 16px;
  background: var(--exp-primary-soft);
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.75;
}
.exp-notice strong {
  color: var(--exp-deep);
}

/* ================= 4. 吸顶粘性目录栏（.exp-toc） ================= */
.exp-toc {
  position: sticky;
  top: 8px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .95);
  border: 2px solid var(--exp-line);
  border-radius: 18px;
  box-shadow: 0 8px 22px -12px rgba(25, 35, 30, .38);
  backdrop-filter: blur(10px);
}
.exp-toc-links,
.exp-toc-hub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.exp-toc a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  color: var(--exp-deep);
  background: #fff;
  border: 1.5px solid var(--exp-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.exp-toc a:hover,
.exp-toc a.is-active {
  color: #fff;
  background: var(--exp-primary);
  border-color: var(--exp-primary);
}
.exp-toc-hub {
  padding-left: 10px;
  border-left: 2px solid var(--exp-line);
}
.exp-toc-hub-label {
  color: var(--exp-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}
.exp-toc a.is-hub {
  color: #5b4632;
  background: #fffaf0;
  border-color: #e4cfa8;
  border-style: dashed;
}
.exp-toc a.is-hub:hover {
  color: #fff;
  background: var(--exp-secondary);
  border-color: var(--exp-secondary);
  border-style: solid;
}
.exp-toc a.is-hub.is-current {
  color: #fff;
  background: var(--exp-secondary);
  border-color: var(--exp-secondary);
  border-style: solid;
}

/* ================= 5. 章节容器与排版（.exp-section） ================= */
.exp-section {
  margin-top: 24px;
  padding: 26px 30px 30px;
  background: var(--exp-paper);
  border: 3px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
  scroll-margin-top: 84px;
  font-size: 14.2px;
  line-height: 1.85;
}
.exp-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--exp-line);
}
.exp-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--exp-badge-grad);
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
  font-size: 16px;
  font-weight: 900;
}
.exp-sec-head h2 {
  margin: 0;
  color: var(--exp-deep);
  font-family: var(--font-title);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 1.5px;
}
.exp-sec-sub {
  margin-left: auto;
  padding: 3px 11px;
  color: var(--exp-primary);
  background: var(--exp-primary-soft);
  border: 1.5px solid var(--exp-line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.exp-section h3 {
  margin: 22px 0 10px;
  padding-left: 11px;
  color: var(--exp-deep);
  border-left: 5px solid var(--exp-primary);
  font-family: var(--font-title);
  font-size: 19.5px;
  letter-spacing: 1px;
}
.exp-section h4 {
  margin: 14px 0 6px;
  color: var(--exp-deep);
  font-size: 15.5px;
  font-weight: 800;
}
.exp-section p {
  margin: 7px 0;
}
.exp-section ul,
.exp-section ol {
  margin: 7px 0;
  padding-left: 22px;
}
.exp-section li {
  margin: 4px 0;
}
.exp-section strong {
  color: var(--exp-deep);
}

/* 关键指标横排速览卡 */
.exp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.exp-kpi {
  padding: 14px 12px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
}
.exp-kpi strong {
  display: block;
  color: var(--exp-primary);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}
.exp-kpi span {
  display: block;
  margin-top: 4px;
  color: var(--exp-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

/* 醒目规则警示框 */
.exp-callout {
  margin: 14px 0;
  padding: 14px 18px;
  background: var(--exp-primary-soft);
  border: 2px solid var(--exp-line-strong);
  border-left: 6px solid var(--exp-primary);
  border-radius: var(--radius-md);
  font-size: 13.8px;
  line-height: 1.8;
}
.exp-callout.is-iron {
  color: #4a1515;
  background: linear-gradient(135deg, #fff5f5, #fff9ec);
  border-color: #f0b6b6;
  border-left-color: #cf2a2a;
}
.exp-callout.is-iron strong {
  color: #b51d1d;
}
.exp-callout.is-gold {
  color: #4a2e0b;
  background: linear-gradient(135deg, #fffaf0, #fff3db);
  border-color: #ebd09e;
  border-left-color: #d97b16;
}
.exp-callout.is-gold strong {
  color: #9e5208;
}
.exp-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px !important;
  font-size: 15px;
  font-weight: 900;
}

/* ================= 6. 多栏卡片与徽章墙 ================= */
.exp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0;
}
.exp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0;
}
.exp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.exp-card {
  padding: 16px 18px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: var(--radius-md);
}
.exp-card.is-accent {
  background: linear-gradient(180deg, var(--exp-primary-soft), #fff 65%);
  border-color: var(--exp-line-strong);
}
.exp-card.is-warm {
  background: linear-gradient(180deg, var(--exp-secondary-soft), #fff 65%);
  border-color: #ebd0b5;
}
.exp-card h3,
.exp-card h4 {
  margin-top: 0;
}
.exp-card h3 {
  padding-left: 0;
  border-left: 0;
  font-size: 18px;
}

/* 宗门双卡头部徽章排布 */
.exp-job-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px dashed var(--exp-line);
}
.exp-job-head img {
  flex: none;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .18));
}
.exp-job-title {
  margin: 0 !important;
  font-family: var(--font-title);
  font-size: 21px;
  color: var(--exp-deep);
}
.exp-job-meta {
  margin: 2px 0 0 !important;
  color: var(--exp-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.exp-branch-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.exp-branch-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #f9fbf9;
  border: 1.5px solid var(--exp-line);
  border-radius: 12px;
}
.exp-branch-pill img {
  flex: none;
  width: 38px;
  height: 38px;
}
.exp-branch-pill b {
  display: block;
  color: var(--exp-deep);
  font-size: 13.5px;
  line-height: 1.3;
}
.exp-branch-pill small {
  display: block;
  color: var(--exp-muted);
  font-size: 11.8px;
  line-height: 1.4;
}

/* 道具/套装小卡带像素图标 */
.exp-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 6px;
  background: #fff;
  border: 1.5px solid var(--exp-line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
}
.exp-item-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* 透明底循环动图精灵舞台（深色星夜底座衬托发光粒子） */
.exp-sprite-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.exp-sprite-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  text-align: center;
  color: #eef4ff;
  background:
    radial-gradient(circle at 50% 42%, rgba(98, 210, 165, .24), transparent 62%),
    linear-gradient(180deg, #17222b, #0f161d);
  border: 2px solid #2d4252;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.exp-sprite-card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.exp-sprite-card b {
  margin-top: 8px;
  color: var(--exp-glow);
  font-size: 14px;
}
.exp-sprite-card span {
  margin-top: 3px;
  color: rgba(235, 242, 255, .8);
  font-size: 12px;
  line-height: 1.5;
}

/* 据点双炉台透明动图横卡 */
.exp-hub-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  color: #f3f7ff;
  background:
    radial-gradient(circle at 15% 50%, rgba(110, 236, 172, .25), transparent 55%),
    linear-gradient(135deg, #132820, #1e352d 60%, #2a211b);
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .5);
}
.exp-hub-banner.is-forge {
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 162, 74, .28), transparent 55%),
    linear-gradient(135deg, #2b1810, #3d2316 60%, #1f242d);
}
.exp-hub-banner img {
  flex: none;
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6));
}
.exp-hub-banner h4 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 19px;
}
.exp-hub-banner p {
  margin: 0;
  color: rgba(245, 247, 255, .88);
  font-size: 13px;
  line-height: 1.65;
}

/* 四大二转立绘奥义画廊 */
.exp-cutin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.exp-cutin-card {
  overflow: hidden;
  background: #141923;
  border: 2px solid var(--exp-line-strong);
  border-radius: 16px;
  color: #f2f5ff;
}
.exp-cutin-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: radial-gradient(circle at 50% 45%, #2a3b52, #111620 75%);
  border: 0;
  cursor: zoom-in;
}
.exp-cutin-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}
.exp-cutin-btn:hover img {
  transform: scale(1.04);
}
.exp-cutin-body {
  padding: 10px 12px 12px;
}
.exp-cutin-body b {
  display: block;
  color: var(--exp-warm);
  font-size: 15px;
}
.exp-cutin-body small {
  display: inline-block;
  margin: 2px 0 5px;
  padding: 1px 8px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 11.5px;
}
.exp-cutin-body p {
  margin: 0;
  color: rgba(235, 240, 255, .86);
  font-size: 12.3px;
  line-height: 1.55;
}

/* ================= 7. 高清图片与实机动图画廊卡（.exp-media-grid） ================= */
.exp-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0;
  align-items: start;
}
.exp-media-grid.is-single {
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}
.exp-media-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.exp-media-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: 16px;
  box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .28);
}
.exp-media-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #161a20;
  border: 0;
  cursor: zoom-in;
}
.exp-media-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .28s var(--ease-out);
}
.exp-media-btn:hover img {
  transform: scale(1.02);
}
.exp-media-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  color: #fff;
  background: rgba(15, 23, 32, .82);
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .5px;
  backdrop-filter: blur(4px);
}
.exp-media-badge.is-gif {
  color: #102618;
  background: linear-gradient(90deg, #7ef5a8, #ffe07d);
  border-color: #fff;
}
.exp-media-badge.is-hd {
  background: linear-gradient(90deg, rgba(27, 107, 179, .92), rgba(45, 148, 224, .92));
}
.exp-media-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  opacity: .86;
  transition: opacity .2s ease, background .2s ease;
}
.exp-media-btn:hover .exp-media-zoom {
  opacity: 1;
  background: var(--exp-primary);
}
.exp-media-card figcaption {
  padding: 10px 14px 12px;
  color: var(--exp-ink);
  font-size: 13px;
  line-height: 1.6;
  border-top: 1.5px solid var(--exp-line);
}
.exp-media-card figcaption b {
  color: var(--exp-deep);
}

/* ================= 8. 交互式页签组件（[data-tab-group]） ================= */
.exp-tabs-wrap {
  margin: 14px 0;
}
.exp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: 16px;
}
.exp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  color: var(--exp-deep);
  background: var(--exp-primary-soft);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.exp-tab-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.exp-tab-btn:hover {
  border-color: var(--exp-primary);
}
.exp-tab-btn.is-active {
  color: #fff;
  background: var(--exp-badge-grad);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.exp-tab-panel {
  animation: exp-fade-in .22s ease;
}
@keyframes exp-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= 9. 响应式权威数据表格（.exp-table-wrap） ================= */
.exp-table-wrap {
  margin: 12px 0;
  overflow-x: auto;
  background: #fff;
  border: 2px solid var(--exp-line);
  border-radius: 14px;
}
.exp-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 13.4px;
  line-height: 1.65;
}
.exp-table th,
.exp-table td {
  padding: 9px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--exp-line);
}
.exp-table th + th,
.exp-table td + td {
  border-left: 1px solid var(--exp-line);
}
.exp-table thead th {
  color: #fff;
  background: var(--exp-badge-grad);
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 0;
}
.exp-table thead th + th {
  border-left-color: rgba(255, 255, 255, .2);
}
.exp-table tbody tr:nth-child(even) td {
  background: #fafcfa;
}
.theme-petequip .exp-table tbody tr:nth-child(even) td {
  background: #fdfaf6;
}
.theme-v113 .exp-table tbody tr:nth-child(even) td {
  background: #f7fbff;
}
.exp-table tbody tr:last-child td {
  border-bottom: 0;
}
.exp-table tbody tr.is-total td {
  background: var(--exp-primary-soft);
  font-weight: 800;
}

/* 表格内图标与数值高亮 */
.exp-sk-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.exp-sk-cell img {
  flex: none;
  width: 36px;
  height: 34px;
  object-fit: contain;
}
.exp-suit-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.exp-suit-cell img {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.val-pve {
  color: #1659b8;
  font-weight: 800;
}
.val-pk {
  color: #c92a2a;
  font-weight: 800;
}
.val-gold {
  color: #b5580a;
  font-weight: 900;
}
.val-em {
  color: #197a4b;
  font-weight: 800;
}

.tag-pill {
  display: inline-block;
  padding: 1px 8px;
  color: #fff;
  background: var(--exp-primary);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.65;
  white-space: nowrap;
}
.tag-pill.is-warm { background: #d46b15; }
.tag-pill.is-ult { background: linear-gradient(90deg, #b8294b, #e06b1b); }
.tag-pill.is-pas { background: #5a6875; }
.tag-pill.is-pve { background: #1e6bc4; }
.tag-pill.is-b1 { background: #218559; }
.tag-pill.is-b2 { background: #7339b8; }
.tag-pill.is-b3 { background: #c75318; }
.tag-pill.is-b4 { background: #2665a8; }

/* 18 种战中奇物速览网格 */
.exp-oddity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}
.exp-oddity-grid li {
  margin: 0;
  padding: 8px 11px;
  background: #fff;
  border: 1.5px solid var(--exp-line);
  border-radius: 10px;
  font-size: 12.8px;
  line-height: 1.55;
}
.exp-oddity-grid li b {
  display: block;
  color: var(--exp-deep);
  font-size: 13.3px;
}

/* ================= 10. 跨专题底部导航卡与页脚 ================= */
.exp-cross-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.exp-cross-card {
  display: block;
  padding: 16px 18px;
  color: var(--exp-ink) !important;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  transition: transform .24s var(--ease-jelly), border-color .2s ease;
}
.exp-cross-card:hover {
  transform: translateY(-4px);
  border-color: var(--exp-primary);
}
.exp-cross-card span {
  display: inline-block;
  padding: 2px 9px;
  color: #fff;
  background: var(--exp-primary);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.exp-cross-card strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--exp-deep);
  font-family: var(--font-title);
  font-size: 18px;
}
.exp-cross-card small {
  display: block;
  color: var(--exp-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.exp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 26px 0 10px;
  padding: 14px;
  color: var(--exp-muted);
  font-size: 13.5px;
}
.exp-footer a {
  color: var(--exp-deep);
  font-weight: 800;
}

/* ================= 11. 原生 <dialog> 大图灯箱与回到顶部 ================= */
.exp-lightbox {
  max-width: min(94vw, 1140px);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  color: #fff;
  background: #12171f;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .75);
}
.exp-lightbox::backdrop {
  background: rgba(8, 12, 18, .82);
  backdrop-filter: blur(6px);
}
.exp-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 89vh;
}
.exp-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 14px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.exp-lightbox-close:hover {
  background: #cf2a2a;
  border-color: #fff;
}
.exp-lightbox-stage {
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background: #0d1117;
}
.exp-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}
.exp-lightbox-stage img.is-pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.exp-lightbox-cap {
  margin: 0;
  padding: 11px 18px;
  color: #e8eef7;
  background: #18202c;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13.5px;
  text-align: center;
}

.exp-to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 25;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--exp-badge-grad);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .32);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s var(--ease-jelly);
}
.exp-to-top:hover {
  transform: translateY(-3px) scale(1.06);
}

/* ================= 12. 平板与手机端响应式适配 ================= */
@media (max-width: 980px) {
  .exp-hero {
    grid-template-columns: 1fr;
    padding: 24px 22px 28px;
  }
  .exp-toc-hub {
    padding-left: 0;
    padding-top: 6px;
    border-left: 0;
    border-top: 1.5px dashed var(--exp-line);
    width: 100%;
  }
  .exp-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exp-sprite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .exp-cutin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exp-grid-3,
  .exp-grid-4,
  .exp-oddity-grid,
  .exp-cross-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 8px 12px;
  }
  .page-chip {
    display: none;
  }
  .exp-top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .exp-top-actions .back-home {
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .exp-main {
    width: calc(100% - 20px);
    padding-top: 12px;
  }
  .exp-hero {
    gap: 18px;
    padding: 20px 16px 24px;
  }
  .exp-toc {
    top: 6px;
    padding: 8px 10px;
  }
  .exp-toc-links,
  .exp-toc-hub {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }
  .exp-toc-links::-webkit-scrollbar,
  .exp-toc-hub::-webkit-scrollbar {
    display: none;
  }
  .exp-section {
    padding: 18px 14px 22px;
    border-radius: var(--radius-lg);
    scroll-margin-top: 96px;
  }
  .exp-sec-sub {
    margin-left: 0;
  }
  .exp-grid-2,
  .exp-grid-3,
  .exp-grid-4,
  .exp-branch-pills,
  .exp-media-grid,
  .exp-media-grid.is-3,
  .exp-oddity-grid,
  .exp-cross-nav {
    grid-template-columns: 1fr;
  }
  .exp-sprite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exp-hub-banner {
    flex-direction: column;
    text-align: center;
  }
}
