/* ============================================================
 * enhance.css — 释文对照、素材来源标注、授权发布面板
 * 配色沿用站内米底 / 墨色 / 印章红，移动端与微信内置浏览器友好
 * ============================================================ */

/* 碑帖卡片上的释文摘要 */
.card-trans {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(158, 43, 38, .28);
}
.card-trans .trans-label {
  display: inline-block;
  font-size: 11px;
  line-height: 1.5;
  color: #9e2b26;
  border: 1px solid rgba(158, 43, 38, .45);
  border-radius: 3px;
  padding: 0 5px;
  margin-bottom: 5px;
}
.card-trans p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #4a4338;
  letter-spacing: .04em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 详情弹窗中的完整释文 */
.trans-block {
  margin: 18px 0 14px;
  padding: 16px 18px;
  background: #faf7ee;
  border: 1px solid rgba(158, 43, 38, .22);
  border-radius: 6px;
}
.trans-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #9e2b26;
  letter-spacing: .06em;
}
.trans-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: #7a7163;
  line-height: 1.7;
}
.trans-text {
  font-family: "KaiTi", "STKaiti", "楷体", "Songti SC", serif;
  font-size: 18px;
  line-height: 2.15;
  letter-spacing: .09em;
  color: #1c1c1c;
  word-break: break-word;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
  padding: 12px 14px;
  background: #fffdf7;
  border-left: 3px solid #9e2b26;
}
.trans-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* 素材来源 / 许可标注 */
.src-wrap { margin: 8px 0; }
.src-tag {
  display: inline-block;
  font-size: 11px;
  line-height: 1.6;
  color: #6f6658;
  text-decoration: none;
  border-bottom: 1px dotted #b8ad99;
}
a.src-tag:hover { color: #9e2b26; }
.src-tag.local { border-bottom: none; color: #8a7f6c; }
.trans-block .src-tag { margin-top: 12px; }

/* 赏析缩略图缺图时的释文对照兜底 */
.thumb-trans {
  padding: 14px 16px;
  min-height: 110px;
  background: #faf7ee;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
}
.thumb-trans-title {
  display: block;
  font-size: 13px;
  color: #9e2b26;
  margin-bottom: 8px;
}
.thumb-trans p {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .08em;
  color: #1c1c1c;
}
.thumb-trans small { font-size: 11px; color: #8a7f6c; line-height: 1.6; }

/* 授权发布面板 */
.auth-panel {
  margin: 16px 0 22px;
  padding: 14px 18px;
  background: #faf7ee;
  border: 1px solid rgba(158, 43, 38, .2);
  border-left: 3px solid #9e2b26;
  border-radius: 5px;
}
.auth-panel.on { border-left-color: #4b7a52; }
.auth-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #4a4338;
  line-height: 1.7;
}
.auth-badge {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  color: #fff;
  background: #4b7a52;
  border-radius: 3px;
  white-space: nowrap;
}
.auth-badge.off { background: #9e2b26; }
.auth-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(158, 43, 38, .28);
}
.auth-form.inline { margin-top: 10px; }
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #6f6658;
  min-width: 170px;
}
.auth-form input {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #d8cfbc;
  border-radius: 4px;
  background: #fffdf7;
  color: #1c1c1c;
  box-sizing: border-box;
}
.auth-form input:focus { outline: 1px solid #9e2b26; }
.auth-msg { font-size: 12px; color: #9e2b26; line-height: 1.6; }
.btn.sm { padding: 5px 12px; font-size: 12px; height: auto; }

@media (max-width: 640px) {
  .trans-text { font-size: 16px; line-height: 2; padding: 10px; }
  .auth-form label { min-width: 100%; }
  .auth-panel { padding: 12px 14px; }
}
