/* ===== 跟进记录确认页 ===== */
.followup-result-body { padding: 12px 16px 100px; }
.followup-success-banner {
  text-align: center; color: var(--color-success, #16a34a); font-size: 14px; font-weight: 600;
  margin: 8px 0 16px;
}
.followup-client-card {
  background: var(--color-card); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 12px;
}
.followup-client-top { display: flex; gap: 12px; align-items: center; }
.followup-client-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2563EB, #1E40AF); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.followup-client-name { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.followup-client-sub { font-size: 13px; color: var(--color-text-secondary); }
.followup-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.followup-section {
  background: var(--color-card); border-radius: var(--radius-lg); padding: 16px;
  margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.followup-section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.followup-field { margin-bottom: 10px; }
.followup-field-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; }
.followup-field-value { font-size: 14px; line-height: 1.6; }
.followup-stars { color: #f59e0b; letter-spacing: 2px; font-size: 16px; }
.followup-ai-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: var(--radius-md); padding: 12px 14px; margin-top: 4px;
  color: #1E40AF; font-size: 14px; line-height: 1.6;
}
.followup-todo-item {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.followup-todo-item:last-child { border-bottom: none; }
.followup-todo-priority {
  font-size: 11px; padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.followup-todo-priority.high { background: #fee2e2; color: #dc2626; }
.followup-todo-priority.medium { background: #ffedd5; color: #ea580c; }
.followup-todo-priority.low { background: #f3f4f6; color: #6b7280; }
.followup-bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--color-card); border-top: 1px solid var(--color-border);
  max-width: 480px; margin: 0 auto;
}
.followup-btn-rerecord { flex: 1; }
.followup-btn-save { flex: 1; }
.followup-edit-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: 14px; margin-top: 4px;
}
.followup-edit-input.textarea { min-height: 64px; resize: vertical; }

/* ===== 更多 / 跟进 上拉菜单（对齐统一设计系统 popup-sheet） ===== */
.more-sheet {
  display: none; position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
}
.more-sheet.open { display: block; pointer-events: auto; }
.more-sheet-mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5);
}
.more-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--color-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
  max-width: 420px; margin: 0 auto;
  animation: moreSheetSlideUp 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
@keyframes moreSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.more-sheet-panel::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 8px auto 16px;
}
.more-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.more-sheet-title { font-size: 15px; font-weight: 600; color: var(--color-text-primary); }
.more-sheet-close {
  width: auto; height: auto; border-radius: 0; border: none;
  background: none; font-size: 18px; line-height: 1;
  color: var(--color-text-tertiary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 4px;
}
.more-sheet-close:active { color: var(--color-text-secondary); background: none; }
.more-sheet-cards {
  display: flex; flex-direction: column; gap: 2px;
}
.more-sheet-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: none;
  border-radius: var(--radius-md); background: var(--color-card);
  text-align: left; cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.more-sheet-card:active { background: var(--color-border-light); }
.more-sheet-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.more-sheet-card-icon.tone-brand { background: var(--color-brand-light); }
.more-sheet-card-icon.tone-success { background: var(--color-success-light); }
.more-sheet-card-icon.tone-warning { background: var(--color-warning-light); }
.more-sheet-card-icon.tone-violet { background: #EDE9FE; }
.more-sheet-card-icon.tone-sky { background: #E0F2FE; }
.more-sheet-card-content {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.more-sheet-card-title {
  font-size: 15px; font-weight: 600; color: var(--color-text-primary);
}
.more-sheet-card-desc {
  font-size: 11px; color: var(--color-text-tertiary); line-height: 1.35;
}
.more-sheet-card-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: #FEF3C7;
  color: #92400E;
}
.more-sheet-card-arrow {
  flex-shrink: 0; color: var(--color-text-tertiary); font-size: 18px; line-height: 1;
  margin-left: 4px;
}
/* 兼容旧结构（速记页等） */
.more-sheet-list { display: flex; flex-direction: column; gap: 12px; }
.more-sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-card);
  text-align: left; cursor: pointer; border-bottom: none;
}
.more-sheet-icon { font-size: 18px; width: 40px; height: 40px;
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; background: var(--color-brand-light); flex-shrink: 0;
}
.more-sheet-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.more-sheet-text strong { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.more-sheet-text small { font-size: 12px; color: var(--color-text-secondary); }

.shorthand-more-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.shorthand-more-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--color-card); border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  max-width: 480px; margin: 0 auto;
}
.shorthand-more-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.shorthand-more-title { font-size: 16px; font-weight: 700; }
.shorthand-more-close {
  border: none; background: none; font-size: 24px; line-height: 1;
  color: var(--color-text-secondary); cursor: pointer;
}
.shorthand-more-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 4px; border: none; background: none; text-align: left;
  border-bottom: 1px solid var(--color-border); cursor: pointer;
}
.shorthand-more-item:last-child { border-bottom: none; }
.shorthand-more-icon { font-size: 28px; width: 36px; text-align: center; }
.shorthand-more-text { display: flex; flex-direction: column; gap: 2px; }
.shorthand-more-text strong { font-size: 15px; color: var(--color-text-primary); }
.shorthand-more-text small { font-size: 12px; color: var(--color-text-secondary); }

