/* ============================================================
   CROWN 周年庆欢迎弹窗
   ============================================================ */

body.crown-popup-open { overflow: hidden; }

/* ---------- 遮罩层：透明、不拦截点击 ---------- */
.crown-popup-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.crown-popup-mask.is-open { opacity: 1; visibility: visible; }

/* ---------- 弹窗卡片 ---------- */
.crown-popup {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 40px 34px 34px;
  border-radius: 18px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,197,49,.20) 0%, rgba(255,197,49,0) 62%),
    linear-gradient(160deg, #1A2C38 0%, #152633 52%, #0F212E 100%);
  border: 1px solid rgba(255,197,49,.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 24px 70px rgba(0,0,0,.72),
    0 0 90px rgba(255,197,49,.16);
  transform: translateY(26px) scale(.94);
  opacity: 0;
  transition: transform .38s cubic-bezier(.2,.9,.3,1.18), opacity .3s ease;
}
.crown-popup-mask.is-open .crown-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 顶部金色光晕 */
.crown-popup__glow {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 340px;
  height: 170px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,197,49,.48) 0%, rgba(255,197,49,0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

/* 关闭按钮 */
.crown-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #93A9B8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.crown-popup__close:hover {
  background: rgba(255,77,77,.18);
  color: #FF4D4D;
  transform: rotate(90deg);
}

/* ---------- 第一行：立体金色大字 ---------- */
.crown-popup__title {
  position: relative;
  margin: 0 0 14px;
  font-family: 'Orbitron', 'neue-haas-grotesk-display',
               'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 31px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #FFF8CE 0%, #FFE680 24%, #FFC531 58%, #FF9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(1px 1px 0 #8A4B00)
    drop-shadow(2px 2px 0 #7A3E00)
    drop-shadow(3px 3px 0 #5C2E00)
    drop-shadow(4px 5px 7px rgba(0,0,0,.70));
}

/* ---------- 第二行：立体渐变色中等字 ---------- */
.crown-popup__sub {
  position: relative;
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .3px;
  background: linear-gradient(92deg, #22D3EE 0%, #4DA3FF 42%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(1px 1px 0 rgba(0,60,90,.85))
    drop-shadow(2px 2px 0 rgba(0,40,70,.70))
    drop-shadow(0 4px 8px rgba(0,0,0,.60));
}

/* 金额：浮动的金色数字 */
.crown-popup__amount {
  display: inline-block;
  font-size: 1.34em;
  font-weight: 900;
  letter-spacing: .5px;
  background: linear-gradient(180deg, #FFF8CE 0%, #FFE680 40%, #FFC531 70%, #FF8A00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: crownFloat 1.9s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---------- 第三行：立体彩色小字 ---------- */
.crown-popup__desc {
  position: relative;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .4px;
  background: linear-gradient(92deg, #00E701 0%, #7CFF8A 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(1px 1px 0 rgba(0,80,10,.80))
    drop-shadow(2px 2px 0 rgba(0,50,8,.60));
}

/* ---------- 第四行：按钮感 CTA ---------- */
.crown-popup__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 16px 48px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  color: #3A2400;
  background: linear-gradient(180deg, #FFE680 0%, #FFC531 48%, #F5A100 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -3px 0 rgba(150,90,0,.50),
    0 6px 0 #9A5D00,
    0 10px 22px rgba(255,168,0,.42);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.crown-popup__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255,197,49,.55);
  animation: crownCtaGlow 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes crownCtaGlow {
  0%   { box-shadow: 0 0 0 0 rgba(255,197,49,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(255,197,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,197,49,0); }
}
.crown-popup__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -3px 0 rgba(150,90,0,.50),
    0 8px 0 #9A5D00,
    0 14px 26px rgba(255,168,0,.50);
}
.crown-popup__cta:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(150,90,0,.50),
    0 2px 0 #9A5D00,
    0 4px 10px rgba(255,168,0,.35);
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  .crown-popup { padding: 32px 22px 26px; border-radius: 14px; }
  .crown-popup__title { font-size: 23px; margin-bottom: 12px; }
  .crown-popup__sub   { font-size: 16px; margin-bottom: 10px; }
  .crown-popup__desc  { font-size: 13px; }
  .crown-popup__cta   { font-size: 18px; padding: 14px 34px; margin-top: 20px; }
}
@media (max-width: 480px) {
  .crown-popup-mask { padding: 14px; }
  .crown-popup__title { font-size: 21px; }
  .crown-popup__sub   { font-size: 15px; }
  .crown-popup__cta   { font-size: 17px; padding: 13px 28px; }
}
@media (max-width: 375px) {
  .crown-popup { padding: 28px 16px 22px; }
  .crown-popup__title { font-size: 19px; }
  .crown-popup__sub   { font-size: 13.5px; }
  .crown-popup__desc  { font-size: 12px; }
  .crown-popup__cta   { font-size: 15px; padding: 12px 20px; width: 100%; }
}