
/* 文章模态窗口样式 */
.article-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.article-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.article-modal-content {
  background-color: var(--card-background-color, #ffffff);
  border-radius: 8px;
  width: 95%;
  max-width: 1400px;
  height: 90vh;
  position: relative;
  margin-top: 3vh;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color, #333);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.article-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.article-modal-body {
  flex: 1;
  overflow: hidden;
}

.article-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .article-modal-content {
    width: 98%;
    height: 95vh;
    margin-top: 2.5vh;
  }

  .article-modal-title {
    font-size: 1.2rem;
  }
}

/* 暗色模式适配 */
.dark-mode .article-modal {
  background-color: rgba(0, 0, 0, 0.9);
}

.dark-mode .article-modal-content {
  background-color: var(--dark-card-bg, #1e1e1e);
}

.dark-mode .article-modal-header {
  border-bottom: 1px solid #333;
}

.dark-mode .article-modal-title {
  color: var(--dark-text-color, #eee);
}

.dark-mode .article-modal-close {
  color: var(--dark-text-color, #eee);
}

.dark-mode .article-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
