/* 科技望远镜 / tech.* 共享样式。
   build-podcast.mjs 在生成每期详情页时通过 <link rel="stylesheet" href="/tech/podcast.css"> 引用。
   部署到 COS 后经 coraki-site 的 SCF 301 重定向器暴露在 coraki.site/tech/podcast.css。 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.8;
  color: #333;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
header { margin-bottom: 2rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
header h1 a { color: #333; text-decoration: none; }
nav a { margin-right: 1rem; color: #666; text-decoration: none; }
nav a:hover { color: #000; }

.podcast-hero { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 2rem; padding: 1.5rem; background: #fafafa; border-radius: 8px; }
.podcast-hero img { width: 120px; height: 120px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.podcast-hero .info h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.podcast-hero .info p { color: #666; font-size: 0.95rem; margin-bottom: 0.5rem; }
.rss-box { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.rss-box code { background: #eef2f7; padding: 0.3rem 0.6rem; border-radius: 4px; font-size: 0.85rem; word-break: break-all; }
.rss-box button { padding: 0.3rem 0.8rem; border: 1px solid #1a73e8; background: #fff; color: #1a73e8; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.rss-box button:hover { background: #1a73e8; color: #fff; }
.platforms { color: #888; font-size: 0.85rem; margin-top: 0.5rem; }

.ep-list { list-style: none; }
.ep-list li { padding: 1.5rem 0; border-bottom: 1px solid #eee; }
.ep-list li:last-child { border-bottom: none; }
.ep-list .ep-header { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.ep-list .ep-num { font-family: Consolas, 'Courier New', monospace; color: #1a73e8; font-weight: 600; font-size: 0.95rem; }
.ep-list h2 a { color: #1a73e8; text-decoration: none; font-size: 1.25rem; }
.ep-list h2 a:hover { text-decoration: underline; }
.ep-list .ep-subtitle { color: #888; font-size: 0.95rem; margin-top: 0.25rem; }
.ep-list .ep-summary { color: #555; margin-top: 0.5rem; }
.ep-list .ep-footer { display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem; font-size: 0.85rem; color: #999; flex-wrap: wrap; }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 3px; font-size: 0.75rem; background: #e6f0fc; color: #1a73e8; }
.badge.draft { background: #fff4e5; color: #b56b00; }

.episode-detail .ep-badge { color: #1a73e8; font-size: 0.9rem; font-family: Consolas, 'Courier New', monospace; margin-bottom: 0.5rem; }
.episode-detail .subtitle { color: #888; font-size: 1.1rem; margin-bottom: 0.5rem; }
.episode-detail .meta { color: #999; margin-bottom: 2rem; }
.episode-detail .player { background: #fafafa; border-radius: 8px; padding: 1.5rem; margin: 1.5rem 0; }
.episode-detail .player audio { width: 100%; }
.episode-detail .player .player-hint { margin-top: 0.5rem; font-size: 0.85rem; }
.episode-detail .player .player-hint a { color: #1a73e8; }
.episode-detail .player.pending { color: #888; font-style: italic; }
.episode-detail section { margin-top: 2rem; }
.episode-detail section h2 { font-size: 1.3rem; margin-bottom: 0.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid #eee; }

.episode-detail .content h1, .episode-detail .content h2, .episode-detail .content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.episode-detail .content h3, .episode-detail .content h4 { color: #555; }
.episode-detail .content p { margin-bottom: 1rem; }
.episode-detail .content ul, .episode-detail .content ol { margin-bottom: 1rem; padding-left: 2rem; }
.episode-detail .content blockquote { border-left: 4px solid #ddd; padding-left: 1rem; color: #666; margin-bottom: 1rem; }
.episode-detail .content pre { background: #f6f8fa; padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; }
.episode-detail .content code { background: #f0f0f0; padding: 0.2em 0.4em; border-radius: 3px; font-size: 0.9em; font-family: Consolas, 'Courier New', monospace; }
.episode-detail .content pre code { background: none; padding: 0; font-size: 1em; }
.episode-detail .content table { border-collapse: collapse; margin: 1rem 0; width: 100%; }
.episode-detail .content th, .episode-detail .content td { border: 1px solid #eee; padding: 0.5rem 0.75rem; text-align: left; }
.episode-detail .content th { background: #fafafa; }
.episode-detail .content h2 { font-size: 1.3rem; }
.episode-detail .content h3 { font-size: 1.1rem; }

.back-link { display: inline-block; margin-bottom: 1.5rem; color: #1a73e8; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
