/* course-paywall.css — 课程付费解锁样式（风格对齐讲堂页米色基调） */
section.sec.paid-locked { position: relative; max-height: 120px; overflow: hidden; }
section.sec.paid-locked::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 100px;
  background: linear-gradient(transparent, #fff 90%); pointer-events: none;
}
section.sec.paid-open { max-height: none; }
section.sec.paid-open::after { display: none; }

.paywall-teaser {
  margin: 36px auto; max-width: 680px; padding: 30px 26px; text-align: center;
  background: #faf6ef; border: 1px solid #e6dcc8; border-radius: 12px;
}
.paywall-teaser-inner p { margin: 0 0 16px; color: #6b5d43; font-size: 15px; line-height: 1.9; }
.paywall-teaser-btn, .video-locked-btn {
  padding: 12px 34px; font-size: 16px; color: #fff; background: #c0392b;
  border: none; border-radius: 8px; cursor: pointer; letter-spacing: 2px;
}
.paywall-teaser-btn:hover, .video-locked-btn:hover { background: #a93226; }

.video-locked-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 5; }
.video-locked {
  background: rgba(20, 16, 8, .78); color: #fff; padding: 20px 30px; border-radius: 12px;
  font-size: 15px; text-align: center; line-height: 2;
}
.video-locked b { color: #ffd27a; font-size: 18px; }
.video-locked-btn { display: block; margin: 8px auto 0; font-size: 14px; padding: 8px 24px; }

.paywall-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.paywall-modal { position: relative; width: 380px; max-width: 94vw; max-height: 92vh; overflow: auto; background: #fff; border-radius: 14px; padding: 28px 26px 18px; text-align: center; }
.paywall-close { position: absolute; top: 8px; right: 14px; border: none; background: none; font-size: 24px; color: #999; cursor: pointer; }
.paywall-modal h3 { margin: 0 0 6px; font-size: 19px; color: #333; }
.paywall-price { margin: 0 0 12px; color: #666; font-size: 14px; }
.paywall-price b { color: #c0392b; font-size: 26px; }
.paywall-qrbox img { width: 210px; height: 210px; object-fit: contain; }
.paywall-qrbox p { margin: 4px 0 12px; font-size: 13px; color: #555; }
.paywall-steps { text-align: left; font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 14px; }
.paywall-keyrow { display: flex; gap: 8px; }
.paywall-key { flex: 1; padding: 10px 12px; font-size: 15px; letter-spacing: 1px; border: 1px solid #ddd; border-radius: 8px; outline: none; }
.paywall-key:focus { border-color: #c0392b; }
.paywall-btn { padding: 10px 22px; font-size: 15px; color: #fff; background: #c0392b; border: none; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.paywall-btn:disabled { background: #bbb; }
.paywall-msg { min-height: 20px; margin: 10px 0 2px; font-size: 13px; }
.paywall-msg.err { color: #c0392b; }
.paywall-foot { font-size: 12px; color: #999; margin: 6px 0 0; }
