/* =============================================
   ✅ 外層遮罩彈窗容器（預設隱藏）
   ============================================= */
.pt-popup-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* ✅ 啟用彈窗時 */
.pt-popup-wrapper.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   ✅ 彈窗主體區塊
   ============================================= */
.pt-popup-inner {
  background: #111;
  color: gold;
  border: 2px solid gold;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* ✅ 關閉按鈕（右上角 X） */
.pt-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: gold;
  cursor: pointer;
  z-index: 1;
}

/* =============================================
   ✅ 內容樣式（滾動、標題、內文）
   ============================================= */
.pt-popup-content {
  max-height: 70vh;
  overflow-y: auto;
  padding: 30px 25px;
  scrollbar-width: thin;
  scrollbar-color: gold transparent;
}

/* Chrome 滾動條樣式 */
.pt-popup-content::-webkit-scrollbar {
  width: 6px;
}
.pt-popup-content::-webkit-scrollbar-thumb {
  background-color: gold;
  border-radius: 10px;
}
.pt-popup-content::-webkit-scrollbar-track {
  background-color: transparent;
}

/* 標題設定 */
.pt-popup-content h2 {
  font-size: 28px;
  color: gold;
  margin-bottom: 10px;
}

.pt-popup-content h3,
.pt-popup-content h4 {
  font-size: 20px;
  color: #ffc107;
  margin-top: 20px;
}

/* 內文設定 */
.pt-popup-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #ddd;
}

/* 清單設定 */
.pt-popup-content ol {
  margin-left: 1.2em;
  padding-left: 1em;
}

.pt-popup-content li {
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #eee;
}


@media screen and (max-width: 480px) {
  .pt-popup-inner {
    padding: 15px 15px;
  }

  .pt-popup-content {
    padding: 15px 10px;
  }

  .pt-popup-content h2 {
    font-size: 20px;
  }

  .pt-popup-content h3,
  .pt-popup-content h4 {
    font-size: 16px;
  }

  .pt-popup-content p {
    font-size: 13.5px;
  }

  .pt-popup-content li {
    font-size: 13px;
  }
}

/* ✅ 手機版彈窗內層左右留白 */
@media (max-width: 480px) {
  .pt-popup-inner {
    margin: 0 15px !important; /* 左右留白 */
    border-radius: 12px;
  }

  .pt-popup-content {
    padding: 20px 16px !important; /* 內容左右內距 */
  }