/* ===== 自定义日期选择器 ===== */
.date-picker-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.date-picker-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  align-items: center; justify-content: center; padding: 16px;
}
.date-picker-overlay.open { display: flex; }
.date-picker-mask {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5);
}
.date-picker-panel {
  position: relative; width: 100%; max-width: 340px;
  background: var(--color-card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  animation: datePickerFadeIn 0.2s ease-out;
}
@keyframes datePickerFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.date-picker-header {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: #fff; padding: 20px 20px 18px;
}
.date-picker-header-year { font-size: 14px; opacity: 0.9; margin-bottom: 4px; }
.date-picker-header-date { font-size: 26px; font-weight: 700; }
.date-picker-body { padding: 12px 16px 8px; }
.date-picker-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.date-picker-nav-btn {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--color-bg); color: var(--color-text-primary);
  font-size: 20px; cursor: pointer;
}
.date-picker-nav-btn:active { background: var(--color-brand-light); color: var(--color-brand); }
.date-picker-nav-title { font-size: 15px; font-weight: 600; }
.date-picker-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 6px; text-align: center;
}
.date-picker-weekdays span {
  font-size: 12px; color: var(--color-text-tertiary); padding: 4px 0;
}
.date-picker-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.date-picker-day {
  aspect-ratio: 1; border: none; border-radius: 50%;
  background: transparent; font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.date-picker-day.is-empty { pointer-events: none; }
.date-picker-day.is-past {
  color: var(--color-text-tertiary); font-weight: 400;
}
.date-picker-day.is-past:disabled { opacity: 0.45; cursor: not-allowed; }
.date-picker-day.is-today {
  color: var(--color-brand); font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--color-brand);
}
.date-picker-day.is-future { color: var(--color-text-primary); font-weight: 600; }
.date-picker-day.is-selected {
  background: var(--color-brand); color: #fff !important;
  box-shadow: none; font-weight: 700;
}
.date-picker-day:not(.is-empty):not(:disabled):active {
  background: var(--color-brand-light);
}
.date-picker-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 8px 12px 14px;
}
.date-picker-action {
  border: none; background: none; padding: 8px 12px;
  font-size: 15px; font-weight: 600; color: var(--color-brand);
  cursor: pointer; border-radius: var(--radius-sm);
}
.date-picker-action:active { background: var(--color-brand-light); }
.date-picker-confirm { font-weight: 700; }

/* 底部 Sheet 模式（客户详情提醒等） */
.date-picker-overlay.date-picker-overlay--sheet {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.date-picker-overlay--sheet .date-picker-panel {
  max-width: 480px;
  width: 100%;
  border-radius: 16px 16px 0 0;
  animation: datePickerSheetUp 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes datePickerSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.date-picker-overlay--sheet .date-picker-header {
  padding: 16px 20px 14px;
}
.date-picker-overlay--sheet .date-picker-header-date {
  font-size: 22px;
}
.date-picker-overlay--sheet .date-picker-footer {
  padding: 8px 16px 16px;
}
.date-picker-overlay--sheet .date-picker-confirm {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: var(--color-brand);
  color: #fff;
  border-radius: var(--radius-md);
}
.date-picker-overlay--sheet .date-picker-confirm:active {
  background: var(--color-brand-dark);
}
.date-picker-overlay--sheet #dpClear {
  display: none;
}

/* ===== 选项选择器（复购周期等） ===== */
.option-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.option-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.option-picker-trigger::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
/* 应用内输入弹层（替代 window.prompt，避免微信显示 JavaScript） */
.app-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.app-prompt-overlay.open { display: flex; }
.app-prompt-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.app-prompt-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-card, #fff);
  border-radius: 16px 16px 0 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  animation: datePickerSheetUp 0.3s ease;
}
.app-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 10px;
}
.app-prompt-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary, #1F2937);
}
.app-prompt-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: var(--color-bg, #F3F4F6);
  color: var(--color-text-secondary, #6B7280);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.app-prompt-body { padding: 0 16px 8px; }
.app-prompt-tip {
  margin: 0 0 12px;
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.45;
}
.app-prompt-field { display: block; margin-bottom: 12px; }
.app-prompt-label {
  display: block;
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 6px;
}
.app-prompt-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 16px;
  color: #1F2937;
  font-family: inherit;
  outline: none;
  background: #F9FAFB;
}
.app-prompt-input:focus {
  border-color: #3B82F6;
  background: #fff;
}
.app-prompt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 16px 0;
}
.app-prompt-btn {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.app-prompt-btn--ghost {
  background: #F3F4F6;
  color: #4B5563;
}
.app-prompt-btn--primary {
  background: #3B82F6;
  color: #fff;
}

.option-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.option-picker-overlay.open { display: flex; }
.option-picker-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.option-picker-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-card);
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: datePickerSheetUp 0.3s ease;
  max-height: min(70vh, 420px);
  display: flex;
  flex-direction: column;
}
.option-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--color-border-light);
}
.option-picker-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.option-picker-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.option-picker-list {
  overflow-y: auto;
  padding: 8px 0;
}
.option-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: none;
  padding: 14px 20px;
  font-size: 16px;
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
}
.option-picker-item:active,
.option-picker-item.is-selected {
  background: var(--color-brand-light);
}
.option-picker-item-label { flex: 1; min-width: 0; }
.option-picker-check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-left: 12px;
}
.option-picker-item.is-selected .option-picker-check {
  background: var(--color-brand);
  border-color: var(--color-brand);
}

/* ===== 客户标签编辑 ===== */
.form-label-hint {
  font-size: 12px; color: var(--color-text-tertiary); margin-top: 4px;
}
.cust-tags-editor { align-items: center; }
.cust-tags-editor .chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding-right: 8px;
}
.cust-tags-editor .chip-remove {
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1; color: var(--color-text-tertiary);
  cursor: pointer; flex-shrink: 0;
}
.cust-tags-editor .chip.active .chip-remove { color: var(--color-brand); }
.cust-tags-editor .chip-remove:active { background: rgba(0,0,0,0.08); }
.cust-tag-add-row {
  margin: 0 16px 14px; display: flex; gap: 8px; align-items: center;
}
.cust-tag-add-input { font-size: 14px; flex: 1; min-width: 0; }
.cust-tag-add-btn {
  flex-shrink: 0; border: none; border-radius: var(--radius-md);
  background: var(--color-brand); color: #fff;
  font-size: 14px; font-weight: 600; padding: 10px 16px; cursor: pointer;
}
.cust-tag-add-btn:active { background: var(--color-brand-dark); }
.detail-row-value.detail-empty { color: var(--color-text-tertiary); font-weight: 400; }

/* ===== 客户详情编辑 ===== */
.detail-edit-form { display: flex; flex-direction: column; gap: 12px; }
.detail-edit-field { display: flex; flex-direction: column; gap: 6px; }
.detail-edit-label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.detail-edit-field .chip-group { margin: 0; }
.detail-edit-field .cust-tag-add-row { margin: 4px 0 0; }

