.curated-links {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 40px 0;
}

.curated-links[v-cloak] { display: none; }

.cl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cl-tabs-wrapper {
  margin-bottom: 32px;
  position: relative;
}

.cl-tabs-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #fff);
  pointer-events: none;
  display: none;
}

.cl-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.cl-tab {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 500;
  white-space: nowrap;
}

.cl-tab:hover {
  background: #f0f0f0;
  border-color: #ccc;
  color: #555;
}

.cl-tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.cl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cl-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transform: translateY(12px);
  animation: clFadeIn 0.4s ease forwards;
}

.cl-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: #ddd;
}

.cl-card.hidden {
  display: none;
}

@keyframes clFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.cl-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cl-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 10px;
  color: #666;
}

.cl-card-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
}

.cl-card-icon svg {
  width: 20px;
  height: 20px;
}

.cl-card-meta {
  flex: 1;
  min-width: 0;
}

.cl-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cl-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-card-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.cl-badge-ai        { background: #f3e5f5; color: #7b1fa2; }
.cl-badge-tools     { background: #fce4ec; color: #c62828; }
.cl-badge-dev       { background: #e8f5e9; color: #2e7d32; }
.cl-badge-payment   { background: #fff8e1; color: #f57f17; }
.cl-badge-social    { background: #e3f2fd; color: #1565c0; }
.cl-badge-design    { background: #e8eaf6; color: #283593; }
.cl-badge-media     { background: #e0f2f1; color: #00695c; }
.cl-badge-default   { background: #f5f5f5; color: #666; }

.cl-card-url {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-left: 52px;
}

.cl-loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.cl-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid #eee;
  border-top-color: #333;
  border-radius: 50%;
  animation: clSpin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes clSpin {
  to { transform: rotate(360deg); }
}

.cl-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.cl-empty svg {
  margin-bottom: 12px;
}

.cl-empty p {
  font-size: 14px;
  margin: 0;
}

.cl-card:nth-child(1)  { animation-delay: 0.00s; }
.cl-card:nth-child(2)  { animation-delay: 0.05s; }
.cl-card:nth-child(3)  { animation-delay: 0.10s; }
.cl-card:nth-child(4)  { animation-delay: 0.15s; }
.cl-card:nth-child(5)  { animation-delay: 0.20s; }
.cl-card:nth-child(6)  { animation-delay: 0.25s; }
.cl-card:nth-child(7)  { animation-delay: 0.30s; }
.cl-card:nth-child(8)  { animation-delay: 0.35s; }

/* 平板 */
@media (max-width: 1024px) {
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 手机 */
@media (max-width: 640px) {
  .curated-links { padding: 24px 0; }
  .cl-container { padding: 0 16px; }
  .cl-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cl-tabs-wrapper::after {
    display: block;
  }
  .cl-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-right: 20px;
  }
  .cl-tab {
    padding: 6px 16px;
    font-size: 13px;
  }
  .cl-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cl-card {
    padding: 16px;
    border-radius: 12px;
  }
  .cl-card-icon {
    width: 36px;
    height: 36px;
  }
  .cl-card-icon img {
    width: 20px;
    height: 20px;
  }
  .cl-card-title {
    font-size: 14px;
  }
  .cl-card-desc {
    margin-left: 48px;
    font-size: 12px;
  }
}
