:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --bg-soft: #121419;
  --panel: rgba(24, 27, 33, 0.9);
  --panel-strong: #1c2027;
  --line: rgba(241, 201, 112, 0.2);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #f3efe6;
  --muted: #a7aaae;
  --gold: #e8bd61;
  --gold-soft: #b99042;
  --red: #d96d5d;
  --green: #6fbb86;
  --blue: #6f9ed8;
  --white-gem: #d9d9d9;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(160, 99, 50, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(54, 88, 132, 0.16), transparent 30rem),
    linear-gradient(180deg, #101115 0%, #090a0c 100%);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--gold);
}

code {
  padding: 0.15rem 0.45rem;
  color: #f6d68f;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.site-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.97), rgba(11, 12, 15, 0.84), transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #17120a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f5d58a, #b77a2d);
  border-radius: 12px 4px 12px 4px;
  box-shadow: 0 8px 28px rgba(223, 169, 69, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.game-switcher {
  display: inline-flex;
  padding: 5px;
  background: rgba(24, 27, 33, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.game-switcher__button,
.sort-button,
.chapter-button,
.load-more-button {
  cursor: pointer;
  border: 0;
  transition: 160ms ease;
}

.game-switcher__button {
  padding: 10px 18px;
  color: var(--muted);
  background: transparent;
  border-radius: 10px;
}

.game-switcher__button.is-active {
  color: #1b1409;
  font-weight: 800;
  background: linear-gradient(135deg, #f0cf85, #c3903f);
  box-shadow: 0 8px 22px rgba(202, 147, 59, 0.22);
}

.workspace {
  padding: 24px 0 52px;
}

.hero-card {
  position: relative;
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  background:
    linear-gradient(105deg, rgba(32, 29, 24, 0.96), rgba(17, 19, 24, 0.9)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.015) 18px 19px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card::after {
  position: absolute;
  right: 22%;
  bottom: -80px;
  width: 260px;
  height: 260px;
  content: "";
  background: rgba(195, 139, 54, 0.08);
  border: 1px solid rgba(233, 190, 97, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(233, 190, 97, 0.02), 0 0 0 68px rgba(233, 190, 97, 0.015);
}

.hero-card--poe2 {
  background: linear-gradient(105deg, rgba(22, 28, 36, 0.98), rgba(15, 17, 23, 0.92));
}

.hero-card__copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card h1,
.module-header h2,
.section-heading h2,
.empty-state h2,
.empty-state h3 {
  margin: 10px 0 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  letter-spacing: 0.01em;
}

.hero-card h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
}

.hero-card p,
.module-header p,
.empty-state p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-card__sigil {
  position: relative;
  z-index: 1;
  color: rgba(238, 201, 121, 0.12);
  font-family: Georgia, serif;
  font-size: clamp(8rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 0.7;
  user-select: none;
}

.module-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 1.7rem;
}

.section-heading__hint,
.result-bar,
.gem-row__unlock,
.data-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(28, 31, 38, 0.94), rgba(17, 19, 24, 0.92));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: 180ms ease;
}

.module-card:not(.is-disabled):hover,
.module-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(232, 189, 97, 0.5);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(232, 189, 97, 0.08);
}

.module-card.is-disabled {
  cursor: default;
  opacity: 0.58;
}

.module-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--gold);
  font-size: 1.4rem;
  background: rgba(232, 189, 97, 0.08);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.module-card__body strong,
.module-card__body small {
  display: block;
}

.module-card__body strong {
  font-size: 1.05rem;
}

.module-card__body small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.module-card__status {
  padding: 6px 9px;
  color: #e7c97f;
  font-size: 0.72rem;
  background: rgba(232, 189, 97, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.module-mount {
  margin-top: 28px;
}

.card-panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.module-header {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 26px;
  padding: 28px;
}

.module-header h2 {
  font-size: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  display: grid;
  min-height: 110px;
  place-content: center;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.stat-card strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.stat-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.filter-panel {
  position: sticky;
  z-index: 10;
  top: 84px;
  margin-top: 18px;
  padding: 18px;
  background: rgba(20, 22, 27, 0.94);
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #0f1115;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(232, 189, 97, 0.62);
  box-shadow: 0 0 0 4px rgba(232, 189, 97, 0.08);
}

.search-box__icon {
  color: var(--gold);
  font-size: 1.4rem;
}

.search-box input {
  width: 100%;
  padding: 15px 0;
  color: var(--text);
  outline: none;
  background: transparent;
  border: 0;
}

.search-box input::placeholder {
  color: #777b80;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
}

.filter-label {
  flex: 0 0 66px;
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.chapter-filter,
.sort-group,
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chapter-button,
.sort-button,
.filter-button {
  padding: 8px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.chapter-button:hover,
.sort-button:hover,
.filter-button:hover {
  color: var(--text);
  border-color: rgba(232, 189, 97, 0.35);
}

.chapter-button.is-active,
.sort-button.is-active,
.filter-button.is-active {
  color: #1a1409;
  font-weight: 800;
  background: linear-gradient(135deg, #efcf86, #c38f3d);
  border-color: transparent;
}

.result-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.gem-list {
  display: grid;
  /* 一行两颗宝石，窄屏再退回单列 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.badge-row,
.class-list,
.gem-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge,
.class-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
}

.badge {
  padding: 4px 7px;
  font-size: 0.68rem;
}

.badge--level {
  color: #f2d28b;
  background: rgba(232, 189, 97, 0.1);
  border: 1px solid rgba(232, 189, 97, 0.23);
}

.badge--chapter {
  color: #bcc7d6;
  background: rgba(115, 151, 195, 0.1);
  border: 1px solid rgba(115, 151, 195, 0.2);
}

.badge--reservation {
  color: #d9b6ff;
  background: rgba(159, 98, 214, 0.12);
  border: 1px solid rgba(159, 98, 214, 0.25);
}

.class-chip {
  padding: 3px 6px;
  color: #dfe2e6;
  font-size: 0.66rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
}

.tag-chip {
  padding: 3px 6px;
  color: #b9c0c8;
  font-size: 0.64rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.source-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}

.source-list span {
  font-size: 0.78rem;
}

.source-list small {
  color: var(--muted);
  line-height: 1.5;
}

.source-links {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.76rem;
}

.gem-row {
  position: relative;
  display: grid;
  /* 卡片内左右两栏：左边身份与职业，右边等级与操作，半宽下也不留空 */
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  gap: 8px 14px;
  padding: 11px 13px;
  background: linear-gradient(100deg, rgba(28, 31, 38, 0.96), rgba(16, 18, 23, 0.96));
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition: 160ms ease;
}

.gem-row::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  content: "";
  background: var(--white-gem);
  border-radius: 999px;
  opacity: 0.8;
}

.gem-row--red::before { background: var(--red); }
.gem-row--green::before { background: var(--green); }
.gem-row--blue::before { background: var(--blue); }

.gem-row:hover {
  border-color: rgba(232, 189, 97, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.gem-row__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
}

.gem-row__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.gem-row__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gem-row__name {
  min-width: 0;
}

.gem-row h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

.gem-row__english {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.gem-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.gem-row__tags .tag-chip {
  padding: 3px 6px;
  font-size: 0.64rem;
}

.gem-row__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  grid-column: 2;
  grid-row: 1;
}

.gem-row__classes {
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
}

.gem-row__label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
}

.gem-row__classes .class-chip {
  padding: 3px 6px;
  font-size: 0.66rem;
}

.gem-row__unlock {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.gem-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: end;
  gap: 6px;
  grid-column: 2;
  grid-row: 2;
}

.gem-action-button {
  padding: 7px 10px;
  color: var(--gold);
  font-size: 0.72rem;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(232, 189, 97, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gem-action-button[aria-expanded="true"] {
  color: #1a1409;
  font-weight: 800;
  background: linear-gradient(135deg, #efcf86, #c38f3d);
  border-color: transparent;
}

.gem-row__description,
.gem-row__acquisition {
  grid-column: 1 / -1;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.gem-row__description p {
  margin: 0;
  color: #d7d9dc;
  font-size: 0.82rem;
  line-height: 1.75;
}

.gem-row__description-en {
  margin-top: 8px !important;
  color: var(--muted) !important;
}

.gem-row__acquisition .source-list {
  margin-top: 0;
}
.load-more-wrap {
  display: grid;
  place-items: center;
  margin-top: 22px;
}

.load-more-button {
  min-width: 190px;
  padding: 12px 20px;
  color: #1a1409;
  font-weight: 800;
  background: linear-gradient(135deg, #efcf86, #c38f3d);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(202, 147, 59, 0.18);
}

.load-more-button[hidden] {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
}

.empty-state__icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--gold);
  font-size: 1.8rem;
  background: rgba(232, 189, 97, 0.07);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.data-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  line-height: 1.75;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 1100px) {
  .module-header {
    grid-template-columns: 1fr;
  }

  .gem-row {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 22px, 1480px);
  }

  .site-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .game-switcher {
    width: 100%;
  }

  .game-switcher__button {
    flex: 1;
  }

  .hero-card {
    min-height: 230px;
  }

  .hero-card__sigil {
    position: absolute;
    right: 20px;
    bottom: 15px;
    font-size: 8rem;
  }

  /* 首页两个入口保持并排；只有数据统计卡在窄屏改为单列。 */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .gem-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gem-row__unlock {
    display: none;
  }

  .gem-row__actions {
    justify-self: start;
    justify-content: flex-start;
  }

  .section-heading,
  .filter-row,
  .result-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-label {
    padding-top: 0;
  }

  .filter-panel {
    position: static;
  }

  .module-card {
    grid-template-columns: auto 1fr;
  }

  .module-card__status {
    grid-column: 2;
    justify-self: start;
  }
}







/* 整体压缩布局：减少首屏非列表区域占用，列表使用分页控制高度。 */
.site-shell {
  width: min(1500px, calc(100% - 24px));
}

.site-header {
  padding: 10px 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
  border-radius: 9px 3px 9px 3px;
}

.brand strong {
  font-size: 0.9rem;
}

.brand small {
  margin-top: 2px;
  font-size: 0.64rem;
}

.game-switcher__button {
  padding: 7px 12px;
}

.workspace {
  padding: 4px 0 24px;
}

.module-section {
  margin-top: 12px;
}

.section-heading {
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 1.25rem;
}

.section-heading .eyebrow,
.module-header .eyebrow {
  font-size: 0.62rem;
}

.module-grid {
  gap: 8px;
}

.module-card {
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
}

.module-card__icon {
  width: 34px;
  height: 34px;
  font-size: 1rem;
  border-radius: 9px;
}

.module-card__body strong {
  font-size: 0.9rem;
}

.module-card__body small {
  margin-top: 3px;
  font-size: 0.7rem;
}

.module-card__status {
  padding: 4px 7px;
  font-size: 0.64rem;
}

.module-mount {
  margin-top: 10px;
}

.module-header {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
}

.module-header h2 {
  margin-top: 4px;
  font-size: 1.35rem;
}

.module-header p {
  margin-top: 5px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.stats-grid {
  gap: 6px;
}

.stat-card {
  min-height: 58px;
  padding: 6px 8px;
  border-radius: 10px;
}

.stat-card strong {
  font-size: 1.35rem;
}

.stat-card span {
  margin-top: 2px;
  font-size: 0.64rem;
}

.filter-panel {
  top: 62px;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 14px;
}

.search-box input {
  padding: 9px 0;
  font-size: 0.86rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin-top: 7px;
}

.filter-grid .filter-row {
  margin-top: 0;
}

.filter-row {
  gap: 8px;
}

.filter-label {
  flex: 0 0 58px;
  padding-top: 6px;
  font-size: 0.7rem;
}

.chapter-button,
.sort-button,
.filter-button {
  padding: 5px 8px;
  font-size: 0.7rem;
  border-radius: 7px;
}

.result-bar {
  margin-top: 7px;
  padding-top: 7px;
  font-size: 0.7rem;
}

.gem-list {
  gap: 5px;
  margin-top: 8px;
}

.gem-row {
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
}

.gem-row__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  padding: 4px;
  border-radius: 8px;
}

.gem-row h3 {
  font-size: 0.84rem;
}

.gem-row__english {
  font-size: 0.66rem;
}

.gem-row__tags {
  margin-top: 3px;
}

.gem-row__classes .class-chip,
.gem-row__tags .tag-chip {
  padding: 2px 5px;
  font-size: 0.6rem;
}

.gem-action-button {
  padding: 5px 8px;
  font-size: 0.66rem;
}

.gem-row__description,
.gem-row__acquisition {
  padding: 8px 10px;
}

.gem-row__description p {
  font-size: 0.76rem;
  line-height: 1.6;
}

.data-note {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.5;
}

.site-footer {
  padding: 14px 0 22px;
  font-size: 0.7rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
}

.page-button {
  min-width: 30px;
  padding: 5px 8px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.page-button:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(232, 189, 97, 0.35);
}

.page-button.is-active {
  color: #1a1409;
  font-weight: 800;
  background: linear-gradient(135deg, #efcf86, #c38f3d);
  border-color: transparent;
}

.page-button:disabled {
  cursor: default;
  opacity: 0.35;
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  /* 一行两列在窄屏挤不开，退回单列 */
  .gem-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* 技能宝石内容区：只固定本模块，不影响首页顶部入口与其它板块。 */
.module-mount.skill-gems-view .filter-panel {
  position: static;
  z-index: auto;
}

.module-mount.skill-gems-view {
  display: flex;
  height: calc(100vh - 214px);
  height: calc(100dvh - 214px);
  min-height: 420px;
  flex-direction: column;
  margin-top: 12px;
  overflow: hidden;
}

.skill-gems-view .filter-panel,
.skill-gems-view .pagination,
.skill-gems-view .data-note {
  flex: 0 0 auto;
}

.skill-gems-view .gem-list {
  min-height: 0;
  flex: 1 1 0;
  align-content: start;
  padding-right: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 189, 97, 0.5) rgba(255, 255, 255, 0.04);
}

/* 窄屏允许页面滚动，列表保持可用高度。 */
@media (max-width: 900px) {
  .module-mount.skill-gems-view {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .skill-gems-view .gem-list {
    height: clamp(320px, 50dvh, 420px);
    flex: 0 0 auto;
  }
}

/* 桌面短视口只压缩本模块筛选区，首页入口保持原样。 */
@media (min-width: 901px) and (max-height: 760px) {
  .module-mount.skill-gems-view {
    height: calc(100vh - 162px);
    height: calc(100dvh - 162px);
    margin-top: 6px;
  }

  .skill-gems-view .filter-panel {
    margin-top: 4px;
    padding: 5px 8px;
  }

  .skill-gems-view .search-box input {
    padding: 7px 0;
  }

  .skill-gems-view .filter-grid {
    gap: 3px 12px;
    margin-top: 4px;
  }

  .skill-gems-view .chapter-button,
  .skill-gems-view .sort-button,
  .skill-gems-view .filter-button {
    padding: 3px 7px;
  }

  .skill-gems-view .result-bar {
    margin-top: 4px;
    padding-top: 4px;
  }

  .skill-gems-view .gem-list {
    min-height: 300px;
    margin-top: 4px;
  }

  .skill-gems-view .pagination {
    margin-top: 6px;
  }

  .skill-gems-view .data-note {
    margin-top: 6px;
    padding: 6px 8px;
  }
}
处刑·闪现打击开荒（单页长屏攻略）
   左侧固定目录大纲做锚点跳转，右侧为长屏正文。
   ========================================================================== */
.module-mount--guide {
  display: block;
  padding-top: 6px;
}

.guide {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* ---------- 左侧目录大纲 ---------- */
.guide__aside {
  position: sticky;
  top: 92px;
  align-self: start;
}

.guide__toc {
  max-height: calc(100vh - 130px);
  padding: 16px 14px 12px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(28, 32, 39, 0.92), rgba(16, 18, 22, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.guide__toc-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.guide__toc-eyebrow {
  display: block;
  color: var(--gold-soft);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
}

.guide__toc-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.guide__toc-list {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.guide__toc-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  border-radius: 9px;
  border-left: 2px solid transparent;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.guide__toc-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.guide__toc-list a.is-active {
  color: #17120a;
  background: linear-gradient(135deg, #f0cf85, #c08c36);
  border-left-color: #f4e0ad;
  font-weight: 700;
}

.guide__toc-index {
  min-width: 20px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.guide__toc-list a.is-active .guide__toc-index {
  color: rgba(23, 18, 10, 0.66);
}

.guide__toc-text {
  line-height: 1.35;
}

.guide__toc-top {
  display: inline-block;
  margin-top: 12px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: none;
  border-top: 1px solid var(--line-soft);
  width: 100%;
}

.guide__toc-top:hover {
  color: var(--gold);
}

/* ---------- 右侧正文 ---------- */
.guide__main {
  min-width: 0;
  padding-bottom: 60px;
}

.guide__progress {
  position: sticky;
  top: 78px;
  z-index: 5;
  height: 2px;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.guide__progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}

.guide-hero {
  padding: 22px 24px 20px;
  background: radial-gradient(circle at 12% 0%, rgba(232, 189, 97, 0.16), transparent 42%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.guide-hero h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: 0.02em;
}

.guide-hero__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.guide-hero__tags li {
  padding: 3px 10px;
  color: var(--gold);
  font-size: 0.72rem;
  background: rgba(232, 189, 97, 0.1);
  border: 1px solid rgba(232, 189, 97, 0.28);
  border-radius: 999px;
}

.guide-hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.guide-hero__facts div {
  padding: 10px 12px;
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.guide-hero__facts dt {
  color: var(--gold-soft);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.guide-hero__facts dd {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.guide-hero__rules {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(217, 109, 93, 0.08);
  border: 1px solid rgba(217, 109, 93, 0.28);
  border-left: 3px solid var(--red);
  border-radius: 12px;
}

.guide-hero__rules-title {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.guide-hero__rules ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #e6dfd4;
  font-size: 0.86rem;
  line-height: 1.65;
}

.guide-hero__source {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

/* ---------- 章节 ---------- */
.guide-section {
  margin-top: 30px;
  padding: 22px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  scroll-margin-top: 96px;
}

.guide-section__head {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.guide-section__kicker {
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}

.guide-section__head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  letter-spacing: 0.02em;
}

.guide-section__body {
  display: grid;
  gap: 18px;
}

.guide-text {
  margin: 0;
  color: #ddd7cc;
  line-height: 1.85;
}

.guide-block__title {
  margin: 0 0 10px;
  padding-left: 10px;
  color: var(--gold);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--gold-soft);
}

/* 装备 / 属性条目 */
.guide-kv dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.guide-kv__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  background: rgba(11, 12, 15, 0.6);
}

.guide-kv__row dt {
  color: var(--gold-soft);
  font-size: 0.82rem;
}

.guide-kv__row dd {
  margin: 0;
  color: #e2dcd1;
  font-size: 0.86rem;
  line-height: 1.68;
}

/* 技能连接 */
.guide-gems__note,
.guide-links__note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.gem-link-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gem-link-list > li {
  display: grid;
  gap: 4px;
  padding: 9px 12px;
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.gem-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.gem-chip {
  padding: 3px 9px;
  font-size: 0.82rem;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.gem-chip--main {
  color: #fdf3dd;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(232, 189, 97, 0.32), rgba(232, 189, 97, 0.14));
  border-color: rgba(232, 189, 97, 0.5);
}

.gem-chip--support {
  color: #c8cbd0;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-soft);
}

.gem-link__join {
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.gem-link__note {
  margin: 0;
  padding-left: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

/* 提示块 */
.guide-note {
  padding: 12px 14px;
  background: rgba(111, 158, 216, 0.08);
  border: 1px solid rgba(111, 158, 216, 0.26);
  border-left: 3px solid var(--blue);
  border-radius: 11px;
}

.guide-note__title {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.guide-note p,
.guide-note ul {
  margin: 0;
  color: #dfe3ea;
  font-size: 0.85rem;
  line-height: 1.75;
}

.guide-note ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
}

/* 有序 / 无序清单 */
.guide-list-block ul,
.guide-list-block ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #ddd7cc;
  font-size: 0.86rem;
  line-height: 1.75;
}

/* 截图 */
.guide-figure {
  margin: 0;
}

.guide-figure__title {
  margin-bottom: 10px;
  padding-left: 10px;
  color: var(--gold);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-left: 3px solid var(--gold-soft);
}

.guide-figure__frame {
  display: block;
  overflow: hidden;
  background: #05060a;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.guide-figure__frame:hover {
  border-color: rgba(232, 189, 97, 0.45);
}

.guide-figure__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-figure__caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.68;
}

/* 商店过滤串 */
.guide-filter {
  padding: 12px 14px;
  background: rgba(11, 12, 15, 0.7);
  border: 1px dashed rgba(232, 189, 97, 0.42);
  border-radius: 12px;
}

.guide-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.guide-filter__copy {
  padding: 4px 12px;
  color: var(--gold);
  font-size: 0.76rem;
  background: rgba(232, 189, 97, 0.1);
  border: 1px solid rgba(232, 189, 97, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease;
}

.guide-filter__copy:hover {
  background: rgba(232, 189, 97, 0.22);
}

.guide-filter__value {
  display: block;
  padding: 10px 12px;
  color: #f6d68f;
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

/* 资源链接 */
.guide-links ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-links__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(11, 12, 15, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-size: 0.85rem;
}

.guide-links__item a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 189, 97, 0.45);
}

.guide-links__item a:hover {
  color: var(--gold);
}

.guide-links__item.is-pending {
  color: var(--muted);
}

.guide-links__item small {
  margin-left: auto;
  color: var(--gold-soft);
  font-size: 0.7rem;
}

.guide-links__kind {
  flex: none;
  min-width: 42px;
  padding: 2px 8px;
  color: var(--gold);
  font-size: 0.68rem;
  text-align: center;
  background: rgba(232, 189, 97, 0.12);
  border: 1px solid rgba(232, 189, 97, 0.3);
  border-radius: 999px;
}

.guide-links__extra {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.guide-links__image {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.guide-links__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 自适应 ---------- */
@media (max-width: 1100px) {
  .guide {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
  }

  .guide__toc-list a {
    font-size: 0.78rem;
  }
}

@media (max-width: 860px) {
  .guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* 窄屏时目录变成横向滚动的粘性条，仍然可以点击跳转。 */
  .guide__aside {
    position: sticky;
    top: 72px;
    z-index: 6;
  }

  .guide__toc {
    max-height: none;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .guide__toc-head,
  .guide__toc-top {
    display: none;
  }

  .guide__toc-list {
    display: flex;
    gap: 6px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .guide__toc-list li {
    flex: none;
  }

  .guide__toc-list a {
    padding: 5px 10px;
    border-left-width: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .guide__toc-list a.is-active {
    border-left-color: transparent;
    border-bottom-color: #f4e0ad;
  }

  .guide__progress {
    top: 130px;
  }

  .guide-hero,
  .guide-section {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .guide-kv__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .guide-links__item {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   处刑·闪现打击开荒 v2：按技能 / 天赋 / 装备分类的单页长屏
   ========================================================================== */
.module-mount--guide {
  padding-top: 4px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---------- 左侧可展开分类目录 ---------- */
.guide-rail {
  position: sticky;
  top: 92px;
  align-self: start;
}

.guide-nav {
  max-height: calc(100vh - 124px);
  padding: 15px 13px 12px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(28, 32, 39, 0.94), rgba(14, 16, 20, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.guide-nav__head {
  padding: 1px 4px 11px;
  border-bottom: 1px solid var(--line-soft);
}

.guide-nav__head span {
  display: block;
  color: var(--gold-soft);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
}

.guide-nav__head strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.guide-nav__group {
  margin-top: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.guide-nav__summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

.guide-nav__summary::-webkit-details-marker {
  display: none;
}

.guide-nav__summary:hover {
  background: rgba(255, 255, 255, 0.045);
}

.guide-nav__number {
  color: var(--gold-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.guide-nav__chevron {
  margin-left: auto;
  color: var(--gold-soft);
  font-size: 1.05rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.18s ease;
}

.guide-nav__group:not([open]) .guide-nav__chevron {
  transform: rotate(0deg);
}

.guide-nav__children {
  display: grid;
  gap: 1px;
  padding: 0 0 7px 14px;
}

.guide-nav__children a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}

.guide-nav__children a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.guide-nav__children a.is-active {
  color: #17120a;
  font-weight: 700;
  background: linear-gradient(135deg, #f2d18b, #c18d37);
}

.guide-nav__dot {
  flex: none;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.7;
}

.guide-nav__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 4px 1px;
  color: var(--muted);
  font-size: 0.67rem;
}

.guide-nav__foot a {
  color: var(--gold-soft);
  text-decoration: none;
}

/* ---------- 右侧长屏 ---------- */
.guide-content {
  min-width: 0;
  padding-bottom: 64px;
}

.guide-progress {
  position: sticky;
  top: 78px;
  z-index: 5;
  height: 2px;
  margin-bottom: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.guide-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 25px 26px 23px;
  background:
    radial-gradient(circle at 90% 0%, rgba(111, 158, 216, 0.14), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(232, 189, 97, 0.15), transparent 36%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.guide-hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guide-hero__version {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.guide-hero h2 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: clamp(1.62rem, 2.8vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.guide-hero__subtitle {
  max-width: 780px;
  margin: 10px 0 0;
  color: #c7c4bd;
  line-height: 1.75;
}

.guide-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.guide-hero__tags li {
  padding: 3px 9px;
  color: var(--gold);
  font-size: 0.7rem;
  background: rgba(232, 189, 97, 0.09);
  border: 1px solid rgba(232, 189, 97, 0.26);
  border-radius: 999px;
}

.guide-hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 19px;
}

.guide-hero__facts div {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  background: rgba(7, 8, 11, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.guide-hero__facts span {
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.guide-hero__facts strong {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ---------- 章节通用 ---------- */
.guide-chapter {
  margin-top: 30px;
  scroll-margin-top: 96px;
}

.guide-chapter__head {
  margin-bottom: 16px;
}

.guide-chapter__head > span {
  color: var(--gold-soft);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}

.guide-chapter__head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: 0.01em;
}

.guide-chapter__head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.strategy-grid article {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.strategy-grid article > span {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.strategy-grid h4 {
  margin: 7px 0 0;
  font-size: 1rem;
}

.strategy-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.guide-callout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  padding: 17px 18px;
  scroll-margin-top: 96px;
  background: rgba(217, 109, 93, 0.07);
  border: 1px solid rgba(217, 109, 93, 0.26);
  border-left: 3px solid var(--red);
  border-radius: 14px;
}

.guide-callout__label {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.guide-callout h3 {
  margin: 0;
  font-size: 1rem;
}

.guide-callout ul {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 18px;
  color: #e3ddd4;
  font-size: 0.85rem;
  line-height: 1.7;
}

.guide-note--compact {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

/* ---------- 技能阶段卡 ---------- */
.phase-card {
  padding: 18px;
  margin-top: 12px;
  scroll-margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  transition: border-color 0.18s ease;
}

.phase-card:hover {
  border-color: rgba(232, 189, 97, 0.28);
}

.phase-card__head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.phase-card__index {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #17120a;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f1d08a, #c48e38);
  border-radius: 9px;
}

.phase-card__range {
  color: var(--gold-soft);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.phase-card__head h4 {
  margin: 3px 0 0;
  font-size: 1.05rem;
}

.phase-card__head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.gem-role-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.gem-role {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(7, 8, 11, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
}

.gem-role__tag {
  color: var(--gold-soft);
  font-size: 0.72rem;
}

.gem-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.gem-chip {
  padding: 3px 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.gem-chip--main {
  color: #fdf3dd;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(232, 189, 97, 0.3), rgba(232, 189, 97, 0.12));
  border-color: rgba(232, 189, 97, 0.48);
}

.gem-chip--support {
  color: #c7cbd1;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-soft);
}

.gem-link__join {
  color: var(--gold-soft);
  font-size: 0.78rem;
}

.phase-card__tips {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* ---------- 天赋卡 ---------- */
.talent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  gap: 18px;
  align-items: start;
  padding: 18px;
  margin-top: 12px;
  scroll-margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
}

.talent-card__range {
  color: var(--gold-soft);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.talent-card h4 {
  margin: 4px 0 0;
  font-size: 1.06rem;
}

.talent-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.talent-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.talent-picks span {
  padding: 3px 9px;
  color: #dcc49a;
  font-size: 0.73rem;
  background: rgba(232, 189, 97, 0.07);
  border: 1px solid rgba(232, 189, 97, 0.22);
  border-radius: 999px;
}

.talent-card__check {
  padding: 9px 11px;
  margin-top: 13px !important;
  color: #cfd8e3 !important;
  background: rgba(111, 158, 216, 0.075);
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

.talent-card__check strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.talent-card__figure {
  margin: 0;
}

.talent-card__figure a,
.ascendancy__gallery a,
.pantheon-block__grid a {
  display: block;
  overflow: hidden;
  background: #05060a;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.talent-card__figure img,
.ascendancy__gallery img,
.pantheon-block__grid img {
  display: block;
  width: 100%;
  height: auto;
}

.talent-card__figure figcaption,
.ascendancy__gallery figcaption,
.pantheon-block__grid figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* ---------- 升华 ---------- */
.ascendancy {
  margin-top: 28px;
  padding: 20px;
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ascendancy__timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ascendancy__step {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 13px;
  background: rgba(7, 8, 11, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.ascendancy__dot {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #17120a;
  font-size: 0.67rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f2d18b, #bc8732);
  border-radius: 50%;
}

.ascendancy__step > div > span {
  color: var(--gold-soft);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.ascendancy__step h4 {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.ascendancy__step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.ascendancy__gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 520px;
  margin-top: 16px;
}

.ascendancy__step h4 small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.ascendancy__gallery figure,
.pantheon-block__grid figure {
  margin: 0;
}

/* ---------- 装备 ---------- */
.gear-table {
  overflow: hidden;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
}

.gear-table__row {
  display: grid;
  grid-template-columns: 104px minmax(190px, 0.9fr) minmax(0, 1.25fr);
  gap: 14px;
  padding: 10px 14px;
  background: rgba(7, 8, 11, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.gear-table__row:first-child {
  border-top: 0;
}

.gear-table__row strong {
  color: var(--gold);
  font-size: 0.82rem;
}

.gear-table__row span {
  color: #e0dbd1;
  font-size: 0.82rem;
}

.gear-table__row small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  padding: 12px 14px;
  background: rgba(7, 8, 11, 0.62);
  border: 1px dashed rgba(232, 189, 97, 0.38);
  border-radius: 12px;
}

.filter-strip > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-strip span {
  color: var(--gold-soft);
  font-size: 0.71rem;
  letter-spacing: 0.07em;
}

.filter-strip code {
  padding: 0;
  color: #e8d3a2;
  font-size: 0.74rem;
  line-height: 1.65;
  word-break: break-all;
  background: transparent;
  border: 0;
}

.filter-strip button {
  flex: none;
  padding: 6px 13px;
  color: var(--gold);
  font-size: 0.74rem;
  background: rgba(232, 189, 97, 0.09);
  border: 1px solid rgba(232, 189, 97, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

.filter-strip button:hover {
  background: rgba(232, 189, 97, 0.2);
}

.gear-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gear-card {
  padding: 16px;
  scroll-margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.gear-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.gear-card header > span {
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.gear-card small {
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.gear-card h4 {
  margin: 3px 0 0;
  font-size: 0.98rem;
}

.gear-card ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.65;
}

.upgrade-plan {
  margin-top: 28px;
  padding: 20px;
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.upgrade-plan__list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.upgrade-plan__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: rgba(7, 8, 11, 0.58);
}

.upgrade-plan__item > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.upgrade-plan__item h4 {
  margin: 0;
  font-size: 0.9rem;
}

.upgrade-plan__item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.pantheon-block {
  margin-top: 28px;
  padding: 20px;
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.pantheon-block__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* ---------- FAQ ---------- */
.faq-block {
  margin-top: 30px;
  padding: 20px;
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
}

.faq-item:first-of-type {
  border-top: 0;
}

.faq-item summary {
  padding: 12px 2px;
  color: #e8e2d7;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--gold-soft);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item p {
  margin: 0 0 13px;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
}

.guide-end {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}

.guide-end strong {
  color: var(--gold-soft);
  font-size: 0.8rem;
}

.guide-end p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.7;
}

.guide-end a {
  flex: none;
  font-size: 0.76rem;
  text-decoration: none;
}

/* ---------- 自适应 ---------- */
@media (max-width: 1180px) {
  .guide-layout {
    grid-template-columns: 222px minmax(0, 1fr);
    gap: 22px;
  }

  .guide-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talent-card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }

  .ascendancy__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  /* 窄屏目录改为吸顶横向分类，二级项横向滚动。 */
  .guide-rail {
    position: sticky;
    top: 73px;
    z-index: 7;
  }

  .guide-nav {
    max-height: none;
    padding: 7px 9px;
    overflow: hidden;
    border-radius: 12px;
  }

  .guide-nav__head,
  .guide-nav__foot {
    display: none;
  }

  .guide-nav__group {
    display: inline-block;
    margin: 0 4px 0 0;
    border-bottom: 0;
    vertical-align: top;
  }

  .guide-nav__summary {
    display: inline-flex;
    padding: 5px 9px;
    font-size: 0.8rem;
  }

  .guide-nav__children {
    display: flex;
    gap: 4px;
    max-width: calc(100vw - 60px);
    padding: 5px 0 2px;
    overflow-x: auto;
  }

  .guide-nav__children a {
    flex: none;
    padding: 4px 8px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.035);
  }

  .guide-progress {
    top: 124px;
  }

  .talent-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .talent-card__figure {
    max-width: 620px;
  }

  .gear-stage-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .strategy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .guide-hero {
    padding: 19px 16px;
    border-radius: 14px;
  }

  .guide-hero__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-callout {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 15px;
  }

  .phase-card,
  .gear-card {
    padding: 14px;
  }

  .gem-role {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .gear-table__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .filter-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-strip button {
    align-self: flex-start;
  }

  .ascendancy,
  .upgrade-plan,
  .pantheon-block,
  .faq-block {
    padding: 16px;
  }

  .ascendancy__timeline,
  .ascendancy__gallery,
  .pantheon-block__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-end {
    flex-direction: column;
  }
}

/* ==========================================================================
   处刑闪打 v3：纯处刑 · 少按键 · 技能/天赋/装备分类
   ========================================================================== */
.guide-hero__rules {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(217, 109, 93, 0.07);
  border: 1px solid rgba(217, 109, 93, 0.24);
  border-left: 3px solid var(--red);
  border-radius: 12px;
}

.guide-hero__rules p {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.guide-hero__rules ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #e4ddd3;
  font-size: 0.82rem;
  line-height: 1.65;
}

.guide-hero__source {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.guide-hero__source a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 189, 97, 0.35);
}

.control-block {
  margin-top: 28px;
  scroll-margin-top: 96px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.control-grid__item {
  display: grid;
  gap: 7px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.control-grid__item > span {
  justify-self: start;
  padding: 2px 7px;
  color: #17120a;
  font-size: 0.67rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f0cf85, #bf8b35);
  border-radius: 5px;
}

.control-grid__item strong {
  font-size: 0.85rem;
}

.control-grid__item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.gem-role {
  align-items: start;
}

.gem-role__note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.62;
}

.gear-quick-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.gear-quick-table > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.gear-quick-table strong {
  color: var(--gold-soft);
  font-size: 0.69rem;
  letter-spacing: 0.05em;
}

.gear-quick-table span {
  font-size: 0.84rem;
  font-weight: 600;
}

.gear-quick-table small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.guide-end__links {
  display: grid;
  gap: 5px;
  justify-items: end;
}

@media (max-width: 1200px) {
  .control-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gear-quick-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .control-grid,
  .gear-quick-table {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-end__links {
    justify-items: start;
  }
}

/* 3.29 天梯统计：用条形图说明主流配置倾向 */
.ladder-block {
  margin-top: 28px;
  padding: 20px;
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ladder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ladder-grid__item {
  padding: 12px;
  background: rgba(7, 8, 11, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.ladder-grid__item > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ladder-grid__item span {
  color: var(--muted);
  font-size: 0.72rem;
}

.ladder-grid__item strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.ladder-grid__bar {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.ladder-grid__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  border-radius: inherit;
}

.ladder-grid__item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.6;
}

.ladder-block__source {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.71rem;
}

@media (max-width: 1200px) {
  .ladder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ladder-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 可导入的真实角色模板：比正文更早出现 */
.pob-template {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  scroll-margin-top: 96px;
  background: linear-gradient(135deg, rgba(111, 158, 216, 0.12), rgba(7, 8, 11, 0.55));
  border: 1px solid rgba(111, 158, 216, 0.3);
  border-radius: 15px;
}

.pob-template__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #08111d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #9fc4ef, #5e8ac1);
  border-radius: 11px;
}

.pob-template > div:nth-child(2) > span {
  color: var(--blue);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.pob-template h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.pob-template p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.62;
}

.pob-template__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.pob-template__stats span {
  padding: 2px 7px;
  color: #c9d9ee;
  font-size: 0.68rem;
  background: rgba(111, 158, 216, 0.1);
  border: 1px solid rgba(111, 158, 216, 0.24);
  border-radius: 999px;
}

.pob-template > a {
  flex: none;
  padding: 8px 13px;
  color: #08111d;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #a6c9f2, #6f9ed8);
  border-radius: 9px;
}

.pob-template > a:hover {
  filter: brightness(1.08);
}

@media (max-width: 900px) {
  .pob-template {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .pob-template__mark {
    width: 46px;
    height: 46px;
  }
  .pob-template > a {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* 末尾留白：让最后一节锚点也能滚到视口顶部 */
.guide-end-spacer {
  height: 45vh;
}




/* ==========================================================================
   国服 / 国际服繁中译名模式
   ========================================================================== */
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.realm-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.realm-switcher__label {
  padding: 0 7px 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.realm-switcher__button {
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.realm-switcher__button:hover {
  color: var(--text);
}

.realm-switcher__button.is-active {
  color: #17120a;
  font-weight: 700;
  background: linear-gradient(135deg, #f0cf85, #c08c36);
}

.gem-i18n {
  cursor: help;
  border-bottom: 1px dashed rgba(232, 189, 97, 0.45);
  outline: none;
}

.gem-i18n:hover,
.gem-i18n:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.gem-i18n-tooltip {
  position: fixed;
  z-index: 80;
  display: grid;
  gap: 3px;
  max-width: 260px;
  padding: 8px 11px;
  color: var(--text);
  background: #171a20;
  border: 1px solid rgba(232, 189, 97, 0.4);
  border-radius: 9px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.gem-i18n-tooltip[hidden] {
  display: none;
}

.gem-i18n-tooltip span {
  color: var(--gold-soft);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.gem-i18n-tooltip strong {
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .header-controls {
    align-items: stretch;
    width: 100%;
  }

  .realm-switcher {
    justify-content: center;
    width: auto;
    align-self: flex-start;
  }
}

@media (max-width: 760px) {
  .header-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .game-switcher {
    width: 100%;
  }
}







/* ---------- 3.29 天赋路线图（真实坐标 + 等级分段） ---------- */
.tree-board {
  margin-top: 14px;
  padding: 18px;
  scroll-margin-top: 96px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tree-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tree-board__head > div:first-child > span {
  color: var(--gold-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.tree-board__head h4 {
  margin: 4px 0 0;
  font-size: 1rem;
}

.tree-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tree-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 0.74rem;
  cursor: pointer;
  background: rgba(7, 8, 11, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tree-tab:hover {
  color: var(--text);
  border-color: rgba(232, 189, 97, 0.35);
}

.tree-tab.is-active {
  color: #16120a;
  font-weight: 700;
  background: linear-gradient(135deg, #f1d08a, #c48e38);
  border-color: transparent;
}

/* 六个等级分段共用一套配色变量：图例、连线、节点与卡片都读同一个值 */
.b0 { --tree-color: #7ee787; }
.b1 { --tree-color: #58a6ff; }
.b2 { --tree-color: #a371f7; }
.b3 { --tree-color: #f0a83e; }
.b4 { --tree-color: #ff7b72; }
.b5 { --tree-color: #e3b341; }

.tree-tab__dot,
.tree-legend b {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--tree-color, var(--gold));
  border-radius: 50%;
}

.tree-board__canvas {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background: radial-gradient(circle at 50% 45%, rgba(38, 44, 56, 0.9), rgba(8, 9, 12, 0.96));
  border: 1px solid var(--line-soft);
  border-radius: 13px;
}

.tree-board__canvas.is-dragging {
  cursor: grabbing;
}

/* 缩放控件：固定在画布右下角 */
.tree-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  gap: 6px;
}

.tree-zoom button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(12, 14, 19, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tree-zoom button:hover {
  background: rgba(232, 189, 97, 0.16);
  border-color: rgba(232, 189, 97, 0.45);
}

.tree-board__svg {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.tree-ctx-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 26;
}

.tree-ctx-dot {
  fill: rgba(255, 255, 255, 0.16);
}

.tree-edge {
  stroke: var(--tree-color, var(--gold));
  stroke-width: 34;
  stroke-linecap: round;
  opacity: 0.72;
}

.tree-node__dot {
  fill: var(--tree-color, var(--gold));
  stroke: rgba(6, 7, 10, 0.92);
  stroke-width: 22;
}

.tree-node.t-m .tree-node__dot,
.tree-node.t-N .tree-node__dot {
  stroke-width: 30;
}

.tree-node.t-k .tree-node__dot {
  stroke: #fff3d4;
  stroke-width: 34;
}

.tree-node.t-start .tree-node__dot {
  stroke: #f6e2b4;
  stroke-width: 38;
}

/* 序号常驻显示：白字加深色描边，放在任何分段颜色上都看得清 */
.tree-node__num {
  fill: #ffffff;
  font-size: 96px;
  font-weight: 800;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(5, 6, 9, 0.95);
  stroke-width: 22;
}

/* 转暴击时会洗掉的点：额外画一圈虚线 */
.tree-node__ring {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
  pointer-events: none;
}

.tree-node.is-respec .tree-node__ring {
  stroke: #ffffff;
  stroke-dasharray: 36 28;
  opacity: 0.9;
}

/* 序号字号跟着节点半径走，避免小点里塞不下两位数 */
.tree-node.t-m .tree-node__num {
  font-size: 112px;
  stroke-width: 24;
}

.tree-node.t-N .tree-node__num {
  font-size: 138px;
  stroke-width: 30;
}

.tree-node.t-k .tree-node__num,
.tree-node.t-start .tree-node__num {
  font-size: 158px;
  stroke-width: 34;
}

/* 选中或悬停某一分段时：其余分段整体压暗，聚焦的那一段保持原样 */
.tree-node {
  cursor: pointer;
}

.tree-board[data-focus="0"] .tree-edge:not(.b0),
.tree-board[data-focus="0"] .tree-node:not(.b0),
.tree-board[data-focus="1"] .tree-edge:not(.b1),
.tree-board[data-focus="1"] .tree-node:not(.b1),
.tree-board[data-focus="2"] .tree-edge:not(.b2),
.tree-board[data-focus="2"] .tree-node:not(.b2),
.tree-board[data-focus="3"] .tree-edge:not(.b3),
.tree-board[data-focus="3"] .tree-node:not(.b3),
.tree-board[data-focus="4"] .tree-edge:not(.b4),
.tree-board[data-focus="4"] .tree-node:not(.b4),
.tree-board[data-focus="5"] .tree-edge:not(.b5),
.tree-board[data-focus="5"] .tree-node:not(.b5) {
  opacity: 0.12;
}

.tree-tip {
  position: absolute;
  display: grid;
  gap: 2px;
  min-width: 140px;
  padding: 9px 11px;
  pointer-events: none;
  background: rgba(8, 9, 13, 0.96);
  border: 1px solid rgba(232, 189, 97, 0.35);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.tree-tip span {
  color: var(--gold-soft);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.tree-tip strong {
  font-size: 0.85rem;
}

.tree-tip small {
  color: var(--muted);
  font-size: 0.7rem;
}

.tree-board__foot {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tree-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tree-legend i {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  cursor: pointer;
  transition: color 0.15s ease;
}

.tree-legend i:hover {
  color: var(--text);
}

.tree-board__hint {
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.6;
}

/* 等级分段卡：每段一张，列出该段要点的每一个天赋 */
.tree-bands {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.tree-band-card {
  padding: 16px 18px;
  scroll-margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--tree-color, var(--gold));
  border-radius: 14px;
}

.tree-band-card header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tree-band-card__dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #16120a;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--tree-color, var(--gold));
  border-radius: 9px;
}

.tree-band-card small {
  color: var(--gold-soft);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
}

.tree-band-card h4 {
  margin: 3px 0 0;
  font-size: 1.02rem;
}

.tree-band-card > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.tree-band-card__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.tree-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  color: #e5e2da;
  font-size: 0.75rem;
  background: rgba(7, 8, 11, 0.55);
  border: 1px solid color-mix(in srgb, var(--tree-color, var(--gold)) 42%, transparent);
  border-radius: 999px;
}

.tree-chip b {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  color: #14100a;
  font-size: 0.66rem;
  font-weight: 800;
  background: var(--tree-color, var(--gold));
  border-radius: 999px;
}

.tree-chip.t-N,
.tree-chip.t-k {
  color: #fdf3dd;
  font-weight: 600;
}

.tree-band-card__check {
  padding: 9px 11px;
  margin-top: 12px !important;
  color: #cfd8e3 !important;
  background: rgba(111, 158, 216, 0.075);
  border-left: 2px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

.tree-band-card__check strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .tree-board {
    padding: 14px;
  }

  .tree-board__head {
    flex-direction: column;
  }

  .tree-band-card {
    padding: 14px;
  }

  /* 窄屏靠双指/按钮放大 + 拖动平移来看细节 */
  .tree-zoom button {
    width: 36px;
    height: 36px;
  }
}

/* 放大命中区域，避免 SVG 分组因序号文字偏移导致悬浮判定落在空白处 */
.tree-node__hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}


/* 分段卡里标记「转型时洗掉」的点 */
.tree-chip em {
  margin-left: 5px;
  padding: 0 4px;
  color: #ffd9d4;
  font-size: 0.6rem;
  font-style: normal;
  background: rgba(255, 123, 114, 0.22);
  border-radius: 4px;
}

.tree-chip.is-respec {
  border-style: dashed;
}


/* 天赋板块里的小节标题：区分开荒树与转型后树 */
.tree-subhead {
  margin: 26px 0 -4px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.tree-subhead > span {
  color: var(--gold-soft);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
}

.tree-subhead h4 {
  margin: 5px 0 0;
  font-size: 1.08rem;
}

.tree-subhead p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.tree-subhead strong {
  color: #f0d79c;
}


/* 技能宝石卡片在窄屏回到单栏，避免右侧栏被压扁 */
@media (max-width: 900px) {
  .gem-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .gem-row__identity,
  .gem-row__facts,
  .gem-row__classes,
  .gem-row__actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }

  .gem-row__actions {
    align-self: start;
  }
}

/* ===== 流放1 剧情板块 ===== */
.campaign-shell {
  display: grid;
  gap: 20px;
}

.campaign-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 88% 8%, rgba(232, 189, 97, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(32, 29, 24, 0.98), rgba(15, 18, 23, 0.96));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.campaign-hero::after {
  position: absolute;
  right: 8%;
  bottom: -120px;
  width: 300px;
  height: 300px;
  content: "";
  border: 1px solid rgba(232, 189, 97, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(232, 189, 97, 0.025), 0 0 0 64px rgba(232, 189, 97, 0.018);
  pointer-events: none;
}

.campaign-hero__top,
.campaign-map__head,
.campaign-act__summary,
.campaign-map-heading,
.campaign-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.campaign-hero__version {
  color: var(--muted);
  font-size: 0.8rem;
}

.campaign-hero h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
}

.campaign-hero__subtitle {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 14px 0 0;
  color: #c8c3b7;
  line-height: 1.8;
}

.campaign-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 22px;
}

.campaign-hero__stats > div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.campaign-hero__stats span,
.campaign-hero__stats strong {
  display: block;
}

.campaign-hero__stats span {
  color: var(--muted);
  font-size: 0.72rem;
}

.campaign-hero__stats strong {
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.95rem;
}

.campaign-global-notes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.campaign-global-note {
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--muted);
  border-radius: 10px;
}

.campaign-global-note--danger { border-left-color: var(--red); }
.campaign-global-note--warning { border-left-color: #e4a85e; }
.campaign-global-note--gold { border-left-color: var(--gold); }
.campaign-global-note--info { border-left-color: var(--blue); }

.campaign-global-note strong {
  display: block;
  font-size: 0.86rem;
}

.campaign-global-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.campaign-hero__source {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: #858990;
  font-size: 0.76rem;
}

.campaign-toolbar {
  position: sticky;
  z-index: 12;
  top: 82px;
  display: grid;
  gap: 12px;
  padding: 15px;
  background: rgba(15, 17, 22, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.campaign-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.campaign-search span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.campaign-search input {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  outline: none;
}

.campaign-search input:focus {
  border-color: rgba(232, 189, 97, 0.65);
  box-shadow: 0 0 0 3px rgba(232, 189, 97, 0.08);
}

.campaign-filters,
.campaign-act-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.campaign-filter,
.campaign-act-nav button {
  padding: 7px 10px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition: 150ms ease;
}

.campaign-filter:hover,
.campaign-act-nav button:hover,
.campaign-filter.is-active,
.campaign-act-nav button.is-active {
  color: #1b1409;
  background: var(--gold);
  border-color: var(--gold);
}

.campaign-act-nav {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.campaign-act-nav button {
  min-width: 34px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.campaign-list {
  display: grid;
  gap: 14px;
}

.campaign-act {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(28, 31, 38, 0.94), rgba(17, 19, 24, 0.92));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.campaign-act[open] {
  border-color: rgba(232, 189, 97, 0.32);
}

.campaign-act__summary {
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.campaign-act__summary::-webkit-details-marker {
  display: none;
}

.campaign-act__number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  background: rgba(232, 189, 97, 0.08);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.campaign-act__title {
  min-width: 0;
  flex: 1;
}

.campaign-act__title strong,
.campaign-act__title small {
  display: block;
}

.campaign-act__title strong {
  font-size: 1.05rem;
}

.campaign-act__title small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.campaign-act__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 300px;
  color: var(--muted);
  font-size: 0.72rem;
}

.campaign-act__meta span {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 5px;
}

.campaign-act__chevron {
  color: var(--gold);
  font-size: 1.5rem;
  transition: transform 160ms ease;
}

.campaign-act[open] .campaign-act__chevron {
  transform: rotate(90deg);
}

.campaign-act__body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line-soft);
}

.campaign-act__lore {
  margin: 18px 0;
  color: #c8c3b7;
  line-height: 1.8;
}

.campaign-act__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.campaign-subhead span,
.campaign-map-heading span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.campaign-subhead h4,
.campaign-map-heading h4 {
  margin: 5px 0 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 1.05rem;
}

.campaign-steps,
.campaign-notes {
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.campaign-steps ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.campaign-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
}

.campaign-steps__index {
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.campaign-steps li strong {
  font-size: 0.9rem;
}

.campaign-steps li p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.campaign-notes {
  background: rgba(232, 189, 97, 0.035);
  border-color: rgba(232, 189, 97, 0.18);
}

.campaign-notes ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.campaign-map-heading {
  margin-top: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.campaign-map-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.campaign-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.campaign-map {
  overflow: hidden;
  background: rgba(11, 12, 15, 0.34);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.campaign-map__head {
  align-items: flex-start;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line-soft);
}

.campaign-map__head h4 {
  margin: 0;
  font-size: 0.98rem;
}

.campaign-map__level {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.campaign-map__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.campaign-badge {
  display: inline-flex;
  padding: 3px 6px;
  font-size: 0.64rem;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.campaign-badge--kind { color: var(--muted); }
.campaign-badge--fixed { color: #9fc7ee; border-color: rgba(111, 158, 216, 0.35); }
.campaign-badge--trial { color: #f2cf86; border-color: rgba(232, 189, 97, 0.4); }

.campaign-map__body {
  display: grid;
  gap: 10px;
  padding: 13px 14px 14px;
}

.campaign-map__line,
.campaign-map__fixed {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
}

.campaign-map__label {
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.campaign-map__line p,
.campaign-map__fixed p,
.campaign-map__note {
  margin: 0;
  color: #c2c4c8;
  font-size: 0.8rem;
  line-height: 1.65;
}

.campaign-map__fixed {
  padding: 8px 9px;
  background: rgba(111, 158, 216, 0.07);
  border-left: 2px solid rgba(111, 158, 216, 0.55);
  border-radius: 5px;
}

.campaign-map__fixed p { color: #b9cce0; }

.campaign-map__list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.campaign-map__empty {
  color: #858990 !important;
}

.campaign-map__trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  color: #e8cf9c;
  background: rgba(232, 189, 97, 0.08);
  border: 1px solid rgba(232, 189, 97, 0.2);
  border-radius: 6px;
  font-size: 0.72rem;
}

.campaign-map__trial strong {
  color: var(--gold);
  text-align: right;
}

.campaign-map__note {
  padding-top: 8px;
  color: #9da0a5;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.74rem;
}

.campaign-empty {
  padding: 38px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--line-soft);
  border-radius: 14px;
}

.campaign-empty strong { color: var(--gold); }
.campaign-empty p { margin: 8px 0 0; color: var(--muted); }

.campaign-foot {
  align-items: flex-start;
  padding: 4px 2px 12px;
  color: #777b82;
  font-size: 0.72rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .campaign-act__grid,
  .campaign-map-grid {
    grid-template-columns: 1fr;
  }

  .campaign-notes {
    order: -1;
  }
}

@media (max-width: 760px) {
  .campaign-toolbar {
    top: 70px;
  }

  .campaign-search {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .campaign-hero__stats,
  .campaign-global-notes {
    grid-template-columns: 1fr;
  }

  .campaign-act__summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    display: grid;
    gap: 10px;
  }

  .campaign-act__meta {
    display: none;
  }

  .campaign-act__chevron {
    grid-column: 3;
    grid-row: 1;
  }

  .campaign-act__body {
    padding: 0 14px 14px;
  }

  .campaign-map__head {
    display: grid;
    gap: 8px;
  }

  .campaign-map__badges {
    justify-content: flex-start;
  }

  .campaign-map__line,
  .campaign-map__fixed {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .campaign-map__trial {
    align-items: flex-start;
    flex-direction: column;
  }

  .campaign-foot {
    display: grid;
    gap: 6px;
  }
}

/* 三个板块在宽屏并排，窄屏再回退到两列/单列。 */
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* 详细节点按内容高度排列，避免同排卡片被强行拉齐。 */
.campaign-map-grid {
  align-items: start;
}

.campaign-map {
  align-self: start;
}

/* 没有隐藏点/试炼/固定路线的地图，用紧凑速览行展示。 */
.campaign-map-quick {
  display: grid;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(11, 12, 15, 0.28);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.campaign-map-quick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line-soft);
}

.campaign-map-quick__head strong {
  color: var(--gold);
  font-size: 0.78rem;
}

.campaign-map-quick__head span {
  color: var(--muted);
  font-size: 0.68rem;
}

.campaign-map-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr) minmax(180px, 0.42fr);
  align-items: start;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.campaign-map-row:last-child {
  border-bottom: 0;
}

.campaign-map-row__title {
  display: grid;
  gap: 3px;
}

.campaign-map-row__title strong {
  font-size: 0.82rem;
}

.campaign-map-row__title span {
  color: var(--muted);
  font-size: 0.66rem;
}

.campaign-map-row p,
.campaign-map-row small {
  margin: 0;
  color: #b8bcc2;
  font-size: 0.76rem;
  line-height: 1.55;
}

.campaign-map-row small {
  color: #8e9298;
}

@media (max-width: 900px) {
  .campaign-map-row {
    grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr);
  }

  .campaign-map-row small {
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  .campaign-map-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .campaign-map-row small {
    grid-column: auto;
  }

  .campaign-map-quick__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* 剧情页改为左侧章节导航 + 右侧连续章节大块。 */
.campaign-toolbar {
  position: static;
  top: auto;
  backdrop-filter: none;
}

.campaign-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.campaign-main {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.campaign-sidebar {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(15, 17, 22, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.campaign-sidebar__head span,
.campaign-sidebar__head strong {
  display: block;
}

.campaign-sidebar__head span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.campaign-sidebar__head strong {
  margin-top: 5px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 1rem;
}

.campaign-side-nav {
  display: grid;
  gap: 6px;
}

.campaign-side-nav button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 8px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: 150ms ease;
}

.campaign-side-nav button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.campaign-side-nav button.is-active {
  color: #1b1409;
  background: linear-gradient(135deg, #f0cf85, #c3903f);
  border-color: rgba(232, 189, 97, 0.55);
}

.campaign-side-nav__index {
  font-family: Georgia, serif;
  font-size: 0.72rem;
  text-align: center;
}

.campaign-side-nav__text {
  min-width: 0;
}

.campaign-side-nav__text strong,
.campaign-side-nav__text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-side-nav__text strong {
  font-size: 0.78rem;
}

.campaign-side-nav__text small {
  margin-top: 3px;
  color: inherit;
  font-size: 0.64rem;
  opacity: 0.72;
}

.campaign-sidebar__hint {
  margin: 0;
  padding-top: 10px;
  color: #777b82;
  border-top: 1px solid var(--line-soft);
  font-size: 0.68rem;
  line-height: 1.5;
}

.campaign-act-block {
  padding: 20px;
  background: linear-gradient(145deg, rgba(28, 31, 38, 0.94), rgba(17, 19, 24, 0.92));
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  scroll-margin-top: 82px;
}

.campaign-act-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.campaign-act-block__head-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-act-block__number {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
  background: rgba(232, 189, 97, 0.08);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.campaign-act-block__head h3 {
  margin: 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 1.25rem;
}

.campaign-act-block__head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.campaign-act-block__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

.campaign-act-block__meta span {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 5px;
}

.campaign-act-block__lore {
  margin: 16px 0;
  color: #c8c3b7;
  line-height: 1.8;
}

.campaign-act-block__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.campaign-map-table {
  margin-top: 12px;
  overflow: hidden;
  background: rgba(11, 12, 15, 0.3);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.campaign-map-table__head,
.campaign-map-table__row {
  display: grid;
  grid-template-columns: minmax(125px, 0.75fr) minmax(220px, 1.35fr) minmax(220px, 1.35fr) minmax(110px, 0.62fr) minmax(160px, 0.95fr);
  gap: 12px;
}

.campaign-map-table__head {
  padding: 10px 13px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--line-soft);
}

.campaign-map-table__row {
  align-items: start;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.campaign-map-table__row:last-child {
  border-bottom: 0;
}

.campaign-map-table__row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.campaign-map-table__map strong,
.campaign-map-table__map span {
  display: block;
}

.campaign-map-table__map strong {
  font-size: 0.86rem;
}

.campaign-map-table__map span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.campaign-map-table__main p,
.campaign-map-table__note {
  margin: 0;
  color: #bfc2c7;
  font-size: 0.76rem;
  line-height: 1.6;
}

.campaign-map-table__note {
  color: #90949a;
}

.campaign-map-table__extra {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.campaign-map-table__route,
.campaign-map-table__hidden {
  display: grid;
  gap: 4px;
}

.campaign-map-table__route > span,
.campaign-map-table__hidden > span {
  color: var(--gold-soft);
  font-size: 0.64rem;
  font-weight: 700;
}

.campaign-map-table__route p {
  margin: 0;
  color: #b9cce0;
  font-size: 0.72rem;
  line-height: 1.55;
}

.campaign-map-table__hidden ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 15px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.campaign-map-table__trial-badge {
  display: inline-flex;
  padding: 4px 6px;
  color: var(--gold);
  background: rgba(232, 189, 97, 0.08);
  border: 1px solid rgba(232, 189, 97, 0.25);
  border-radius: 5px;
  font-size: 0.68rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .campaign-layout {
    grid-template-columns: 1fr;
  }

  .campaign-sidebar {
    position: static;
  }

  .campaign-side-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .campaign-side-nav button {
    width: auto;
    min-width: 178px;
    flex: 0 0 auto;
  }

  .campaign-sidebar__hint {
    display: none;
  }
}

@media (max-width: 900px) {
  .campaign-act-block {
    padding: 15px;
  }

  .campaign-act-block__head {
    flex-direction: column;
  }

  .campaign-act-block__meta {
    justify-content: flex-start;
  }

  .campaign-act-block__grid {
    grid-template-columns: 1fr;
  }

  .campaign-map-table__head {
    display: none;
  }

  .campaign-map-table__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 16px;
    padding: 14px;
  }

  .campaign-map-table__main,
  .campaign-map-table__extra,
  .campaign-map-table__note {
    grid-column: 1 / -1;
  }

  .campaign-map-table__row > div::before {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-soft);
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 700;
  }

  .campaign-map-table__map::before,
  .campaign-map-table__main::before,
  .campaign-map-table__extra::before,
  .campaign-map-table__trial::before,
  .campaign-map-table__note::before {
    display: block;
  }
}

@media (max-width: 620px) {
  .campaign-side-nav button {
    min-width: 158px;
  }

  .campaign-act-block__head-main {
    align-items: flex-start;
  }

  .campaign-act-block__head h3 {
    font-size: 1.08rem;
  }

  .campaign-map-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .campaign-map-table__main,
  .campaign-map-table__extra,
  .campaign-map-table__note {
    grid-column: auto;
  }
}

/* 攻坚与印记：把默认印记、替换印记、补球和单体技能放在同一屏。 */
.mark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mark-card {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.mark-card__head span,
.mark-card__head h4,
.mark-card__head small {
  display: block;
}

.mark-card__head span {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mark-card__head h4 {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.mark-card__head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
}

.mark-card p {
  margin: 0;
  color: #c0c3c8;
  font-size: 0.76rem;
  line-height: 1.6;
}

.mark-card__use strong {
  color: var(--gold-soft);
}

.mark-card > small {
  color: #8d9198;
  font-size: 0.7rem;
  line-height: 1.55;
}

.bossing-links {
  margin-top: 14px;
}

.bossing-steps {
  margin-top: 14px;
}

.bossing-steps ol {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .mark-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .mark-grid {
    grid-template-columns: 1fr;
  }
}

/* 手机端收尾：站点头部已取消吸顶，攻略目录直接贴顶。 */
@media (max-width: 900px) {
  .skill-gems-view .gem-list {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .guide-rail {
    top: 0;
  }

  .guide-nav {
    border-radius: 0 0 12px 12px;
  }

  .module-mount.skill-gems-view {
    padding-bottom: 24px;
  }

  .skill-gems-view .filter-panel {
    padding: 10px 12px;
  }

  .skill-gems-view .filter-grid {
    gap: 10px;
  }

  .skill-gems-view .filter-row {
    gap: 5px;
  }

  .skill-gems-view .filter-label {
    flex-basis: auto;
    padding-top: 0;
    font-size: 0.74rem;
  }

  .skill-gems-view .chapter-filter,
  .skill-gems-view .filter-chip-group {
    gap: 5px;
  }

  .skill-gems-view .gem-row {
    padding: 10px 12px;
  }

  .skill-gems-view .gem-row__actions {
    flex-wrap: wrap;
  }

  .skill-gems-view .pagination {
    gap: 4px;
  }

  .skill-gems-view .page-button {
    min-width: 28px;
    padding: 5px 7px;
  }

  .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    color: var(--muted);
  }
}
