/* ===== 标签字体系统优化（全局，低调舒适）===== */
.filter-tab {
  padding: 5px 11px !important;
  min-height: 28px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: var(--color-text-secondary) !important;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}
.filter-tab:focus,
.filter-tab:focus-visible,
.filter-tab:active {
  outline: none;
  box-shadow: none;
}
.filter-tab:active:not(.active) {
  background: var(--color-card) !important;
  color: var(--color-text-secondary) !important;
  border-color: var(--color-border) !important;
}
.filter-tab.active {
  font-size: 11px !important;
  font-weight: 500 !important;
  background: var(--color-brand-light) !important;
  color: var(--color-brand) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: none !important;
}

.section-title {
  padding: 10px 16px 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--color-text-tertiary) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.tag, .customer-card .tag, .case-card .tag {
  padding: 1px 7px !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

.chip, .chip-group .chip {
  padding: 5px 11px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  border-width: 1px !important;
  color: var(--color-text-secondary) !important;
}
.chip.active, .chip-group .chip.active, .chip.selected {
  font-weight: 500 !important;
  font-size: 12px !important;
}

.case-thumb-label, .case-card .badge {
  padding: 3px 8px !important;
  font-size: 10px !important;
  font-weight: 400 !important;
}

.case-share-btn, .btn-share-case {
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.form-label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  margin-bottom: 5px !important;
}

.detail-section-title { font-size: 13px !important; font-weight: 600 !important; }
.step-name { font-size: 13px !important; font-weight: 600 !important; }
.insight-list-card {
  background: var(--color-card);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 16px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.insight-list-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); }
.insight-highlights { padding-left: 18px; margin: 8px 0 0; line-height: 1.6; }
.insight-theme { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 12px; }

.alert-banner {
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.alert-banner strong { font-weight: 600 !important; }

.customer-tags {
  gap: 3px !important;
  margin-top: 3px !important;
}

.customer-name {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.customer-meta, .case-meta {
  font-size: 11px !important;
}

.case-title { font-size: 14px !important; font-weight: 600 !important; }
.case-desc { font-size: 12px !important; }

.upload-card-label { font-size: 12px !important; font-weight: 500 !important; }
.upload-card-desc { font-size: 10px !important; }
.upload-card-primary .upload-card-label { font-size: 14px !important; font-weight: 600 !important; }

/* 顶栏文字按钮（预览等）*/
.nav-action.nav-action-text,
.nav-header .nav-action-text {
  width: auto !important;
  min-width: 44px !important;
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  flex-shrink: 0;
}

/* 名片头像限制在圆圈内，避免大图撑满 Hero */
.biz-avatar, #cardAvatarPick {
  overflow: hidden !important;
  position: relative;
  flex-shrink: 0;
}
.biz-avatar img, #cardAvatarImg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block;
}
#cardAvatarPlaceholder {
  font-size: 24px;
  line-height: 1;
}

/* 验收 P0/P1：页面留白 + 名片 Hero 遮罩 */
.page[data-main-tab] {
  padding-bottom: 0 !important;
}
.page[data-main-tab] > .content,
.page[data-main-tab] > .content-area {
  padding-bottom: calc(var(--tab-height, 72px) + env(safe-area-inset-bottom, 0px) + 12px) !important;
}
.page[data-main-tab] > .content.shorthand-page {
  padding-bottom: 0 !important;
}
.page.no-tab, .page:not([data-main-tab]) {
  padding-bottom: 0 !important;
}

.biz-card-hero-photo {
  background-size: cover !important;
  background-position: center top !important;
}
.biz-card-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.5) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.biz-card-hero-photo > * {
  position: relative;
  z-index: 1;
}
.biz-card-hero-photo .biz-name,
.biz-card-hero-photo .biz-title,
.biz-card-hero-photo .biz-stat-label {
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}

.plan-feature-value.muted { color: var(--color-text-tertiary) !important; }
.plan-feature-value.no { color: var(--color-text-tertiary) !important; }

.alert-banner {
  background: #FEF3C7 !important;
  border-color: #FDE68A !important;
  color: #92400E !important;
}

