/* ============================================
 * 文章迷雾解锁系统 — 样式
 *
 * 视觉风格：毛玻璃迷雾遮罩 + 底部倒计时/进度条
 * ============================================ */

/* ---- 迷雾遮罩容器 ---- */
.mist-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;

  /* 毛玻璃迷雾背景 */
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200, 180, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(150, 200, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(100, 50, 150, 0.08) 0%, transparent 50%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 12px;
  cursor: default;
  user-select: none;

  /* 迷雾波浪动画 */
  animation: mistPulse 6s ease-in-out infinite;
}

/* 迷雾内的文字 */
.mist-overlay .mist-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
  filter: grayscale(0.3);
}

.mist-overlay .mist-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--red-2, #ff7c7c);
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 82, 82, 0.3);
}

.mist-overlay .mist-subtitle {
  font-size: 14px;
  color: var(--highlight-comment, #999);
  text-align: center;
  max-width: 320px;
  line-height: 1.7;
}

.mist-overlay .mist-progress {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--highlight-foreground, #666);
}

.mist-overlay .mist-progress-bar {
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: var(--highlight-nav, #e6e6e6);
  overflow: hidden;
}

.mist-overlay .mist-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red-1, #ff5252), var(--red-2, #ff7c7c));
  transition: width 0.6s ease;
}

.mist-overlay .mist-countdown {
  margin-top: 12px;
  font-size: 13px;
  color: var(--highlight-comment, #999);
  font-variant-numeric: tabular-nums;
}

/* 倒计时数字卡片 */
.mist-overlay .cd-num {
  display: inline-block;
  min-width: 28px;
  padding: 2px 6px;
  margin: 0 1px;
  font-size: 16px;
  font-weight: 700;
  color: var(--red-1, #ff5252);
  background: rgba(255, 82, 82, 0.1);
  border-radius: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---- 禁阅锁特殊样式：红黑警告 ---- */
.mist-overlay[data-forbid="true"] {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 0, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(100, 0, 0, 0.1) 0%, transparent 50%) !important;
  border: 1px solid rgba(255, 0, 0, 0.2) !important;
}

.mist-overlay[data-forbid="true"] .mist-title {
  color: #d32f2f !important;
  text-shadow: 0 0 20px rgba(211, 47, 47, 0.4) !important;
}

/* 解锁状态 — 淡出迷雾 */
.mist-unlocked .mist-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, backdrop-filter 1.2s ease;
}

/* ---- 迷雾脉动 ---- */
@keyframes mistPulse {
  0%, 100% {
    background:
      radial-gradient(ellipse at 50% 40%, rgba(200, 180, 255, 0.15) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(150, 200, 255, 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 80%, rgba(100, 50, 150, 0.08) 0%, transparent 50%);
  }
  50% {
    background:
      radial-gradient(ellipse at 50% 30%, rgba(200, 180, 255, 0.2) 0%, transparent 55%),
      radial-gradient(ellipse at 70% 25%, rgba(150, 200, 255, 0.13) 0%, transparent 45%),
      radial-gradient(ellipse at 30% 75%, rgba(100, 50, 150, 0.1) 0%, transparent 50%);
  }
}

/* ---- 文章内容容器加相对定位，以便迷雾遮罩定位 ---- */
.article-inner {
  position: relative;
}
