/* ===== 进站弹窗 ===== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 7, 4, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.popup.open {
  opacity: 1;
  pointer-events: auto;
}

.popup__card {
  position: relative;
  width: min(100%, 380px);
  padding: 40px 28px 30px;
  text-align: center;
  border: 1px solid var(--gold-dim);
  border-radius: 8px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(217, 168, 78, 0.1) 0%, rgba(217, 168, 78, 0) 60%),
    linear-gradient(180deg, var(--ink-3) 0%, var(--ink) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(217, 168, 78, 0.18);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.popup.open .popup__card {
  transform: none;
}

/* 金边角饰 */
.popup__card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 5px;
  pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 18px 1.5px,
    linear-gradient(var(--gold), var(--gold)) top left / 1.5px 18px,
    linear-gradient(var(--gold), var(--gold)) top right / 18px 1.5px,
    linear-gradient(var(--gold), var(--gold)) top right / 1.5px 18px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 18px 1.5px,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1.5px 18px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 18px 1.5px,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1.5px 18px;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--paper-dim);
  transition: color 0.2s ease;
}
.popup__close svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .popup__close:hover { color: var(--gold); }
}

.popup__seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--brush);
  font-size: 30px;
  color: var(--gold);
  background: rgba(20, 14, 8, 0.5);
  box-shadow: 0 0 24px rgba(217, 168, 78, 0.25);
}

.popup__eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}

.popup__title {
  font-size: clamp(21px, 6vw, 25px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.popup__title em {
  font-style: normal;
  color: var(--gold-bright);
}

.popup__body {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--paper-dim);
  margin-bottom: 26px;
}
.popup__body .free-mark {
  font-size: 13px;
  padding: 3px 6px;
}

.popup__cta {
  width: 100%;
  font-size: 16px;
  padding: 15px 20px;
}

.popup__dismiss {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 10px;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--paper-dim);
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color 0.2s ease;
}
@media (hover: hover) {
  .popup__dismiss:hover { color: var(--gold); }
}

/* 窄屏排版收紧（尤其英文长词，避免按钮折行、字距过松） */
@media (max-width: 360px) {
  .popup__card { padding: 34px 18px 26px; }
  .popup__eyebrow { letter-spacing: 0.16em; }
  .popup__title { font-size: 19px; line-height: 1.45; }
  .popup__body { font-size: 13.5px; }
  .popup__cta { font-size: 14.5px; letter-spacing: 0.03em; padding: 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .popup, .popup__card { transition: opacity 0.2s ease; }
  .popup__card { transform: none; }
}
