/* =====================================================
   知识听书 PC 官网  —— 喜马拉雅风格（原创实现）
   主色橙 #f86442 · 浅灰底 · 白卡片圆角 · 底部常驻播放条
   ===================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #f86442; --primary-d: #e6542e; --primary-grad: linear-gradient(135deg,#ff8a5c,#f86442);
  --bg: #f5f6f7; --card: #fff; --line: #ececec;
  --tx: #222; --tx2: #666; --tx3: #999; --ok: #05a26c;
}
html, body { min-height: 100%; }   /* 不用 height:100%(会把 body 锁死在视口高, 使底部 padding 无法为播放条让位) */
body {
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--tx); background: var(--bg);
  padding-bottom: 88px;   /* 底部播放条常驻(78px)，预留让页脚版权可完整滚出 */
}
a { color: inherit; text-decoration: none; }
img { border: 0; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
input { outline: none; font-family: inherit; }

/* ============ 顶部导航 ============ */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in {
  max-width: 1200px; margin: 0 auto; height: 62px; padding: 0 16px;
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 8px; }
.lg-ic {
  width: 34px; height: 34px; border-radius: 9px; color: #fff; font-size: 19px;
  background: var(--primary-grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(248, 100, 66, .55);
}
.lg-tx { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.hdr-nav { display: flex; gap: 22px; }
.hdr-nav a { font-size: 16px; color: var(--tx2); padding: 4px 2px; }
.hdr-nav a.on, .hdr-nav a:hover { color: var(--primary); font-weight: 700; border-bottom: 3px solid var(--primary); }
.hdr-search { flex: 1; display: flex; justify-content: flex-end; }
.hdr-search input {
  width: 280px; height: 34px; border: 1px solid #dcdcdc; border-radius: 17px 0 0 17px;
  padding: 0 16px; font-size: 13px; background: #f7f7f7;
}
.hdr-search button {
  height: 34px; padding: 0 18px; color: #fff; font-size: 13px; background: var(--primary);
  border-radius: 0 17px 17px 0; transition: background .15s;
}
.hdr-search button:hover { background: var(--primary-d); }
.hdr-right { display: flex; align-items: center; }
/* 频道条 */
.cols-bar { border-top: 1px solid var(--line); background: #fafafa; }
.cols-in {
  max-width: 1200px; margin: 0 auto; padding: 9px 16px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.cols-in .cb-tip { color: var(--tx3); font-size: 12px; margin-right: 2px; }
.chip {
  padding: 3px 12px; border-radius: 999px; font-size: 12.5px; color: var(--tx2);
  border: 1px solid #e4e4e4; background: #fff; transition: all .15s; white-space: nowrap;
}
.chip:hover, .chip.on { color: #fff; background: var(--primary); border-color: var(--primary); }

/* ============ 页面通用 ============ */
.page { max-width: 1200px; margin: 0 auto; padding: 22px 16px 140px; min-height: 60vh; }
.loading, .err-box { text-align: center; color: var(--tx3); padding: 70px 0; font-size: 14px; }
.err-box b { color: var(--tx2); display: block; margin-bottom: 12px; font-size: 16px; }

/* 分区标题 */
.sec-h {
  display: flex; align-items: center; gap: 10px; margin: 26px 0 16px; position: relative;
}
.sec-h .sh-bar { width: 4px; height: 18px; border-radius: 2px; background: var(--primary); }
.sec-h h2 { font-size: 20px; font-weight: 800; }
.sec-h .sh-sub { color: var(--tx3); font-size: 12.5px; margin-top: 2px; }
.sec-h .sh-more { margin-left: auto; color: var(--tx3); font-size: 12.5px; }
.sec-h .sh-more:hover { color: var(--primary); }

/* 徽标 */
.badge {
  display: inline-flex; align-items: center; font-size: 10.5px; line-height: 1;
  padding: 3px 7px; border-radius: 4px; font-weight: 700; vertical-align: 1px;
}
.badge-vip { color: #c67a00; background: #fff3dc; border: 1px solid #ffdf9e; }
.badge-free { color: var(--ok); background: #e5f8f0; }
.badge-video { color: #5564e8; background: #edf0ff; }
.badge-audio { color: var(--primary); background: #ffece5; }

/* 横滑区 */
.h-scroll { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }

/* 专辑卡片（横滑 / 网格通用） */
.album-card { width: 216px; flex: 0 0 216px; cursor: pointer; }
.ac-cover {
  position: relative; border-radius: 10px; overflow: hidden; background: #ececec;
  aspect-ratio: 1 / 1;
}
.ac-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.album-card:hover .ac-cover img { transform: scale(1.05); }
/* 封面角标（绝对定位在左上，通用） */
.cover-tag { position: absolute; left: 8px; top: 8px; z-index: 2; }
.ac-cover .ac-vip {
  position: absolute; left: 8px; top: 8px; background: linear-gradient(135deg, #ff9a2e, #f86442);
  color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
.ac-cover .ac-play {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--primary); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.2); opacity: 0; transition: opacity .15s; transform: translateX(0);
}
.album-card:hover .ac-play { opacity: 1; }
.ac-tx { padding: 9px 2px 0; }
.ac-tx h3 {
  font-size: 14px; font-weight: 600; line-height: 1.45; height: 41px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ac-tx .ac-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--tx3); font-size: 12px; }
.ac-tx .ac-meta .cnt { margin-left: auto; }
.album-card:hover h3 { color: var(--primary); }

/* 通用内容行（栏目页 / 相关推荐） */
.li-row {
  display: flex; gap: 16px; background: var(--card); border-radius: 10px; padding: 14px;
  margin-bottom: 12px; transition: box-shadow .15s; cursor: pointer;
}
.li-row:hover { box-shadow: 0 8px 22px -12px rgba(0,0,0,.25); }
.li-cover { width: 108px; height: 108px; border-radius: 8px; overflow: hidden; flex: 0 0 108px; position: relative; background: #ececec; }
.li-cover img { width: 100%; height: 100%; object-fit: cover; }
.li-cover .ac-vip { position: absolute; left: 6px; top: 6px; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.li-title:hover { color: var(--primary); }
.li-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.li-tags .col-tag { color: var(--primary); font-size: 12px; }
.li-tags .sep { color: #ddd; }
.li-meta { color: var(--tx3); font-size: 12px; display: flex; gap: 14px; }
.li-intro {
  color: var(--tx2); font-size: 13px; margin-top: 7px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis;
}

/* ============ 首页 ============ */
.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .col-grid { grid-template-columns: repeat(2, 1fr); } }
.column-card {
  background: var(--card); border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); transition: all .18s;
}
.column-card:hover { box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); transform: translateY(-2px); }
.cc-top {
  padding: 18px 18px 12px; background: linear-gradient(135deg, #fff2ec, #ffe4d9);
  display: flex; align-items: center; gap: 12px;
}
.cc-top .cc-num {
  width: 40px; height: 40px; border-radius: 10px; color: #fff; font-size: 19px; font-weight: 800;
  background: var(--primary-grad); display: flex; align-items: center; justify-content: center;
}
.cc-top h3 { font-size: 17px; font-weight: 800; }
.cc-top p { font-size: 12px; color: var(--tx3); }
.cc-body { padding: 12px 18px 14px; }
.cc-body .cc-li { font-size: 13px; color: var(--tx2); padding: 4px 0; display: flex; gap: 8px; }
.cc-body .cc-li i { color: #ccc; font-style: normal; }
.cc-body .cc-li:hover { color: var(--primary); }
.cc-body .cc-li .cc-more { color: var(--tx3); }
.cc-li .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ============ 栏目页 ============ */
.col-hero {
  border-radius: 14px; color: #fff; padding: 28px 30px; margin-bottom: 20px;
  background: linear-gradient(120deg, #ff9a5c, #f86442 60%, #e6542e);
  box-shadow: 0 12px 26px -14px rgba(248, 100, 66, .7); position: relative; overflow: hidden;
}
.col-hero::after { content: '♪'; position: absolute; right: -16px; bottom: -60px; font-size: 220px; opacity: .12; }
.col-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.col-hero .ch-desc { font-size: 13.5px; opacity: .92; max-width: 760px; }
.col-hero .ch-meta { margin-top: 14px; display: flex; gap: 16px; align-items: center; font-size: 12.5px; }
.ch-tags { margin: -6px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-tags .tag { font-size: 12.5px; color: var(--tx2); border: 1px solid #e0e0e0; border-radius: 6px; padding: 3px 10px; background: #fff; }
.load-more { display: block; margin: 18px auto 6px; width: 220px; height: 38px; border-radius: 19px;
  color: var(--primary); border: 1px solid var(--primary); background: #fff; font-size: 14px; transition: .15s; }
.load-more:hover { background: var(--primary); color: #fff; }
.load-more[disabled] { color: var(--tx3); border-color: #ddd; cursor: default; background: #fff; }

/* ============ 内容详情页 ============ */
.dt-hero { display: flex; gap: 26px; background: var(--card); border-radius: 14px; padding: 26px; }
.dt-cover { width: 224px; height: 224px; border-radius: 12px; overflow: hidden; flex: 0 0 224px; background: #ececec; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.dt-cover img { width: 100%; height: 100%; object-fit: cover; }
.dt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dt-crumb { font-size: 12.5px; color: var(--tx3); margin-bottom: 10px; }
.dt-crumb a:hover { color: var(--primary); }
.dt-title { font-size: 25px; font-weight: 800; line-height: 1.4; }
.dt-tags { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.dt-tags .col-tag { color: var(--primary); font-size: 13px; }
.dt-stats { margin-top: 10px; color: var(--tx3); font-size: 12.5px; display: flex; gap: 16px; }
.dt-intro {
  margin-top: 14px; color: var(--tx2); font-size: 13.5px; line-height: 1.8;
  max-height: 76px; overflow: hidden; position: relative;
}
.dt-intro.open { max-height: none; }
.dt-btns { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; }
.btn {
  height: 40px; padding: 0 26px; border-radius: 20px; font-size: 14.5px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px; transition: all .15s;
}
.btn-main { color: #fff; background: var(--primary-grad); box-shadow: 0 6px 16px -6px rgba(248,100,66,.7); }
.btn-main:hover { background: var(--primary-d); }
.btn-ghost { color: var(--primary); border: 1px solid var(--primary); background: #fff; }
.btn-ghost:hover { background: #fff5f1; }
.btn-ghost2 { color: var(--tx2); border: 1px solid #ddd; background: #fff; }
.btn-ghost2:hover { color: var(--primary); border-color: var(--primary); }
.btn[disabled] { opacity: .5; cursor: default; }

/* 目录列表 */
.dir-box { margin-top: 18px; background: var(--card); border-radius: 14px; padding: 20px 24px; }
.dir-ol { list-style: none; margin-top: 8px; }
.dir-ol li {
  display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 8px; cursor: pointer;
  border-bottom: 1px solid #f4f4f4;
}
.dir-ol li:last-child { border-bottom: none; }
.dir-ol li:hover { background: #faf7f6; }
.dir-ol li.playing { background: #fff2ed; }
.dir-ol .di-no { width: 24px; color: var(--tx3); font-size: 12.5px; flex: 0 0 24px; text-align: center; }
.dir-ol .di-no i { font-style: normal; color: var(--primary); }
.dir-ol li.playing .di-no i::before { content: '♪'; }
.dir-ol .di-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.dir-ol li.playing .di-name { color: var(--primary); font-weight: 700; }
.dir-ol .di-time { color: var(--tx3); font-size: 12px; }
.dir-ol .di-badge { margin-left: 2px; }

/* ============ 底部播放条（参考图风格·半透明黑） ============ */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(16, 16, 20, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 -12px 32px -18px rgba(0, 0, 0, .6);
}
.pl-in { max-width: 1200px; margin: 0 auto; height: 78px; padding: 0 20px; display: flex; align-items: center; gap: 26px; }
.pl-meta { display: flex; align-items: center; gap: 14px; width: 320px; flex: 0 0 320px; min-width: 0; }
/* 封面占位层：无 src 时显示 ♪，有 src 时被图片覆盖 */
.pl-cover-w {
  position: relative; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; overflow: hidden;
  background: rgba(255, 255, 255, .1);
  display: flex; align-items: center; justify-content: center;
}
.pl-cover-w .pl-cover-ph { font-style: normal; font-size: 26px; line-height: 1; color: #ff8c5a; opacity: .92; }
.pl-cover-w img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #2a2a30; }
.pl-cover-w img:not([src]) { opacity: 0; }
.pl-tx { min-width: 0; }
.pl-title { font-size: 14.5px; font-weight: 700; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.pl-title:hover { color: var(--primary); }
.pl-sub { font-size: 12px; color: rgba(255, 255, 255, .55); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 4px; }
.pl-ctrl { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 320px; }
.pl-btns { display: flex; align-items: center; justify-content: center; gap: 22px; }
.pl-btn {
  width: 36px; height: 36px; border-radius: 50%; color: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.pl-btn svg { width: 21px; height: 21px; fill: currentColor; }
.pl-btn:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.pl-btn.pl-main {
  width: 46px; height: 46px; color: #fff; background: var(--primary-grad); border-radius: 50%;
  box-shadow: 0 6px 18px -6px rgba(248, 100, 66, .9); transition: transform .12s, background .15s;
}
.pl-btn.pl-main svg { width: 24px; height: 24px; }
.pl-btn.pl-main:hover { background: var(--primary-d); transform: scale(1.05); }
.pl-btn.pl-main:active { transform: scale(.96); }
.pl-prog { display: flex; align-items: center; gap: 12px; }
.pl-time { color: rgba(255, 255, 255, .55); font-size: 11.5px; width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.pl-bar { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--fill,0%), rgba(255,255,255,.22) var(--fill,0%)); outline: none; }
.pl-bar::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); box-shadow: 0 1px 6px rgba(0,0,0,.35); cursor: pointer; }
.pl-extra { width: 176px; flex: 0 0 176px; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.pl-like.on { color: var(--primary); }
.pl-like .ico-liked { color: #ff6b4a; }
.pl-rate-btn { width: auto; padding: 0 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); border-radius: 8px; }
.pl-rate-btn:hover { color: #fff; background: rgba(255, 255, 255, .14); }
/* 未播放（空队列）时的禁用态 */
.pl-btn.disabled { color: rgba(255, 255, 255, .22); cursor: not-allowed; }
.pl-btn.disabled:hover { color: rgba(255, 255, 255, .22); background: transparent; }
.pl-btn.pl-main { color: #fff; }
.pl-panel-ol .p-empty { justify-content: center; color: rgba(255, 255, 255, .5); font-size: 13px; padding: 26px 8px; cursor: default; }
.pl-panel-ol .p-empty:hover { background: transparent; }
.pl-panel {
  position: absolute; right: 24px; bottom: 86px; width: 380px; max-height: 380px; overflow-y: auto;
  background: rgba(24, 24, 29, .97); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65);
}
.pl-panel-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); position: sticky; top: 0; background: rgba(24, 24, 29, .97); color: #fff; }
.pl-panel-hd span { cursor: pointer; font-size: 20px; color: rgba(255, 255, 255, .6); }
.pl-panel-hd span:hover { color: #fff; }
.pl-panel-ol { list-style: none; padding: 6px 8px; }
.pl-panel-ol li { display: flex; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: rgba(255, 255, 255, .82); }
.pl-panel-ol li:hover { background: rgba(255, 255, 255, .08); }
.pl-panel-ol li.on { color: #ff8c5a; font-weight: 700; background: rgba(248, 100, 66, .16); }
.pl-panel-ol .p-no { color: rgba(255, 255, 255, .4); font-size: 11.5px; flex: 0 0 20px; }
.pl-panel-ol .p-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-panel-ol .p-time { color: rgba(255, 255, 255, .4); font-size: 11.5px; }

/* ============ 弹层 & Toast ============ */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal { width: 400px; max-width: 92vw; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px -18px rgba(0,0,0,.45); }
.modal-hd { font-size: 16px; font-weight: 800; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.modal-bd { padding: 20px; font-size: 13.5px; color: var(--tx2); line-height: 1.9; }
.modal-bd .m-title { font-size: 14px; color: #333; font-weight: 700; margin-bottom: 4px; }
.modal-ft { padding: 12px 20px 18px; text-align: right; }
.modal-ft .btn { background: var(--primary); color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%); z-index: 300;
  background: rgba(0,0,0,.78); color: #fff; font-size: 13px; padding: 9px 18px; border-radius: 8px;
  max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.err { background: rgba(217, 60, 30, .92); }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0 26px; color: var(--tx3); font-size: 12.5px; }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; text-align: center; line-height: 2; }
/* 页脚版权：后端配置可为多行（回车换行），保留换行展示 */
.ft-copy { white-space: pre-line; }
.ft-icp { margin-top: 2px; }
.ft-icp a { color: var(--tx3); transition: color .15s; }
.ft-icp a:hover { color: var(--primary); }

/* 简单滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d5d5d5; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 主播放钮“进度环”（播放圈）：白色弧显示播放百分比 */
.pl-btn.pl-main { position: relative; overflow: visible; }
.pl-btn.pl-main svg { position: relative; z-index: 2; }
.pl-ring {
  position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: conic-gradient(rgba(255, 255, 255, .95) calc(var(--p, 0) * 1%), rgba(255, 255, 255, .16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
