/* 18+ age verification popup — 对齐源站 xiguaai 酒红弹层（不依赖旧站 CSS 变量） */

body.age-pop-open {
  overflow: hidden;
}

.age-pop {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.age-pop--open {
  display: flex;
}

.age-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.age-pop__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.age-pop__panel {
  width: 440px;
  max-width: 100%;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid #4b464e;
  background-color: #140000;
  background-image:
    radial-gradient(circle 280px at 88% 12%, rgba(255, 28, 28, 0.2), rgba(255, 28, 28, 0) 70%),
    radial-gradient(ellipse 220px 280px at 8% 88%, rgba(255, 28, 28, 0.12), rgba(255, 28, 28, 0) 70%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.age-pop__logo {
  width: auto;
  height: 44px;
  display: block;
  object-fit: contain;
}

.age-pop__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.age-pop__title {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  line-height: 32px;
  text-align: center;
  text-wrap: balance;
}

.age-pop__desc {
  margin: 0;
  width: 100%;
  color: #e9e5e8;
  font-size: 16px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 24px;
  text-align: justify;
  text-wrap: pretty;
}

.age-pop__actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.age-pop__btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0.5px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition-property: background-color, opacity, transform;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.age-pop__btn:active {
  transform: scale(0.96);
}

.age-pop__btn--enter {
  /* 与 #hgAuthModal 主按钮一致：源站酒红 */
  background-color: #fb3643;
  background-image: none;
  color: #ffffff;
}

.age-pop__btn--enter:hover {
  background-color: #e12433;
}

.age-pop__btn--exit {
  min-height: 46px;
  background-color: #211818;
  border: 1px solid #524040;
  color: #e9e5e8;
}

.age-pop__btn--exit:hover {
  background-color: #2a1f1f;
  opacity: 1;
}

.age-pop__close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #4b464e;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-property: background-color, opacity;
  transition-duration: 160ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.age-pop__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.age-pop__close:active {
  transform: scale(0.96);
}

.age-pop__close-icon {
  display: block;
}

@media (max-width: 768px) {
  .age-pop__inner {
    gap: 36px;
  }

  .age-pop__panel {
    width: min(300px, calc(100vw - 32px));
    padding: 24px 20px;
    border-radius: 20px;
    gap: 18px;
  }

  .age-pop__content {
    gap: 24px;
  }

  .age-pop__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
  }

  .age-pop__desc {
    font-size: 14px;
    line-height: 20px;
  }

  .age-pop__actions {
    gap: 12px;
    align-items: stretch;
  }

  .age-pop__btn {
    padding: 13px 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .age-pop__btn--exit {
    min-height: 0;
  }
}
