.p80-login-announcement,
.p80-wechat-layer {
  box-sizing: border-box;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.p80-login-announcement *,
.p80-wechat-layer * {
  box-sizing: border-box;
}

.p80-login-announcement {
  position: fixed;
  z-index: 2147483200;
  top: 0;
  right: 0;
  left: 0;
  padding: 12px;
  pointer-events: none;
  transform: translateY(-110%);
  transition: transform 400ms ease-out;
}

.p80-login-announcement.is-open {
  transform: translateY(0);
}

.p80-login-announcement__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 56px 20px 24px;
  overflow: hidden;
  color: #fff;
  pointer-events: auto;
  background: linear-gradient(125deg, #102a5c 0%, #2749a8 58%, #5f45c9 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 31, 74, 0.28);
}

.p80-login-announcement__content h2,
.p80-wechat-modal h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.p80-login-announcement__content p {
  max-width: 920px;
  margin: 10px 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.75;
}

.p80-login-announcement__content strong {
  display: block;
  color: #dce7ff;
  font-size: 14px;
  line-height: 1.6;
}

.p80-login-announcement__actions {
  display: flex;
  align-items: center;
}

.p80-login-announcement__close,
.p80-wechat-modal__close {
  position: absolute;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
}

.p80-login-announcement__close {
  top: 12px;
  right: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.p80-login-announcement__close:hover,
.p80-login-announcement__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.p80-login-notice-button {
  min-height: 42px;
  padding: 0 20px;
  color: #193b86;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 31, 74, 0.14);
}

.p80-login-notice-button:hover,
.p80-login-notice-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(136, 166, 255, 0.5);
  outline-offset: 2px;
}

.p80-wechat-layer {
  position: fixed;
  z-index: 2147483100;
  inset: 0;
  display: grid;
  padding: 16px;
  overflow: auto;
  place-items: center;
  opacity: 0;
  background: rgba(8, 20, 47, 0.56);
  backdrop-filter: blur(5px);
  transition: opacity 180ms ease-out;
}

.p80-wechat-layer.is-open {
  opacity: 1;
}

.p80-wechat-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  color: #17243e;
  background: #fff;
  border: 1px solid rgba(63, 91, 160, 0.15);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(8, 20, 47, 0.32);
  transform: translateY(14px) scale(0.985);
  transition: transform 200ms ease-out;
}

.p80-wechat-layer.is-open .p80-wechat-modal {
  transform: translateY(0) scale(1);
}

.p80-wechat-modal__close {
  z-index: 1;
  top: 14px;
  right: 14px;
  color: #294371;
  background: #edf2ff;
}

.p80-wechat-modal__close:hover,
.p80-wechat-modal__close:focus-visible {
  background: #dce6ff;
  outline: 2px solid #6c83d8;
  outline-offset: 2px;
}

.p80-wechat-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 32px 40px 18px;
  overflow-y: auto;
  text-align: center;
}

.p80-wechat-modal__eyebrow {
  display: inline-block;
  margin: 0 42px 10px;
  padding: 6px 12px;
  color: #4a43a7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #f0efff;
  border-radius: 999px;
}

.p80-wechat-modal__body p {
  margin: 14px 0 0;
  color: #56647d;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
}

.p80-wechat-qr-slot {
  display: grid;
  width: 232px;
  height: 232px;
  margin: 22px auto 14px;
  overflow: hidden;
  place-items: center;
  background: #f8faff;
  border: 2px dashed #b8c5e6;
  border-radius: 18px;
}

.p80-wechat-qr-slot.has-image {
  background: #fff;
  border-color: transparent;
  border-radius: 0;
}

.p80-wechat-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p80-wechat-qr-image[hidden] {
  display: none !important;
}

.p80-wechat-qr-placeholder {
  display: grid;
  gap: 8px;
  padding: 20px;
  color: #63728f;
  text-align: center;
}

.p80-wechat-qr-placeholder[hidden] {
  display: none !important;
}

.p80-wechat-qr-placeholder strong {
  color: #2f4778;
  font-size: 16px;
}

.p80-wechat-qr-placeholder span {
  font-size: 13px;
}

.p80-wechat-modal__contact {
  margin: 0 0 12px;
  color: #56647d;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.p80-wechat-modal__contact strong {
  color: #3f4ca5;
  font-weight: 800;
  white-space: nowrap;
}

.p80-wechat-modal__emphasis {
  display: block;
  color: #3f4ca5;
  font-size: 15px;
  line-height: 1.6;
}

.p80-wechat-modal__actions {
  flex: 0 0 auto;
  padding: 0 40px 32px;
}

.p80-login-notice-button--wide {
  width: 100%;
  color: #fff;
  background: linear-gradient(120deg, #254ea8, #674dcc);
}

@media (max-width: 720px) {
  .p80-login-announcement {
    padding: 8px;
  }

  .p80-login-announcement__card {
    grid-template-columns: 1fr;
    gap: 14px;
    max-height: calc(100vh - 16px);
    padding: 18px 46px 18px 18px;
    overflow: auto;
    border-radius: 16px;
  }

  .p80-login-announcement__content p {
    font-size: 13px;
    line-height: 1.65;
  }

  .p80-login-announcement__actions,
  .p80-login-notice-button {
    width: 100%;
  }

  .p80-wechat-modal {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    border-radius: 20px;
  }

  .p80-wechat-modal__body {
    padding: 28px 22px 16px;
  }

  .p80-wechat-modal__body p {
    font-size: 13px;
    line-height: 1.65;
  }

  .p80-wechat-qr-slot {
    width: min(194px, calc(100vw - 96px));
    height: min(194px, calc(100vw - 96px));
  }

  .p80-wechat-modal__actions {
    padding: 0 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p80-login-announcement,
  .p80-wechat-layer,
  .p80-wechat-modal {
    transition-duration: 1ms !important;
  }
}
