/* ===========================================================================
 * 合同专家 · 老板板块（样式）
 * ---------------------------------------------------------------------------
 * 独立文件，**不改 style.css / legal.css**（并发会话正在改它们）。
 * 加载顺序必须排在 style.css 与 coach.css 之后 —— 同特异性下后出现者胜出。
 *
 * 配色沿用老板板块的暖褐体系（品牌色是底线，不许换皮肤），
 * 但在"质感"上做区分：这份功能的视觉隐喻是**一叠待签的合同**——
 *   · 入口卡用金色的"文件+签章"意象；
 *   · 三份模板各自有一条书脊色带 + 一枚策略徽章，用户扫一眼就知道拿哪一份；
 *   · 下载按钮是实心金色 —— 它是本功能唯一的主行动，必须最扎眼。
 *
 * 🔴 所有含 absolute 装饰的容器都必须自己声明 position: relative
 *    （否则装饰物按 right:-30% 溢出，撑宽 document，手机端整页被缩成 77%）。
 * =========================================================================== */

/* ---------------------------------------------------------------- 入口卡 */
.boss-entry-contract {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf2 0%, #fdf3e4 52%, #fbebd6 100%);
  border-color: #ecdcc4;
}
@media (hover: hover) {
  .boss-entry-contract:hover { box-shadow: 0 10px 26px rgba(120, 78, 26, 0.16); }
}
.boss-entry-contract .boss-entry-glow {
  background: radial-gradient(circle at 78% 18%, rgba(216, 158, 62, 0.30), transparent 62%);
}
.boss-entry-contract .boss-entry-ico {
  background: linear-gradient(140deg, #fdf0da, #f6dfb6);
  box-shadow: inset 0 0 0 1px #eed9b4;
}
.boss-entry-contract .boss-entry-tag {
  color: #7a4f16;
  background: #fbf0dd;
}
.boss-entry-contract .boss-entry-name { letter-spacing: .5px; }
.boss-entry-contract .boss-entry-flow { color: #7a4f16; }
.boss-entry-contract .boss-entry-flow span {
  background: #fffaf2;
  border-color: #eeddbf;
}
.boss-entry-contract .boss-entry-flow i { color: #dcc49b; }

/* ---------------------------------------------------------------- 子页容器 */
#sub-contract { padding-bottom: 26px; }

.ct-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  margin-bottom: 13px;
  background: linear-gradient(135deg, #fffdf9, #fbf3e7);
  border: 1px solid #eddfc9;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.ct-head::after {
  content: '';
  position: absolute;
  right: -18px; top: -26px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 158, 62, 0.18), transparent 68%);
  pointer-events: none;
}
.ct-avatar {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  background: linear-gradient(140deg, #fdf0da, #f4ddb2);
  box-shadow: inset 0 0 0 1px #eed9b4;
  position: relative;
}
.ct-head-body { min-width: 0; flex: 1 1 auto; }
.ct-head-name { font-size: 15px; font-weight: 800; color: var(--text); }
.ct-head-desc { font-size: 12px; color: var(--text2); margin-top: 3px; line-height: 1.5; }
.ct-reset {
  flex: 0 0 auto;
  font-size: 12px;
  color: #8a6a45;
  background: #fff;
  border: 1px solid #e6d5bd;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  position: relative;
}
.ct-reset:active { transform: scale(.96); }

/* ---------------------------------------------------------------- 模式切换 */
.ct-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 5px;
  margin-bottom: 13px;
  background: #f6efe4;
  border: 1px solid #ecdfca;
  border-radius: 13px;
}
.ct-mode {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #8a7358;
  cursor: pointer;
  line-height: 1.35;
  transition: background .16s, color .16s, box-shadow .16s;
}
.ct-mode span { display: block; font-size: 10.5px; font-weight: 400; opacity: .78; margin-top: 2px; }
.ct-mode.on {
  background: #fff;
  color: #6b4423;
  box-shadow: 0 2px 8px rgba(122, 79, 22, 0.10);
}
.ct-mode:active { transform: scale(.985); }

/* ---------------------------------------------------------------- 输入面板 */
.ct-panel {
  background: #fff;
  border: 1px solid #eee1cd;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 13px;
  box-shadow: 0 2px 10px rgba(122, 79, 22, 0.045);
}
.ct-panel[hidden] { display: none !important; }

.ct-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.ct-label span { font-weight: 400; color: var(--text2); font-size: 11.5px; }

.ct-kinds { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.ct-kind {
  appearance: none;
  font-size: 12.5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #e8dbc6;
  background: #fffdf9;
  color: #7a6550;
  cursor: pointer;
  line-height: 1;
}
.ct-kind.on {
  background: #6b4423;
  border-color: #6b4423;
  color: #fff;
  font-weight: 700;
}
@media (hover: hover) { .ct-kind:not(.on):hover { border-color: #d9c39f; } }

.ct-input, .ct-ask-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e8dbc6;
  border-radius: 11px;
  background: #fffdfa;
  padding: 12px 13px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}
.ct-input:focus, .ct-ask-input:focus { outline: none; border-color: #c39a5c; background: #fff; }
.ct-input::placeholder, .ct-ask-input::placeholder { color: #bda98f; line-height: 1.7; }

.ct-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.ct-count { font-size: 11.5px; color: #b3a291; }
.ct-count.warn { color: #b45309; font-weight: 700; }

.ct-go {
  appearance: none;
  border: none;
  border-radius: 11px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #c8901f, #a9761a);
  box-shadow: 0 4px 12px rgba(169, 118, 26, 0.28);
  letter-spacing: .5px;
}
.ct-go:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.ct-go:active:not(:disabled) { transform: scale(.97); }

.ct-hint {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #9c8a76;
}
.ct-hint b { color: #8a6a45; }

/* ---------------------------------------------------------------- 对话/结果区 */
.ct-body { display: flex; flex-direction: column; gap: 14px; }
.ct-body:empty { display: none; }

.ct-msg { display: flex; gap: 9px; align-items: flex-start; }
.ct-msg-avatar {
  width: 30px; height: 30px; flex: 0 0 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: linear-gradient(140deg, #fdf0da, #f4ddb2);
  box-shadow: inset 0 0 0 1px #eed9b4;
}
.ct-bubble {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #eee1cd;
  border-radius: 13px;
  padding: 13px 14px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text);
  word-break: break-word;
}
.ct-msg.me { flex-direction: row-reverse; }
.ct-msg.me .ct-bubble {
  background: #6b4423;
  border-color: #6b4423;
  color: #fff;
  flex: 0 1 auto;
  max-width: 86%;
}
.ct-bubble p { margin: 0 0 9px; }
.ct-bubble p:last-child { margin-bottom: 0; }
.ct-bubble strong { font-weight: 800; }
.ct-msg.ai .ct-bubble strong { color: #6b4423; }
.ct-bubble h4 { font-size: 13.5px; font-weight: 800; margin: 14px 0 7px; color: #4a2f18; }
.ct-bubble h4:first-child { margin-top: 0; }
.ct-bubble ul, .ct-bubble ol { margin: 0 0 9px; padding-left: 19px; }
.ct-bubble li { margin: 4px 0; }
.ct-bubble hr { border: none; border-top: 1px solid #f0e6da; margin: 12px 0; }

/* 用户贴进来的长合同：折叠 */
.ct-quote-meta { font-size: 12px; color: #8a7a68; margin-bottom: 7px; }
.ct-quote {
  position: relative;
  max-height: 118px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12.5px;
  line-height: 1.7;
}
.ct-quote.open { max-height: none; }
.ct-quote-mask {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42px;
  background: linear-gradient(transparent, #6b4423);
  pointer-events: none;
}
.ct-quote.open .ct-quote-mask { display: none; }
.ct-quote-btn {
  margin-top: 7px;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 12px;
  border-radius: 7px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------------------------------------------------------------- 风险标记 */
.ct-risk {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: 1px;
  line-height: 1.5;
}
.ct-risk-fatal { background: #fdeceb; color: #b3261e; }
.ct-risk-major { background: #fdf0e3; color: #b45309; }
.ct-risk-mid   { background: #fdf8e3; color: #8a6a04; }
.ct-risk-ok    { background: #e8f5ec; color: #2f7d4f; }
.ct-risk-flaw  { background: #f0eefb; color: #5646a8; }
.ct-risk-miss  { background: #eef2f7; color: #43587a; }
.ct-risk-act   { background: #e9f3fd; color: #1f5f96; }

.ct-verdict {
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 11px;
  background: #fdf8e3;
  color: #7a5c04;
  border: 1px solid #f3e4b3;
}
.ct-verdict-hi { background: #fdeceb; color: #a32219; border-color: #f6cdc9; }
.ct-verdict-ok { background: #e8f5ec; color: #226b3f; border-color: #c5e3d0; }

.ct-lawyer {
  border-radius: 11px;
  padding: 11px 13px;
  background: #f4f1fb;
  border: 1px solid #ddd6f2;
  color: #443a75;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 4px;
}
.ct-lawyer b { color: #372c63; }

.ct-err {
  font-size: 12.5px;
  color: #b3261e;
  background: #fdeceb;
  border: 1px solid #f6cdc9;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.65;
}

/* 等待动效（不假造百分比） */
.ct-dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.ct-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d3b98c; display: block;
  animation: ctBlink 1.25s ease-in-out infinite;
}
.ct-dots i:nth-child(2) { animation-delay: .18s; }
.ct-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes ctBlink { 0%, 80%, 100% { opacity: .28; } 40% { opacity: 1; } }
.ct-prog {
  height: 3px; margin-top: 9px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(90deg, #eadfce 0%, #d8bd8e 50%, #eadfce 100%);
  background-size: 220% 100%;
  animation: ctFlow 1.6s linear infinite;
}
@keyframes ctFlow { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.ct-caret {
  display: inline-block;
  width: 2px; height: 14px;
  background: #c8901f;
  vertical-align: -2px;
  margin-left: 2px;
  animation: ctCaret .9s step-end infinite;
}
@keyframes ctCaret { 50% { opacity: 0; } }

/* ===========================================================================
 * 合同交付卡片（本功能的门面：三份模板 / 改好的合同）
 * 视觉隐喻 = 一叠纸：左侧书脊色带 + 纸张阴影 + 右上策略徽章
 * =========================================================================== */
.ct-docs { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.ct-doc {
  position: relative;
  background: #fff;
  border: 1px solid #ecdfca;
  border-radius: 13px;
  padding: 13px 14px 12px 17px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(122, 79, 22, 0.06);
}
/* 书脊 */
.ct-doc::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #c8901f;
}
.ct-doc[data-strategy="strong"]::before { background: #b1512b; }
.ct-doc[data-strategy="simple"]::before { background: #6b7f99; }
.ct-doc.done { border-color: #e2d3b8; }

.ct-doc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.ct-doc-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbf0dd;
  color: #7a4f16;
  line-height: 1.5;
  flex: 0 0 auto;
}
.ct-doc[data-strategy="strong"] .ct-doc-badge { background: #fbeee9; color: #9c3f1d; }
.ct-doc[data-strategy="simple"] .ct-doc-badge { background: #eef2f7; color: #43587a; }

.ct-doc-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-doc-meta { font-size: 11.5px; color: #a3927c; flex: 0 0 auto; }

.ct-doc-why {
  font-size: 12px;
  color: #8a7a68;
  line-height: 1.65;
  margin-bottom: 9px;
}

.ct-doc-preview {
  position: relative;
  max-height: 132px;
  overflow: hidden;
  background: #fdfaf5;
  border: 1px solid #f2e8d8;
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 12.5px;
  line-height: 1.82;
  color: #4f4438;
  white-space: pre-wrap;
  word-break: break-word;
}
.ct-doc-preview.open { max-height: 420px; overflow-y: auto; }
.ct-doc-preview-mask {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background: linear-gradient(transparent, #fdfaf5);
  pointer-events: none;
}
.ct-doc-preview.open .ct-doc-preview-mask { display: none; }

.ct-doc-acts {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ct-dl {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #c8901f, #a9761a);
  box-shadow: 0 4px 12px rgba(169, 118, 26, 0.26);
  letter-spacing: .3px;
  flex: 1 1 auto;
}
.ct-dl:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.ct-dl:active:not(:disabled) { transform: scale(.97); }
.ct-ghost {
  appearance: none;
  border: 1px solid #e6d5bd;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #8a6a45;
  cursor: pointer;
  flex: 0 0 auto;
}
.ct-ghost:active { transform: scale(.97); }
.ct-ghost.open { background: #fbf3e7; }

.ct-doc-more {
  font-size: 11.5px;
  color: #a3927c;
  margin-top: 8px;
  line-height: 1.6;
}

.ct-empty-doc {
  border: 1px dashed #e2d3b8;
  border-radius: 12px;
  padding: 14px;
  font-size: 12.5px;
  color: #a3927c;
  text-align: center;
  line-height: 1.7;
}

/* 分批进度 */
.ct-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8a7a68;
  padding: 8px 11px;
  background: #fbf6ee;
  border: 1px solid #f0e5d4;
  border-radius: 10px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.ct-stage b { color: #6b4423; }
.ct-stage-dots { display: inline-flex; gap: 3px; }
.ct-stage-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: #d3b98c; display: block;
  animation: ctBlink 1.25s ease-in-out infinite;
}
.ct-stage-dots i:nth-child(2) { animation-delay: .18s; }
.ct-stage-dots i:nth-child(3) { animation-delay: .36s; }

/* ---------------------------------------------------------------- 追问输入区 */
.ct-composer {
  position: sticky;
  bottom: 8px;
  background: #fffdf9;
  border: 1px solid #eee1cd;
  border-radius: 13px;
  padding: 10px;
  margin-top: 13px;
  box-shadow: 0 6px 18px rgba(122, 79, 22, 0.08);
}
.ct-composer[hidden] { display: none !important; }
.ct-composer-row { display: flex; gap: 8px; align-items: flex-end; }
.ct-input-mini {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #e8dbc6;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  font-family: inherit;
  resize: none;
  max-height: 132px;
}
.ct-input-mini:focus { outline: none; border-color: #c39a5c; }
.ct-send {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: #6b4423;
  flex: 0 0 auto;
}
.ct-send:disabled { opacity: .5; cursor: not-allowed; }
.ct-tip { font-size: 11px; color: #b3a291; margin-top: 6px; }

/* ---------------------------------------------------------------- 免责 */
.ct-disc {
  margin-top: 14px;
  border-top: 1px dashed #ecdfca;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ct-disc-line {
  display: flex;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #9c8a76;
}
.ct-disc-ico { flex: 0 0 auto; }
.ct-disc-line b { color: #8a6a45; }

/* ---------------------------------------------------------------- 上传合同文件
 * 老板的合同是文件，不是能选中的网页文字 —— 所以上传入口必须**显眼、好点**，
 * 放在输入框正上方（用户视线先落到这里），而不是藏在一个小图标里。 */
.ct-drop {
  position: relative;            /* 🔴 容器自带定位：装饰物/角标不会溢出撑宽页面 */
  display: flex;
  align-items: center;
  gap: 11px;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 12px 13px;
  border: 1px dashed #dbc9ab;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdfa, #fdf8f0);
  cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.ct-drop:hover { border-color: #c39a5c; background: #fffdf8; }
.ct-drop.over { border-color: #c39a5c; background: #fff9ee; box-shadow: 0 0 0 3px rgba(195, 154, 92, .12); }
.ct-drop.busy { opacity: .6; pointer-events: none; }
.ct-drop-file { display: none; }   /* 真正的 input 由 label 触发，样式全交给 label */
.ct-drop-ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  border-radius: 10px;
  background: #fbf1e0;
  border: 1px solid #f0e0c6;
}
.ct-drop-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-drop-main b { font-size: 14px; font-weight: 700; color: #6b4a24; }
.ct-drop-main i { font-size: 12px; font-style: normal; line-height: 1.5; color: #a8977f; }
.ct-drop-go {
  flex: 0 0 auto;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: #8a5a1f;
  background: #fdf0d8;
  border: 1px solid #f0dcb8;
  border-radius: 999px;
}
.ct-up-note {
  margin: -2px 0 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  border-radius: 10px;
  background: #f6f2ea;
  border: 1px solid #ece2d2;
  color: #7a6a55;
}
.ct-up-note[hidden] { display: none !important; }
.ct-up-note.ok { background: #f1f8f1; border-color: #d5e8d5; color: #3d663d; }
.ct-up-note.bad { background: #fdf3f1; border-color: #f2d9d3; color: #a8412b; }

/* ---------------------------------------------------------------- 待识别队列
 * 一次选多张（合同拆成 3/9/20 张照片是常态）→ 先攒在这里 → 点「开始识别」才逐份读。
 * 🔴 用户明确要求「我都上传完了之后你再识别」，所以这里必须是个"看得见的待办清单"，
 *    而不是选完就开始跑 —— 用户要能确认"这 9 张就是我要传的 9 张"。 */
.ct-queue {
  display: block;
  margin: 0 0 10px;
  padding: 10px 11px;
  border: 1px solid #ecdfc9;
  border-radius: 12px;
  background: #fffdf8;
}
.ct-queue[hidden] { display: none !important; }
.ct-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ct-q-count { font-size: 12.5px; font-weight: 700; color: #6b4a24; }
.ct-q-clear {
  padding: 4px 10px;
  font-size: 12px;
  color: #a8937a;
  background: transparent;
  border: 1px solid #e6dac6;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.ct-q-clear:hover:not(:disabled) { color: #a8412b; border-color: #f0cfc8; }
.ct-q-clear:disabled { opacity: .5; cursor: default; }
.ct-q-list { max-height: 216px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ct-q-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px 6px 2px;
  border-radius: 9px;
  transition: background .18s;
}
.ct-q-item + .ct-q-item { border-top: 1px solid #f4ecdf; }
.ct-q-item.now { background: #fff6e6; }
.ct-q-item.done { opacity: .55; }
.ct-q-item.fail { background: #fdf3f1; }
.ct-q-thumb {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f1e6;
  border: 1px solid #eee3d0;
}
/* 缩略图取**顶部**：合同照片的文字总在页面上半部分，
 * 取中间裁出来基本是一张白纸，用户没法一眼认出选的是哪一页。 */
.ct-q-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ct-q-ico { font-size: 15px; }
.ct-q-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ct-q-main b {
  font-size: 12.5px; font-weight: 600; color: #5d4527;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ct-q-main i { font-size: 11px; font-style: normal; color: #ab9a84; }
.ct-q-del {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  font-size: 12px;
  line-height: 1;
  color: #b6a48d;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
}
.ct-q-del:hover { color: #a8412b; background: #fbece9; }
.ct-q-bar {
  height: 4px;
  margin: 9px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e6d5;
}
.ct-q-bar[hidden] { display: none !important; }
.ct-q-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #d8b073, #b8863b);
  transition: width .25s ease;
}
.ct-q-prog { font-size: 11.5px; line-height: 1.5; color: #9c8a76; min-height: 0; }
.ct-q-go { margin-top: 8px; }

/* ---------------------------------------------------------------- 手机端 */
@media (max-width: 480px) {
  .ct-head { padding: 11px 12px; }
  .ct-mode { font-size: 12.5px; padding: 9px 2px; }
  .ct-mode span { font-size: 10px; }
  .ct-panel { padding: 12px; }
  .ct-go { width: 100%; }
  .ct-foot { flex-direction: column; align-items: stretch; }
  .ct-foot .ct-count { text-align: right; }
  .ct-dl { padding: 11px 14px; }
  .ct-doc { padding: 12px 12px 11px 15px; }
  .ct-drop { padding: 11px; gap: 9px; }
  .ct-drop-ico { width: 34px; height: 34px; font-size: 16px; }
  .ct-drop-main b { font-size: 13.5px; }
  .ct-drop-main i { font-size: 11.5px; }
  .ct-drop-go { padding: 6px 10px; font-size: 12px; }
  .ct-queue { padding: 9px 10px; }
  .ct-q-list { max-height: 178px; }
  .ct-q-thumb { width: 30px; height: 30px; }
}
