/* 星际活动：全服限时增益面板。沿用侧边菜单的青蓝描边与暗色玻璃质感。 */
.world-events-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgb(44 210 230 / .16), transparent 42%),
    linear-gradient(180deg, rgb(1 7 10 / .78), rgb(1 5 8 / .92));
  backdrop-filter: blur(10px);
}
.world-events-overlay[hidden] { display: none !important; }
.world-events-dialog {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(95 238 247 / .42);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgb(4 18 23 / .96), rgb(2 9 13 / .98)),
    #02090c;
  box-shadow: 0 24px 80px rgb(0 0 0 / .68), inset 0 0 0 1px rgb(255 255 255 / .04);
}
.world-events-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgb(95 238 247 / .18);
  background: linear-gradient(90deg, rgb(18 88 96 / .28), transparent 62%);
}
.world-events-head > img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 18px rgb(93 241 255 / .22);
}
.world-events-head > div { min-width: 0; }
.world-events-head span {
  display: block;
  color: rgb(118 235 246 / .72);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}
.world-events-head h2 {
  margin: 1px 0 2px;
  color: #efffff;
  font-size: 22px;
  letter-spacing: .06em;
}
.world-events-head p {
  margin: 0;
  color: rgb(190 232 238 / .62);
  font-size: 11px;
}
.world-events-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(96 235 245 / .3);
  border-radius: 50%;
  background: rgb(3 15 19 / .76);
  color: rgb(220 252 255 / .78);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.world-events-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 18px;
  display: grid;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgb(84 220 232 / .4) transparent;
}
.world-events-empty {
  padding: 34px 18px;
  text-align: center;
  border: 1px dashed rgb(101 222 235 / .24);
  border-radius: 6px;
  background: rgb(8 26 31 / .38);
}
.world-events-empty strong { display: block; color: #eaffff; font-size: 15px; }
.world-events-empty p { margin: 7px 0 0; color: rgb(178 219 225 / .6); font-size: 11px; line-height: 1.7; }
.world-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--event-accent, #65f0c5) 42%, transparent);
  border-left: 3px solid var(--event-accent, #65f0c5);
  border-radius: 5px;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--event-accent, #65f0c5) 16%, transparent), transparent 42%),
    linear-gradient(100deg, rgb(10 33 38 / .72), rgb(4 14 18 / .58));
}
.world-event-card.is-upcoming { opacity: .74; filter: saturate(.72); }
.world-event-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--event-accent, #65f0c5) 36%, transparent);
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgb(18 45 52 / .9), rgb(2 10 13 / .86));
  padding: 6px;
}
.world-event-icon > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--event-accent, #65f0c5) 45%, transparent));
}
.world-event-copy { min-width: 0; }
.world-event-copy header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.world-event-copy header span {
  color: var(--event-accent, #65f0c5);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
.world-event-copy header strong { color: #f2ffff; font-size: 16px; }
.world-event-copy p {
  margin: 4px 0 6px;
  color: rgb(202 235 239 / .74);
  font-size: 11px;
  line-height: 1.6;
}
.world-event-copy ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.world-event-copy li {
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--event-accent, #65f0c5) 32%, transparent);
  border-radius: 3px;
  color: var(--event-accent, #65f0c5);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.world-event-timer { display: grid; justify-items: end; gap: 3px; min-width: 94px; }
.world-event-timer strong { color: #fff6d8; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.world-event-timer span { color: rgb(177 220 226 / .52); font-size: 9px; white-space: nowrap; }
.world-events-upcoming { display: grid; gap: 8px; margin-top: 4px; }
.world-events-upcoming > header { display: flex; align-items: baseline; gap: 8px; padding: 4px 2px 0; }
.world-events-upcoming > header span { color: rgb(120 231 243 / .55); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.world-events-upcoming > header strong { color: rgb(214 247 250 / .8); font-size: 13px; }
.world-events-rotation { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid rgb(95 238 247 / .22); border-radius: 5px; background: rgb(5 20 26 / .65); }
.world-events-rotation > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.world-events-rotation > header span { color: rgb(120 231 243 / .62); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.world-events-rotation > header strong { color: #eaffff; font-size: 12px; }
.world-events-rotation-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.rotation-day { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 6px 4px; text-align: center; border: 1px solid rgb(95 238 247 / .18); border-radius: 4px; background: rgb(3 13 18 / .72); }
.rotation-day-icon { display: block; width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rot-accent, #65f0c5) 45%, transparent)); }
.rotation-day.is-today { border-color: var(--rot-accent, #ffd166); background: color-mix(in srgb, var(--rot-accent, #ffd166) 18%, rgb(4 16 22)); box-shadow: 0 0 10px color-mix(in srgb, var(--rot-accent, #ffd166) 35%, transparent); }
.rotation-day b { font-size: 10px; color: #ffe599; }
.rotation-day span { font-size: 9px; color: rgb(214 245 248 / .85); line-height: 1.25; }
@media (max-width: 520px) { .world-events-rotation-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.world-events-error {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgb(255 120 110 / .36);
  border-radius: 4px;
  color: rgb(255 190 180 / .9);
  font-size: 11px;
  background: rgb(70 20 18 / .4);
}
.world-events-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 12px;
  border-top: 1px solid rgb(95 238 247 / .16);
  color: rgb(170 216 222 / .5);
  font-size: 10px;
  line-height: 1.5;
}
.world-events-foot button {
  flex: none;
  min-width: 86px;
  padding: 7px 14px;
  border: 1px solid rgb(95 238 247 / .38);
  border-radius: 3px;
  background: linear-gradient(180deg, rgb(28 117 126 / .38), rgb(8 38 44 / .5));
  color: #eaffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.quick-menu-item.has-live-event img { filter: drop-shadow(0 0 7px rgb(255 206 80 / .6)) brightness(1.12); }
.quick-menu-item.has-live-event span { color: #ffe7a3; }
body.world-events-open { overflow: hidden; }

@media (max-width: 520px) {
  .world-events-overlay { padding: 10px; }
  .world-events-dialog { max-height: 90vh; }
  .world-events-head { padding: 12px 14px; gap: 10px; }
  .world-events-head > img { width: 50px; height: 50px; }
  .world-events-head h2 { font-size: 19px; }
  .world-events-head p { font-size: 10px; }
  .world-event-card { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .world-event-icon { width: 58px; height: 58px; }
  .world-event-timer { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; min-width: 0; padding-top: 2px; border-top: 1px dashed rgb(116 226 236 / .16); }
  .world-events-foot span { max-width: 220px; }
}


/* === 主题与限时活动横幅专区（统一收纳至「星际活动」页面顶部，侧边栏发展度下方彻底隐藏） === */
.sidebar-themed-banners {
  display: none !important;
}
.world-events-featured,
.world-events-active-section {
  display: grid;
  gap: 8px;
}
.world-events-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 0;
}
.world-events-section-head > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.world-events-section-head span {
  color: rgba(242, 198, 102, 0.78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.world-events-active-section .world-events-section-head span {
  color: rgba(118, 232, 244, 0.76);
}
.world-events-section-head strong {
  color: #f4fbff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.world-events-count {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid rgba(244, 198, 96, 0.45);
  background: rgba(68, 46, 12, 0.56);
  color: #ffe399;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.world-events-count.is-cyan {
  border-color: rgba(102, 226, 242, 0.45);
  background: rgba(12, 54, 68, 0.56);
  color: #a6f2ff;
}
.world-events-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.world-events-banners.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.world-events-banners.is-odd-multi .activity-banner-tile.is-featured {
  grid-column: 1 / -1;
}

.activity-banner-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 104px;
  padding: 8px 11px 9px;
  border-radius: 6px;
  border: 1px solid rgba(240, 194, 96, 0.44);
  background-size: cover;
  background-position: center;
  background-color: #07141e;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  outline: none !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 236, 184, 0.22);
  transition: border-color 0.16s ease, filter 0.16s ease;
}
.activity-banner-tile.is-featured {
  min-height: 118px;
}
.activity-banner-tile:hover {
  border-color: rgba(255, 214, 114, 0.84);
  filter: brightness(1.06);
}
.activity-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 18, 0.42) 0%, rgba(3, 10, 18, 0.24) 38%, rgba(2, 8, 16, 0.88) 100%);
  pointer-events: none;
}
.activity-banner-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.activity-banner-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffd97a, #e2a436);
  color: #1e1102;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.activity-banner-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  background: none;
}
.activity-banner-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.activity-banner-title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-banner-sub {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(226, 245, 252, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-banner-cta {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(118, 232, 246, 0.48);
  background: rgba(6, 24, 34, 0.78);
  color: #ccf7ff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.activity-banner-time {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 214, 114, 0.36);
  background: rgba(12, 16, 22, 0.76);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: #ffd978;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.activity-banner-detail-hero .activity-banner-badge {
  position: absolute;
  top: 8px;
  left: 10px;
}
.activity-banner-detail-hero .activity-banner-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 12px 7px;
  background: linear-gradient(180deg, rgba(2, 8, 14, 0.08), rgba(2, 8, 14, 0.84));
}

@media (max-width: 640px) {
  .world-events-banners {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .activity-banner-tile,
  .activity-banner-tile.is-featured {
    min-height: 94px;
    padding: 8px 10px;
  }
  .activity-banner-title {
    font-size: 13px;
  }
  .activity-banner-sub {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
  .world-events-overlay,
  .activity-banner-detail-overlay {
    backdrop-filter: none;
  }
}

.activity-banner-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1260;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 6, 10, 0.82);
  backdrop-filter: blur(8px);
}
.activity-banner-detail-overlay[hidden] {
  display: none !important;
}
.activity-banner-detail-dialog {
  width: min(520px, 100%);
  max-height: min(84vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(95, 238, 247, 0.42);
  background: rgba(4, 16, 22, 0.95);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.72);
}
.activity-banner-detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 1;
  min-height: 92px;
  background-size: cover;
  background-position: center;
}
.activity-banner-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activity-banner-detail-window {
  font-size: 11px;
  color: #9be8f2;
}
.activity-banner-detail-copy {
  font-size: 13px;
  line-height: 1.65;
  color: #e6f6fa;
}
.activity-banner-detail-rewards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(95, 238, 247, 0.16);
}
.activity-banner-detail-rewards > span {
  font-size: 11px;
  color: #f3c862;
  font-weight: 700;
}
.activity-banner-detail-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(95, 238, 247, 0.16);
}
.activity-banner-detail-foot button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(95, 238, 247, 0.35);
  background: rgba(12, 34, 42, 0.8);
  color: #e2f9fc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.activity-banner-detail-foot button.primary {
  border-color: rgba(240, 185, 77, 0.72);
  background: linear-gradient(180deg, rgba(142, 92, 18, 0.9), rgba(62, 38, 8, 0.95));
  color: #fff0be;
}

.alien-moon-banner-showcase {
  display: grid;
  gap: 8px;
  padding: 8px 0 4px;
}
.alien-moon-banner-planet {
  font-size: 11px;
  color: rgba(206, 238, 246, 0.84);
}
.alien-moon-banner-planet b {
  color: #ffe394;
}
.alien-moon-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 480px) {
  .alien-moon-banner-grid {
    grid-template-columns: 1fr;
  }
}
.alien-moon-banner-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(8, 24, 34, 0.58);
  border: 1px solid rgba(110, 224, 240, 0.18);
}
.alien-moon-banner-item .moon-art {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
}
.alien-moon-banner-item .moon-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.alien-moon-banner-item .moon-info strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #f0fbff;
}
.alien-moon-banner-item .moon-info strong img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.alien-moon-banner-item .moon-info span {
  font-size: 10px;
  color: rgba(196, 232, 240, 0.72);
}
.alien-moon-banner-item .moon-info em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #ffd978;
}
.alien-moon-banner-item.is-metal { border-color: rgba(244, 184, 96, 0.32); }
.alien-moon-banner-item.is-crystal { border-color: rgba(102, 224, 255, 0.42); }
.alien-moon-banner-item.is-gas { border-color: rgba(104, 238, 176, 0.34); }
