* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.header-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.header p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 30px; }

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 16px;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.back-link:hover { color: white; }

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 700; color: #38bdf8; }
.stat-label { font-size: 0.875rem; opacity: 0.7; margin-top: 4px; }

.search-section {
  max-width: 700px;
  margin: -25px auto 30px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.search-box {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.search-box:focus-within { border-color: #38bdf8; }
.search-box svg { width: 20px; height: 20px; color: #94a3b8; flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #1e293b;
  background: transparent;
}
.search-box input::placeholder { color: #94a3b8; }

.category-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}

.category-tab:hover { border-color: #38bdf8; color: #38bdf8; }
.category-tab.active { background: #0f172a; color: white; border-color: #0f172a; }

.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}

.filter-tab:hover { border-color: #38bdf8; color: #38bdf8; }
.filter-tab.active { background: #38bdf8; color: white; border-color: #38bdf8; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px 60px; }

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

.sites-grid.hidden { display: none; }

.site-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.site-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  opacity: 0;
  transition: opacity 0.3s;
}

.site-card:hover::after { opacity: 1; }

.site-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }

.site-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #475569;
  flex-shrink: 0;
  overflow: hidden;
}

.site-icon img { width: 100%; height: 100%; object-fit: cover; }

.site-info { flex: 1; min-width: 0; }

.site-name {
  font-size: 1.1rem; font-weight: 600; color: #0f172a;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}

.site-domain {
  font-size: 0.8rem;
  color: #94a3b8;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
}

.site-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
}

.stars { color: #f59e0b; letter-spacing: -1px; }
.rating-number { font-weight: 600; color: #0f172a; }
.reviews { color: #94a3b8; font-size: 0.8rem; }

.site-intro {
  font-size: 0.875rem; color: #64748b;
  line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.site-pricing {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.875rem;
}

.price-label { color: #94a3b8; margin-right: 4px; }
.price-value { color: #0f172a; font-weight: 600; }

.site-models { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.model-tag {
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  background: #f1f5f9; color: #475569;
  border: 1px solid #e2e8f0;
}

.model-tag.gpt { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.model-tag.claude { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.model-tag.gemini { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }
.model-tag.deepseek { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.model-tag.llama { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.model-tag.qwen { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.model-tag.wenxin { background: #fefce8; color: #854d0e; border-color: #fef08a; }
.model-tag.more { background: #f3f4f6; color: #6b7280; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.site-action-btn {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.visit-btn {
  background: #10b981;
  color: white;
}

.visit-btn:hover {
  background: #059669;
}

.site-link {
  padding: 4px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: white;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-link:hover { background: #1e3a5f; transform: translateX(2px); }

.site-meta { font-size: 0.75rem; color: #94a3b8; }

.loading {
  text-align: center; padding: 60px 20px;
  color: #94a3b8; font-size: 1rem;
}

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

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

.empty-state {
  text-align: center; padding: 80px 20px;
  color: #94a3b8;
}

.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.3; }

.footer {
  text-align: center; padding: 40px 20px;
  color: #94a3b8; font-size: 0.875rem;
  border-top: 1px solid #e2e8f0;
}

.footer a { color: #38bdf8; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.faq-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
  text-align: center;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.faq-item ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.faq-item ul li {
  padding: 4px 0 4px 20px;
  position: relative;
  font-size: 0.875rem;
  color: #64748b;
}

.faq-item ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #38bdf8;
}

.faq-item strong {
  color: #1e40af;
}

.content-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 16px;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.content-section ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.content-section ul li:last-child {
  border-bottom: none;
}

.content-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

/* Detail Page Styles */
.detail-container {
  max-width: 900px;
  padding-top: 40px;
}

.detail-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 40px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f1f5f9;
}

.detail-icon {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #475569;
  flex-shrink: 0;
  overflow: hidden;
}

.detail-icon img { width: 100%; height: 100%; object-fit: cover; }

.detail-title { flex: 1; }

.detail-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-badge {
  padding: 6px 16px;
  border-radius: 20px;
  background: #0f172a;
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.detail-section p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-pricing {
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 1.1rem;
}

.detail-pricing .price-value {
  font-weight: 700;
  color: #0f172a;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f1f5f9;
  border-radius: 10px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.detail-link:hover {
  background: #e2e8f0;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f1f5f9;
}

.btn-primary {
  padding: 14px 32px;
  border-radius: 12px;
  background: #0f172a;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1e3a5f;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 14px 32px;
  border-radius: 12px;
  background: white;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #0f172a;
  background: #f8fafc;
}

.related-section {
  margin-bottom: 40px;
}

.related-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.related-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #475569;
  flex-shrink: 0;
  overflow: hidden;
}

.related-icon img { width: 100%; height: 100%; object-fit: cover; }

.related-info { flex: 1; min-width: 0; }

.related-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.related-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .header h1 { font-size: 1.75rem; }
  .sites-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 20px; }
  .category-tabs, .filter-tabs { gap: 6px; }
  .category-tab, .filter-tab { padding: 6px 14px; font-size: 0.8rem; }
  .detail-card { padding: 24px; }
  .detail-header { flex-direction: column; gap: 16px; }
  .detail-icon { width: 64px; height: 64px; }
  .detail-actions { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr; }
}
