/* 隐藏内容「输入密码可见」（HidePassword.php）。颜色用额外CSS里的变量，黑夜模式自动适配 */

.content-hidden:has(.ytea-hide-cap),
.content-hidden:has(.ytea-unlocked) { height: auto !important; }

.entry-content .ytea-hide-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px !important;
  border: 1px dashed var(--sky, #5fa8dc);
  border-radius: 14px;
  background: var(--sky-soft, #e4effa) !important;
}
.entry-content .ytea-hide-cap .content-cap-title span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--deep, #1d4e89); }
.entry-content .ytea-hide-tip { margin-top: 6px; font-size: 13px; color: var(--ink-muted, #6b7c8f); }

.entry-content .ytea-hide-form { position: relative; display: flex; align-items: center; gap: 8px; }
.entry-content .ytea-hide-form input {
  width: 180px;
  height: 38px;
  padding: 0 14px !important;
  border: 1px solid var(--line, #dce7f2) !important;
  border-radius: 999px !important;
  background: var(--card, #fff) !important;
  color: var(--ink, #1c2b3a);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.entry-content .ytea-hide-form input:focus { border-color: var(--sky, #5fa8dc) !important; box-shadow: 0 0 0 3px rgba(95, 168, 220, .2); }
.entry-content .ytea-hide-form button {
  height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--deep, #1d4e89);
  cursor: pointer;
}
.entry-content .ytea-hide-form button:disabled { opacity: .6; cursor: default; }
.entry-content .ytea-hide-msg { position: absolute; top: calc(100% + 6px); left: 14px; font-size: 12px; color: #e5484d; white-space: nowrap; }
.entry-content .ytea-hide-form.is-error input { border-color: #e5484d !important; animation: ytea-hide-shake .4s; }
@keyframes ytea-hide-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.entry-content .content-show-roles.ytea-unlocked { padding: 6px 4px; animation: ytea-hide-in .4s ease; }
@keyframes ytea-hide-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .entry-content .ytea-hide-form.is-error input, .entry-content .content-show-roles.ytea-unlocked { animation: none; } }

@media (max-width: 768px) {
  .entry-content .ytea-hide-cap { padding: 18px 16px !important; }
  .entry-content .ytea-hide-form { width: 100%; padding-bottom: 14px; }
  .entry-content .ytea-hide-form input { flex: 1; width: auto; }
}
