/* 通用主题卡片样式 - 用于在所有页面（主页、作者中心、管理页面）共享一致的卡片UI */

/* 卡片容器布局 */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
  width: 100%;
}

/* 主题卡片基础样式 */
.theme-card {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  width: 100%;
  height: auto;
  padding: 0.5rem 0.5rem 2.6rem 0.5rem;
  margin: 0;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
  transform-origin: center;
  z-index: 1;
}

/* 卡片光效 */
.theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 70% 30%, rgba(120, 180, 255, 0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 0;
  pointer-events: none;
}

/* 卡片悬停效果 */
.theme-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.theme-card:hover::before {
  opacity: 1;
}

/* 卡片缩略图区域 */
.theme-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: box-shadow 0.4s cubic-bezier(.68, -0.55, .27, 1.55);
  display: block;
}

.theme-card:hover .theme-thumb img {
  box-shadow: 0 6px 24px rgba(80, 180, 255, 0.16);
}

/* 主题状态标签 */
.theme-status {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(30, 35, 45, 0.8);
  color: white;
  padding: 2px 6px;
  font-size: 8px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* 状态样式 */
.theme-card.pending .theme-status {
  background: rgba(255, 180, 0, 0.9);
  color: #000;
}

.theme-card.approved .theme-status {
  background: rgba(0, 180, 80, 0.9);
  color: #fff;
}

.theme-card.rejected .theme-status {
  background: rgba(255, 60, 60, 0.9);
  color: #fff;
}

.theme-card.removed .theme-status {
  background: rgba(100, 100, 100, 0.9);
  color: #fff;
}

/* 卡片信息区域 */
.theme-info {
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.theme-info h3 {
  margin: 0 0 5px 0;
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.theme-info p {
  margin: 0 0 10px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  max-height: 2.5em;
  min-height: 2.5em;
}

/* 主题元数据 */
.theme-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
}

/* 操作按钮区域 */
.theme-actions {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 操作按钮样式 */
.btn-small {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-approve {
  background: rgba(0, 180, 80, 0.7);
  color: white;
}

.btn-approve:hover {
  background: rgba(0, 180, 80, 0.9);
}

.btn-reject {
  background: rgba(255, 60, 60, 0.7);
  color: white;
}

.btn-reject:hover {
  background: rgba(255, 60, 60, 0.9);
}

.btn-feature {
  background: rgba(255, 180, 0, 0.7);
  color: black;
}

.btn-feature:hover {
  background: rgba(255, 180, 0, 0.9);
}

/* 标签样式 */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.tag {
  font-size: 9px;
  background: rgba(80, 120, 255, 0.2);
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
}

/* 特征标记 */
.featured-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(45deg, #8e2de2, #4a00e0);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.theme-card.featured {
  border: 2px solid rgba(123, 78, 203, 0.3);
  box-shadow: 0 8px 24px rgba(103, 58, 183, 0.12);
}

/* 联合作者样式 */
.co-author-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  color: white;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  letter-spacing: 1.2px;
  user-select: none;
  pointer-events: none;
}

.theme-card.as-co-author::after {
  content: "合作";
  position: absolute;
  top: 6px;
  right: 10px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  color: white;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  letter-spacing: 1.2px;
  user-select: none;
  pointer-events: none;
}

/* 作者显示区域 */
.theme-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.theme-author {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 3px;
}

.theme-author.main-author {
  font-weight: bold;
  color: white;
}

.theme-author.co-author {
  color: rgba(255, 255, 255, 0.7);
}

.theme-author .author-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

/* 模态框内多作者样式 */
#modal-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.modal-author {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.modal-author.main-author {
  font-weight: bold;
  background: rgba(0, 120, 255, 0.2);
}

.modal-author .author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.author-verified-badge {
  display: inline-block;
  background: linear-gradient(45deg, #8e2de2, #4a00e0);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 5px;
  font-weight: normal;
}

/* 响应式样式 */
@media (max-width: 1600px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 992px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 576px) {
  .theme-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  
  .theme-info h3 {
    font-size: 0.8rem;
  }
  
  .theme-info p {
    font-size: 0.7rem;
    min-height: 2.2em;
    max-height: 2.2em;
  }
  
  .theme-actions {
    padding: 4px 6px;
  }
  
  .btn-small {
    font-size: 8px;
    padding: 2px 4px;
  }
} 