/* Alpha update announcement */

.guide-source-bar {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(51, 255, 167, 0.18);
  border-radius: 10px;
  background: rgba(51, 255, 167, 0.07);
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.guide-source-bar:hover {
  background: rgba(51, 255, 167, 0.1);
}

.update-copy {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
}

.update-copy h3 {
  margin: 1.15rem 0 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.update-copy h3:first-child {
  margin-top: 0;
}

.update-list--hotfixes {
  columns: 1;
  column-gap: 1.5rem;
}

@media (min-width: 720px) {
  .update-list--hotfixes {
    columns: 2;
  }
}

@media (min-width: 1100px) {
  .update-list--hotfixes {
    columns: 3;
  }
}

.update-list--hotfixes li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.update-copy p,
.update-copy ul,
.update-copy blockquote,
.update-copy .update-note,
.update-copy .update-table-shell,
.update-copy .update-media,
.update-copy .update-media-grid {
  margin: 0.75rem 0 0;
}

.update-copy ul,
.update-copy .update-loc-list {
  padding-left: 1.2rem;
}

.update-copy li + li {
  margin-top: 0.35rem;
}

.update-copy a {
  color: var(--brand);
}

.update-quote {
  margin: 0.85rem 0 0;
  padding: 0.95rem 1rem;
  border-left: 3px solid rgba(51, 255, 167, 0.55);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.03);
}

.update-quote__label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.update-quote p {
  margin: 0;
}

.update-quote p + p,
.update-quote ul {
  margin-top: 0.65rem;
}

.update-note {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 196, 86, 0.22);
  border-radius: 10px;
  background: rgba(255, 196, 86, 0.07);
}

.update-note--important {
  border-color: rgba(51, 255, 167, 0.24);
  background: rgba(51, 255, 167, 0.07);
}

.update-note p {
  margin: 0;
  color: var(--text);
}

/* 大图：区域截图、亚丁等 */
.update-media--hero {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

/* 中等方图：UE5 等 */
.update-media--wide {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* 小图：Updater、循环宏示意等 */
.update-media--compact {
  display: inline-block;
  width: auto;
  max-width: 12rem;
  margin: 0.35rem 0.75rem 0.35rem 0;
  vertical-align: middle;
}

/* 行内图标：章节标题旁 64px 图标 */
.update-media--icon {
  display: inline-block;
  width: 4rem;
  max-width: 4rem;
  margin: 0 0.65rem 0.65rem 0;
  vertical-align: top;
}

.update-media--icon-sm {
  display: inline-block;
  width: 2rem;
  max-width: 2rem;
  margin: 0 0.35rem 0 0;
  vertical-align: middle;
}

.update-inline-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.update-inline-icons img.update-icon {
  margin: 0 !important;
}

.update-inline-icons .update-media {
  margin: 0;
}

.update-copy li .update-inline-icons {
  margin-top: 0;
}

/* 列表内的活动截图：独占一行、限宽 */
.update-copy li .update-media--compact {
  display: block;
  width: 100%;
  max-width: 6rem;
  margin: 0.35rem 0 0;
  vertical-align: baseline;
}

.update-section-future li .update-media--compact {
  display: none;
}

.update-media .lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #151515;
  overflow: hidden;
  cursor: zoom-in;
}

.update-media--icon .lightbox-trigger {
  border-radius: 8px;
}

.update-media img {
  display: block;
  width: 100%;
  height: auto;
}

.update-media-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 56rem;
}

.update-media-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 56rem;
}

@media (max-width: 720px) {
  .update-media-grid,
  .update-media-grid--triple {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }
}

.update-table-shell {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.update-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.update-table th,
.update-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  vertical-align: top;
}

.update-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.update-table tbody tr:last-child td {
  border-bottom: 0;
}

.update-table tr.update-row-base td {
  background: rgba(255, 255, 255, 0.02);
}

.update-table tr.update-row-total td {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.75rem;
}

.update-table-shell--rare + .update-table-shell--rare {
  margin-top: 1rem;
}

