/**
 * 工具怪 Talen · 统一播客 H5 框架核心样式库 (podcast-theme.css)
 * 包含：现代瑞士网格排版、得到 App 级播放卡片、高保真矢量 SVG 响应式容器、暗黑侧边抽屉导航与悬浮胶囊
 * 版本: v2.0.0
 */
:root{
  --primary:#0B3868;
  --primary-light:#15508F;
  --accent:#B89076;
  --accent-light:#FAF6F0;
  --ink:#0F172A;
  --muted:#5A6B7F;
  --paper:#FAF8F5;
  --card:#FFFFFF;
  --line:#E5DED6;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system, BlinkMacSystemFont, "Hiragino Sans GB", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height:1.9;
  -webkit-font-smoothing:antialiased;
}

/* 顶部 Hero 标头 */
.hero{
  background:linear-gradient(135deg,#0B3868 0%,#0E4A85 60%,#15508F 100%);
  color:#fff;
  padding:72px 24px 60px;
  text-align:center;
}
.hero .kicker{
  display:inline-block;
  font-size:13px;
  letter-spacing:6px;
  color:#D9C4B2;
  border:1px solid rgba(217,196,178,.45);
  border-radius:999px;
  padding:6px 22px;
  margin-bottom:28px;
  text-transform:uppercase;
}
.hero h1{
  font-size:32px;
  font-weight:700;
  letter-spacing:1px;
  line-height:1.5;
  max-width:860px;
  margin:0 auto;
}
.hero .meta{
  margin-top:22px;
  font-size:14px;
  color:rgba(255,255,255,.8);
  letter-spacing:2px;
}
.hero .rule{
  width:64px;height:3px;background:var(--accent);
  margin:26px auto 0;border-radius:2px;
}

/* 得到 App 级悬浮播客播放卡片 */
.podcast-card{
  max-width:860px;
  margin:-36px auto 0;
  padding:0 20px;
  position:relative;
  z-index:20;
}
.podcast-box{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px 24px 20px;
  box-shadow:0 12px 36px rgba(11,56,104,.10);
}
.podcast-head{
  display:flex;
  align-items:center;
  gap:14px;
}
.mic-badge{
  width:48px;height:48px;
  border-radius:12px;
  background:linear-gradient(135deg,#0B3868,#185292);
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
  flex-shrink:0;
  box-shadow:0 4px 12px rgba(11,56,104,.25);
}
.podcast-title{flex:1;min-width:0;}
.podcast-title .pt-name{
  font-size:16px;font-weight:700;color:var(--primary);letter-spacing:.3px;line-height:1.45;
}
.podcast-title .pt-sub{
  font-size:12px;color:var(--muted);margin-top:5px;letter-spacing:.3px;
}

/* 进度条 (带圆点滑块 Thumb) */
.seek-bar-row{
  margin-top:18px;
  margin-bottom:14px;
}
.seek-bar, .seek-bar-track{
  position:relative;
  height:5px;
  border-radius:999px;
  background:#E2E8F0;
  cursor:pointer;
  touch-action:none;
}
.seek-bar::before, .seek-bar-track::before{
  content:'';
  position:absolute;
  top:-12px;bottom:-12px;left:0;right:0;
}
.seek-fill, .seek-bar-fill{
  position:absolute;left:0;top:0;height:100%;
  width:0%;
  border-radius:999px;
  background:var(--primary);
  pointer-events:none;
}
.seek-dot, .seek-bar-thumb{
  position:absolute;top:50%;
  width:14px;height:14px;
  border-radius:50%;
  background:var(--primary);
  border:3px solid #FFFFFF;
  box-shadow:0 2px 6px rgba(11,56,104,.35);
  transform:translate(-50%,-50%);
  left:0%;
  pointer-events:none;
  transition:transform .1s ease;
}
.seek-bar:hover .seek-dot, .seek-bar-track:hover .seek-bar-thumb,
.seek-bar.active .seek-dot, .seek-bar-thumb{
  transform:translate(-50%,-50%) scale(1.25);
}

/* 控制按钮栏 */
.podcast-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.control-left{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.btn-play{
  width:40px;height:40px;
  border-radius:50%;
  border:none;
  background:var(--primary);
  color:#fff;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(11,56,104,.25);
  transition:transform .15s ease, background .15s ease;
}
.btn-play:hover{transform:scale(1.05);background:var(--primary-light);}
.btn-play svg{width:16px;height:16px;fill:#fff;pointer-events:none;}
.btn-skip, .btn-step{
  width:32px;height:32px;
  border-radius:50%;
  border:1px solid #E2E8F0;
  background:#FFFFFF;
  color:#64748B;
  font-size:10px;font-weight:700;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .15s ease;
}
.btn-skip:hover{background:#F1F5F9;color:var(--primary);border-color:#CBD5E1;}
.time-display{
  font-size:12.5px;
  color:#64748B;
  font-variant-numeric:tabular-nums;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}
.speed-wrap{position:relative;flex-shrink:0;}
.speed-trigger, .btn-speed{
  border:1px solid #E2E8F0;
  background:#FFFFFF;
  color:#475569;
  font-size:12px;
  font-weight:600;
  border-radius:999px;
  padding:5px 12px;
  cursor:pointer;
  display:flex;align-items:center;gap:4px;
  transition:all .15s ease;
  font-family:inherit;
}
.speed-trigger:hover{border-color:var(--primary);color:var(--primary);}
.speed-menu{
  display:none;
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  background:#FFFFFF;
  border:1px solid #E2E8F0;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:5px;
  min-width:105px;
  z-index:99;
}
.speed-menu.open{display:block;}
.speed-item{
  display:flex;align-items:center;justify-content:space-between;width:100%;
  border:none;border-radius:6px;
  background:transparent;
  color:#475569;
  font-size:12px;
  font-family:inherit;
  padding:6px 10px;
  cursor:pointer;
  transition:background .12s ease;
}
.speed-item:hover{background:#F1F5F9;color:var(--primary);}
.speed-item.active{background:var(--primary);color:#fff;font-weight:700;}

/* 主体排版规范 */
main{
  max-width:860px;
  margin:48px auto 90px;
  padding:0 24px;
}
h1{
  font-size:26px;
  color:var(--primary);
  margin:56px 0 16px;
  letter-spacing:1px;
  padding-bottom:12px;
  border-bottom:2px solid var(--line);
}
h2{
  font-size:21px;
  color:var(--primary);
  margin:46px 0 16px;
  padding-left:14px;
  border-left:5px solid var(--accent);
  line-height:1.5;
}
h3{
  font-size:18px;
  color:var(--ink);
  margin:28px 0 12px;
  font-weight:700;
}
p{
  font-size:16px;
  color:#2D3748;
  margin-bottom:20px;
  text-align:justify;
}
strong{color:var(--primary);font-weight:700;}
blockquote{
  background:var(--accent-light);
  border-left:4px solid var(--accent);
  padding:16px 20px;
  margin:24px 0;
  border-radius:0 8px 8px 0;
}
blockquote p{margin:0;color:var(--muted);font-size:14.5px;}
.source-link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:13px;
  color:var(--primary);
  text-decoration:none;
  background:#EFF6FF;
  padding:4px 10px;
  border-radius:6px;
  border:1px solid #BFDBFE;
  margin-bottom:16px;
  transition:all .2s;
}
.source-link:hover{background:#DBEAFE;text-decoration:underline;}
.insight-box{
  background:#FAF6F0;
  border-left:4px solid var(--accent);
  padding:18px 20px;
  border-radius:0 8px 8px 0;
  margin:24px 0 32px;
}
.insight-box .it-title{
  font-size:14.5px;
  font-weight:bold;
  color:#92400E;
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:6px;
}
.insight-box p{
  font-size:14.5px;
  color:#5A6B7F;
  margin-bottom:0;
  line-height:1.8;
}

/* 矢量图移动端无空白规范 */
.diagram-wrapper{
  margin:28px 0 10px;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 20px rgba(11,56,104,.08);
  border:1px solid var(--line);
  background:#FAF8F5;
}
.diagram-wrapper svg{
  width:100% !important;
  height:auto !important;
  display:block !important;
}
.svg-caption{
  text-align:center;
  font-size:12.5px;
  color:var(--muted);
  margin-top:8px;
  margin-bottom:24px;
  letter-spacing:.5px;
  line-height:1.5;
}

/* 顶部便捷返回专栏主页导航条 */
.top-nav-bar{
  max-width:860px;
  margin:0 auto 24px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.top-home-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:6px 16px;
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:all .2s ease;
  letter-spacing:.3px;
}
.top-home-link:hover{
  color:#FFFFFF;
  background:rgba(255,255,255,.24);
  transform:translateX(-2px);
}

/* 右下角统一常驻悬浮操作岛 (专栏主页 + 目录导航) */
.floating-action-group{
  position:fixed;
  right:24px;
  bottom:28px;
  z-index:900;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.floating-home-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#0B2847;
  color:#FFFFFF;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:8px 16px;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(11,40,71,.35);
  transition:all .2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family:inherit;
  font-size:13.5px;
  font-weight:600;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  line-height:1.4;
}
.floating-home-btn:hover{
  transform:translateY(-2px);
  background:#0E3B68;
  color:#FFFFFF;
  box-shadow:0 10px 28px rgba(11,40,71,.45);
}
.floating-home-btn .home-icon{
  font-size:14px;
}
.floating-toc-btn, .toc-float-capsule{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#0B2847;
  color:#FFFFFF;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:8px 14px 8px 16px;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(11,40,71,.35);
  transition:all .2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family:inherit;
  font-size:13.5px;
  font-weight:600;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  line-height:1.4;
}
/* 若未嵌套在 floating-action-group 中时，独立固定在右下角 */
body > .floating-toc-btn, body > .toc-float-capsule{
  position:fixed;
  right:24px;
  bottom:28px;
  z-index:900;
}
body > .floating-home-btn{
  position:fixed;
  right:160px;
  bottom:28px;
  z-index:900;
}
.floating-toc-btn:hover, .toc-float-capsule:hover{
  transform:translateY(-2px);
  background:#0E3B68;
}
.floating-toc-btn .toc-badge, .floating-toc-btn .floating-toc-badge,
.toc-float-capsule .toc-badge, .toc-float-capsule .floating-toc-badge{
  background:#D9822B;
  color:#FFFFFF;
  font-size:11px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  letter-spacing:.5px;
}

/* 暗黑全黑侧边抽屉导航窗 (复刻图片 1) */
.toc-backdrop{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
  z-index:1001;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
.toc-backdrop.active{
  opacity:1;
  pointer-events:auto;
}
.toc-drawer{
  position:fixed;
  top:0;right:-360px;bottom:0;
  width:340px;
  max-width:86vw;
  height:100%;
  background:#0A0D14;
  z-index:1002;
  display:flex;
  flex-direction:column;
  box-shadow:-10px 0 40px rgba(0,0,0,.6);
  transition:right .3s cubic-bezier(0.16, 1, 0.3, 1);
  color:#F1F5F9;
}
.toc-drawer.active{
  right:0;
}
.toc-header, .toc-drawer-header{
  padding:20px 20px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.toc-header-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:16px;
  font-weight:700;
  color:#FFFFFF;
}
.toc-close-btn, .toc-drawer-close{
  background:none;
  border:none;
  color:#94A3B8;
  font-size:20px;
  cursor:pointer;
  width:32px;height:32px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  transition:all .15s;
}
.toc-close-btn:hover{color:#FFFFFF;background:rgba(255,255,255,.1);}

/* 抽屉内双进度条 (阅读进度 + 特刊音频) */
.toc-progress-wrap, .drawer-pbar-wrap{
  padding:14px 20px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.toc-pbar-bg, .drawer-pbar-track{
  height:4px;
  background:#1E293B;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:6px;
  position:relative;
}
.toc-pbar-val, .drawer-pbar-val{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, #38BDF8, #60A5FA);
  border-radius:999px;
  transition:width .15s ease-out;
}
.toc-ptxt, .drawer-pbar-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#94A3B8;
  margin-bottom:4px;
}
.drawer-audio-box{
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.06);
}
.drawer-audio-track{
  cursor:pointer;
  touch-action:none;
}
.drawer-audio-track:hover{
  background:#334155;
}
.drawer-audio-val{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, #F59E0B, #FBBF24);
  border-radius:999px;
  transition:width .1s linear;
}

/* 抽屉目录列表 */
.toc-list-body, .drawer-list{
  flex:1;
  overflow-y:auto;
  padding:14px 16px 20px;
}
.toc-cat-card{
  display:block;
  background:#131822;
  border:1px solid rgba(255,255,255,.06);
  border-radius:8px;
  padding:12px 14px;
  margin:14px 0 8px;
  font-size:13.5px;
  font-weight:700;
  color:#FFFFFF;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s;
}
.toc-cat-card:first-child{margin-top:0;}
.toc-cat-card:hover{background:#1E293B;}
.toc-article-item{
  display:block;
  padding:8px 12px 8px 16px;
  font-size:13px;
  color:#94A3B8;
  text-decoration:none;
  border-radius:6px;
  line-height:1.5;
  margin-bottom:3px;
  transition:all .15s ease;
}
.toc-article-item:hover{
  color:#38BDF8;
  background:rgba(56,189,248,.08);
}
.toc-article-item.active{
  color:#38BDF8;
  font-weight:700;
  background:rgba(56,189,248,.12);
}

/* 抽屉固定底部操作按钮 */
.toc-footer, .drawer-actions{
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#0A0D14;
  display:flex;
  gap:8px;
}
.btn-drawer-home{
  flex:1;
  padding:10px 0;
  background:#111622;
  border:1px solid #1E293B;
  color:#FFFFFF;
  border-radius:8px;
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
  text-align:center;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  transition:all .15s ease;
}
.btn-drawer-home:hover{
  background:#1E293B;
  color:#38BDF8;
  border-color:#38BDF8;
}
.toc-btn-top, .btn-drawer-top{
  flex:1;
  padding:10px 0;
  background:#111622;
  border:1px solid #1E293B;
  color:#FFFFFF;
  border-radius:8px;
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
  text-align:center;
  transition:background .15s;
}
.toc-btn-top:hover{background:#1E293B;}
.toc-btn-listen, .btn-drawer-listen{
  flex:1.2;
  padding:10px 0;
  background:#0284C7;
  border:1px solid rgba(56,189,248,.3);
  color:#FFFFFF;
  border-radius:8px;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  transition:all .2s ease;
}
.toc-btn-listen:hover, .btn-drawer-listen:hover{
  background:#0369A1;
}
.toc-btn-listen.playing, .btn-drawer-listen.playing{
  background:#38BDF8 !important;
  color:#082F49 !important;
  font-weight:700 !important;
  border-color:#38BDF8 !important;
  box-shadow:0 0 14px rgba(56,189,248,.5) !important;
}

footer{
  text-align:center;
  padding:40px 24px;
  background:#F1F5F9;
  border-top:1px solid var(--line);
  font-size:13px;
  color:var(--muted);
}
footer a{color:var(--primary);text-decoration:none;font-weight:600;}
footer a:hover{text-decoration:underline;}

@media (max-width:640px){
  .hero{padding:42px 18px 45px;}
  .hero h1{font-size:23px;line-height:1.4;}
  .top-nav-bar{margin-bottom:16px;}
  .top-home-link{font-size:12px;padding:5px 12px;}
  .podcast-card{margin-top:-28px;padding:0 14px;}
  .podcast-box{padding:18px 16px 16px;}
  .podcast-head{gap:10px;}
  .mic-badge{width:42px;height:42px;font-size:20px;}
  .podcast-title .pt-name{font-size:14.5px;}
  .diagram-wrapper{margin:16px 0 6px;}
  .svg-caption{margin-bottom:20px;font-size:11.5px;}
  .floating-action-group{right:12px;bottom:16px;gap:8px;}
  .floating-home-btn{padding:7px 12px;font-size:12.5px;}
  .floating-toc-btn, .toc-float-capsule{padding:7px 11px;font-size:12.5px;}
  .floating-toc-btn .toc-badge, .floating-toc-btn .floating-toc-badge,
  .toc-float-capsule .toc-badge, .toc-float-capsule .floating-toc-badge{font-size:10px;padding:1px 6px;}
  body > .floating-home-btn{right:140px;bottom:16px;padding:7px 12px;font-size:12.5px;}
  body > .floating-toc-btn, body > .toc-float-capsule{right:12px;bottom:16px;}
  .toc-drawer{width:310px;}
  .btn-drawer-home, .btn-drawer-top, .btn-drawer-listen{font-size:11.5px;padding:9px 0;}
}
