/* ===== ThirdHub discover.css — 发现页 + 详情页 ===== */
.discover-search { padding: 0 16px 4px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border-radius: 999px;
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.search-box svg { color: var(--text-tertiary); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 14.5px; color: var(--text-primary); }
.search-box input::placeholder { color: var(--text-tertiary); }

.discover-section { margin-top: 20px; }
.section-head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 10px; font-weight: 700; font-size: 15.5px;
}
.section-head svg { width: 20px; height: 20px; color: var(--primary); }

.source-cards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.source-card {
  flex-shrink: 0; width: 128px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  text-align: left;
}

.result-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px;
}
@media (min-width: 600px) { .result-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .result-grid { grid-template-columns: repeat(6, 1fr); } }
.content-card { text-align: left; }
.content-cover {
  aspect-ratio: 3/4; border-radius: 12px; background: var(--bg-input);
  display: grid; place-items: center; overflow: hidden; color: var(--text-tertiary);
  box-shadow: 0 3px 10px rgba(0,0,0,.16); margin-bottom: 6px;
}
.content-cover img { width: 100%; height: 100%; object-fit: cover; }
.content-cover svg { width: 26px; height: 26px; }
.content-name { font-size: 13px; font-weight: 600; }
.content-sub { font-size: 11px; color: var(--text-tertiary); }

/* 详情页 */
.detail-hero { display: flex; gap: 16px; padding: 8px 18px 14px; }
.detail-cover {
  width: 110px; aspect-ratio: 3/4; border-radius: 12px; flex-shrink: 0;
  background: var(--bg-input); display: grid; place-items: center;
  overflow: hidden; color: var(--text-tertiary); box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover svg { width: 34px; height: 34px; }
.detail-meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.detail-title { font-size: 18px; font-weight: 800; line-height: 1.4; }
.detail-intro {
  margin: 0 18px 14px; font-size: 13.5px; line-height: 1.8; color: var(--text-secondary);
  background: var(--bg-card); padding: 12px 14px; border-radius: 12px; cursor: pointer;
}
.detail-actions { display: flex; gap: 8px; padding: 0 18px; }
.detail-chapters { display: flex; flex-direction: column; padding: 0 18px calc(20px + env(safe-area-inset-bottom)); }
.detail-ch {
  text-align: left; padding: 12px 6px; font-size: 14px;
  color: var(--text-secondary); border-bottom: 1px solid var(--border);
}
.detail-ch:active { color: var(--primary); }
