﻿/* ============================================
   文章弹窗 - 暗色主题
   ============================================ */

.meig-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.meig-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.meig-modal-container {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  height: 85vh;
  background: #0c0c1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1);
  overflow: hidden;
}
.meig-modal-overlay.active .meig-modal-container {
  transform: translateY(0);
}
.meig-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.meig-modal-header__title {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.meig-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}
.meig-modal-close:hover {
  background: rgba(192,0,0,0.3);
  color: #fff;
}
.meig-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}
.meig-modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #dc2626;
  border-radius: 50%;
  animation: meig-modal-spin 0.8s linear infinite;
}
@keyframes meig-modal-spin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
@media (max-width: 768px) {
  .meig-modal-container {
    width: 96vw;
    height: 90vh;
    border-radius: 8px;
  }
  .meig-modal-header {
    padding: 10px 14px;
  }
}