.update-copy .update-list-nested {
  padding-left: 1.2rem;
  list-style: disc;
}

.update-copy .update-list-nested .update-list {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.35rem;
  list-style: circle;
}

.update-copy .update-list-nested > li + li {
  margin-top: 0.45rem;
}

.update-class-skills > .update-list > li > img.update-icon:first-child,
.update-copy .update-list > li > img.update-icon:first-child + strong,
.update-copy .update-list > li > img.update-icon:first-child {
  vertical-align: middle;
}

.update-class-skills > .update-list > li:has(> img.update-icon[src*="skill"]) {
  margin-top: 0.85rem;
}

.update-class-skills > .update-list > li:has(> img.update-icon[src*="skill"]) > img.update-icon {
  margin-right: 0.45rem;
}

.update-list--hotfixes.update-list--columns {
  columns: 2;
  column-gap: 1.5rem;
  padding-left: 1.2rem;
}

.update-list--hotfixes.update-list--columns li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.update-section-future ul {
  padding-left: 1.2rem;
}

.update-section-future li + li {
  margin-top: 0.35rem;
}

/* 后续展望内禁止论坛装饰大图残留 */
.update-section-future img[src*="mw5.community/uploads"] {
  display: none !important;
}

/* compact 截图（Boss 日程等）：不受图标 24px 规则影响 */
.update-copy .update-media--compact img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.update-copy .update-media--hero img,
.update-copy .update-media--wide img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

@media (max-width: 720px) {
  .update-list--hotfixes.update-list--columns {
    columns: 1;
  }
}

/* 更新公告内游戏图标：列表内 24px 行内，表格/标签区 32px */
.update-copy img.update-icon,
.update-copy img.skill-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  margin: 0 0.3rem 0 0;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
}

.update-table img.update-icon,
.update-item-icons img.update-icon,
.update-loot-icons img.update-icon,
.update-cost-item img.update-icon {
  display: block;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  margin: 0;
}

.update-copy img.update-icon--inline {
  display: inline-block;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.update-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.45;
  min-width: 9.5rem;
}

.update-item-icons,
.update-loot-icons {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.2rem;
}

.update-item-name,
.update-loot-name {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.update-item-name strong {
  font-weight: 700;
}

.update-copy ul.update-loot-list {
  padding-left: 0;
}

.update-loot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-loot-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  line-height: 1.4;
}

.update-table td:first-child:has(.update-item-label) {
  min-width: 10.5rem;
  vertical-align: top;
}

.update-table td:first-child:has(.update-item-label) .update-item-label {
  padding-top: 0.15rem;
}

.update-cost-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.update-cost-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.update-cost-qty {
  font-variant-numeric: tabular-nums;
}

.update-copy hr.update-divider {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.update-more-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 800;
  text-decoration: none;
}

.update-more-link:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .update-table {
    font-size: 0.82rem;
  }
}

.update-class-skills {
  margin-top: 0.75rem;
}

.update-class-skills img.skill-icon {
  display: inline-block;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  vertical-align: middle;
  margin: 0 0.35rem 0 0;
  object-fit: contain;
  image-rendering: auto;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.update-class-skills li {
  line-height: 1.55;
}

.update-class-skills .update-table-shell {
  margin: 1rem 0;
}

.update-class-skills .update-table {
  min-width: 48rem;
  font-size: 0.84rem;
}

.update-class-skills p {
  margin: 0.75rem 0 0;
}

.update-class-skills strong {
  color: var(--text);
}

.update-buff-system {
  margin: 0.75rem 0 1rem;
}

.update-buff-system ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

.update-buff-system li + li {
  margin-top: 0.45rem;
}

.update-buff-system li li {
  margin-top: 0.3rem;
}

.update-buff-system img.skill-icon {
  display: inline-block;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px;
  max-height: 32px;
  vertical-align: middle;
  margin: 0 0.25rem 0 0;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

.update-buff-system > ul > li > ul {
  margin-top: 0.5rem;
}