/* ===== 客户/伙伴列表（底栏 Tab 预留滚动空间）===== */
#page-customers .customer-list-content,
#page-team .customer-list-content {
  padding-bottom: calc(var(--tab-height, 80px) + env(safe-area-inset-bottom, 0px) + 16px);
}
.follow-list-nav-header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 0 !important;
}
.follow-list-nav-header .nav-title {
  flex: none !important;
  min-width: 0;
  text-align: center;
  justify-self: center;
  grid-column: 2;
}
.follow-list-nav-header .nav-back {
  grid-column: 1;
  justify-self: start;
}
.follow-list-nav-tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  background: var(--color-bg, #f3f4f6);
}
.follow-list-nav-header .follow-list-nav-switch,
.follow-list-nav-header .follow-list-nav-add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  min-width: 34px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0;
  color: var(--color-brand) !important;
  background: none !important;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.follow-list-nav-header .follow-list-nav-switch svg,
.follow-list-nav-header .follow-list-nav-add svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.follow-list-nav-header .follow-list-nav-switch:active,
.follow-list-nav-header .follow-list-nav-add:active {
  opacity: 0.65;
}

/* ===== 客户详情 · 语音跟进 ===== */
.customer-follow-section { margin-bottom: 8px; }
.follow-input-wrap { position: relative; }
.follow-note-input {
  width: 100%; min-width: 0;
  padding-right: 48px;
  resize: none;
  line-height: 1.45;
  transition: min-height 0.2s ease, max-height 0.2s ease;
}
.customer-detail-page .follow-note-input:not(.follow-drawer-textarea) {
  min-height: 44px;
  max-height: 44px;
  padding: 8px 44px 8px 12px;
  overflow: hidden;
}
.customer-detail-page .follow-input-wrap.is-expanded .follow-note-input:not(.follow-drawer-textarea),
.customer-detail-page .follow-note-input:not(.follow-drawer-textarea):focus {
  min-height: 88px;
  max-height: 132px;
  padding-bottom: 40px;
  overflow-y: auto;
}
.customer-detail-page .follow-drawer-textarea {
  min-height: 110px;
  max-height: 180px;
  overflow-y: auto;
}
.follow-voice-btn {
  position: absolute; right: 8px; bottom: 8px;
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  cursor: pointer; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
.follow-voice-icon { font-size: 16px; line-height: 1; }
.follow-voice-btn:active { transform: scale(0.96); background: var(--color-brand-dark); }
.follow-voice-btn.is-recording {
  background: var(--color-error); color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
  animation: follow-voice-pulse 1.2s ease-in-out infinite;
}
.follow-voice-btn.is-recording .follow-voice-icon { font-size: 14px; font-weight: 700; }
@keyframes follow-voice-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.15); }
}
.follow-voice-hint {
  margin: 6px 0 0; font-size: 11px; color: var(--color-text-tertiary);
}
.customer-detail-page .follow-voice-hint {
  display: none;
  margin: 4px 0 0;
}
.customer-detail-page .follow-record-drawer.is-input-expanded .follow-voice-hint,
.customer-detail-page .customer-detail-footer.is-input-expanded .follow-voice-hint {
  display: block;
}
.follow-voice-status {
  margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--color-brand-light); color: var(--color-brand-dark);
  font-size: 13px; font-weight: 500; text-align: center;
  cursor: pointer;
}
.follow-voice-status.is-recording { background: #FEE2E2; color: #B91C1C; }
.follow-voice-result { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.follow-voice-result .voice-draft-transcript-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.follow-voice-result .voice-draft-transcript {
  line-height: 1.7; color: var(--color-text-primary);
  white-space: pre-wrap; word-break: break-word;
}
.follow-ai-summary-card {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.follow-ai-summary-card .form-input {
  background: rgba(255,255,255,0.85); border-color: rgba(37,99,235,0.2);
}
.follow-voice-actions {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 4px;
}
.follow-voice-actions .follow-save-primary { margin: 0; }
.follow-voice-actions-row { display: flex; gap: 10px; }
.follow-action-btn {
  flex: 1; padding: 12px 10px; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-card);
  font-size: 14px; font-weight: 600; color: var(--color-text-secondary);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.follow-action-btn:active { background: var(--color-bg); border-color: var(--color-brand-light); }

/* ===== 跟进详情页（客户 / 团队伙伴共用） ===== */
.customer-detail-page.active {
  display: flex !important;
  flex-direction: column;
  padding-bottom: 0 !important;
}
.customer-detail-page .customer-detail-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.customer-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.customer-detail-page .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.customer-detail-page .nav-actions .detail-nav-wukong {
  width: 36px;
  height: 36px;
  padding: 0;
}
.customer-detail-page .nav-actions .detail-nav-wukong-avatar {
  width: 36px;
  height: 36px;
}
.customer-nav-add-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.customer-nav-add-btn svg { width: 18px; height: 18px; }
.customer-nav-add-btn:active { transform: scale(0.92); }
.customer-nav-add-btn.is-hidden { display: none; }
.customer-nav-more-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.customer-nav-more-btn svg { width: 18px; height: 18px; }
.customer-nav-more-btn:active { background: var(--color-border-light); }

/* ===== 跟进录入 Drawer（右侧滑出） ===== */
.follow-record-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.follow-record-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.follow-record-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  max-width: 420px;
  background: var(--color-card);
  z-index: 301;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}
.follow-record-drawer-overlay.is-open .follow-record-drawer {
  transform: translateX(0);
}
.follow-record-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 0.5px solid var(--color-border-light);
  flex-shrink: 0;
}
.follow-record-drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.follow-record-drawer-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.follow-record-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}
.follow-drawer-section {
  background: var(--color-surface, #F1F3F5);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  border: 0.5px solid rgba(0, 0, 0, 0.04);
}
.follow-drawer-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.follow-drawer-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.follow-drawer-textarea {
  min-height: 110px;
  max-height: none;
  padding: 14px 48px 14px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: var(--color-card);
  resize: none;
  line-height: 1.6;
}
.follow-drawer-textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.follow-drawer-voice-result { display: flex; flex-direction: column; gap: 0; }
.follow-drawer-voice-result .follow-drawer-section { margin-bottom: 12px; }
.follow-drawer-ai-textarea {
  min-height: 80px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(16, 185, 129, 0.04));
  border-color: rgba(59, 130, 246, 0.15);
  color: var(--color-text-primary);
}
.follow-reminder-date-compact {
  display: none;
}
.follow-reminder-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-top: 0;
}
.follow-reminder-chips-scroll::-webkit-scrollbar { display: none; }
.customer-detail-page .follow-reminder-chips-scroll .reminder-quick-chip {
  padding: 8px 15px;
  font-size: 13px;
  border-radius: 9px;
  flex-shrink: 0;
}
.reminder-quick-chip--custom {
  border: 1.5px dashed rgba(0, 0, 0, 0.15) !important;
  color: var(--color-text-tertiary);
}
.reminder-quick-chip--custom.active {
  border-style: solid !important;
  border-color: var(--color-brand) !important;
  color: var(--color-brand);
}
.follow-reminder-selected {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--color-brand);
  min-height: 18px;
}
.follow-record-drawer-footer {
  flex-shrink: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 0.5px solid var(--color-border-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  background: var(--color-card);
}
.follow-drawer-submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.follow-drawer-submit-btn:active { transform: scale(0.98); opacity: 0.95; }
.follow-drawer-footer-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.follow-drawer-secondary-btn {
  flex: 1;
  padding: 12px 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: var(--color-card);
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.follow-drawer-secondary-btn:active { background: var(--color-border-light); }
.follow-record-drawer.is-voice-result #customerFollowInputState,
.follow-record-drawer.is-voice-result #teamFollowInputState { display: none; }
.follow-record-drawer.is-voice-result #followVoiceResult,
.follow-record-drawer.is-voice-result #teamFollowVoiceResult { display: flex !important; }

/* ===== ⋮ Action Sheet ===== */
.customer-action-sheet {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.customer-action-sheet.is-open { display: flex; }
.customer-action-sheet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.customer-action-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-card);
  border-radius: 22px 22px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  animation: followActionSheetUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes followActionSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.customer-action-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.15);
  margin: 10px auto 6px;
}
.customer-action-sheet-title {
  font-size: 13px;
  color: var(--color-text-tertiary);
  padding: 8px 20px 10px;
}
.customer-action-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: var(--color-card);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.customer-action-sheet-item:active { background: var(--color-border-light); }
.customer-action-sheet-item + .customer-action-sheet-item {
  border-top: 0.5px solid var(--color-border-light);
}
.customer-action-sheet-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.customer-list-search-wrap {
  padding: 0 16px 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-page, var(--color-bg-page, #f5f3f0));
}
.customer-list-search {
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: var(--card-radius, 14px);
  background: var(--bg-card, var(--color-card));
  box-shadow: var(--card-shadow, var(--shadow-card));
  cursor: default;
  gap: 8px;
  display: flex;
  align-items: center;
}
.customer-list-search:focus-within { box-shadow: var(--card-shadow, var(--shadow-card)); }
.customer-list-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-p, var(--color-text-primary));
  background: transparent;
  outline: none;
  box-shadow: none;
}
.customer-list-search:focus-within .customer-list-search-input {
  border: none;
  box-shadow: none;
}
.customer-list-search-icon {
  flex-shrink: 0;
  font-size: 15px;
  opacity: 0.55;
}
.customer-list-search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--color-border-light);
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.customer-action-sheet-icon--edit { background: var(--color-brand-light); }
.customer-action-sheet-icon--voice { background: #DBEAFE; }
.customer-action-sheet-icon--convert { background: #D1FAE5; color: #065F46; }
.customer-action-sheet-item-title {
  display: block;
  font-size: 15px;
  font-weight: 550;
  color: var(--color-text-primary);
}
.customer-action-sheet-item-desc {
  display: block;
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}
.customer-action-sheet-item.is-hidden { display: none; }
.customer-action-sheet-cancel {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-top: 6px solid var(--color-bg);
  background: var(--color-card);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brand);
  cursor: pointer;
  font-family: inherit;
}
.customer-action-sheet-cancel:active { background: var(--color-border-light); }
.customer-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-left-width: 1px;
}
.customer-hero--overdue {
  border-left: 3px solid var(--color-error);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.customer-hero--ok {
  border-left: 3px solid var(--color-success);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.customer-hero--today {
  border-left: 3px solid var(--color-warning);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.customer-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #93C5FD 0%, var(--color-brand) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.customer-hero-meta { flex: 1; min-width: 0; }
.customer-hero-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 3px;
}
.customer-hero-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.customer-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.customer-badge--warning { background: #FEF3C7; color: #92400E; }
.customer-badge--success { background: #D1FAE5; color: #065F46; }
.customer-badge--danger { background: #FEE2E2; color: #991B1B; border: 0.5px solid #FECACA; }
.customer-badge--muted { background: var(--color-border-light); color: var(--color-text-tertiary); }
.customer-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 0 2px;
}
.follow-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.follow-item {
  padding: 0;
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.follow-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 10px;
  margin-bottom: 0;
}
.follow-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.follow-type-badge--voice {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-brand);
}
.follow-type-badge--text {
  background: var(--color-border-light);
  color: var(--color-text-secondary);
}
.follow-type-badge--convert {
  background: #D1FAE5;
  color: #065F46;
  font-weight: 700;
}
.follow-item-time {
  font-size: 12px;
  color: var(--color-text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
}
.follow-item-body {
  padding: 0 16px 14px;
}
.follow-item-content {
  padding: 12px 14px;
  background: var(--color-surface, #F1F3F5);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text-primary);
}
.follow-item-content-text {
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.follow-item-content.follow-text--collapsed .follow-item-content-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}
.follow-item-footer {
  padding: 0 16px 14px;
}
.follow-item--convert { border-left: 3px solid var(--color-success, #10B981); }
.follow-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-brand);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.follow-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.customer-logs-empty { min-height: 120px; padding: 24px 20px; }
.voice-follow-section {
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.voice-follow-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-dark);
  border-bottom: 1px solid var(--color-border-light);
}
.voice-follow-body { padding: 14px 16px; }
.transcript-card {
  background: var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.transcript-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 6px;
}
.transcript-text {
  font-size: 14px;
  color: var(--color-text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-summary-card {
  background: #F0FDF4;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid #BBF7D0;
}
.ai-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 6px;
}
.ai-summary-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: #166534;
  background: #F0FDF4;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}
.voice-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.voice-save-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.voice-save-primary:active { background: var(--color-brand-dark); }
.voice-actions-row { display: flex; gap: 8px; }
.voice-action-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  text-align: center;
}
.voice-action-btn:active { background: var(--color-border-light); }
.customer-reminder-section {
  background: var(--color-border-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
}
.reminder-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}
.reminder-date-btn {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.reminder-date-btn:active { border-color: var(--color-brand); }
.reminder-date-btn .date-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.reminder-date-btn .date-main {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.reminder-date-btn .date-hint {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.reminder-date-btn .date-arrow {
  font-size: 14px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  margin-left: 8px;
}
.reminder-quick-options {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.reminder-quick-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.reminder-quick-chip:active {
  background: var(--color-brand-light);
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.reminder-quick-chip.active {
  background: var(--color-brand-light);
  color: var(--color-brand);
  border-color: var(--color-brand);
  font-weight: 500;
}
.reminder-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--color-text-primary);
  background: var(--color-card);
  outline: none;
  box-sizing: border-box;
}
.reminder-select:focus { border-color: var(--color-brand); }
.done-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-success);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.done-btn:active { transform: scale(0.98); opacity: 0.9; }
.customer-detail-content .detail-edit-form {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.filter-tabs--scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.filter-tabs--scroll .filter-tab { flex: 0 0 auto; white-space: nowrap; }
.my-repurchase-banner { background: #fff7ed; border-color: #fed7aa; cursor: pointer; }
.customer-list-content .customer-card { cursor: pointer; }

/* ===== P5/P6 结果确认 · transcription-v1 ===== */
.trx-result-page {
  display: flex; flex-direction: column; min-height: 100%;
  background: var(--color-card);
}
.trx-result-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; position: sticky; top: 0; z-index: 100;
  background: var(--color-card); border-bottom: 1px solid var(--color-border-light, #F3F4F6);
}
.trx-result-nav .nav-back {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; border-radius: 50%;
}
.trx-result-nav .nav-title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.trx-result-edit-btn {
  border: none; background: none; color: var(--color-text-secondary);
  font-size: 14px; font-weight: 500; padding: 6px 8px; cursor: pointer;
}
.trx-result-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #D1FAE5;
}
.trx-result-banner--followup {
  background: linear-gradient(135deg, #ECFDF5 0%, #EFF6FF 100%);
}
.trx-result-banner--insight {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-bottom-color: #FDE68A;
}
.trx-result-banner-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff; font-size: 16px; font-weight: 700;
}
.trx-result-banner--followup .trx-result-banner-icon { background: #059669; }
.trx-result-banner--insight .trx-result-banner-icon { background: #D97706; }
.trx-result-banner-title { font-size: 15px; font-weight: 700; color: #065F46; }
.trx-result-page--insight .trx-result-banner-title { color: #92400E; }
.trx-result-banner-sub { font-size: 12px; color: #059669; margin-top: 2px; }
.trx-result-page--insight .trx-result-banner-sub { color: #B45309; }
.trx-result-body {
  flex: 1; padding: 16px 16px calc(100px + env(safe-area-inset-bottom));
  background: var(--color-bg, #F9FAFB);
}
.trx-result-card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px;
}
.trx-result-card--accent { border-color: var(--color-brand); box-shadow: 0 2px 8px rgba(37,99,235,0.1); }
.trx-result-page--insight .trx-result-card--accent {
  border-color: #D97706; box-shadow: 0 2px 8px rgba(217,119,6,0.12);
}
.trx-result-card-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-result-page--insight .trx-result-card-title { color: #92400E; border-bottom-color: #FEF3C7; }
.trx-result-card-content { font-size: 15px; line-height: 1.8; color: var(--color-text-primary); }
.trx-result-bullet { margin-bottom: 8px; padding-left: 4px; }
.trx-result-bullet::before { content: "• "; color: var(--color-brand); font-weight: 700; }
.trx-result-page--insight .trx-result-bullet::before { color: #D97706; }
.trx-result-todo-list { list-style: none; margin: 0; padding: 0; }
.trx-result-todo-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--color-border-light, #F3F4F6);
}
.trx-result-todo-item:last-child { border-bottom: none; }
.trx-result-todo-check {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--color-border); border-radius: 6px;
  background: var(--color-card); padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; line-height: 1;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.trx-result-todo-check.is-checked {
  background: var(--color-brand); border-color: var(--color-brand);
}
.trx-result-todo-text { flex: 1; font-size: 14px; line-height: 1.6; }
.trx-result-todo-text.is-done {
  text-decoration: line-through;
  color: var(--color-text-tertiary);
}
.trx-result-todo-date { font-size: 12px; color: var(--color-text-tertiary); white-space: nowrap; }
.trx-result-empty { margin: 0; font-size: 13px; color: var(--color-text-secondary); }
.trx-result-script-hint {
  font-size: 13px; color: var(--color-text-secondary); margin: 0 0 10px;
}
.trx-result-script-quote {
  background: #FFFBEB; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.7; color: var(--color-text-primary);
  margin-bottom: 10px;
}
.trx-result-script-tip {
  font-size: 13px; color: var(--color-text-secondary); line-height: 1.65;
}
.followup-script-gen-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--color-text-secondary, #6b7280);
  line-height: 1.5;
}
.followup-script-gen-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.followup-script-gen-btn:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.followup-script-inline {
  margin-top: 14px;
}
.followup-script-inline .note-reading-cards {
  margin: 0;
}
.trx-result-insight-block {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 14px;
  font-size: 14px; line-height: 1.7; color: #1E40AF;
}
.trx-result-insight-block--amber {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); color: #78350F;
}
.trx-result-page--insight .trx-result-todo-check.is-checked {
  background: #D97706; border-color: #D97706;
}
.trx-result-insight-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.trx-result-insight-quote {
  margin: 0; padding: 0; border: none; font-style: italic;
  color: inherit; line-height: 1.75;
}
.trx-result-mood-hint {
  font-size: 13px; color: var(--color-text-secondary); margin: 0 0 10px;
}
.trx-result-mood-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trx-result-mood-tag {
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: var(--color-card); color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.trx-result-mood-tag--selected {
  background: #FEF3C7; color: #92400E; font-weight: 600;
  border-color: #D97706;
}
.trx-result-keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.trx-result-keyword-tag {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A;
}
.trx-result-bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border-light, #F3F4F6);
}
.trx-result-btn-secondary {
  padding: 13px 18px; border: none; border-radius: var(--radius-md);
  background: var(--color-border-light, #F3F4F6); color: var(--color-text-secondary);
  font-size: 14px; font-weight: 500; cursor: pointer;
}
.trx-result-btn-primary {
  flex: 1; padding: 13px 20px; border: none; border-radius: var(--radius-md);
  background: var(--color-brand); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.trx-result-btn-primary--insight { background: #D97706; }
.trx-result-btn-primary.is-disabled,
.trx-result-btn-primary:disabled {
  background: #94A3B8; cursor: not-allowed; opacity: 0.85;
}

/* ===== 跟进结果 · 关联客户 ===== */
.followup-link-selected {
  display: flex; align-items: center; gap: 12px;
}
.followup-link-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; flex-shrink: 0;
}
.followup-link-avatar--lg { width: 44px; height: 44px; font-size: 17px; }
.followup-link-selected-main { flex: 1; min-width: 0; }
.followup-link-name { font-size: 16px; font-weight: 600; color: var(--color-text-primary); }
.followup-link-meta { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.followup-link-from { font-size: 11px; color: var(--color-brand); margin-top: 4px; }
.followup-link-change {
  border: 1px solid var(--color-border); background: #fff; color: var(--color-text-secondary);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
.followup-link-hint {
  margin: 0 0 10px; font-size: 13px; color: var(--color-text-secondary); line-height: 1.6;
}
.followup-link-rec { margin-bottom: 10px; }
.followup-link-rec-label {
  font-size: 12px; font-weight: 600; color: var(--color-text-tertiary); margin: 8px 0 6px;
}
.followup-link-search-wrap { margin: 8px 0 10px; }
.followup-link-search {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 14px; background: #fff;
}
.followup-link-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.followup-link-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 8px; border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md); background: #fff; cursor: pointer; text-align: left;
}
.followup-link-row:active { background: var(--color-border-light); }
.followup-link-row-main { flex: 1; min-width: 0; }
.followup-link-reason {
  font-size: 11px; color: var(--color-brand); background: #EFF6FF;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.followup-link-reason--high { color: #065F46; background: #D1FAE5; }
.followup-link-reason--medium { color: #92400E; background: #FEF3C7; }
.followup-link-reason--low { color: #6B7280; background: #F3F4F6; }
.followup-link-ambiguous {
  margin: 0 0 8px; padding: 8px 10px; border-radius: var(--radius-md);
  background: #FFFBEB; border: 1px solid #FDE68A;
  font-size: 13px; color: #92400E; line-height: 1.5;
}
.followup-target-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.followup-target-tab {
  flex: 1; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--color-border); background: #fff;
  font-size: 14px; font-weight: 500; color: var(--color-text-secondary);
  cursor: pointer;
}
.followup-target-tab.is-active {
  background: var(--color-brand); border-color: var(--color-brand); color: #fff;
}
.followup-link-empty { margin: 8px 0; font-size: 13px; color: var(--color-text-secondary); }
.followup-link-new-btn {
  width: 100%; margin-top: 10px; padding: 10px 12px;
  border: 1px dashed var(--color-border); border-radius: var(--radius-md);
  background: #F8FAFC; color: var(--color-text-secondary);
  font-size: 14px; cursor: pointer;
}
.followup-link-new-banner {
  padding: 4px 0;
}
.followup-link-new-title { font-size: 12px; color: var(--color-text-secondary); }
.followup-link-new-name { font-size: 17px; font-weight: 600; margin: 4px 0 10px; }

/* ===== 客户成交转化 ===== */
.customer-convert-bar { margin: 0 0 12px; }
.customer-convert-bar-inner {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1px solid #A7F3D0;
}
.customer-convert-bar-inner--done {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  border-color: #BFDBFE;
}
.customer-convert-bar-text { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.customer-convert-btn {
  align-self: flex-start; padding: 8px 14px; border: none; border-radius: 999px;
  background: var(--color-success, #10B981); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.customer-convert-btn--block { display: block; width: 100%; text-align: center; padding: 12px 16px; margin-bottom: 12px; align-self: stretch; }
.customer-convert-footer { padding: 0 0 4px; }
.customer-convert-btn:active { opacity: 0.9; }
.customer-convert-btn--link {
  background: transparent; color: var(--color-brand); padding: 0;
  font-weight: 600;
}
.convert-overlay {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.convert-overlay[style*="display: block"],
.convert-overlay[style*="display:flex"],
.convert-overlay[style*="display: flex"] {
  display: flex !important;
  pointer-events: auto;
}
.convert-overlay-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.convert-overlay-panel {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.convert-overlay-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.convert-overlay-title { font-size: 17px; font-weight: 600; }
.convert-overlay-close {
  width: 32px; height: 32px; border: none; background: var(--color-border-light);
  border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.convert-overlay-desc { font-size: 13px; color: var(--color-text-secondary); margin: 0 0 14px; line-height: 1.5; }
.convert-overlay-body .detail-edit-field { margin-bottom: 12px; }
.convert-overlay-footer {
  display: flex; gap: 10px; margin-top: 16px;
}
.convert-overlay-footer .btn-outline { flex: 0 0 auto; padding: 12px 16px; }
.convert-overlay-submit {
  flex: 1; padding: 12px 16px; border: none; border-radius: var(--radius-md);
  background: var(--color-success, #10B981); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.follow-item--convert { border-left: 3px solid var(--color-success, #10B981); padding-left: 10px; }
.follow-tag--phase { background: #F3F4F6; color: #6B7280; }
.follow-tag--convert { background: #D1FAE5; color: #065F46; }
.follow-type-icon--convert { background: #D1FAE5; }
.customer-follow-badge--success { background: #D1FAE5; color: #065F46; }

/* ===== Phase5a followup list v1 visual (keep banner/intent/tab bar) ===== */
/* 悟空问候行 → 12-global-components.css（C-1） */
#page-customers .follow-list-nav-header {
  background: rgba(255, 251, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#page-customers.page,
#page-customers {
  background: linear-gradient(180deg, #FFFBF0 0%, var(--bg-page, #f5f3f0) 50px, var(--bg-page, #f5f3f0) 100%);
}
#page-customers .customer-list-content {
  padding: 6px 0 calc(var(--tab-height, 80px) + env(safe-area-inset-bottom, 0px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#page-customers .customer-list-search-wrap {
  padding: 0 14px;
  background: transparent;
  position: static;
}
#page-customers .customer-list-search {
  padding: 10px 16px;
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
}
#page-customers .customer-follow-banner.alert-banner {
  margin: 0 14px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--card-radius, 14px);
  background: #FFF8E7;
  color: var(--c-yellow, #D4A017);
  box-shadow: none;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
#page-customers .customer-follow-banner strong,
#page-customers .customer-follow-banner .alert-banner__num {
  color: var(--c-goal, #E8813B);
  font-weight: 700;
}
#page-customers .filter-tabs.filter-tabs--underline {
  display: flex;
  gap: 0;
  padding: 2px 6px 0;
  margin: 0 8px;
  border-bottom: 1px solid var(--divider, #f0ede8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
}
#page-customers .filter-tabs.filter-tabs--underline::-webkit-scrollbar { display: none; }
#page-customers .filter-tabs.filter-tabs--underline .filter-tab {
  padding: 7px 14px;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-s, var(--color-text-secondary));
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  flex-shrink: 0;
}
#page-customers .filter-tabs.filter-tabs--underline .filter-tab.active {
  color: var(--c-accent, #4A9E8E);
  border-bottom-color: var(--c-accent, #4A9E8E);
  background: none;
  font-weight: 600;
}
#page-customers .filter-tab-count {
  font-size: 10px;
  font-weight: 400;
  color: var(--c-t, var(--color-text-tertiary));
  margin-left: 3px;
}
#page-customers .filter-tab.active .filter-tab-count {
  color: var(--c-accent, #4A9E8E);
}
#page-customers .filter-tab-count:empty { display: none; }
#page-customers .section-title {
  padding: 0 16px;
  margin: 0;
  font-size: 13px;
  color: var(--text-t, var(--color-text-tertiary));
  font-weight: 500;
}
#page-customers #customerList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 8px;
}
#page-customers .customer-card {
  margin: 0;
  padding: 14px var(--card-padding, 18px);
  border: none;
  border-radius: var(--card-radius, 14px);
  background: var(--bg-card, #fff);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, 0.04));
  position: relative;
  transition: transform 0.15s;
}
#page-customers .customer-card:active { transform: scale(0.985); }
#page-customers .customer-card.due,
#page-customers .customer-list-content .customer-card.due {
  background: var(--bg-card, #fff);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, 0.04)), inset 3px 0 0 var(--c-red, #E84C3D);
}
#page-customers .customer-card.due:active,
#page-customers .customer-list-content .customer-card.due:active {
  background: var(--bg-card, #fff);
}
#page-customers .customer-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
}
#page-customers .customer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  background: var(--c-accent-bg, rgba(74,158,142,0.07));
  color: var(--c-accent, #4A9E8E);
}
#page-customers .customer-avatar--blue {
  color: var(--c-blue, #3B82F6);
  background: rgba(59,130,246,0.07);
}
#page-customers .customer-avatar--goal {
  color: var(--c-goal, #E8813B);
  background: var(--c-goal-bg, rgba(232,129,59,0.06));
}
#page-customers .customer-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding-right: 4px;
}
#page-customers .customer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-p, #2c2c2c);
  margin-bottom: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#page-customers .customer-phone {
  font-size: 12px;
  color: var(--text-s, var(--color-text-secondary));
  margin-bottom: 6px;
}
#page-customers .customer-tags {
  display: flex;
  gap: 5px;
  margin: 0 0 4px;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
}
#page-customers .customer-tags .tag,
#page-customers .customer-tags .tag-custom {
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-page, #f5f3f0);
  color: var(--text-s, var(--color-text-secondary));
  border: none;
}
#page-customers .customer-tags .tag-blue {
  background: rgba(59,130,246,0.06);
  color: var(--c-blue, #3B82F6);
}
#page-customers .customer-tags .tag-green {
  background: rgba(74,158,142,0.08);
  color: var(--c-accent, #4A9E8E);
}
#page-customers .customer-tags .tag-orange {
  background: var(--c-goal-bg, rgba(232,129,59,0.06));
  color: var(--c-goal, #E8813B);
}
#page-customers .customer-tags .tag-more,
#page-customers .customer-tags .tag-collapse {
  background: none;
  border: 1px dashed var(--c-t, #c8c6c0);
  color: var(--text-s, var(--color-text-secondary));
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
#page-customers .customer-follow {
  font-size: 12px;
  color: var(--text-s, var(--color-text-secondary));
  line-height: 1.4;
}
#page-customers .customer-status {
  flex-shrink: 0;
  align-self: flex-start;
  padding-top: 2px;
}
#page-customers .customer-follow-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
#page-customers .customer-follow-badge.today {
  background: var(--c-yellow-bg, rgba(212,160,23,0.08));
  color: var(--c-yellow, #D4A017);
}
#page-customers .customer-follow-badge.overdue {
  background: var(--c-red-bg, rgba(232,77,61,0.06));
  color: var(--c-red, #E84C3D);
}
#page-customers .customer-follow-badge.normal {
  background: var(--bg-page, #f5f3f0);
  color: var(--text-s, var(--color-text-secondary));
}
#page-customers .customer-follow-badge--success {
  background: var(--c-accent-bg, rgba(74,158,142,0.07));
  color: var(--c-accent, #4A9E8E);
}
#page-customers .customer-arrow { display: none; }

/* ===== Phase6a customer detail v1 visual (keep reminder/convert/banner; no dual FAB) ===== */
/* ===== 客户详情 v1（对齐跟进-客户详情-v1-preview） ===== */
#page-customer.customer-detail-page,
#page-customer.page {
  background: var(--bg-page, #f5f3f0);
}
#page-customer .detail-nav-chrome {
  background: rgba(245, 243, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#page-customer.customer-detail-page .customer-detail-scroll {
  gap: 12px;
  padding: 8px 14px 20px;
}
#page-customer .customer-hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 20px 18px;
  background: var(--bg-card, #fff);
  border: none;
  border-radius: var(--card-radius-lg, 18px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
}
#page-customer .customer-hero--overdue,
#page-customer .customer-hero--ok,
#page-customer .customer-hero--today {
  border-left: none;
  border-radius: var(--card-radius-lg, 18px);
}
#page-customer .customer-hero-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  font-size: 28px;
  background: var(--c-accent-bg, rgba(74,158,142,0.07));
  color: var(--c-accent, #4A9E8E);
  box-shadow: none;
}
#page-customer .customer-hero-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-p, #2c2c2c);
  margin-bottom: 4px;
}
#page-customer .customer-hero-desc {
  font-size: 12px;
  color: var(--text-s, #B0AEA5);
  margin-bottom: 8px;
  line-height: 1.5;
}
#page-customer .customer-hero-phone {
  color: var(--c-blue, #3B82F6);
}
#page-customer .customer-hero-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-s, #B0AEA5);
}
#page-customer .customer-hero-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-p, #2c2c2c);
}
#page-customer .customer-badge {
  margin-top: 0;
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  border: none;
}
#page-customer .customer-badge--warning {
  background: rgba(212,160,23,0.08);
  color: #D4A017;
}
#page-customer .customer-badge--success {
  background: var(--c-accent-bg, rgba(74,158,142,0.07));
  color: var(--c-accent, #4A9E8E);
}
#page-customer .customer-badge--danger {
  background: rgba(232,76,61,0.06);
  color: var(--c-red, #E84C3D);
}
#page-customer .customer-badge--muted {
  background: var(--divider, #f0ede8);
  color: var(--text-t, #c8c6c0);
}
#page-customer .customer-detail-actions {
  display: flex;
  gap: 8px;
  margin: 0;
}
#page-customer .customer-detail-action {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: var(--bg-card, #fff);
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
  font-family: inherit;
  font-size: 11px;
  color: var(--text-s, #B0AEA5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#page-customer .customer-detail-action:active:not(:disabled) {
  transform: scale(0.96);
}
#page-customer .customer-detail-action:disabled {
  opacity: 0.45;
  cursor: default;
}
#page-customer .customer-detail-action-icon {
  font-size: 20px;
  line-height: 1;
}
#page-customer .customer-detail-action-label {
  line-height: 1.2;
  white-space: nowrap;
}
#page-customer .customer-convert-bar {
  margin: 0;
}
#page-customer .customer-convert-bar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  border-radius: var(--card-radius, 14px);
  box-shadow: none;
  background: rgba(74,158,142,0.08);
  padding: 10px 14px;
}
#page-customer .customer-convert-bar-inner--done {
  background: rgba(74,158,142,0.08);
  border-color: transparent;
}
#page-customer .customer-convert-bar-text {
  color: var(--c-accent, #4A9E8E);
  font-size: 12px;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
#page-customer .customer-convert-btn--link {
  color: var(--c-blue, #3B82F6);
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
#page-customer .customer-section-title--logs {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-s, #B0AEA5);
  padding: 4px 2px 0;
  letter-spacing: 0.02em;
}
#page-customer .follow-log {
  gap: 8px;
}
#page-customer .follow-item {
  border: none;
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
  padding: 0;
  overflow: visible;
}
#page-customer .follow-item-header {
  justify-content: flex-start;
  gap: 8px;
  padding: 14px 18px 6px;
}
#page-customer .follow-item-body {
  padding: 0 18px 14px;
}
#page-customer .follow-item-content {
  padding: 0;
  background: transparent;
  border-radius: 0;
}
#page-customer .follow-type-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
}
#page-customer .follow-type-badge--voice {
  background: rgba(59,130,246,0.06);
  color: var(--c-blue, #3B82F6);
}
#page-customer .follow-type-badge--text {
  background: var(--c-accent-bg, rgba(74,158,142,0.07));
  color: var(--c-accent, #4A9E8E);
}
#page-customer .follow-type-badge--convert {
  background: var(--c-goal-bg, rgba(232,129,59,0.08));
  color: var(--c-goal, #E8813B);
}
#page-customer .follow-item--convert {
  border-left: none;
  padding-left: 0;
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
}
#page-customer .follow-item-time {
  font-size: 12px;
  color: var(--text-t, #c8c6c0);
}
#page-customer .follow-item-content-text {
  font-size: 13px;
  color: var(--text-p, #2c2c2c);
  line-height: 1.7;
}
#page-customer .detail-edit-form {
  background: var(--bg-card, #fff);
  border-radius: var(--card-radius-lg, 18px);
  box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03));
  padding: 18px;
}
#page-customer .follow-record-drawer {
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
#page-customer .follow-reminder-chips-scroll .reminder-quick-chip {
  background: var(--bg-card, #fff);
  border: 1px solid var(--divider, #f0ede8);
  border-radius: 16px;
  color: var(--text-s, #B0AEA5);
  padding: 6px 14px;
}
#page-customer .follow-reminder-chips-scroll .reminder-quick-chip.active {
  background: rgba(59,130,246,0.05);
  border-color: var(--c-blue, #3B82F6);
  color: var(--c-blue, #3B82F6);
  font-weight: 600;
}
#page-customer .convert-overlay-panel {
  border-radius: 18px 18px 0 0;
}
#page-customer .customer-action-sheet {
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