/* 案例缩略图线性图标 */
.thumb-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}
.thumb-icon {
  width: 40px;
  height: 40px;
  color: var(--color-brand);
  opacity: 0.85;
}
.thumb-text-card .thumb-icon { color: #2563EB; }
.thumb-video-fallback .thumb-icon { color: var(--color-brand); }
.thumb-audio-fallback .thumb-icon { color: #7C3AED; }
.thumb-image-fallback .thumb-icon { color: #047857; }
.thumb-text-card--text .thumb-icon { color: #E65100; }
.thumb-text-card--image .thumb-icon { color: #047857; }
.customer-follow-banner { margin-top: 0; }

/* 线性图标系统 #2563EB */
.line-icon, .thumb-icon {
  color: #2563EB;
  fill: none;
  stroke: currentColor;
}
.line-icon { width: 22px; height: 22px; }
.thumb-icon { width: 40px; height: 40px; opacity: 0.9; }
.line-icon-sm { width: 14px; height: 14px; flex-shrink: 0; }
.line-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-icon-box .line-icon { width: 22px; height: 22px; }
.upload-card-primary .line-icon-box .line-icon { color: #fff; }
.case-share-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.case-share-btn span { line-height: 1; }

/* 微信分享引导 */
.wx-share-guide {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  pointer-events: none;
}
.wx-share-guide.open { display: block; }
.wx-share-guide-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  pointer-events: auto;
}
.wx-share-guide-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.wx-share-guide-arrow {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 4px);
  right: 16px;
  width: 80px;
  height: 88px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.wx-share-guide-text {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 96px);
  right: 36px;
  max-width: 228px;
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
}
.wx-share-guide-dots {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 1px;
  color: #fff;
}
.wx-share-guide-btn {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 168px);
  right: 36px;
  margin-top: 0;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: auto;
  cursor: pointer;
}
.wx-share-guide-btn:active {
  background: rgba(255, 255, 255, 0.22);
}

/* 分享面板 */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
.share-sheet.open { display: flex; pointer-events: auto; }
.share-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 0;
}
.share-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(16px + var(--safe-bottom, 0px));
  animation: shareSheetUp 0.22s ease;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.share-sheet-panel,
.share-sheet-panel * {
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent;
}
.share-sheet-panel input[type="checkbox"] {
  -webkit-user-select: auto;
  user-select: auto;
}
@keyframes shareSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.share-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 4px 0 18px;
  min-height: 28px;
}
.share-sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}
.share-sheet-close {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #94a3b8;
  padding: 4px 8px;
}
.share-sheet-preview {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 14px;
}
.share-sheet-preview img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}
.share-sheet-preview-text { flex: 1; min-width: 0; }
.share-sheet-preview-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-sheet-preview-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.share-sheet-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 10px;
}
.share-sheet-actions {
  margin-bottom: 14px;
}
.share-sheet-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.share-sheet-item {
  border: none;
  background: transparent;
  padding: 4px 2px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.share-sheet-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.share-sheet-icon.wechat { background: #07C160; }
.share-sheet-icon.moments { background: linear-gradient(135deg, #34d399, #0ea5e9); }
.share-sheet-icon.poster { background: #64748b; }
.share-sheet-icon.copy { background: #94a3b8; }
.share-sheet-icon.more { background: #64748B; }
.share-sheet-label { font-size: 12px; color: #475569; }
.share-sheet-cancel {
  width: 100%;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
}
.share-sheet-tip {
  font-size: 12px;
  color: #94a3b8;
  text-align: left;
  margin: 0 0 12px;
  line-height: 1.5;
}
.share-sheet-gate {
  padding: 0 0 8px;
}
.share-sheet-gate-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.share-sheet-perm {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.share-sheet-perm-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.share-sheet-perm-btn:last-child { border-bottom: none; }
.share-sheet-perm-btn.active { background: transparent; }
.share-sheet-perm-btn:active { background: #f8fafc; }
.share-sheet-perm-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: transparent;
}
.share-sheet-perm-btn.active .share-sheet-perm-check {
  border-color: #0f172a;
  background: #0f172a;
}
.share-sheet-perm-main { flex: 1; min-width: 0; }
.share-sheet-perm-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}
.share-sheet-perm-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}
.share-sheet-expire {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.share-sheet-expire-btn {
  flex: 1;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 7px 8px;
  font-size: 12px;
  color: #64748b;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.share-sheet-expire-btn.active {
  border-color: #0f172a;
  color: #0f172a;
  font-weight: 600;
  background: #f8fafc;
}
.share-sheet-attach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  margin-bottom: 8px;
  border-top: 1px solid #f1f5f9;
}
.share-sheet-attach-text {
  flex: 1;
  min-width: 0;
}
.share-sheet-attach-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.share-sheet-attach-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #94a3b8;
}
.share-sheet-attach input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.share-sheet-item.is-disabled {
  opacity: 0.38;
}
.share-sheet-soft {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.28);
}
.share-sheet-soft-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}
.share-sheet-soft-msg {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
  text-align: center;
}
.share-sheet-soft-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-sheet-soft-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.share-sheet-soft-btn--ghost { background: #f1f5f9; color: #475569; }
.share-sheet-soft-btn--primary { background: #0f172a; color: #fff; }
.share-poster-preview {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  padding: 0;
}
.share-poster-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(16px + var(--safe-bottom, 0px));
}
.share-poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.share-poster-close {
  border: none;
  background: transparent;
  font-size: 24px;
  color: #94a3b8;
  padding: 4px 6px;
}
.share-poster-loading {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 40px 0;
}
.share-poster-img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}
.share-poster-hint {
  margin: 10px 0 12px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  text-align: center;
}
.share-poster-save {
  width: 100%;
  border: none;
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* IP 名片向导与完成度 */
.wide-btn-primary { background: var(--color-brand); color: #fff; border: none; }
.card-completion-banner {
  margin: 0 16px 12px;
  padding: 12px 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  font-size: 13px;
  color: #1E40AF;
}
.card-completion-banner .cc-title { font-weight: 600; margin-bottom: 6px; }
.card-completion-banner .cc-item { margin: 2px 0; }
.card-completion-banner .cc-item.done { color: #047857; }
.card-completion-banner .cc-item.pending { color: #B45309; }
.card-completion-banner .cc-item.optional { opacity: 0.85; font-size: 12px; }
.card-completion-banner .cc-item.optional.pending { color: var(--color-text-tertiary); }
.ip-variant-card {
  margin: 0 16px 12px;
  padding: 14px;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  background: #fff;
}
.ip-variant-card.selected { border-color: var(--color-brand); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.ip-variant-tag { display: inline-block; font-size: 11px; color: var(--color-brand); background: #EFF6FF; padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }
.ip-variant-headline { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.ip-variant-bio { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 10px; }
.public-ip-section { margin: 0 16px 12px; padding: 12px 14px; background: #F8FAFC; border-radius: 12px; }
.public-ip-label { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.public-ip-text { font-size: 14px; line-height: 1.55; color: var(--color-text); }
.public-value-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--color-text-secondary); }
.public-cta-line { margin: 12px 16px; padding: 10px 12px; background: #EFF6FF; border-radius: 10px; font-size: 13px; color: #1D4ED8; text-align: center; }

/* 阅读正文默认 15px（录音/笔记润色卡）；案例详情 consumer-story 单独放大 */
.consumer-story { padding: 4px 16px 8px; }
.consumer-story-p {
  font-size: 15px;
  line-height: 26px;
  color: #374151;
  margin: 0 0 18px;
}
.trx-detail-page .consumer-story .consumer-story-p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0 0 20px;
}
.detail-owner-tools {
  margin: 0 16px 12px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px dashed var(--color-border-light);
}
.detail-owner-title { font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; }
.detail-format-row { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-format-btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-secondary);
}
.detail-format-btn-active {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: #EFF6FF;
}
.detail-draft-wrap { padding: 0 16px 12px; }
.detail-draft-details summary {
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 8px 0;
}
.detail-draft-body {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: #F9FAFB;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
}
.detail-draft-line { margin-bottom: 8px; line-height: 1.5; }
.detail-draft-label {
  display: inline-block;
  min-width: 42px;
  color: var(--color-text-muted);
  margin-right: 6px;
}

/* 录音详情 · Get笔记式 Tab */
.detail-tabs {
  display: flex;
  gap: 0;
  margin: 0 16px 12px;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 4px;
}
.detail-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-radius: 8px;
}
.detail-tab-active {
  background: #fff;
  color: var(--color-brand);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.detail-tab-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 16px 8px;
}
.detail-tab-edit-btn {
  border: 1px solid var(--color-brand);
  background: #fff;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}
.detail-tab-edit-btn:focus,
.detail-tab-edit-btn:focus-visible,
.detail-tab-edit-btn:active {
  outline: none;
  box-shadow: none;
}
.detail-readonly-hint {
  margin: 0 16px 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  background: #F8FAFC;
  border-radius: 8px;
}
.detail-readonly-body {
  user-select: text;
  -webkit-user-modify: read-only;
}
.detail-body { padding: 0 0 8px; }
#btnRefineCase { flex: 1.2; }

/* ===== P4 案例详情 · transcription-v1 v2.1 ===== */
.trx-detail-page,
#page-detail.page.trx-detail-page {
  background: #FFFFFF;
}
.trx-detail-page .content.trx-detail-content {
  padding: 0 0 16px;
  background: #FFFFFF;
}
.trx-detail-nav .nav-spacer { flex: 1; }
.trx-detail-nav-actions { display: flex; gap: 4px; }
.trx-detail-nav-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; background: none; border: none;
  color: var(--color-text-primary);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  user-select: none;
  touch-action: manipulation;
}
.trx-detail-nav-icon:active { background: var(--color-border-light, #F3F4F6); }
.trx-detail-nav-cancel {
  background: none; border: none;
  font-size: 16px; color: var(--color-text-secondary);
  padding: 8px 4px; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.trx-detail-nav-done {
  background: none; border: none;
  font-size: 16px; font-weight: 600; color: var(--color-brand);
  padding: 8px 12px; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.trx-detail-nav-done:disabled { opacity: 0.5; }
.trx-detail-page--editing .trx-detail-header { opacity: 0.55; }
.trx-detail-page--editing .trx-detail-compliance { display: none; }
.trx-detail-tabs--locked { opacity: 0.45; pointer-events: none; }
.trx-detail-inline-edit {
  display: block; width: 100%; min-height: 55vh;
  border: none; outline: none; resize: none;
  font-size: 16px; line-height: 1.85;
  color: var(--color-text-primary);
  font-family: inherit; background: transparent;
  padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
}
.trx-detail-inline-edit::placeholder { color: var(--color-text-tertiary); }
/* 与笔记详情「原文润色」头区对齐：标题 → 时间 → 标签 */
.trx-detail-header.note-detail-header-v3 {
  padding: 16px 16px 8px;
  background: #fff;
}
.trx-detail-page .trx-detail-title,
.trx-detail-page .text-note-detail-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--color-text-primary);
}
.trx-detail-page .trx-detail-time,
.trx-detail-page .text-note-detail-meta {
  font-size: 12px;
  margin: 0;
  color: var(--color-text-tertiary, #9ca3af);
  white-space: normal;
}
.trx-detail-meta-row {
  display: none;
}
.trx-detail-meta-dot { color: var(--color-border, #E5E7EB); }
.trx-detail-page .trx-detail-tag-row.note-detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin-top: 10px;
}
.trx-detail-page .trx-detail-tag-row.note-detail-tags.note-detail-tags--fold {
  flex-wrap: nowrap;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.trx-detail-page .trx-detail-tag-row.note-detail-tags.note-detail-tags--fold .note-tag-chip:not(.note-tag-more) {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}
.trx-detail-page .trx-detail-tag-row.note-detail-tags.note-detail-tags--expanded {
  flex-wrap: wrap;
  overflow: visible;
}
.trx-detail-page .trx-detail-tag-row .note-tag-chip {
  border-radius: 4px;
  background: #fff;
  border: 1px solid #ebebeb;
  color: #999;
  font-weight: 400;
}
.trx-detail-header-tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--color-border, #E5E7EB);
  background: #fff;
  color: var(--color-text-secondary); font-size: 12px; font-weight: 500;
}
.trx-detail-header-tag--accent,
.trx-detail-header-tag--green {
  border: 1px solid var(--color-border, #E5E7EB);
  background: #fff;
  color: var(--color-text-secondary);
}
.trx-detail-media-wrap { margin: 0 16px 12px; }
.trx-detail-media-card {
  background: var(--color-border-light, #F3F4F6);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.trx-detail-media-card .trx-detail-video-wrap { border-radius: 0; }
.trx-detail-media-card .trx-detail-video {
  border-radius: 0;
}
.trx-detail-media-card .trx-detail-media-bar {
  border: none; border-radius: 0;
  background: transparent;
}
.trx-detail-media-toolbar {
  display: flex; align-items: center; justify-content: center;
  gap: 2px; padding: 8px 12px;
  border-top: 1px solid var(--color-border, #E5E7EB);
}
.trx-detail-media-toolbar-sep {
  width: 1px; height: 12px;
  background: var(--color-border, #E5E7EB);
  margin: 0 6px;
}
.trx-detail-media-card .detail-media-hint {
  padding: 0 14px 10px; margin: 0;
}
.trx-detail-media-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #F8FAFC;
  border-radius: var(--radius-md); border: 1px solid var(--color-border);
}
.trx-detail-video-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.trx-detail-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  object-fit: contain;
  display: block;
  background: #000;
}
.trx-detail-video.is-portrait {
  max-height: min(56vh, 480px);
}
.trx-detail-video.is-landscape {
  max-height: 240px;
}
.trx-detail-page .detail-tabs.trx-draft-tabs {
  position: static;
  top: auto;
  z-index: auto;
  margin: 0;
  padding: 0 16px;
  gap: 0;
  background: #FFFFFF;
  border-radius: 0;
  border-bottom: 1px solid var(--color-border-light, #F3F4F6);
}
.trx-detail-page .detail-tabs .detail-tab {
  flex: 1;
  padding: 10px 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
}
.trx-detail-page .detail-tabs .detail-tab:focus,
.trx-detail-page .detail-tabs .detail-tab:focus-visible,
.trx-detail-page .detail-tabs .detail-tab:active {
  outline: none;
  box-shadow: none;
}
.trx-detail-page .detail-tabs .detail-tab-active,
.trx-detail-page .detail-tabs .detail-tab.trx-draft-tab--active {
  background: none;
  box-shadow: none;
  color: var(--color-text-primary);
  font-weight: 600;
}
.trx-detail-page .detail-tabs .detail-tab-active::after,
.trx-detail-page .detail-tabs .detail-tab.trx-draft-tab--active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 2px;
  border-radius: 1px;
  background: var(--color-brand);
}
.trx-detail-tab-actions { display: none; }
.trx-detail-reading {
  padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
  font-size: 16px; line-height: 1.85;
}
.trx-detail-page .note-shell-stack {
  margin: 0;
}
.trx-detail-page .note-reader-card-body {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}
.trx-detail-ts-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--color-border-light, #F3F4F6);
  font-size: 11px; color: var(--color-text-tertiary);
  cursor: pointer; margin-bottom: 14px; border: none;
  user-select: none; font-family: inherit;
}
.trx-detail-ts-toggle--active {
  background: var(--color-brand-light, #EFF6FF);
  color: var(--color-brand-dark, #1E40AF);
}
.trx-detail-compliance { margin: 8px 16px 16px; font-size: 11px; }
.trx-detail-bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  max-width: 480px; margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light, #F3F4F6);
}
.trx-detail-bottom-inner {
  display: flex; align-items: center; justify-content: space-around;
  width: 100%; gap: 4px;
}
#page-detail .bottom-bar.trx-detail-bottom-bar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  max-width: none;
  margin: 0;
  z-index: 20;
}
.trx-detail-bottom-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  cursor: pointer; background: none; border: none; min-width: 52px;
  flex: 1; max-width: 88px;
  -webkit-tap-highlight-color: transparent;
}
.trx-detail-bottom-action:active { background: var(--color-border-light, #F3F4F6); color: var(--color-brand); }
.trx-detail-bottom-icon { font-size: 20px; line-height: 1; }
.trx-detail-bottom-label {
  font-size: 10px; color: var(--color-text-secondary); font-weight: 500;
}
.trx-detail-bottom-action--weak .trx-detail-bottom-icon { opacity: 0.5; }
.trx-detail-bottom-action--weak .trx-detail-bottom-label {
  color: var(--color-text-tertiary); font-weight: 400;
}
.trx-detail-bottom-strong {
  flex: 1; margin-left: 4px; padding: 10px 14px;
  background: var(--color-brand); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  max-width: none; min-width: 0;
}
.trx-detail-bottom-inner .trx-detail-bottom-strong { flex: 1.2; }
.trx-detail-bottom-strong:active { opacity: 0.9; }
.trx-detail-bottom-btn {
  padding: 12px 14px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 500; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.trx-detail-bottom-btn:focus,
.trx-detail-bottom-btn:focus-visible,
.trx-detail-bottom-btn:active {
  outline: none;
  box-shadow: none;
}
.trx-detail-bottom-btn:active { transform: scale(0.97); }
.trx-detail-bottom-btn--collect,
.trx-detail-bottom-btn--edit {
  background: var(--color-border-light, #F3F4F6); color: var(--color-text-secondary);
}
.trx-detail-bottom-btn--share,
.trx-detail-bottom-btn--refine {
  flex: 1; background: var(--color-brand); color: #fff; font-weight: 600;
}
.trx-detail-page .transcript-body {
  font-size: 16px; line-height: 1.85; color: var(--color-text-primary);
  word-break: break-word;
}
.trx-detail-page .transcript-body p { margin-bottom: 20px; }
.trx-detail-page .transcript-timestamp {
  display: inline-block; font-size: 12px; color: var(--color-text-tertiary);
  font-weight: 500; margin-right: 6px; vertical-align: 1px;
}
.trx-detail-page .note-body { font-size: 16px; line-height: 1.85; }
.trx-detail-note-flow { display: flex; flex-direction: column; gap: 0; }
.trx-detail-note-section { margin-bottom: 20px; }
.trx-detail-note-section:last-child { margin-bottom: 0; }
.trx-detail-note-section-label {
  font-size: 13px; font-weight: 600; color: var(--color-text-secondary);
  margin-bottom: 8px; padding-left: 12px;
  border-left: 3px solid var(--color-brand);
}
.trx-detail-note-section-body {
  font-size: 15px; line-height: 1.85; color: var(--color-text-primary);
  padding: 0 4px;
}
.trx-detail-note-h2 {
  font-size: 13px; font-weight: 600; color: var(--color-text-secondary);
  margin: 0 0 8px; padding-left: 12px;
  border-left: 3px solid var(--color-brand);
}
.trx-detail-note-flow .trx-detail-note-h2:first-child { margin-top: 0; }
.trx-detail-note-bullet::before {
  content: "• "; color: var(--color-brand); font-weight: 700;
}
.trx-detail-note-stack { display: flex; flex-direction: column; gap: 12px; }
.trx-detail-note-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.trx-detail-note-card--accent {
  border-color: var(--color-brand);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.trx-detail-page .note-section { margin-bottom: 0; }
.trx-detail-page .note-section-title {
  font-size: 15px; font-weight: 700; color: var(--color-brand-dark, #1E40AF);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--color-brand-light, #EFF6FF);
}
.trx-detail-page .note-section-content { font-size: 15px; line-height: 1.8; }
.trx-detail-page .note-bullet { margin-bottom: 8px; padding-left: 4px; }
.trx-detail-page .note-bullet::before {
  content: "• "; color: var(--color-brand); font-weight: 700; margin-right: 4px;
}
.trx-detail-page .note-ai-block {
  background: #FFFBEB; border-left: 3px solid #F59E0B;
  padding: 14px 16px; margin-bottom: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.trx-detail-page .note-ai-label { font-size: 12px; font-weight: 700; color: #B45309; margin-bottom: 6px; }
.trx-detail-page .note-ai-text {
  font-size: 15px;
  line-height: 1.75;
  color: #78350F;
}
.trx-detail-page .note-ai-text p,
.trx-detail-page .note-ai-text .consumer-story-p {
  margin: 0 0 14px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: 400;
}
.trx-detail-page .note-ai-text p:last-child,
.trx-detail-page .note-ai-text .consumer-story-p:last-child {
  margin-bottom: 0;
}
.trx-detail-page .note-body p,
.trx-detail-page .note-body .consumer-story-p,
.trx-detail-page .trx-detail-note-section-body p,
.trx-detail-page .trx-detail-note-section-body .consumer-story-p {
  margin: 0 0 18px;
  line-height: 1.85;
}
.trx-detail-page .note-body p:last-child,
.trx-detail-page .note-body .consumer-story-p:last-child,
.trx-detail-page .trx-detail-note-section-body p:last-child,
.trx-detail-page .trx-detail-note-section-body .consumer-story-p:last-child {
  margin-bottom: 0;
}
.trx-detail-page .consumer-story .consumer-story-p { margin-bottom: 18px; }
.trx-detail-page .detail-source-link { display: none; }
