/* 公开方案列表页样式 */

.shared-plans-module {
  min-height: 100vh;
  padding: 80px 20px 40px;
  background: #ffffff;
}

[data-theme="dark"] .shared-plans-module {
  background: #000000 !important;
}

.shared-plans-container {
  max-width: 1200px;
  margin: 0 auto;
}

.shared-plans-header {
  text-align: center;
  margin-bottom: 40px;
}

.shared-plans-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin-bottom: 8px;
}

[data-theme="dark"] .shared-plans-title {
  color: #ffffff !important;
}

.shared-plans-subtitle {
  font-size: 15px;
  color: #6b6b6b;
}

[data-theme="dark"] .shared-plans-subtitle {
  color: #71717a !important;
}

.shared-plans-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.shared-filter-btn {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 100px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .shared-filter-btn {
  background: #1a1a1e !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

.shared-filter-btn.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

[data-theme="dark"] .shared-filter-btn.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.shared-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .shared-plans-grid {
    grid-template-columns: 1fr;
  }
}

.shared-plan-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

[data-theme="dark"] .shared-plan-card {
  background: #1a1a1e !important;
  border-color: #27272a !important;
}

.shared-plan-card:hover {
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

[data-theme="dark"] .shared-plan-card:hover {
  border-color: #3f3f46 !important;
}

.shared-plan-card-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shared-plan-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b6b6b;
  flex-shrink: 0;
}

[data-theme="dark"] .shared-plan-avatar {
  background: #27272a !important;
  color: #a1a1aa !important;
}

.shared-plan-user-info {
  flex: 1;
  min-width: 0;
}

.shared-plan-username {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

[data-theme="dark"] .shared-plan-username {
  color: #e4e4e7 !important;
}

.shared-plan-time {
  font-size: 11px;
  color: #8a8a8a;
}

[data-theme="dark"] .shared-plan-time {
  color: #71717a !important;
}

.shared-plan-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  background: #f0f0f0;
  color: #6b6b6b;
}

[data-theme="dark"] .shared-plan-badge {
  background: #27272a !important;
  color: #a1a1aa !important;
}

.shared-plan-media-preview {
  margin: 12px 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}

[data-theme="dark"] .shared-plan-media-preview {
  background: #27272a !important;
}

.shared-plan-media-preview img,
.shared-plan-media-preview video {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.shared-plan-card-body {
  padding: 16px 20px;
}

.shared-plan-scene {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .shared-plan-scene {
  color: #ffffff !important;
}

.shared-plan-pain {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 12px;
  line-height: 1.5;
}

[data-theme="dark"] .shared-plan-pain {
  color: #a1a1aa !important;
}

.shared-plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.shared-plan-tag {
  padding: 3px 10px;
  font-size: 11px;
  border-radius: 100px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  color: #6b6b6b;
}

[data-theme="dark"] .shared-plan-tag {
  background: #111113 !important;
  border-color: #27272a !important;
  color: #71717a !important;
}

.shared-plan-note {
  font-size: 12px;
  color: #8a8a8a;
  line-height: 1.5;
  margin-bottom: 12px;
}

[data-theme="dark"] .shared-plan-note {
  color: #71717a !important;
}

.shared-plan-card-footer {
  padding: 14px 20px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .shared-plan-card-footer {
  border-color: #27272a !important;
}

.shared-plan-price {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

[data-theme="dark"] .shared-plan-price {
  color: #ffffff !important;
}

.shared-plan-actions {
  display: flex;
  gap: 8px;
}

.shared-plan-like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 100px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  color: #6b6b6b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shared-plan-like-btn:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.shared-plan-like-btn.liked {
  border-color: #ef4444;
  background: #fef2f2;
  color: #ef4444;
}

[data-theme="dark"] .shared-plan-like-btn {
  background: #111113 !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .shared-plan-like-btn.liked {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.shared-plan-detail-btn {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 100px;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="dark"] .shared-plan-detail-btn {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

.shared-plans-empty {
  text-align: center;
  padding: 80px 20px;
  color: #8a8a8a;
}

.shared-plans-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.shared-plans-empty-text {
  font-size: 15px;
}

/* 加载动画 */
.shared-plans-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

.shared-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1a1a;
  margin: 0 4px;
  animation: sharedPulse 1.4s ease-in-out infinite;
}

.shared-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.shared-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sharedPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}
