/* Fufolio 主页 — 页面样式（自 Claude Design 设计稿移植） */

html, body { margin: 0; background: var(--color-bg); }
body { font-family: "Noto Serif SC", var(--font-body), serif; overflow-x: hidden; }
a { color: var(--color-accent-300); text-decoration: none; }
a:hover { color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }

/* 「回纸鹤」返回按钮 */
.back-btn {
  background: transparent; border: 0; padding: 0;
  font-family: inherit; font-size: 12px;
  color: rgba(11,28,44,0.7); cursor: pointer; white-space: nowrap;
}
.back-btn:hover { color: #0b1c2c; }

/* 右上角铃声开关 */
.mute-btn {
  position: absolute; top: var(--space-6, 24px); right: var(--space-6, 24px);
  z-index: 5; pointer-events: auto;
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(11,28,44,0.24);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
  font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(11,28,44,0.7); cursor: pointer;
}
.mute-btn:hover { border-color: rgba(11,28,44,0.5); color: #0b1c2c; }

/* 右下角社交账号：hover 出账号名，点击复制 */
.social {
  position: relative; display: flex; align-items: center; gap: 7px;
  background: transparent; border: 0; padding: 0;
  font-family: inherit; font-size: 12px; line-height: 1;
  color: rgba(11,28,44,0.55); cursor: pointer; transition: color .3s ease;
}
.social:hover, .social:focus-visible { color: #a86a38; }
.social[data-soon] { cursor: default; }
.social-tip {
  position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(3px);
  display: flex; align-items: baseline; gap: 7px; white-space: nowrap;
  padding: 5px 9px; border-radius: 3px;
  background: rgba(255,255,255,0.72); border: 1px solid rgba(11,28,44,0.14);
  box-shadow: 0 4px 14px rgba(11,28,44,0.1); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
}
.social:hover .social-tip, .social:focus-visible .social-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.social-tip b { font-weight: 400; font-size: 12px; color: #0b1c2c; }
.social-tip i { font-style: normal; font-size: 10px; letter-spacing: 0.04em; color: rgba(11,28,44,0.42); }

/* poplens 列表行 */
.plist-row:hover { background: rgba(255,255,255,0.32); }

/* 写作栏目：文章列表卡片（正文在独立页 /writing/<slug>/） */
[data-writing-list] { display: flex; flex-direction: column; gap: 18px; margin-top: 44px; }
.wr-item {
  display: block; padding: 26px 28px; border-radius: 4px; text-decoration: none;
  background: #f8f1fa; box-shadow: 0 10px 30px rgba(11,28,44,0.1);
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', STHeiti, sans-serif;
  color: #1a1918; transition: transform .25s ease, box-shadow .25s ease;
}
.wr-item:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11,28,44,0.16); color: #1a1918; }
.wr-item-kicker { margin: 0; font-size: 11px; letter-spacing: 0.12em; color: #76598d; }
.wr-item-title {
  margin: 10px 0 0; font-family: Georgia, 'Times New Roman', STSong, serif;
  font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: 0.02em; color: #1a1918;
}
.wr-item-dek { margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: rgba(26,25,24,0.7); }
.wr-item-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin: 16px 0 0; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.12em; color: #a68ab5;
}
.wr-item-go { color: #76598d; }
.wr-item:hover .wr-item-go { color: #4d356b; }

/* 播客：列表 / 单集详情 / 迷你播放器 */
.pod-intro { margin: 16px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.9; color: rgba(11,28,44,0.7); }
.pod-mid { min-width: 0; }
.pod-open { font-size: 12px; color: rgba(11,28,44,0.45); white-space: nowrap; }
.pod-row { cursor: pointer; transition: background .25s ease; }
.pod-row:hover { background: rgba(255,255,255,0.3); }
.pod-row:hover .pod-open { color: #0b1c2c; }

.pod-back {
  margin-top: 26px; background: transparent; border: 0; padding: 0;
  font-family: inherit; font-size: 13px; color: rgba(11,28,44,0.7); cursor: pointer;
}
.pod-back:hover { color: #0b1c2c; }
.ep-head { display: flex; gap: 22px; align-items: flex-start; margin-top: 22px; }
.ep-cover { width: 128px; height: 128px; flex: none; border-radius: 6px; object-fit: cover; box-shadow: 0 10px 30px rgba(11,28,44,0.18); }
.ep-headinfo { min-width: 0; }
.ep-title { margin: 0; font-family: inherit; font-size: 23px; font-weight: 400; line-height: 1.5; color: #0b1c2c; letter-spacing: 0; }
.ep-meta { margin: 8px 0 0; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.12em; color: rgba(11,28,44,0.5); }
.ep-headinfo .pod-ext { display: inline-block; margin-top: 12px; font-size: 13px; }

.ep-player {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px; padding: 16px 18px;
  background: rgba(255,255,255,0.34); border: 1px solid rgba(11,28,44,0.14); border-radius: 14px;
}
.ep-btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(11,28,44,0.32); background: transparent; color: #0b1c2c;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, opacity .2s ease;
}
.ep-btn:hover:not(:disabled) { background: rgba(255,255,255,0.55); }
.ep-btn:disabled { opacity: 0.32; cursor: default; }
.ep-btn-main { width: 46px; height: 46px; background: #0b1c2c; color: #cfe6f0; border-color: #0b1c2c; }
.ep-btn-main:hover:not(:disabled) { background: #16324c; }
.ep-prog { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 180px; cursor: pointer; }

.ep-tl { margin-top: 34px; }
.ep-h { margin: 0 0 10px; font-family: var(--font-heading); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; color: rgba(11,28,44,0.5); text-transform: uppercase; }
.tl-row {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left;
  background: transparent; border: 0; border-top: 1px solid rgba(11,28,44,0.12);
  padding: 9px 6px; font-family: inherit; font-size: 14px; line-height: 1.6;
  color: rgba(11,28,44,0.82); cursor: pointer; transition: background .2s ease;
}
.tl-row:hover { background: rgba(255,255,255,0.36); color: #0b1c2c; }
.tl-row.on { background: rgba(255,255,255,0.5); color: #0b1c2c; }
.tl-row.on .tl-t { color: #0b1c2c; font-weight: 500; }
.tl-t { flex: none; width: 56px; font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.06em; color: rgba(11,28,44,0.5); }
.tl-label { min-width: 0; }

.ep-notes { margin-top: 36px; font-size: 15px; line-height: 1.95; color: rgba(11,28,44,0.82); }
.ep-notes h2, .ep-notes h3, .ep-notes h4 { margin: 30px 0 10px; font-family: inherit; font-size: 17px; font-weight: 500; line-height: 1.5; color: #0b1c2c; letter-spacing: 0; }
.ep-notes p { margin: 0 0 1.1em; }
.ep-notes ul, .ep-notes ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.ep-notes li { margin: 0 0 .4em; }
.ep-notes blockquote { margin: 1.2em 0; padding: 2px 0 2px 16px; border-left: 2px solid rgba(11,28,44,0.28); color: rgba(11,28,44,0.7); }
.ep-notes img { margin: 1.2em 0; border-radius: 4px; }
.ep-notes a { color: #0b1c2c; text-decoration: underline; text-underline-offset: 3px; }
.ep-notes .sn-ts {
  font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.04em;
  color: #0b1c2c; text-decoration: none; border-bottom: 1px dashed rgba(11,28,44,0.4);
  cursor: pointer; padding-bottom: 1px;
}
.ep-notes .sn-ts:hover { border-bottom-style: solid; }

/* 迷你播放器：开播后常驻，跨栏目不中断 */
.mini {
  position: fixed; right: 16px; bottom: 56px; z-index: 20;
  display: none; align-items: center; gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.62); border: 1px solid rgba(11,28,44,0.18);
  box-shadow: 0 10px 30px rgba(11,28,44,0.16); backdrop-filter: blur(10px);
  font-family: "Noto Serif SC", var(--font-body), serif;
}
.mini.on { display: flex; }
.mini-info { min-width: 0; }
.mini-title {
  display: block; max-width: 100%; background: transparent; border: 0; padding: 0;
  font-family: inherit; font-size: 13px; line-height: 1.4; color: #0b1c2c; cursor: pointer;
  text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini-now {
  margin: 2px 0 0; font-family: var(--font-heading); font-size: 10px; letter-spacing: 0.06em;
  color: rgba(11,28,44,0.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.mini-btn {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(11,28,44,0.28); background: transparent; color: #0b1c2c;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, opacity .2s ease;
}
.mini-btn:hover:not(:disabled) { background: rgba(255,255,255,0.7); }
.mini-btn:disabled { opacity: 0.3; cursor: default; }
.mini-btn:first-child { background: #0b1c2c; color: #cfe6f0; border-color: #0b1c2c; }
.mini-btn:first-child:hover { background: #16324c; }
@media (max-width: 600px) {
  .mini { left: 12px; right: 12px; bottom: 64px; max-width: none; }
  .ep-head { gap: 16px; }
  .ep-cover { width: 92px; height: 92px; }
  .ep-title { font-size: 20px; }
}

.pod-sub {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  border: 1px solid rgba(11,28,44,0.4); border-radius: 999px; padding: 8px 18px;
  font-size: 13px; color: #0b1c2c; text-decoration: none; transition: background .25s ease;
}
.pod-sub:hover { background: rgba(255,255,255,0.4); color: #0b1c2c; }
.pod-list { display: flex; flex-direction: column; margin-top: 40px; border-bottom: 1px solid rgba(11,28,44,0.16); }
.pod-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px;
  align-items: center; padding: 18px 6px; border-top: 1px solid rgba(11,28,44,0.16);
  position: relative; overflow: hidden;
}
/* 单集封面：双色调放大印在列表条背景上（低饱和 + 透明度，左侧渐隐保证标题可读） */
.pod-row::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--ep-bg, none);
  background-size: cover; background-position: center 30%;
  filter: url(#ep-duotone);
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,1) 58%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(0,0,0,1) 58%);
  transition: opacity .25s ease;
}
.pod-row:hover::before { opacity: 0.24; }
.pod-row > * { position: relative; z-index: 1; }
.pod-play {
  width: 40px; height: 40px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1px solid rgba(11,28,44,0.4); background: transparent; color: #0b1c2c;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.pod-play:hover { background: rgba(255,255,255,0.4); border-color: rgba(11,28,44,0.7); }
.pod-row.playing .pod-play { background: #0b1c2c; color: #cfe6f0; border-color: #0b1c2c; }
.pod-title { margin: 0; font-size: 16px; line-height: 1.6; color: #0b1c2c; }
.pod-desc { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: rgba(11,28,44,0.6); }
.pod-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pod-meta { font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.1em; color: rgba(11,28,44,0.5); white-space: nowrap; }
.pod-ext { font-size: 12px; color: rgba(11,28,44,0.5); text-decoration: none; white-space: nowrap; }
.pod-ext:hover { color: #a86a38; }
.pod-progress { grid-column: 2 / 4; display: none; align-items: center; gap: 10px; cursor: pointer; padding: 2px 0 4px; }
.pod-row.playing .pod-progress { display: flex; }
.pod-bar { flex: 1; height: 3px; background: rgba(11,28,44,0.15); border-radius: 2px; position: relative; }
.pod-bar-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0%; background: #0b1c2c; border-radius: 2px; }
.pod-time { font-family: var(--font-heading); font-size: 10px; letter-spacing: 0.08em; color: rgba(11,28,44,0.55); white-space: nowrap; }
@media (max-width: 600px) {
  .pod-row { grid-template-columns: auto 1fr; }
  .pod-side { grid-column: 2; flex-direction: row; align-items: center; gap: 12px; }
  .pod-progress { grid-column: 1 / 3; }
}

/* 联络页「寄出」按钮 */
.send-btn {
  align-self: flex-start; background: transparent;
  border: 1px solid rgba(11,28,44,0.45); border-radius: 999px;
  padding: 9px 20px; font-family: inherit; font-size: 13px;
  color: #0b1c2c; cursor: pointer;
}
.send-btn:hover { background: rgba(255,255,255,0.4); }
