/* 基本样式 */
html {
    height: 100%; /* Ensure html takes full height */
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0; /* Remove body padding */
    display: flex; /* Use flexbox on body */
    flex-direction: column; /* Stack children vertically */
    min-height: 100%; /* Ensure body takes at least full viewport height */
}

.container {
    max-width: 700px; /* 限制内容宽度 */
    width: 100%; /* Allow container to shrink */
    margin: 0 auto; /* 水平居中 */
    padding: 20px; /* Add padding inside the container */
    box-sizing: border-box; /* Include padding in width calculation */

    /* Flexbox for container children (header, main, footer) */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow container to grow to fill body space */
}

/* 让 main 区域占据可用空间，把 footer 推到底部 */
main {
    flex-grow: 1;
}


/* 链接样式 */
a {
    color: #0077cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* 头部样式 */
header h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 2em;
}
header p, .meta {
    color: #666;
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 20px;
}

/* 列表页文章摘要 */
.episode-summary {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.episode-summary:last-child {
    border-bottom: none;
}
.episode-summary h2 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 1.4em;
}
.episode-summary h2 a {
    color: #333;
}
.episode-summary p {
    margin-bottom: 0;
    color: #444;
}

/* 文章页特定样式 */
.article-page .breadcrumb {
    margin-bottom: 15px;
}

/* 文字记录样式 */
.transcript h2 {
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.transcript p {
    margin-bottom: 1em;
}
.transcript strong {
    font-weight: 600;
}
.transcript .timestamp {
    color: #0077cc;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 5px;
    white-space: nowrap;
}
.transcript .timestamp:hover {
    text-decoration: underline;
}


/* 页脚 */
footer {
    margin-top: 40px; /* Keep some space above footer */
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85em;
    color: #888;
    /* Footer will be pushed down by main's flex-grow */
}