.notice-content-scroll img,
.card-content-scroll .semi-timeline img,
img[src*="system-announcement-wechat-qr"] {
  display: block !important;
  width: min(220px, 68vw) !important;
  max-width: min(220px, 68vw) !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.notice-modal-highlight {
  position: relative !important;
  overflow: hidden !important;
  border: 2px solid rgba(245, 158, 11, 0.88) !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(135deg, #fff1a8, #fff7d6 46%, #ffd6a3) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(245, 158, 11, 0.25),
    0 16px 38px rgba(217, 119, 6, 0.28) !important;
  animation: sakura-notice-glow 2.8s ease-in-out infinite !important;
}

.notice-modal-highlight::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.68) 50%, transparent 66%);
  transform: translateX(-68%) rotate(8deg);
  animation: sakura-notice-sweep 3.2s ease-in-out infinite;
}

.notice-modal-highlight > * {
  position: relative;
  z-index: 1;
}

.notice-modal-highlight h2,
.notice-modal-highlight h3,
.notice-modal-highlight strong {
  color: #92400e;
  text-shadow: 0 1px rgba(255, 255, 255, 0.75);
}

.notice-modal-highlight h2 {
  display: inline-block;
  background: linear-gradient(90deg, #92400e 0%, #d97706 36%, #fbbf24 50%, #b45309 64%, #92400e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sakura-notice-title-flow 3.4s linear infinite;
}

.sakura-618-notice-effect {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border: 2px solid rgba(245, 158, 11, 0.9);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(135deg, #fff1a8, #fff7d6 46%, #ffd6a3);
  animation: sakura-notice-glow 2.8s ease-in-out infinite;
}

.sakura-618-notice-effect::before {
  content: "";
  position: absolute;
  inset: -42%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.7) 50%, transparent 66%);
  transform: translateX(-70%) rotate(8deg);
  animation: sakura-notice-sweep 3.2s ease-in-out infinite;
}

.sakura-618-notice-effect > * {
  position: relative;
  z-index: 1;
}

.sakura-618-notice-effect h2 {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 800;
  background: linear-gradient(90deg, #92400e 0%, #d97706 36%, #fbbf24 50%, #b45309 64%, #92400e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sakura-notice-title-flow 3.4s linear infinite;
}

.sakura-618-notice-effect h3 {
  margin: 14px 0 6px;
  color: #92400e;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

.sakura-618-notice-effect p {
  margin: 0 0 10px;
  line-height: 1.75;
  color: #451a03;
}

.sakura-618-notice-effect .sakura-618-sign {
  margin-top: 14px;
  font-weight: 700;
  color: #92400e;
}

.dark .notice-modal-highlight,
html.dark .notice-modal-highlight,
body[theme-mode="dark"] .notice-modal-highlight {
  border-color: rgba(245, 158, 11, 0.82) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(120, 53, 15, 0.78), rgba(15, 23, 42, 0.98) 52%, rgba(124, 45, 18, 0.72)) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(245, 158, 11, 0.2),
    0 16px 38px rgba(0, 0, 0, 0.42) !important;
}

.dark .notice-modal-highlight h2,
html.dark .notice-modal-highlight h2,
body[theme-mode="dark"] .notice-modal-highlight h2 {
  background: linear-gradient(90deg, #fde68a 0%, #fbbf24 40%, #fff7ed 50%, #f59e0b 62%, #fde68a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .sakura-618-notice-effect,
html.dark .sakura-618-notice-effect,
body[theme-mode="dark"] .sakura-618-notice-effect {
  border-color: rgba(245, 158, 11, 0.84);
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.3), transparent 36%),
    linear-gradient(135deg, rgba(120, 53, 15, 0.82), rgba(15, 23, 42, 0.98) 52%, rgba(124, 45, 18, 0.76));
}

.dark .sakura-618-notice-effect h2,
html.dark .sakura-618-notice-effect h2,
body[theme-mode="dark"] .sakura-618-notice-effect h2 {
  background: linear-gradient(90deg, #fde68a 0%, #fbbf24 40%, #fff7ed 50%, #f59e0b 62%, #fde68a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark .notice-modal-highlight h3,
.dark .notice-modal-highlight strong,
html.dark .notice-modal-highlight h3,
html.dark .notice-modal-highlight strong,
body[theme-mode="dark"] .notice-modal-highlight h3,
body[theme-mode="dark"] .notice-modal-highlight strong {
  color: #fde68a;
  text-shadow: 0 1px rgba(0, 0, 0, 0.3);
}

.dark .sakura-618-notice-effect h3,
.dark .sakura-618-notice-effect p,
.dark .sakura-618-notice-effect .sakura-618-sign,
html.dark .sakura-618-notice-effect h3,
html.dark .sakura-618-notice-effect p,
html.dark .sakura-618-notice-effect .sakura-618-sign,
body[theme-mode="dark"] .sakura-618-notice-effect h3,
body[theme-mode="dark"] .sakura-618-notice-effect p,
body[theme-mode="dark"] .sakura-618-notice-effect .sakura-618-sign {
  color: #fde68a;
}

@keyframes sakura-notice-glow {
  0%, 100% {
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.8),
      0 0 0 1px rgba(245, 158, 11, 0.25),
      0 14px 32px rgba(217, 119, 6, 0.22);
  }
  50% {
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.92),
      0 0 0 1px rgba(251, 191, 36, 0.55),
      0 18px 46px rgba(217, 119, 6, 0.38);
  }
}

@keyframes sakura-notice-sweep {
  0% {
    transform: translateX(-68%) rotate(8deg);
    opacity: 0;
  }
  22% {
    opacity: 0.9;
  }
  54% {
    transform: translateX(68%) rotate(8deg);
    opacity: 0;
  }
  100% {
    transform: translateX(68%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes sakura-notice-title-flow {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-modal-highlight,
  .notice-modal-highlight::before,
  .notice-modal-highlight h2,
  .sakura-618-notice-effect,
  .sakura-618-notice-effect::before,
  .sakura-618-notice-effect h2 {
    animation: none !important;
  }
}
