/* 端午节首页弹窗 — 政务正式 + 端午氛围 */

.overlay--duanwu {
  z-index: 180;
  padding: 20px 16px;
  background: rgba(10, 30, 60, 0.52);
  backdrop-filter: blur(2px);
}

.overlay--duanwu.is-visible .modal--duanwu {
  animation: duanwu-pop-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes duanwu-pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal--duanwu {
  position: relative;
  width: min(360px, 100%);
  max-height: min(88vh, 640px);
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: linear-gradient(180deg, #f8fffb 0%, #fff 38%, #f5f9ff 100%);
  border: 1px solid rgba(45, 157, 107, 0.22);
  border-radius: 14px;
  box-shadow:
    0 16px 48px rgba(0, 40, 100, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.modal--duanwu__header {
  position: relative;
  padding: 18px 18px 14px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #1a7a52 0%, #2d9d6b 38%, #0052d9 100%);
}

.modal--duanwu__header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.5) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px);
  pointer-events: none;
}

.modal--duanwu__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q45 0 90 6 T180 6 T270 6 T360 6 V12 H0Z' fill='%23f8fffb'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.modal--duanwu__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 12px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.modal--duanwu__badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.modal--duanwu__title {
  position: relative;
  margin: 0 0 4px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.modal--duanwu__date {
  position: relative;
  margin: 0;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
}

/* 覆盖 components.css .modal p 的灰色字 */
.modal--duanwu__header p {
  color: #fff;
}

.modal--duanwu__body {
  padding: 14px 18px 0;
  overflow-y: auto;
  max-height: calc(min(88vh, 640px) - 170px);
  -webkit-overflow-scrolling: touch;
}

.modal--duanwu__greeting {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #1a3d2e;
  font-size: 14px;
  line-height: 1.65;
  background: linear-gradient(135deg, rgba(45, 157, 107, 0.08) 0%, rgba(201, 162, 39, 0.08) 100%);
  border-left: 3px solid var(--gov-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.modal--duanwu__greeting p {
  margin: 0;
  color: inherit;
}

.modal--duanwu__greeting p + p {
  margin-top: 8px;
}

.modal--duanwu__section {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(0, 82, 217, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 52, 120, 0.04);
}

.modal--duanwu__section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--gov-blue-deep);
  font-size: 14px;
  font-weight: 800;
}

.modal--duanwu__section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gov-red), var(--gov-red-deep));
  border-radius: 6px;
  flex-shrink: 0;
}

.modal--duanwu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal--duanwu__list li {
  position: relative;
  padding-left: 14px;
  color: #1a2d4d;
  font-size: 13px;
  line-height: 1.62;
}

.modal--duanwu__list li + li {
  margin-top: 8px;
}

.modal--duanwu__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--gov-blue);
  border-radius: 50%;
}

.modal--duanwu__list strong {
  color: var(--gov-red);
  font-weight: 700;
}

.modal--duanwu__anticipate {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #1a2d4d;
  font-size: 13px;
  line-height: 1.65;
  background: linear-gradient(135deg, #eef4ff 0%, #fff8e6 100%);
  border: 1px dashed rgba(201, 162, 39, 0.45);
  border-radius: var(--radius-sm);
}

.modal--duanwu__anticipate p {
  margin: 0;
  color: inherit;
}

.modal--duanwu__slogan {
  margin: 0 0 14px;
  padding: 10px 12px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 82, 217, 0.06) 0%, rgba(196, 30, 34, 0.05) 100%);
  border-radius: var(--radius-sm);
}

.modal--duanwu__slogan-main {
  margin: 0 0 4px;
  color: var(--gov-blue-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.modal--duanwu__slogan-sub {
  margin: 0;
  color: var(--gov-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal--duanwu__footer {
  padding: 0 18px 18px;
}

.modal--duanwu__btn {
  width: 100%;
  min-height: 48px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #2d9d6b 0%, #1a7a52 45%, var(--gov-blue) 100%);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(45, 157, 107, 0.28);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal--duanwu__btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(45, 157, 107, 0.22);
}

.modal--duanwu__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 22px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
}

.modal--duanwu__close:hover {
  background: rgba(0, 0, 0, 0.2);
}
