

/* ---------- Base Typography ---------- */
/* 中文衬线 / 英文 serif */
/* 中文优先系统字体，Noto Serif SC 作为 fallback，英文 fallback Georgia/serif */
/* 中文无衬线 / 英文 sans-serif */
/* 中文优先系统字体（苹方/微软雅黑），Noto Sans SC fallback，英文现代 sans-serif，最后 system-ui */
/* 等宽字体 / code */
/* 可选强调字体（标题、LOGO 等） */

:root {
   
  --serif: "STSong", "Songti SC", "Noto Serif SC", "Georgia", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Inter", "Helvetica Neue", system-ui, sans-serif;

  --mono: "SFMono-Regular", "Menlo", "Consolas", "Courier New", monospace;
  --display: "Fira Sans", "Helvetica Neue", system-ui, sans-serif;

  --text-main: #222;
  --text-subtle: #555;

  --bg: #efeae5;
  --bg-soft: #efeae5;

  --accent-bg: #c8b8a679;

  --link-button-bg:#C8B8A6;
  --link-button-text:#5A4A3C;
  --link-button-hover:#cacaa2;


  --max-width: 900px;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text-main);
  line-height: 1.75;
}


/* ---------- Navigation ---------- */

.top-nav {
 /* margin: 0 auto;
  max-width: var(--max-width); 导航条与main等宽 貌似也不是很好*/
  padding: 1.2rem 1.6rem;
  background: var(--bg-soft);
  border-bottom: 1px solid #ddd;
  
}

.top-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: #b40707;
  font-weight: 600;
  font-family: var(--sans);
}


/* ---------- Main Layout ---------- */

.episode {
  max-width: var(--max-width);
  margin: auto;
  padding: 2rem 1.6rem 4rem;
}


/* ---------- Headings ---------- */

h1 {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02rem;
}

h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05rem; 
}

h3 {
  font-size: 1rem;            /* ← 与正文一致 */
  font-weight: 600;
  background: var(--accent-bg); /* ← 你要求的显色背景 */
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03rem;   /* 字间距只用于标题 而非正文 chatGPT这个笨蛋 */
}

h4 {
  font-size: 1rem;            
  font-weight: 600;

  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  display: block;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05rem;   
}

h5 {
  font-size: 1.2rem;            
  font-weight: 600;

  border-radius: 4px;
  display: block;
  margin-top: 0.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02rem;   
}


.footnotes {
    
      font-size: 0.9em;
    }


/* - Paragraph-*/
/* 中文段落 */
p::first-letter {
  font-size: 1.3rem;}

p{
  margin:0%;
  padding-left: 0.5rem;
}

p.cn {
  font-size: 1rem;               
  line-height: 1.7;              /* 中文行高 */           
  margin-bottom: 0.5rem;          /* 段落间距 */
  color: #333;
  
}

/* 英文段落 */
p.en {
  font-size: 0.95rem;
  line-height: 1.5;              /* 英文行高略小 */
  margin-bottom: 0.5rem;
  color: #333;
  font-style: oblique;
  
}

/* 段落内中英文混排 未用样式 字间距未必需要调整*/
span.cn {
  line-height: 1.7;
  letter-spacing: 0;
}

span.en {
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: 0;
  font-style: oblique;
}


/* ---------- Blocks ---------- */

.block {
  margin-bottom: 0.5rem;
}


/* ---------- Media ---------- */

.kv {
  width: 100%;
  border-radius: 8px;
  margin: 1rem 0 1.5rem;
}

.kv-detail {
  filter: brightness(1.1) contrast(1) saturate(30%);
  width: 100%;
  border-radius: 8px;
  margin: 1rem 0 1.5rem;
}


audio {
  width: 100%;
  max-width: var(--max-width);
  margin-bottom: 2rem;
  display: block;   /* 避免奇怪的 inline-gap */
}



/* ---------- Lists ---------- */


.timestamps,
.credits {
  list-style: none; /* 去掉默认圆点 */
  padding-left: 0.5rem;
  margin: 0%;
}

.timestamps li,
.credits li {
  padding: 0.1rem 0;
}


/* ---------- Timestamps ---------- */

  .timestamps button {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    margin-right: 6px;
    font-family: var(--mono);
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .timestamps button:hover {
    background: #e0e0e0;
  }


/* ---------- Transcript Link ---------- */

.transcript {
  background-color: var(--link-button-bg);
  display: block;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: var(--link-button-text);
  margin-left: auto;        /* 自动占满左边空间，把按钮推到右侧 */
  width: fit-content;       /* 宽度刚好包住内容 */
  margin-top: 2rem;
}

.transcript:hover {
  background: var(--link-button-hover);
}


/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding-top: 0,5rem;
  padding-bottom:3rem;
  color: #777;
  font-size: 0.8rem;
  border-top: 1px solid #ddd;
}
