/* 隐藏数据容器 */
.hidden-data {
  display: none;
}

/* 卡片画廊样式 */
.data-card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.data-card {
  position: relative;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  color: white !important;
  cursor: pointer;
  box-shadow: var(--card-box-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.data-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.data-card .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.data-card:hover .card-bg {
  transform: scale(1.1);
}

.data-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.data-card .card-content {
  position: relative;
  z-index: 2;
}

.data-card .card-content h3 {
  font-size: 1.8rem;
  margin: 0 0 5px 0;
}

.data-card .card-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- 模态窗口 (Lightbox) 样式 --- */

/* --- 全新的亚克力/玻璃拟态模态窗口样式 --- */

body.modal-open {
  overflow: hidden; /* 防止背景滚动 */
}

.data-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.data-modal.active {
  display: flex;
}

/* 覆盖层：现在只负责提供一个微妙的暗色背景，模糊效果移到窗口本身 */
.data-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* 轻微的背景变暗 */
  backdrop-filter: none; /* 关键：移除这里的模糊 */
  animation: fadeIn 0.3s ease;
}

/* 模态窗口容器：亚克力效果的核心 */
.data-modal .modal-container {
  position: relative;
  z-index: 1000;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  
  /* --- 亚克力效果核心代码 --- */
  background: rgba(35, 35, 35, 0.65); /* 1. 半透明的深色背景 */
  backdrop-filter: blur(25px);          /* 2. 背景模糊，数值越大越模糊 */
  -webkit-backdrop-filter: blur(25px);  /*    兼容 Safari 浏览器 */
  border-radius: 16px;                  /* 3. 更圆润的边角 */
  border: 1px solid rgba(255, 255, 255, 0.1); /* 4. 微妙的亮色边框，产生光泽感 */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); /* 5. 更柔和的阴影以增加深度 */
  
  animation: slideInUp 0.4s ease;
}

/* 头部样式：让文字颜色更亮以适应深色背景 */
.data-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 边框也用半透明亮色 */
}

.data-modal .modal-title {
  font-size: 1.5rem;
  margin: 0;
  color: #f0f0f0; /* 更亮的标题颜色 */
}

.data-modal .modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #e0e0e0; /* 更亮的关闭按钮颜色 */
  padding: 0 10px;
  transition: transform 0.2s ease;
}
.data-modal .modal-close:hover {
  transform: scale(1.1);
}

/* 内容区域 */
.data-modal .modal-body {
  padding: 25px;
  overflow-y: auto; /* 当表格很长时可以滚动 */
  color: var(--card-text-color-main); /* 确保内容文字颜色在深色背景下可读 */
}

.data-modal .modal-body table {
  width: 100%;
}
/* 优化表格在亚克力背景下的显示效果 */
.data-modal .modal-body th {
  color: #fff;
}
.data-modal .modal-body td {
  color: #ddd;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}