/*
 * @Author: Junchen Yi
 * @Date: 2026-04-12 03:41:35
 * @LastEditors: Junchen Yi
 * @LastEditTime: 2026-04-12 03:45:09
 * 
 * Copyright (c) 2026 by Junchen Yi, All Rights Reserved. 
 */
.global-announcement {
  margin: 10px 16px 0;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.global-announcement .ga-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 68px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid rgba(30, 58, 138, .26);
  background: rgba(255, 255, 255, .6);
}

.global-announcement .ga-main {
  min-width: 0;
}

.global-announcement .ga-title {
  font-weight: 700;
  color: #102a6b;
}

.global-announcement .ga-content {
  margin-top: 2px;
  color: #1e3a8a;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.global-announcement .ga-time {
  margin-top: 4px;
  font-size: 12px;
  color: #1d4ed8;
  opacity: .86;
}

.global-announcement.ga-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.global-announcement.ga-warning .ga-title {
  color: #78350f;
}

.global-announcement.ga-warning .ga-content,
.global-announcement.ga-warning .ga-time {
  color: #92400e;
}

.global-announcement.ga-warning .ga-badge {
  border-color: rgba(146, 64, 14, .24);
}

.global-announcement.ga-critical {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.global-announcement.ga-critical .ga-title {
  color: #7f1d1d;
}

.global-announcement.ga-critical .ga-content,
.global-announcement.ga-critical .ga-time {
  color: #991b1b;
}

.global-announcement.ga-critical .ga-badge {
  border-color: rgba(153, 27, 27, .24);
}

body.ga-modal-open {
  overflow: hidden;
}

.ga-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s linear, visibility 0s linear .24s;
}

.ga-modal-mask.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .24s linear;
}

.ga-modal-card {
  width: min(640px, calc(100vw - 24px));
  max-height: min(86vh, 720px);
  overflow: auto;
  position: relative;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  padding: 14px 14px 12px;
  opacity: 0;
  transform: translateY(8px) scale(.99);
}

.ga-modal-card.ga-warning {
  border-color: #fcd34d;
  background: #fffbeb;
}

.ga-modal-card.ga-critical {
  border-color: #fecaca;
  background: #fef2f2;
}

.ga-modal-mask.is-open .ga-modal-card {
  animation: ga-modal-card-in .26s linear forwards;
}

@keyframes ga-modal-card-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ga-modal-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.ga-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #102a6b;
  border: 1px solid rgba(30, 58, 138, .24);
  background: rgba(239, 246, 255, .85);
  white-space: nowrap;
}

.ga-modal-card.ga-warning .ga-modal-badge {
  color: #78350f;
  border-color: rgba(146, 64, 14, .24);
  background: rgba(255, 255, 255, .78);
}

.ga-modal-card.ga-critical .ga-modal-badge {
  color: #7f1d1d;
  border-color: rgba(153, 27, 27, .24);
  background: rgba(255, 255, 255, .78);
}

.ga-modal-title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  word-break: break-word;
}

.ga-modal-content {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.62;
  color: #1e3a8a;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ga-modal-card.ga-warning .ga-modal-content {
  color: #92400e;
}

.ga-modal-card.ga-critical .ga-modal-content {
  color: #991b1b;
}

.ga-modal-time {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

.ga-modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.ga-modal-ok {
  appearance: none;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .global-announcement {
    margin: 8px 12px 0;
    padding: 9px 10px;
    border-radius: 14px;
    gap: 6px;
  }

  .global-announcement .ga-badge {
    min-width: 62px;
    font-size: 11px;
    padding: 2px 8px;
  }

  .global-announcement .ga-time {
    margin-top: 3px;
    font-size: 11px;
  }

  .ga-modal-card {
    border-radius: 14px;
    padding: 12px 12px 10px;
  }

  .ga-modal-title {
    font-size: 16px;
  }

  .ga-modal-content {
    font-size: 13px;
    line-height: 1.58;
  }
}
