/* Masonry 瀑布流容器 */
.masonry-container {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  /* 添加以下屬性 */
  position: relative;
  width: 100%;
}

/* 卡片本體 */
.result-card-3d {
  width: 320px;
  min-width: 0;
  min-height: 380px;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  position: relative;
  transition: box-shadow 0.3s;
  margin-bottom: 1.5rem;
  margin-left: 10px;  /* 添加左右間距 */
  margin-right: 10px; /* 添加左右間距 */
  cursor: pointer;
}

.doc-type-pdf { background: #f87171; color: #fff; }
.doc-type-word { background: #2563eb; color: #fff; }
.doc-type-excel { background: #22c55e; color: #fff; }

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 文件類型標籤樣式 */
.doc-type-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 其他樣式（可根據需要擴充） */
.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
