/* ============================================================
   閱讀頁付費牆（WSJ 模式）— 注入 22 卷閱讀頁
   免費讀到前三章或 3000 字（取較長），之後漸隱＋付費卡片
   ============================================================ */

.paywall-zone { position: relative; }

.paywall-fade {
  position: relative;
  max-height: 460px;
  overflow: hidden;
}
.paywall-fade::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 320px;
  background: linear-gradient(to bottom, rgba(245, 241, 235, 0) 0%, #f5f1eb 88%);
  pointer-events: none;
}

.paywall-card {
  position: relative;
  max-width: 520px;
  margin: -120px auto 64px;
  padding: 34px 34px 28px;
  background: #ffffff;
  border: 1px solid #ede8df;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(60, 35, 20, .18);
  text-align: center;
  z-index: 5;
}
.paywall-card.hide { display: none; }

.paywall-eyebrow {
  margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: #7b3f2b;
}
.paywall-card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display, "Poppins", -apple-system, "PingFang TC", sans-serif);
  font-size: 24px; font-weight: 600; letter-spacing: .02em;
  color: #1c1c1e;
}
.paywall-desc {
  margin: 0 0 24px;
  font-size: 14px; line-height: 1.8;
  color: #636366;
}

.paywall-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.paywall-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 10px 16px;
  border: 1px solid #e0d9cf;
  border-radius: 16px;
  background: #faf8f5;
  font-family: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.paywall-opt:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(60, 35, 20, .12); border-color: #c9b9a8; }
.paywall-opt:focus-visible { outline: 2px solid #a0523c; outline-offset: 2px; }
.paywall-opt .plan-name { font-size: 13px; font-weight: 600; color: #1c1c1e; }
.paywall-opt .plan-price { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #1c1c1e; }
.paywall-opt .plan-note { font-size: 11.5px; color: #8e8e93; }
.paywall-opt.hot {
  background: #1c1c1e;
  border-color: #1c1c1e;
  box-shadow: 0 14px 34px rgba(28, 28, 30, .28);
}
.paywall-opt.hot .plan-name, .paywall-opt.hot .plan-price { color: #faf8f5; }
.paywall-opt.hot .plan-note { color: rgba(250, 248, 245, .6); }
.paywall-opt .hot-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 12px; border-radius: 999px;
  background: #a0523c; color: #fff;
  white-space: nowrap;
}

.paywall-skip {
  margin-top: 18px;
  background: none; border: none;
  font-size: 13px; color: #8e8e93;
  cursor: pointer;
  transition: color .2s ease;
}
.paywall-skip:hover { color: #1c1c1e; }

/* 目錄點擊付費章節時的卡片高亮 */
@keyframes pw-flash {
  0%   { box-shadow: 0 24px 60px rgba(60, 35, 20, .18); }
  45%  { box-shadow: 0 0 0 6px rgba(160, 82, 60, .4), 0 24px 60px rgba(60, 35, 20, .24); }
  100% { box-shadow: 0 24px 60px rgba(60, 35, 20, .18); }
}
.paywall-card.flash { animation: pw-flash 1.8s ease; }

.paywall-note {
  margin: 16px 0 0;
  font-size: 11.5px; color: #b5a898;
}

@media (max-width: 560px) {
  .paywall-options { grid-template-columns: 1fr; }
  .paywall-card { margin: -90px 14px 48px; padding: 28px 22px 24px; }
  .paywall-opt { flex-direction: row; justify-content: space-between; padding: 13px 16px; }
  .paywall-opt .plan-price { font-size: 19px; }
}
