/* ========== 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 设计变量统一在 /shared/design-tokens.css（三期·design-tokens 统一） */
html, body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
input, button, textarea, select { font-family: inherit; font-size: inherit; outline: none; border: none; }
button { cursor: pointer; }
a { text-decoration: none; color: var(--primary); }

/* ========== 页面容器 ========== */
#page-container { min-height: 100vh; padding-bottom: 0; }
.page { min-height: 100vh; }
.page-with-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

/* 可滚动内容区域（用于表单等长页面） */
.scroll-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.scroll-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }

/* ========== 顶部导航 ========== */
.navbar {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .nav-title { font-size: 18px; font-weight: 600; }
.navbar .nav-back { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.navbar .nav-right { cursor: pointer; }

/* ========== 搜索栏 ========== */
.search-bar {
  background: var(--card-bg);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  position: sticky;
  top: 48px;
  z-index: 99;
}
.search-input {
  flex: 1;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border);
}
.search-input:focus { border-color: var(--primary); }
.search-btn {
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  white-space: nowrap;
}

/* ========== 筛选标签 ========== */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: var(--card-bg);
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-tab.active {
  background: var(--primary);
  color: var(--white);
}

/* ========== 客户公海 ========== */
.scope-tabs {
  display: flex;
  padding: 0 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.scope-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.scope-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
.cust-pool-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.pool-radio-row {
  display: flex;
  gap: 16px;
}
.pool-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.pool-radio input[type="radio"] { accent-color: var(--primary); }

/* ========== 卡片 ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin: 8px 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* ========== 企业列表项 ========== */
.enterprise-item {
  background: var(--card-bg);
  margin: 8px 16px;
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}
.enterprise-item:active { transform: scale(0.98); }
.enterprise-item .ent-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.enterprise-item .ent-info { font-size: 13px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 12px; }
.enterprise-item .ent-info span { display: flex; align-items: center; gap: 3px; }
.enterprise-item .ent-tags { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
/* 标签样式统一在 /shared/design-tokens.css（含深色模式适配） */

/* ========== 意向等级 ========== */
.intention-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
}
.intention-high { background: var(--danger-soft); color: var(--danger); }
.intention-medium { background: var(--warning-soft); color: var(--warning-ink); }
.intention-none { background: var(--surface-3); color: var(--text-secondary); }
.intention-unknown { background: var(--primary-soft); color: var(--primary); }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: var(--btn-h);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:active { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  font-size: 14px;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 80px; }

/* ========== 底部Tab ========== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: var(--text-light);
  cursor: pointer;
  font-size: 12px;
  gap: 2px;
}
.tab-item.active { color: var(--primary); }
.tab-item svg { width: 24px; height: 24px; }

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 12px; }

/* ========== 统计卡片 ========== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .stat-num { font-size: 28px; font-weight: 600; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ========== 客户列表项 ========== */
.customer-item {
  background: var(--card-bg);
  margin: 8px 16px;
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
}
/* 四十三期 TT2：批量选择模式下横向排布（复选框 + 内容） */
.customer-item:has(> label) { display: flex; align-items: center; }
.customer-item:has(> label) { cursor: default; }
.customer-item .cust-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.customer-item .cust-name { font-size: 14px; font-weight: 600; }
.customer-item .cust-company { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.customer-item .cust-bottom { display: flex; justify-content: space-between; align-items: center; }
.customer-item .cust-phone { font-size: 13px; color: var(--text-secondary); }

/* ========== 详情页 ========== */
.detail-section { background: var(--card-bg); margin: 8px 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.detail-section .section-header { padding: 12px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); }
.detail-row { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-row .detail-label { width: 92px; color: var(--text-secondary); font-size: 13px; flex-shrink: 0; }
.detail-row .detail-value { flex: 1; font-size: 13px; }

/* ========== 弹窗 ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}
.modal-content {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1001;
  max-height: 80vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.modal-header .modal-title { font-size: 16px; font-weight: 600; }
.modal-header .modal-close { font-size: 18px; color: var(--text-light); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 16px; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 2000;
  max-width: 80%;
  text-align: center;
}

/* ========== 任务项 ========== */
.task-item {
  background: var(--card-bg);
  margin: 8px 16px;
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.task-item.priority-urgent { border-left-color: var(--danger); }
.task-item.priority-high { border-left-color: var(--warning); }
.task-item.priority-normal { border-left-color: var(--primary); }
.task-item.priority-low { border-left-color: var(--text-light); }
.task-item .task-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.task-item .task-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.task-item .task-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-light); }

/* ========== 登录页 ========== */
.login-page {
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
}
.login-title { color: var(--white); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.login-subtitle { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 32px; }
.login-form { width: 100%; max-width: 340px; background: var(--card-bg); border-radius: var(--radius-lg); padding: 24px; }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-input { background: var(--surface-2); }
.login-btn { width: 100%; padding: 12px; background: var(--primary); color: var(--white); border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; }
.login-hint { text-align: center; color: var(--text-light); font-size: 12px; margin-top: 16px; }

/* ========== 个人中心 ========== */
.profile-header {
  background: var(--primary);
  padding: 32px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
}
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.profile-name { font-size: 18px; font-weight: 600; }
.profile-role { font-size: 13px; color: rgba(255,255,255,0.8); }
.profile-menu { background: var(--card-bg); margin: 12px 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.profile-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item .menu-label { font-size: 14px; }
.profile-menu-item .menu-arrow { color: var(--text-light); }

/* ========== 跟进记录 ========== */
.followup-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.followup-item:last-child { border-bottom: none; }
.followup-item .fu-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.followup-item .fu-type { font-size: 13px; color: var(--primary); font-weight: 500; }
.followup-item .fu-time { font-size: 12px; color: var(--text-light); }
.followup-item .fu-content { font-size: 13px; color: var(--text-secondary); }

/* ========== 拨号按钮 ========== */
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--success);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
}

/* ========== 加载 ========== */
.loading { text-align: center; padding: 20px; color: var(--text-light); }
.loading-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin: 0 3px; animation: bounce 1.4s infinite; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

/* ========== 通用 ========== */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.w-full { width: 100%; }

/* ========== v2.0 新增样式 ========== */

/* 企业注册 */
.form-container { padding: 16px; }
.register-info-box { background: var(--warning-soft); border: 1px solid var(--warning-soft); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.register-info-box p { font-size: 13px; color: var(--warning-ink); line-height: 1.8; }
.submit-btn { width: 100%; padding: 16px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 12px; }
.submit-btn:active { background: var(--primary-dark); }
.login-links { text-align: center; margin-top: 12px; }
.login-link { color: var(--primary); font-size: 14px; text-decoration: none; }

/* 上传区域 */
.upload-area { width: 100%; min-height: 120px; border: 2px dashed var(--surface-3); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--surface-2); }
.upload-area:active { border-color: var(--primary); background: var(--primary-soft); }
.upload-placeholder { font-size: 14px; color: var(--text-secondary); text-align: center; }

/* 图片上传槽 */
.image-upload-row { display: flex; gap: 8px; }
.img-upload-slot { width: 80px; height: 80px; border: 2px dashed var(--surface-3); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--surface-2); overflow: hidden; position: relative; }
.upload-placeholder-small { font-size: 22px; color: var(--surface-3); }

/* 信息反馈 */
.info-box { background: var(--info-soft); border: 1px solid var(--info-soft); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.info-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.info-value { font-size: 16px; font-weight: 600; color: var(--text); }
.feedback-note { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: 12px; line-height: 1.6; }
.form-textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; resize: vertical; min-height: 80px; }

/* 号码池 */
.number-pool-stats { display: flex; background: var(--card-bg); padding: 12px 8px; border-bottom: 1px solid var(--border); }
.stat-item { flex: 1; text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 600; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-secondary); }
.number-list { padding: 8px; }
.number-card { background: var(--card-bg); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.number-phone { font-size: 16px; font-weight: 600; color: var(--text); }
.number-remark { font-size: 13px; color: var(--text-secondary); margin-left: 8px; flex: 1; }
.btn-dial { padding: 8px 20px; background: var(--success); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-dial:active { background: var(--success); }
.btn-secondary { padding: 12px 24px; background: var(--card-bg); color: var(--text-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--text-base); cursor: pointer; }

/* 拨号页 */
.dial-container { padding: 16px; }
.dial-phone-box { background: var(--card-bg); border-radius: var(--radius-md); padding: 24px; text-align: center; margin-bottom: 16px; }
.dial-phone-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.dial-phone-number { font-size: 28px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dial-remark { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.btn-call-now { display: inline-block; padding: 12px 32px; background: var(--success); color: var(--white); text-decoration: none; border-radius: var(--radius-sm); font-size: 18px; font-weight: 600; }
.dial-form { background: var(--card-bg); border-radius: var(--radius-md); padding: 16px; }
.intention-selector { display: flex; gap: 8px; }
.intention-option { flex: 1; padding: 12px; border: 2px solid var(--divider); border-radius: var(--radius-sm); text-align: center; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.intention-option.high { color: var(--danger); }
.intention-option.high:has(input:checked) { border-color: var(--danger); background: var(--danger-soft); }
.intention-option.medium { color: var(--warning-ink); }
.intention-option.medium:has(input:checked) { border-color: var(--warning-ink); background: var(--warning-soft); }
.intention-option.low { color: var(--text-secondary); }
.intention-option.low:has(input:checked) { border-color: var(--text-secondary); background: var(--surface-3); }
.intention-option input { width: 16px; height: 16px; }

/* 通讯录增强 - 手机号2和图片 */
.contact-phone2 { font-size: 14px; color: var(--primary); margin-top: 4px; }
.contact-images { display: flex; gap: 4px; margin-top: 8px; }
.contact-images img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); }

/* ========== v3.0 首页小蓝本风格 ========== */
.home-page { background: var(--surface-2); }
.home-header {
  background: var(--primary);
  padding: 12px 16px 20px;
  color: var(--white);
  position: relative;
  z-index: 10;
}
.home-user-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.home-user-name { font-size: 16px; font-weight: 600; }
.home-user-tag { font-size: 12px; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: var(--radius-md); }
.home-tabs { display: flex; justify-content: center; gap: 32px; margin-bottom: 16px; }
.home-tab { font-size: 16px; opacity: 0.7; padding-bottom: 4px; border-bottom: 2px solid transparent; cursor: pointer; }
.home-tab.active { opacity: 1; border-bottom-color: var(--white); font-weight: 600; }
.home-search-box {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  position: relative;
}
.home-search-icon { font-size: 16px; }
.home-search-input { flex: 1; border: none; background: transparent; font-size: 14px; outline: none; min-width: 0; }
.home-search-scan { font-size: 18px; cursor: pointer; padding: 0 2px; }
.home-search-clear { font-size: 16px; cursor: pointer; padding: 0 4px; color: var(--text-light); display: none; align-items: center; }
.home-search-clear:active { color: var(--text-secondary); }
.home-search-btn {
  background: var(--primary, var(--primary));
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-search-btn:active { opacity: 0.85; }

/* 搜索联想/结果浮层：覆盖首页内容区 */
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  right: -16px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 100;
  max-height: 60vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.search-suggest-list { padding: 4px 0; }
.search-suggest-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.search-suggest-item:active { background: var(--surface-3); }
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.search-suggest-name mark { background: var(--warning-soft); color: inherit; border-radius: var(--radius-sm); padding: 0 1px; }
.search-suggest-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.search-suggest-person { color: var(--text-secondary); }
.search-suggest-addr { font-size: 12px; color: var(--text-light); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest-empty { padding: 20px 16px; text-align: center; color: var(--text-secondary); font-size: 14px; }
.search-suggest-more {
  padding: 12px 16px;
  text-align: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-top: 1px solid var(--border);
}
.search-suggest-more:active { background: var(--surface-3); }

/* 五十四期：关键词联想（热词 + 高频行业短语）*/
.search-history-block { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.search-history-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.search-history-clear { color: var(--primary); cursor: pointer; }
.search-history-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-history-item { display: flex; align-items: center; gap: 4px; background: var(--surface-3); border-radius: 14px; padding: 4px 6px 4px 10px; font-size: 13px; color: var(--text); max-width: 100%; }
.search-history-text { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-history-del { cursor: pointer; color: var(--text-light); font-size: 12px; padding: 0 2px; flex: none; }
.search-history-del:active { color: var(--text-secondary); }
.search-phrase-block { padding: 12px 16px 12px; border-bottom: 1px solid var(--border); }
.search-phrase-title { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.search-phrase-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-phrase-chip {
  border: 1px solid var(--border);
  background: var(--surface-2, var(--surface-2));
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-phrase-chip:active { background: var(--surface-3); border-color: var(--primary); color: var(--primary); }
.search-hot-loading { padding: 16px 16px; text-align: center; color: var(--text-light); font-size: 13px; }

/* 五十四期：首页提醒聚合卡片 */
.home-reminder-card {
  margin: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hrc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.hrc-title { font-size: 14px; font-weight: 600; color: var(--text); }
.hrc-date { font-size: 12px; color: var(--text-light); }
.hrc-body { padding: 4px 0; }
.hrc-section { padding: 8px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.hrc-section:last-child { border-bottom: none; }
.hrc-sec-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text); padding: 4px 0 8px; }
.hrc-sec-count { font-size: 12px; font-weight: 400; color: var(--text-light); }
.hrc-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; }
.hrc-item-tag { flex: none; font-size: 12px; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-secondary); }
.hrc-item-tag.hrc-tag-today { background: var(--success-soft); color: var(--success-ink); }
.hrc-item-tag.hrc-tag-bday { background: var(--danger-soft); color: var(--danger-ink); }
.hrc-item-tag.hrc-tag-personal { background: var(--primary-soft); color: var(--primary-dark); }
.hrc-item-overdue .hrc-item-tag { background: var(--danger-soft); color: var(--danger-ink); }
.hrc-item-name { font-weight: 600; color: var(--text); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrc-item-meta { color: var(--text-light); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 个人提醒管理页 */
.rmd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rmd-row:last-child { border-bottom: none; }
.rmd-row-title { font-size: 14px; font-weight: 600; color: var(--text); }
.rmd-row-title.rmd-done { text-decoration: line-through; color: var(--text-light); }
.rmd-row-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.rmd-row-acts { display: flex; gap: 8px; flex: none; }
.search-back-suggest {
  font-size: 12px;
  color: var(--primary);
  font-weight: 400;
  margin-left: 8px;
  cursor: pointer;
  text-decoration: underline;
}

/* 扫码页 */
.scan-page { background: #000; min-height: 100vh; }
.scan-page .navbar { background: var(--gray-900); color: var(--white); }
.scan-page .nav-back { color: var(--white); }
.scan-page .nav-title { color: var(--white); }
.scan-container { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.scan-video { width: 100%; max-height: 60vh; object-fit: cover; }
.scan-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  border: 3px solid rgba(102, 126, 234, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 4000px rgba(0,0,0,0.4);
  overflow: hidden;
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  animation: scanMove 2s ease-in-out infinite;
}
@keyframes scanMove {
  0% { top: 0; }
  50% { top: calc(100% - 3px); }
  100% { top: 0; }
}
.scan-tip { color: var(--white); font-size: 14px; text-align: center; padding: 16px; line-height: 1.6; }
.scan-actions { display: flex; justify-content: center; gap: 12px; padding: 8px 16px 24px; }
.scan-actions .btn { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }

/* 今日待办聚合卡片 (v3.2) */
.todo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.todo-item {
  text-align: center; padding: 12px 4px; border-radius: var(--radius-md);
  background: var(--bg); cursor: pointer; min-height: 44px;
}
.todo-num { font-size: 18px; font-weight: 600; line-height: 1.2; }
.todo-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* 跟进时间线 (v3.2) */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-dot {
  position: absolute; left: -22px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--card-bg);
}
.timeline-time { font-size: 12px; color: var(--text-secondary); }
.timeline-type { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: var(--radius-md); background: var(--bg); color: var(--text-secondary); margin-left: 8px; }
.timeline-content { font-size: 14px; margin-top: 4px; word-break: break-word; }

.quick-group { margin: 0 12px 12px; background: var(--card-bg); border-radius: var(--radius); padding-bottom: 4px; }
.quick-group-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 12px 16px 4px; display: flex; align-items: center; gap: 8px;
}
.quick-group-title::before {
  content: ''; width: 3px; height: 12px; border-radius: var(--radius-sm); background: var(--primary);
}
.quick-group .quick-grid { margin: 0; padding: 8px 16px 12px; border-radius: 0; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  margin: 12px;
  border-radius: var(--radius);
}
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.quick-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.icon-map { background: var(--primary-soft); }
.icon-prospect { background: var(--success-soft); }
.icon-bid { background: var(--warning-soft); }
.icon-relation { background: var(--primary-soft); }
.icon-judicial { background: var(--danger-soft); }
.icon-batch { background: var(--primary-soft); }
.icon-job { background: var(--accent-soft); }
.icon-cockpit { background: linear-gradient(135deg, #1A233A, #3867D6); color: #fff; }
/* v3.73 获客驾驶舱入口：跨两列横向大卡（避免 5 项在 4 列网格中换行孤项）
   布局：图标 + 文字块（主标题/副标题纵向堆叠）横向排列，文字块占满剩余宽度 */
.quick-item-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(26,35,58,.06), rgba(56,103,214,.10));
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-width: 0;
}
.quick-item-wide .quick-icon { flex-shrink: 0; }
.quick-item-wide .quick-text-col {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1 1 auto;
}
.quick-item-wide .quick-name { font-weight: 600; white-space: nowrap; }
.quick-item-wide .quick-wide-sub {
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-more { background: var(--surface-3); }
.quick-name { font-size: 12px; color: var(--text); position: relative; }
.quick-badge { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; margin-left: 4px; border-radius: var(--radius-sm); background: var(--danger); color: var(--white); font-size: 12px; font-weight: 600; vertical-align: middle; }

.home-banner {
  background: var(--primary);
  margin: 0 12px 12px;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}
.banner-title { font-size: 16px; font-weight: 600; }
.banner-desc { font-size: 12px; opacity: 0.9; margin-top: 4px; }
.banner-btn { background: var(--card-bg); color: var(--primary); border: none; border-radius: var(--radius-lg); padding: 8px 16px; font-size: 13px; font-weight: 600; }

.news-section { background: var(--card-bg); margin: 0 12px; border-radius: var(--radius); padding: 16px; }
.news-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.news-tabs { display: flex; gap: 16px; }
.news-tab { font-size: 16px; color: var(--text-secondary); cursor: pointer; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.news-tab.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.news-more { font-size: 13px; color: var(--text-secondary); }
.news-item { padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.news-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.4; }
.news-summary { font-size: 13px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-page-list { padding: 0 12px; }
.news-page-item { background: var(--card-bg); margin: 8px 0; padding: 16px; border-radius: var(--radius); }
.news-page-date { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.news-page-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.news-page-summary { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.news-page-source { font-size: 12px; color: var(--text-light); }

/* 地图拓客 */
.map-container { position: relative; height: calc(100vh - 48px); background: var(--divider); }
.map-view { height: 55%; position: relative; }
.map-placeholder {
  height: 100%; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.map-title { font-size: 18px; font-weight: 600; color: var(--primary); }
.map-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.map-markers { position: absolute; inset: 0; }
.map-marker { position: absolute; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.map-marker-pin { font-size: 22px; }
.map-marker-name { font-size: 12px; background: rgba(255,255,255,0.85); padding: 1px 4px; border-radius: var(--radius-sm); }
.map-note { position: absolute; bottom: 8px; font-size: 12px; color: var(--text-light); }
.map-overlay { position: absolute; top: 8px; left: 12px; right: 12px; z-index: 10; }
.map-search-row { display: flex; gap: 8px; }
.map-select { flex: 1; padding: 8px 12px; border-radius: var(--radius-sm); border: none; font-size: 13px; }
.map-search-btn { background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 8px 16px; font-size: 13px; }
.map-tip { background: rgba(255,255,255,0.95); margin-top: 8px; padding: 8px; border-radius: var(--radius-sm); font-size: 12px; color: var(--text-secondary); }
.map-list { height: 45%; overflow-y: auto; background: var(--card-bg); padding: 8px 12px; }
.map-list-item { padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.map-list-name { font-size: 14px; font-weight: 600; }
.map-list-info { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* 潜客筛选 */
.filter-panel { background: var(--card-bg); padding: 16px; margin: 12px; border-radius: var(--radius); }
.filter-group { margin-bottom: 16px; }
.filter-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.filter-row { display: flex; gap: 12px; }
.filter-row .form-input { flex: 1; }

/* 查关系 */
.relation-search-box { padding: 12px 16px; background: var(--card-bg); display: flex; gap: 8px; align-items: center; }
.relation-input { flex: 1; min-width: 0; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 12px; border: 1px solid var(--border); font-size: 14px; }
.judicial-select { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 8px; border: 1px solid var(--border); font-size: 13px; max-width: 112px; flex-shrink: 0; }
.relation-btn { background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 12px 20px; font-size: 14px; flex-shrink: 0; white-space: nowrap; }
.relation-section-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 12px 16px 8px; }
.relation-enterprise-item { background: var(--card-bg); margin: 8px 16px; padding: 16px; border-radius: var(--radius); cursor: pointer; }
.relation-ent-name { font-size: 14px; font-weight: 600; }
.relation-ent-info { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.relation-chain-item { background: var(--card-bg); margin: 8px 16px; padding: 16px; border-radius: var(--radius); display: flex; align-items: center; gap: 8px; }
.relation-node { flex: 1; font-size: 14px; text-align: center; background: var(--bg); padding: 12px; border-radius: var(--radius-sm); }
.relation-arrow { font-size: 12px; color: var(--primary); white-space: nowrap; text-align: center; }
.relation-person { background: var(--card-bg); margin: 8px 16px; padding: 16px; border-radius: var(--radius); }
.relation-person-name { font-size: 14px; font-weight: 600; }
.relation-person-role { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.relation-network-item { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.relation-network-source, .relation-network-target { flex: 1; font-size: 13px; }
.relation-network-type { font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: var(--radius-sm); }

/* 查司法 */
.judicial-item { background: var(--card-bg); margin: 8px 16px; padding: 16px; border-radius: var(--radius); }
.judicial-title { font-size: 14px; font-weight: 600; }
.judicial-case { font-size: 13px; color: var(--primary); margin-top: 4px; }
.judicial-info { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.judicial-result { font-size: 13px; color: var(--danger); margin-top: 4px; }

/* 智能名片 */
.business-card-preview {
  background: var(--primary);
  margin: 12px 16px; border-radius: var(--radius); padding: 16px; color: var(--white); cursor: pointer;
}
.card-preview-header { display: flex; gap: 12px; align-items: center; }
.card-preview-avatar { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.card-preview-name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-default-tag { font-size: 12px; background: rgba(255,255,255,0.25); padding: 2px 8px; border-radius: var(--radius-sm); }
.card-preview-title { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.card-preview-contact { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 13px; }
.business-card-detail {
  margin: 16px; border-radius: var(--radius); padding: 28px 20px; color: var(--white); text-align: center;
}
.card-detail-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.25); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; }
.card-detail-name { font-size: 22px; font-weight: 600; }
.card-detail-title { font-size: 14px; margin-top: 8px; opacity: 0.95; }
.card-detail-company { font-size: 14px; margin-top: 4px; opacity: 0.9; }
.card-detail-divider { height: 1px; background: rgba(255,255,255,0.25); margin: 16px 0; }
.card-detail-row { font-size: 14px; margin: 8px 0; }
.card-detail-tags { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.card-detail-tag { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: var(--radius-md); font-size: 12px; }
.card-detail-actions { padding: 0 16px; }
.card-detail-stats { display: flex; justify-content: center; gap: 40px; margin-top: 20px; }
.card-stat { text-align: center; }
.card-stat-num { display: block; font-size: 18px; font-weight: 600; color: var(--text); }
.card-stat-label { font-size: 12px; color: var(--text-secondary); }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.form-check input { width: 20px; height: 20px; }

/* 我的关注 */
.follows-list { padding: 0 12px; }
.follow-item { background: var(--card-bg); margin: 8px 0; padding: 16px; border-radius: var(--radius); cursor: pointer; }
.follow-name { font-size: 14px; font-weight: 600; }
.follow-info { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.follow-status { display: inline-block; margin-top: 8px; font-size: 12px; background: var(--success-soft); color: var(--success-ink); padding: 2px 8px; border-radius: var(--radius-sm); }

/* ========== 首页搜索结果（实时搜索） ========== */
.search-results-header {
  background: var(--bg);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.search-result-card {
  background: var(--card-bg);
  margin: 8px 12px;
  padding: 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.search-result-card:active {
  transform: scale(0.99);
  background: var(--bg);
}
.search-result-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.search-result-name mark {
  background: var(--warning-soft);
  color: var(--text);
  padding: 0 2px;
  border-radius: var(--radius-sm);
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.search-result-tag, .search-result-type, .search-result-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;   /* v3.72 Pill 化 */
}
.search-result-tag.tag-claimed { background: var(--success-soft); color: var(--success-ink); }
.search-result-tag.tag-unclaimed { background: var(--surface-3); color: var(--text-secondary); }
.search-result-type { background: var(--primary-soft); color: var(--primary); }
.search-result-status { background: var(--warning-soft); color: var(--warning-ink); }
.search-result-info { font-size: 13px; }
.search-result-row {
  display: flex;
  gap: 8px;
  padding: 3px 0;
  color: var(--text-secondary);
}
.search-result-row .info-label {
  color: var(--text-light);
  min-width: 64px;
  flex-shrink: 0;
}
.search-result-row mark {
  background: var(--warning-soft);
  color: var(--text-secondary);
  padding: 0 2px;
}
.search-results-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 16px;
}
.search-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
}
.search-empty .empty-icon { font-size: 36px; margin-bottom: 8px; }
.search-empty-tip { font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ========== 司法详情页 ========== */
.judicial-detail-card { background: var(--card-bg); margin: 12px 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.jd-section { padding: 16px; border-bottom: 1px solid var(--border); }
.jd-section:last-child { border-bottom: none; }
.jd-enterprise-name { font-size: 18px; font-weight: 600; color: var(--text); }
.jd-enterprise-type { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.jd-row { display: flex; padding: 8px 0; align-items: flex-start; }
.jd-label { min-width: 80px; color: var(--text-light); font-size: 13px; flex-shrink: 0; }
.jd-value { flex: 1; font-size: 14px; color: var(--text); word-break: break-all; }
.jd-status { color: var(--danger); font-weight: 600; }
.jd-section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.jd-detail-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap; }
.jd-actions { padding: 16px; }
.judicial-click-hint { text-align: right; font-size: 12px; color: var(--primary); margin-top: 8px; }

/* ========== 地图拓客 - 新版 ========== */
.map-canvas { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #e8f0fe 0%, #d4e4f7 100%); overflow: hidden; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(30,58,95,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(30,58,95,0.08) 1px, transparent 1px); background-size: 30px 30px; }
.map-center-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 20; cursor: move; user-select: none; touch-action: none; }
.map-pin-icon { font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.map-pin-label { font-size: 12px; background: var(--primary); color: var(--white); padding: 2px 8px; border-radius: var(--radius-sm); text-align: center; margin-top: -2px; white-space: nowrap; }
.map-radius-circle { position: absolute; left: 50%; top: 50%; border: 2px dashed rgba(30, 58, 95, 0.4); background: rgba(30, 58, 95, 0.06); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 5; }
.map-controls { background: rgba(255,255,255,0.98); border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow); }
.map-control-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.map-control-label { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.map-coord-input { width: 80px; padding: 8px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; }
.map-search-btn-full { width: 100%; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 12px; font-size: 14px; margin-top: 4px; }

/* ========== 地图拓客 · 优化增强 ========== */
.map-radius-badge { position: absolute; right: 8px; bottom: 8px; z-index: 15; background: rgba(30,58,95,0.7); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 10px; pointer-events: none; }
.map-history { display: none; margin-bottom: 12px; }
.map-history-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.map-history-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.map-history-chip { background: #eef2ff; color: var(--primary); border: 1px solid #dfe6ff; border-radius: 16px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.map-marker.active { z-index: 30; }
.map-marker.active .map-marker-pin { transform: scale(1.35); filter: drop-shadow(0 4px 8px rgba(30,58,95,0.5)); }
.map-marker.active .map-marker-name { background: var(--primary); color: #fff; }
.map-list-item { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(30,58,95,0.06); cursor: pointer; }
.map-list-item.active { outline: 2px solid var(--primary); background: #f5f8ff; }
.map-locate-btn { flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--border); background: #f5f8ff; border-radius: 8px; font-size: 16px; cursor: pointer; }
.map-list-body { flex: 1; min-width: 0; }
.map-list-name { font-weight: 600; font-size: 14px; color: var(--text); }
.map-list-info { font-size: 12px; color: var(--text-secondary); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-save-btn { flex: 0 0 auto; background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 7px 10px; font-size: 12px; cursor: pointer; max-width: 92px; white-space: nowrap; }
.map-save-btn.disabled, .map-save-btn[disabled] { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.map-save-btn.saved { background: #16a34a; }
.map-list-more { text-align: center; font-size: 12px; color: var(--text-secondary); padding: 10px; }

/* ========== 头像选择器 ========== */
.profile-avatar-clickable { position: relative; cursor: pointer; }
.profile-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar-badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid var(--white); }
.avatar-picker-section { padding: 4px 0; }
.avatar-picker-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.avatar-grid-item { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; }
.avatar-grid-item:active { background: var(--bg); }
.avatar-grid-item.active { border-color: var(--primary); background: var(--primary-soft); }
.avatar-picker-divider { height: 1px; background: var(--border); margin: 16px 0; }
.avatar-upload-btn { background: var(--bg); border: 2px dashed var(--border); border-radius: var(--radius); padding: 16px; text-align: center; font-size: 14px; color: var(--primary); cursor: pointer; }
.avatar-upload-btn:active { background: var(--primary-soft); }

/* v2.7 通话登记结果 chips */
.call-chip { cursor: pointer; user-select: none; }
.call-chip.chip-active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* v3.0 通知中心 */
.notify-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: var(--white);
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  align-items: center; justify-content: center; line-height: 16px;
  box-shadow: 0 0 0 2px var(--white);
}
/* v3.66：tabbar「我的」项未读角标（消息/提醒红点，任何 tab 下可见） */
.tab-item { position: relative; }
.tab-notify-badge {
  position: absolute; top: 2px; right: 50%; margin-right: -26px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: var(--white);
  border-radius: 8px; font-size: 10px; font-weight: 600;
  display: none; align-items: center; justify-content: center; line-height: 16px;
  box-shadow: 0 0 0 2px var(--card-bg);
  pointer-events: none; z-index: 5;
}
.notify-item:active { background: var(--surface-2); }


/* ============================================================
   三期 · 列表行内操作按钮热区 ≥44px
   ============================================================ */
.customer-item .btn, .enterprise-item .btn, .task-item .btn,
.number-item .btn, .followup-item .btn, .notify-item .btn,
.cust-bottom .btn, .list-actions .btn, .search-result-card .btn {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
}
.tap-target { min-width: var(--tap-min); min-height: var(--tap-min); display: inline-flex; align-items: center; justify-content: center; }

/* ============================================================
   三期 · 骨架屏容器留白
   ============================================================ */
#customer-list > .skeleton-card,
.customer-list > .skeleton-card { margin: 12px 16px; }
#customer-list > .skeleton-card:first-child { margin-top: 12px; }

/* ============================================================
   三期 · 深色模式适配
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .navbar { background: var(--primary); }
  .tabbar { background: var(--card-bg); border-top-color: var(--border); }
  .search-bar { background: var(--card-bg); }
  .search-input { background: var(--bg); color: var(--text); }

  .intention-high { background: rgba(248, 113, 113, 0.18); color: var(--danger-soft); }
  .intention-medium { background: rgba(251, 191, 36, 0.18); color: var(--warning-soft); }
  .intention-none { background: rgba(148, 163, 184, 0.18); color: var(--sidebar-text); }
  .intention-unknown { background: rgba(129, 140, 248, 0.2); color: var(--primary-soft); }

  .profile-avatar-badge { border-color: var(--card-bg); }
  .modal-content { background: var(--card-bg); color: var(--text); }
  .toast { background: rgba(15, 23, 42, 0.95); color: var(--surface-2); }
  .search-result-tag.tag-claimed { background: rgba(34, 197, 94, 0.2); color: var(--success-soft); }
  .search-result-tag.tag-unclaimed { background: rgba(148, 163, 184, 0.2); color: var(--sidebar-text); }
}

/* ============================================================
   二十九期 EE2 · APP 端质感升级（纯叠加，不改写既有规则）
   ============================================================ */

/* ---------- 顶栏：渐变加深 + 底部柔和投影 ---------- */
.navbar {
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.18);
}

/* ---------- 触控反馈：卡片/按钮/菜单 按压缩放 ---------- */
.card, .profile-menu-item, .stat-card {
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:active, .profile-menu-item:active, .stat-card:active {
  transform: scale(0.985);
}

/* ---------- 按钮：过渡 + 按压 + 主按钮渐变 ---------- */
.btn { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur-fast), opacity var(--dur-fast); }
.btn:active { transform: scale(0.96); }
.btn-primary, .search-btn {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}
.btn-primary:active, .search-btn:active { box-shadow: 0 1px 4px rgba(30, 58, 95, 0.2); }

/* ---------- 卡片：桌面悬浮微抬升（触屏无影响） ---------- */
@media (hover: hover) {
  .card:hover, .stat-card:hover { box-shadow: var(--shadow-lg); transform: var(--lift-sm); }
}

/* ---------- 底部 Tab 栏：图标弹性选中反馈 ---------- */
.tab-item { transition: transform var(--dur) var(--ease-spring), color var(--dur-fast); }
.tab-item:active { transform: scale(0.92); }

/* ---------- 空状态：柔和入场 ---------- */
.empty-state { animation: ee-fade-up var(--dur-slow) var(--ease-out) both; }
@keyframes ee-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 筛选标签：选中态渐变胶囊 ---------- */
.filter-tab.active, .filter-tab[aria-selected="true"] {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.25);
}

/* ---------- 输入聚焦：柔和外发光 ---------- */
.search-input:focus, .form-input:focus, .login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- 滚动条（桌面预览友好，触屏无影响） ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.45); border-radius: var(--radius-sm); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 四十四期 UU：跟进话术推荐卡 ---------- */
.script-badge { font-size:12px;padding:1px 8px;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--primary);border:1px solid var(--primary-soft); }
.script-reason { font-size:12px;padding:1px 8px;border-radius:var(--radius-sm);background:var(--surface-2);color:var(--text-secondary);border:1px solid var(--border); }
.script-content { font-size:12px;line-height:1.6;color:var(--text-secondary);margin:8px 0 8px;white-space:pre-wrap;word-break:break-word;
  background:var(--surface-2);border-left:3px solid var(--primary);border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:8px 12px; }

/* ---------- 全局丝滑动效增强 ---------- */
.page { animation: pageFadeIn 0.25s ease-out; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
button, .card, .list-item {
  transition: all 0.15s ease-out;
}
button:active {
  transform: scale(0.96);
}
.card {
  transition: all 0.2s ease-out;
}
.card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ========== 消息中心：聚焦高亮（点击通知跳转后定位该条） ========== */
@keyframes notifyPulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 92, 191, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(124, 92, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 191, 0); }
}
.notify-focus {
  animation: notifyPulse 1.3s ease-out 2;
  border-color: #7c5cbf !important;
}

/* ========== P6 人脉广场 ========== */
.net-hero {
  margin: 14px 16px;
  padding: 20px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2c52 0%, #145a7a 55%, #0ea5b7 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 165, 183, 0.25);
}
.net-hero-title { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.net-hero-sub { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.net-hero-stats { display: flex; margin-top: 16px; }
.net-hero-stat { flex: 1; text-align: center; position: relative; }
.net-hero-stat + .net-hero-stat::before {
  content: ''; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.2);
}
.net-hero-num { font-size: 22px; font-weight: 800; }
.net-hero-lbl { font-size: 11px; opacity: .8; margin-top: 2px; }

.net-module-card {
  display: flex; align-items: center; gap: 12px;
  margin: 0 16px 12px; padding: 14px 14px;
  background: #fff; border-radius: 14px; border: 1px solid #eef2f7;
  box-shadow: 0 2px 8px rgba(15, 44, 82, 0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.net-module-card:active { transform: scale(.985); box-shadow: 0 4px 14px rgba(15,44,82,.1); }
.net-module-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: linear-gradient(135deg, #e0f7fa, #c2f0f5);
}
.icon-contacts { background: linear-gradient(135deg, #e0f2ff, #bfe3ff); }
.icon-radar { background: linear-gradient(135deg, #e8f5e9, #c8efd0); }
.icon-friends { background: linear-gradient(135deg, #fff0e6, #ffd9bf); }
.net-module-main { flex: 1; min-width: 0; }
.net-module-name { font-size: 15px; font-weight: 700; color: #0f2c52; }
.net-module-desc { font-size: 12px; color: #7c8aa0; margin-top: 3px; line-height: 1.45; }
.net-module-go { font-size: 22px; color: #b8c2d0; }

.net-tip { font-size: 12px; color: #7c8aa0; line-height: 1.55; margin: 10px 0; }

/* 通讯录匹配 */
.net-chip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; }
.net-chip-stat { text-align: center; padding: 12px 4px; border-radius: 12px; background: #f5f8fb; }
.net-chip-num { font-size: 20px; font-weight: 800; }
.net-chip-lbl { font-size: 11px; color: #7c8aa0; margin-top: 2px; }
.tag-linked .net-chip-num, .tag-linked { color: #16a34a; }
.tag-enterprise .net-chip-num, .tag-enterprise { color: #0ea5b7; }
.tag-user .net-chip-num, .tag-user { color: #7c5cbf; }
.tag-new .net-chip-num, .tag-new { color: #94a3b8; }

.net-match-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid #f1f5f9; }
.net-match-avatar, .net-visitor-avatar, .net-friend-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #145a7a, #0ea5b7);
}
.net-match-main { flex: 1; min-width: 0; }
.net-match-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.net-match-sub { font-size: 12px; color: #7c8aa0; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-tag { font-size: 11px; padding: 3px 8px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.net-tag.tag-linked { background: #dcfce7; color: #16a34a; }
.net-tag.tag-enterprise { background: #cffafe; color: #0e7490; }
.net-tag.tag-user { background: #ede9fe; color: #6d28d9; }
.net-tag.tag-new { background: #f1f5f9; color: #64748b; }

/* 访客雷达 */
.net-radar-hero {
  margin: 14px 16px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0e7490 100%);
  color: #fff;
}
.net-radar-title { font-size: 17px; font-weight: 800; }
.net-radar-sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.net-radar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.net-radar-stat {
  background: #fff; border-radius: 14px; padding: 14px; text-align: center;
  border: 1px solid #eef2f7; box-shadow: 0 2px 8px rgba(15,44,82,.04);
}
.net-radar-num { font-size: 24px; font-weight: 800; color: #0e7490; }
.net-radar-lbl { font-size: 11.5px; color: #7c8aa0; margin-top: 3px; }
.net-visitor-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #f1f5f9; }
.net-visitor-main { flex: 1; min-width: 0; }
.net-visitor-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.net-visitor-act { font-size: 11.5px; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--primary); background: #fff; color: var(--primary); white-space: nowrap; cursor: pointer; }
.net-visitor-act:disabled { opacity: .6; cursor: default; }
.net-visitor-cust { border-color: #0ea5b7; color: #0e7490; }
.net-visitor-card { border-color: #cbd5e1; color: #64748b; }
.net-radar-filter { display: flex; gap: 8px; padding: 4px 0 12px; flex-wrap: wrap; }
.net-radar-fbtn { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; cursor: pointer; }
.net-radar-fbtn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.net-match-actions { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; margin-left: 8px; }
.net-match-act { font-size: 11.5px; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--primary); background: #fff; color: var(--primary); white-space: nowrap; cursor: pointer; }
.net-match-act:disabled { opacity: .6; cursor: default; }
.net-match-cust { border-color: #0ea5b7; color: #0e7490; }
.net-match-ent { border-color: #cbd5e1; color: #64748b; }
.net-friend-groups { display: flex; gap: 8px; flex-wrap: wrap; }
.net-group-btn { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; cursor: pointer; }
.net-group-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.net-friend-ops { display: flex; gap: 6px; align-items: center; }
.tag-group { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.modal-card { background: #fff; border-radius: 14px; padding: 18px; max-width: 320px; margin: 0 auto; box-shadow: 0 10px 40px rgba(15,23,42,.18); }
.modal-msg { font-size: 14px; color: #1e293b; margin-bottom: 12px; }
.modal-ops { display: flex; gap: 10px; justify-content: flex-end; }
.net-g-node { cursor: pointer; }
.net-g-node:active circle { opacity: .8; }
.net-graph-svg { width: 100%; max-width: 320px; height: auto; margin: 0 auto; display: block; }
.net-graph-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; margin: 8px 0; color: #64748b; }
.net-graph-legend .lg-me { color: #0ea5b7; }
.net-graph-legend .lg-friend { color: #0e7490; }
.net-graph-legend .lg-2nd { color: #94a3b8; }
.net-qr-box { display: flex; justify-content: center; padding: 8px; }
.net-qr-box svg { background: #fff; border-radius: 12px; padding: 8px; }
.net-visitor-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.net-visitor-sub { font-size: 12px; color: #7c8aa0; margin-top: 2px; }

/* 我的人脉 / 好友 */
.net-tabs { display: flex; gap: 6px; padding: 12px 16px 4px; }
.net-tab {
  font-size: 13px; padding: 7px 12px; border-radius: 10px; color: #64748b;
  background: #f1f5f9; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.net-tab.active { background: #0e7490; color: #fff; font-weight: 600; }
.net-tab-badge {
  font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 8px; background: rgba(255,255,255,.25); padding: 0 4px;
}
.net-tab:not(.active) .net-tab-badge { background: #cbd5e1; color: #475569; }
.net-friend-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #f1f5f9; }
.net-friend-main { flex: 1; min-width: 0; }
.net-friend-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.net-friend-sub { font-size: 12px; color: #7c8aa0; margin-top: 2px; }
.net-friend-act { white-space: nowrap; }

/* ========== P7 我的名片（个人中心可编辑名片卡） ========== */
.me-card {
  margin: 12px; padding: 14px 16px; background: #fff; border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15,23,42,.06); border: 1px solid #eef2f7;
  cursor: pointer; position: relative; user-select: none;
}
.me-card:active { transform: scale(.992); }
.me-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.me-card-title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: #1e293b; }
.me-card-title .icon { width: 18px; height: 18px; color: #0ea5e9; }
.me-card-share {
  display: flex; align-items: center; gap: 4px; font-size: 12px; color: #0ea5e9;
  background: #e0f2fe; padding: 5px 11px; border-radius: 20px; cursor: pointer;
}
.me-card-share:active { background: #bae6fd; }
.me-card-share .icon { width: 14px; height: 14px; }
.me-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.me-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me-label { font-size: 11px; color: #94a3b8; }
.me-val { font-size: 13px; color: #334155; word-break: break-all; }
.me-val.me-empty { color: #cbd5e1; }
.me-card-grid > .me-item:last-child { grid-column: 1 / -1; }
.me-card-hint { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11px; color: #94a3b8; }
.me-card-hint .icon { width: 13px; height: 13px; }

/* ========== P10 S级线索额外金币奖励 · 高级感样式 ========== */
/* 金币余额芯片（获客页头部） */
.coin-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #f4e3a1, #e8c45a);
  color: #6b5210; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(201,162,39,.28);
  cursor: pointer; white-space: nowrap;
}
.coin-chip .coin-num { font-variant-numeric: tabular-nums; }
.coin-chip .icon { width: 15px; height: 15px; }

/* S级特权说明卡（金边高级感） */
.sl-hero {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid rgba(201,162,39,.45);
  border-radius: 16px; padding: 16px; margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(201,162,39,.14);
}
.sl-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,196,90,.22), transparent 70%);
}
.sl-hero-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #6b5210; }
.sl-hero-badge {
  font-size: 11px; font-weight: 800; color: #fff; background: #c9a227;
  padding: 2px 9px; border-radius: 10px; letter-spacing: .5px;
}
.sl-hero-desc { font-size: 12px; color: #64748b; margin-top: 8px; line-height: 1.6; }
.sl-hero-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sl-hero-pill {
  flex: 1; min-width: 64px; text-align: center;
  background: #fbf6e8; border-radius: 10px; padding: 8px 4px;
}
.sl-hero-pill .lv { font-size: 13px; font-weight: 800; color: #c9a227; }
.sl-hero-pill .ct { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.sl-hero-pill.s { background: linear-gradient(135deg,#f4e3a1,#e8c45a); }
.sl-hero-pill.s .lv { color: #6b5210; }

/* 转化暴击庆祝层 */
.sl-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,22,48,.58); backdrop-filter: blur(6px);
  animation: slFade .25s ease both;
}
@keyframes slFade { from { opacity: 0; } to { opacity: 1; } }
.sl-card {
  position: relative; width: 82%; max-width: 320px;
  background: #fff; border-radius: 22px; padding: 26px 22px 20px;
  text-align: center; box-shadow: 0 20px 60px rgba(28,22,48,.4);
  border: 1px solid rgba(201,162,39,.5);
  animation: slPop .32s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes slPop { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sl-medal {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #f5d87a, #c9a227 70%);
  box-shadow: 0 8px 22px rgba(201,162,39,.45);
}
.sl-medal.s { background: radial-gradient(circle at 35% 30%, #ffe9a8, #c9a227 65%, #a8841a); box-shadow: 0 10px 26px rgba(201,162,39,.6); }
.sl-title { font-size: 17px; font-weight: 800; color: #1e293b; }
.sl-title.s { color: #b5891a; }
.sl-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.sl-amount {
  font-size: 44px; font-weight: 900; color: #c9a227; margin: 12px 0 2px;
  font-variant-numeric: tabular-nums; letter-spacing: -1px;
}
.sl-amount .plus { font-size: 26px; vertical-align: super; margin-right: 2px; }
.sl-breakdown {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px auto 0;
  font-size: 12px; color: #64748b; background: #fbf6e8;
  border-radius: 12px; padding: 6px 12px;
}
.sl-breakdown b { color: #c9a227; }
.sl-breakdown .plus { color: #cbd5e1; }
.sl-balance { font-size: 12px; color: #94a3b8; margin-top: 12px; }
.sl-balance b { color: #334155; font-size: 14px; }
.sl-actions { display: flex; gap: 10px; margin-top: 18px; }
.sl-btn {
  flex: 1; border: none; border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.sl-btn.primary { background: #7c5cbf; color: #fff; box-shadow: 0 4px 14px rgba(124,92,191,.3); }
.sl-btn.ghost { background: #f1f5f9; color: #475569; }
.sl-btn:active { transform: scale(.97); }

/* 金币迸发动画 */
.sl-coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 22px; }
.sl-coin {
  position: absolute; top: 40%; left: 50%; font-size: 20px;
  animation: slBurst .9s ease-out forwards;
}
@keyframes slBurst {
  0% { transform: translate(-50%,-50%) scale(.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

/* S级特权卡 · 商城入口 */
.sl-hero-shop {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 9px 12px;
  background: linear-gradient(135deg, #f4e3a1, #e8c45a);
  border-radius: 10px; font-size: 13px; font-weight: 700; color: #6b5210;
  cursor: pointer;
}
.sl-hero-shop .arr { font-size: 16px; line-height: 1; }
.sl-hero-shop:active { transform: scale(.98); }

/* ==================== P11 金币商城 ==================== */
.cs-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1c2540, #3a3f6d);
  border-radius: 18px; padding: 18px 16px; color: #fff;
  box-shadow: 0 8px 24px rgba(28, 37, 64, .3);
}
.cs-banner::after {
  content: '🪙'; position: absolute; right: 10px; top: -6px;
  font-size: 72px; opacity: .12; transform: rotate(12deg);
}
.cs-banner-title { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.cs-banner-sub { font-size: 12px; opacity: .78; margin-top: 5px; line-height: 1.6; }
.cs-banner-actions { display: flex; gap: 8px; margin-top: 12px; }
.cs-mini-btn {
  border: none; border-radius: 20px; padding: 7px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #f4e3a1, #e8c45a); color: #6b5210;
}
.cs-mini-btn.ghost { background: rgba(255,255,255,.14); color: #fff; }
.cs-mini-btn:active { transform: scale(.96); }

.cs-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid rgba(201,162,39,.22);
  border-radius: 16px; padding: 14px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(201,162,39,.08);
}
.cs-card.cs-soldout { opacity: .55; }
.cs-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: #fbf6e8;
}
.cs-info { flex: 1; min-width: 0; }
.cs-name { font-size: 14px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-type { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 8px; }
.cs-desc {
  font-size: 12px; color: #64748b; margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-meta { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.cs-buy { text-align: center; flex-shrink: 0; }
.cs-cost { font-size: 15px; font-weight: 900; color: #c9a227; font-variant-numeric: tabular-nums; }
.cs-btn {
  margin-top: 6px; border: none; border-radius: 18px; padding: 7px 14px;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, #f4e3a1, #e8c45a); color: #6b5210;
  box-shadow: 0 3px 10px rgba(201,162,39,.3);
}
.cs-btn.disabled { background: #f1f5f9; color: #94a3b8; box-shadow: none; cursor: not-allowed; }
.cs-btn:active { transform: scale(.95); }
.cs-loading, .cs-empty { text-align: center; color: #94a3b8; font-size: 13px; padding: 40px 0; }


/* ============ 第 1 期 · 搜索联想增强（可解释匹配 + 键盘导航） ============ */
/* 键盘高亮项：与 hover 同级视觉，用左侧强调条标识当前选中 */
.search-suggest-item.active {
  background: var(--surface-3, #f1f5f9);
  box-shadow: inset 3px 0 0 var(--accent, #2EC4B6);
}
/* 匹配分数：极简数字权重，弱化处理不抢视线 */
.search-match-score {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 11px; font-weight: 500; line-height: 1.5;
  color: var(--accent, #0F6E56); background: rgba(46, 196, 182, .12);
  border-radius: 999px; font-variant-numeric: tabular-nums;
}
/* 匹配原因：让用户知道"为什么命中它"，提升信任（文档风险控制第 4 条） */
.search-match-reason {
  display: inline-block; margin-right: 6px; padding: 1px 6px;
  font-size: 11px; line-height: 1.5; color: #185FA5;
  background: rgba(24, 95, 165, .10); border-radius: 4px;
}
/* 来源标记：第三方兜底结果明确标注，避免用户误以为是本地库数据 */
.search-src-tag {
  display: inline-block; margin-left: 6px; padding: 1px 5px;
  font-size: 10px; font-weight: 600; letter-spacing: .3px; line-height: 1.5;
  color: #854F0B; background: rgba(250, 199, 117, .28); border-radius: 4px;
}

/* ============ P20 我的权益（商城兑换后真实生效） ============ */
.ben-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(181,137,26,.10), rgba(201,162,39,.06));
  border: 1px solid rgba(181,137,26,.28);
}
.ben-title { font-size: 13px; font-weight: 700; color: #8a6a1f; }
.ben-quota { font-size: 12px; color: #a8842c; font-variant-numeric: tabular-nums; }
.ben-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.ben-item {
  padding: 10px 12px; border-radius: 12px;
  background: var(--surface-2, #f7f9fb); border: 1px solid var(--surface-3, #e8edf3);
}
.ben-icon { font-size: 18px; }
.ben-name { font-size: 13px; font-weight: 600; color: var(--text, #1f2937); margin-top: 2px; }
.ben-val { font-size: 12px; color: #b5891a; font-weight: 700; margin-top: 1px; }
.ben-exp { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* 商品卡权益标签（P20）：告诉用户兑换后真实生效什么 */
.cs-ben {
  display: inline-block; margin-top: 5px; padding: 3px 8px;
  font-size: 11px; line-height: 1.5; border-radius: 6px;
  color: #8a6a1f; background: rgba(181,137,26,.14);
  border: 1px solid rgba(181,137,26,.26);
}

/* ========== v3.70 全域获客雷达动效 ========== */
.radar-sweep {
  transform-origin: 70px 70px;
  animation: radar-spin 3.6s linear infinite;
}
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.radar-node {
  transition: fill .4s ease;
}
.radar-hit {
  animation: radar-ping 1.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes radar-ping {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(2.2); opacity: .25; }
  100% { transform: scale(1); opacity: 1; }
}

/* ========== v3.72 企业 UI 改版 · 设计令牌与组件（小蓝本风格） ========== */
:root {
  --ent-navy: #1A233A;      /* 主色调·深蓝 */
  --ent-blue: #3867D6;      /* 次色调·亮蓝 */
  --ent-orange: #FD9644;    /* 次色调·橙 */
  --ent-text: #2c3e50;      /* 标题字色 */
  --ent-muted: #8395a7;     /* 标签字色 */
}

/* --- Pill 胶囊标签：浅底深字圆角，替代下划线 tag --- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1.4; font-weight: 500;
  background: #f1f5f9; color: #334155; white-space: nowrap;
}
.pill-blue   { background: #e8f0fe; color: #3867D6; }
.pill-green  { background: #e6f7ef; color: #0f9d58; }
.pill-orange { background: #fff1e6; color: #fd7e14; }
.pill-purple { background: #f3ecfe; color: #7c5cbf; }
.pill-navy   { background: #e9edf5; color: #1A233A; }

/* --- 卡片规范：12px 圆角 / 16px 内距 / 轻阴影 --- */
.vcard {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}
.vcard-title {
  font-size: 16px; font-weight: 700; color: var(--ent-text);
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}

/* --- 企业名片头部 --- */
.ent-hero {
  background: linear-gradient(135deg, var(--ent-navy) 0%, #243352 100%);
  border-radius: 12px; padding: 20px 16px; margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(26, 35, 58, 0.25);
  color: #fff;
}
.ent-hero-name { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.ent-hero-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ent-hero .pill { background: rgba(255,255,255,.14); color: #dbe4f3; }

/* --- 拨号电话卡 --- */
.phone-card {
  display: flex; align-items: center; gap: 12px;
  background: #e8f0fe; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 16px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.phone-card:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(56,103,214,.25); }
.phone-card .phone-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--ent-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.phone-card .phone-num { font-size: 18px; font-weight: 700; color: var(--ent-blue); letter-spacing: .5px; }
.phone-card .phone-hint { font-size: 12px; color: var(--ent-muted); margin-top: 2px; }

/* --- 按钮微交互：全圆角 + 按压反馈 --- */
.btn-round {
  border-radius: 999px !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-round:active { transform: scale(.96); filter: brightness(.92); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* --- 骨架屏 shimmer（复用 skeletonList 场景） --- */
.v-skeleton {
  position: relative; overflow: hidden; background: #eef1f6; border-radius: 8px;
}
.v-skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-100%);
  animation: v-shimmer 1.3s infinite;
}
@keyframes v-shimmer { to { transform: translateX(100%); } }

/* --- 仪表盘：大数字与图表容器 --- */
.dash-num { font-size: 28px; font-weight: 700; color: var(--ent-text); line-height: 1.1; }
.dash-label { font-size: 12px; color: var(--ent-muted); margin-top: 4px; }
.chart-box { width: 100%; height: 180px; }
.chart-funnel-bar {
  height: 34px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; margin-bottom: 8px; position: relative; overflow: hidden;
}
.chart-funnel-bar::after {
  content: '→'; position: absolute; right: 8px; opacity: .55; font-size: 14px;
}

/* ============================================================
   v3.74 小蓝本式企业详情页（一比一改版 · 独立前缀 xlb-，不污染既有样式）
   视觉依据：林老板提供的小蓝本真机截图
   ============================================================ */
.xlb-root {
  --xlb-primary: #1F7AFF;
  --xlb-primary-d: #1667E0;
  --xlb-primary-l: #EDF4FF;
  --xlb-bg: #F2F6FD;
  --xlb-text: #1D2129;
  --xlb-text2: #4E5969;
  --xlb-text3: #86909C;
  --xlb-line: #EDF0F5;
  --xlb-card: #F5F7FA;
  --xlb-green: #00B42A;
  --xlb-orange: #FF7D00;
  --xlb-purple: #7B5AF0;
  --xlb-red: #F53F3F;
  --xlb-wa: #07C160;
  background: var(--xlb-bg);
  min-height: 100vh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 顶部：白底 + 分段 Tab + 搜索/分享 ---------- */
.xlb-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff;
  border-bottom: 1px solid var(--xlb-line);
  position: sticky; top: 0; z-index: 20;
}
.xlb-back { display: flex; align-items: center; color: var(--xlb-text); cursor: pointer; flex: none; }
.xlb-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xlb-seg { display: flex; gap: 16px; flex: 1; min-width: 0; }
.xlb-seg-item {
  font-size: 15px; color: var(--xlb-text3); white-space: nowrap;
  cursor: pointer; padding: 2px 0; position: relative;
}
.xlb-seg-item.on { color: var(--xlb-primary); font-weight: 700; }
.xlb-seg-brand { color: var(--xlb-primary); font-weight: 700; font-size: 15px; white-space: nowrap; }
.xlb-topact { display: flex; align-items: center; gap: 12px; flex: none; }
.xlb-topact svg { width: 20px; height: 20px; stroke: var(--xlb-text); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; }

/* ---------- 企业名片 ---------- */
.xlb-corp { padding: 12px 12px 0; }
.xlb-corp-head { display: flex; gap: 10px; align-items: flex-start; }
.xlb-logo {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #FF9A2E, #FF5B2E);
}
.xlb-corp-main { flex: 1; min-width: 0; }
.xlb-corp-name { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--xlb-text); word-break: break-word; }
.xlb-corp-sub { font-size: 11px; color: var(--xlb-text3); margin-top: 3px; }
.xlb-fav { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.xlb-fav svg { width: 20px; height: 20px; stroke: var(--xlb-text3); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.xlb-fav.on svg { stroke: var(--xlb-primary); fill: rgba(31,122,255,.14); }
.xlb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; align-items: center; }
.xlb-tag { font-size: 10px; padding: 2px 7px; border-radius: 5px; line-height: 1.6; font-weight: 500; }
.xlb-t-green { background: #E8FFEA; color: #009A29; }
.xlb-t-blue { background: var(--xlb-primary-l); color: var(--xlb-primary-d); }
.xlb-t-gray { background: #F2F3F5; color: var(--xlb-text2); }
.xlb-t-purple { background: #F2EDFF; color: #5B3FD6; }
.xlb-t-orange { background: #FFF7E8; color: #D25F00; }
.xlb-tags-more { font-size: 10px; color: var(--xlb-primary); white-space: nowrap; }
.xlb-intro {
  font-size: 12px; color: var(--xlb-text2); line-height: 1.6; margin-top: 9px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 指标三列（label 上 / value 下） ---------- */
.xlb-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
.xlb-kpi { padding: 9px 4px 10px; text-align: center; position: relative; }
.xlb-kpi::after {
  content: ''; position: absolute; right: 0; top: 10px; bottom: 10px; width: 1px; background: var(--xlb-line);
}
.xlb-kpi:last-child::after { display: none; }
.xlb-kpi-l { font-size: 11px; color: var(--xlb-text3); line-height: 1.4; }
.xlb-kpi-v { font-size: 14px; font-weight: 700; color: var(--xlb-text); margin-top: 3px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xlb-kpi-v.link { color: var(--xlb-primary); }
.xlb-kpi-v.sm { font-size: 12.5px; }

/* ---------- 白色卡片 ---------- */
.xlb-card { background: #fff; border-radius: 12px; margin: 10px 12px 0; overflow: hidden; }
.xlb-card-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 0;
}
.xlb-card-t { font-size: 14.5px; font-weight: 700; color: var(--xlb-text); display: flex; align-items: center; gap: 6px; }
.xlb-card-t::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--xlb-primary); }
.xlb-card-more { font-size: 11.5px; color: var(--xlb-text3); display: flex; align-items: center; gap: 2px; cursor: pointer; }
.xlb-card-more svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.xlb-card-bd { padding: 10px 14px 12px; }
.xlb-card-note { font-size: 11px; color: var(--xlb-text3); padding: 8px 14px 0; line-height: 1.6; }

/* ---------- 四宫格快捷入口 ---------- */
.xlb-quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 8px 16px; }
.xlb-qi { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; }
.xlb-qi-box {
  width: 42px; height: 42px; border-radius: 12px; background: var(--xlb-primary-l);
  display: flex; align-items: center; justify-content: center;
}
.xlb-qi-box svg { width: 21px; height: 21px; stroke: var(--xlb-primary); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.xlb-qi-t { font-size: 11.5px; color: var(--xlb-text2); white-space: nowrap; }

/* ---------- 统计网格（基本信息/知识产权/经营信息/司法风险） ---------- */
.xlb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 14px 14px; }
.xlb-cell {
  background: var(--xlb-card); border-radius: 10px; padding: 12px 4px 10px;
  text-align: center; position: relative; cursor: pointer;
}
.xlb-cell-top { display: flex; align-items: center; justify-content: center; height: 22px; position: relative; }
.xlb-cell-top svg { width: 18px; height: 18px; stroke: var(--xlb-text2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xlb-cell-n { font-size: 13px; font-weight: 700; color: var(--xlb-text); margin-top: 5px; line-height: 1.2; }
.xlb-cell-l { font-size: 11px; color: var(--xlb-text3); margin-top: 3px; line-height: 1.3; }
.xlb-badge {
  position: absolute; top: -1px; right: 4px; font-size: 8.5px; font-weight: 700;
  padding: 1px 3px; border-radius: 3px; color: #fff; line-height: 1.4;
}
.xlb-badge.vip { background: linear-gradient(135deg, #FFB020, #FF7D00); }
.xlb-badge.gold { background: linear-gradient(135deg, #FFD666, #F5A623); color: #7A4A00; }
.xlb-badge.green { background: var(--xlb-green); }
.xlb-badge.blue { background: var(--xlb-primary); }

/* ---------- 人员/股东卡 ---------- */
.xlb-people { padding: 4px 14px 12px; }
.xlb-person {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  background: var(--xlb-card); border-radius: 10px; padding: 10px 12px; margin-top: 8px;
}
.xlb-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #7EA6FF, #1F7AFF); color: #fff;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.xlb-p-main { flex: 1; min-width: 0; }
.xlb-p-name { font-size: 14px; font-weight: 700; color: var(--xlb-text); display: flex; align-items: center; gap: 5px; }
.xlb-p-kp { font-size: 9px; background: var(--xlb-primary); color: #fff; padding: 1px 4px; border-radius: 3px; font-weight: 700; }
.xlb-p-role { font-size: 11.5px; color: var(--xlb-text3); margin-top: 3px; }
.xlb-p-phone { font-size: 12.5px; color: var(--xlb-primary); font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.xlb-p-phone svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xlb-wa { width: 16px; height: 16px; border-radius: 4px; background: var(--xlb-wa); display: inline-flex; align-items: center; justify-content: center; }
.xlb-wa svg { width: 10px; height: 10px; fill: #fff; stroke: none; }
.xlb-p-right { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.xlb-call {
  height: 27px; padding: 0 11px; border-radius: 14px; background: var(--xlb-primary); color: #fff;
  font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; border: none; cursor: pointer;
}
.xlb-call svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 关系图谱 ---------- */
.xlb-graph-box { width: 100%; height: 290px; }
.xlb-graph-legend {
  display: flex; justify-content: center; gap: 14px; font-size: 11px;
  color: var(--xlb-text3); padding: 0 0 12px;
}
.xlb-graph-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* ---------- 列表行（工商信息） ---------- */
.xlb-rows { padding: 4px 14px 12px; }
.xlb-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 13px; line-height: 1.55; }
.xlb-row + .xlb-row { border-top: 1px solid var(--xlb-line); }
.xlb-row-l {
  flex: none; min-width: 76px; background: #F5F6F8; border-radius: 6px;
  padding: 3px 8px; font-size: 11.5px; color: var(--xlb-text2); text-align: center;
}
.xlb-row-v { flex: 1; color: var(--xlb-text); word-break: break-all; }
.xlb-row-v.link { color: var(--xlb-primary); font-weight: 600; }

/* ---------- 空态 ---------- */
.xlb-empty { padding: 24px 14px 28px; text-align: center; }
.xlb-empty-t { font-size: 12.5px; color: var(--xlb-text3); }

/* ---------- 底部固定操作栏 ---------- */
.xlb-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--xlb-line);
  display: flex; align-items: center; gap: 8px; padding: 0 12px env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 18px rgba(29,78,216,.07);
}
.xlb-dbtn {
  flex: 1; height: 40px; border-radius: 20px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 5px; border: none; cursor: pointer;
  background: #F2F3F5; color: var(--xlb-text2);
}
.xlb-dbtn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.xlb-dbtn.primary { background: var(--xlb-primary); color: #fff; }
.xlb-dbtn.green { background: var(--xlb-green); color: #fff; }
.xlb-dbtn.ghost { border: 1px solid var(--xlb-primary); color: var(--xlb-primary); background: #fff; }

/* ============================================================
   v3.76 天机情报中心 · 情报详情页（模块三-指令A · 独立前缀 intel-）
   CSP 合规：全部走 CSS 类，零原生 style="" 属性；动态样式走 data-style
   ============================================================ */
.intel-root {
  --intel-primary: #1F7AFF;
  --intel-primary-l: #EDF4FF;
  --intel-bg: #F2F6FD;
  --intel-card: #FFFFFF;
  --intel-text: #1D2129;
  --intel-text2: #4E5969;
  --intel-text3: #86909C;
  --intel-line: #EDF0F5;
  background: var(--intel-bg);
  min-height: 100vh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 顶部栏 ---------- */
.intel-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px;
  background: var(--intel-card);
  border-bottom: 1px solid var(--intel-line);
}
.intel-back {
  flex: none; display: flex; align-items: center;
  color: var(--intel-text); cursor: pointer;
}
.intel-back svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.intel-title {
  flex: 1; font-size: 16px; font-weight: 700; color: var(--intel-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.intel-type {
  flex: none; font-size: 12px; color: var(--intel-text3);
  background: var(--intel-primary-l); color: var(--intel-primary);
  border-radius: 999px; padding: 3px 10px; font-weight: 600;
}

/* ---------- 主体 ---------- */
.intel-body { padding: 12px 14px 0; }

/* ---------- 头部信息卡 ---------- */
.intel-hero {
  background: var(--intel-card);
  border-radius: 14px;
  padding: 16px 15px 14px;
  box-shadow: 0 2px 12px rgba(29, 78, 216, .05);
  margin-bottom: 12px;
}
.intel-hero-name {
  font-size: 19px; font-weight: 700; line-height: 1.35;
  color: var(--intel-text); word-break: break-word;
}
.intel-hero-sub {
  font-size: 12px; color: var(--intel-text3); margin-top: 5px; word-break: break-all;
}
.intel-hero-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.intel-hero-tags .tag { font-size: 11.5px; }

/* ---------- 左右两栏 ---------- */
.intel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 720px) {
  .intel-grid { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- 通用卡片 ---------- */
.intel-card {
  background: var(--intel-card);
  border-radius: 14px;
  padding: 14px 15px 15px;
  box-shadow: 0 2px 12px rgba(29, 78, 216, .05);
  margin-bottom: 12px;
}
.intel-card-t {
  font-size: 14px; font-weight: 700; color: var(--intel-text);
  padding-left: 9px; margin-bottom: 11px;
  border-left: 3px solid var(--intel-primary);
  line-height: 1.2;
}

/* ---------- 左侧基础工商信息 ---------- */
.intel-rows { display: block; }
.intel-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: 13px; line-height: 1.55;
}
.intel-row + .intel-row { border-top: 1px solid var(--intel-line); }
.intel-row-l {
  flex: none; min-width: 76px;
  background: #F5F6F8; border-radius: 6px;
  padding: 3px 8px; font-size: 11.5px; color: var(--intel-text2);
  text-align: center;
}
.intel-row-v { flex: 1; color: var(--intel-text); word-break: break-all; }

/* ---------- 右侧股权穿透图 ---------- */
.intel-graph-wrap { width: 100%; }
.intel-graph {
  width: 100%;
  height: 300px;           /* 必须显式给高度：否则 ECharts 容器高 0，图不可见 */
  border-radius: 10px;
  background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
  border: 1px solid var(--intel-line);
}
.intel-graph-tip {
  margin-top: 8px; font-size: 11.5px; color: var(--intel-text3); text-align: center;
}

/* ---------- AI 报告（Markdown 渲染） ---------- */
.intel-report { margin-bottom: 12px; }
.intel-md { font-size: 13.5px; line-height: 1.75; color: var(--intel-text); }
.intel-md-h1 { font-size: 17px; font-weight: 700; margin: 14px 0 8px; color: var(--intel-text); }
.intel-md-h2 { font-size: 15.5px; font-weight: 700; margin: 12px 0 7px; color: var(--intel-text); }
.intel-md-h3 { font-size: 14.5px; font-weight: 700; margin: 11px 0 6px; color: var(--intel-text); }
.intel-md-h4 { font-size: 13.8px; font-weight: 700; margin: 10px 0 6px; color: var(--intel-text2); }
.intel-md-h5 { font-size: 13.2px; font-weight: 700; margin: 9px 0 5px; color: var(--intel-text2); }
.intel-md-p { margin: 6px 0; }
.intel-md-ul { margin: 6px 0; padding-left: 20px; }
.intel-md-li { margin: 3px 0; }
.intel-md-quote {
  margin: 8px 0; padding: 8px 11px;
  background: var(--intel-primary-l);
  border-left: 3px solid var(--intel-primary);
  border-radius: 0 8px 8px 0;
  color: var(--intel-text2); font-size: 12.8px;
}
.intel-md-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: #F2F3F5; color: #B54708;
  padding: 1px 5px; border-radius: 4px;
}
.intel-md-meta { font-size: 11.5px; color: var(--intel-text3); margin-bottom: 6px; }
.intel-md strong { font-weight: 700; color: var(--intel-text); }

/* ---------- 状态 ---------- */
.intel-loading {
  padding: 18px 0; text-align: center;
  font-size: 12.5px; color: var(--intel-text3);
}
.intel-empty {
  padding: 22px 12px 26px; text-align: center;
  font-size: 12.5px; color: var(--intel-text3);
}

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  .intel-root {
    --intel-bg: #0F1216;
    --intel-card: #181C22;
    --intel-text: #E8EAED;
    --intel-text2: #A8B0BA;
    --intel-text3: #7A838F;
    --intel-line: #262B33;
    --intel-primary-l: rgba(31, 122, 255, .16);
  }
  .intel-row-l { background: rgba(148, 163, 184, .16); color: var(--intel-text2); }
  .intel-graph { background: linear-gradient(180deg, #141920 0%, #181C22 100%); border-color: var(--intel-line); }
  .intel-md-code { background: rgba(148, 163, 184, .18); color: #FDBA74; }
  .intel-type { color: #A8BFD8; }
}

/* ============================================================
   v3.77 天机获客雷达控制台（模块三-指令B · 独立前缀 rc-）
   CSP 合规：全部走 CSS 类，零原生 style="" 属性；动态样式走 data-style
   ============================================================ */
.rc-root {
  --rc-primary: #1F7AFF;
  --rc-primary-l: #EDF4FF;
  --rc-bg: #F2F6FD;
  --rc-card: #FFFFFF;
  --rc-text: #1D2129;
  --rc-text2: #4E5969;
  --rc-text3: #86909C;
  --rc-line: #EDF0F5;
  background: var(--rc-bg);
  min-height: 100vh;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ---------- 顶部栏 ---------- */
.rc-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px;
  background: var(--rc-card);
  border-bottom: 1px solid var(--rc-line);
}
.rc-back {
  flex: none; display: flex; align-items: center;
  color: var(--rc-text); cursor: pointer;
}
.rc-back svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rc-title {
  flex: 1; font-size: 16px; font-weight: 700; color: var(--rc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-refresh {
  flex: none; font-size: 13px; color: var(--rc-primary);
  cursor: pointer; padding: 4px 10px; border-radius: 999px;
  background: var(--rc-primary-l); font-weight: 600;
}

/* ---------- 主体 ---------- */
.rc-body { padding: 12px 14px 0; }

/* ---------- 通用卡片 ---------- */
.rc-card {
  background: var(--rc-card);
  border-radius: 14px;
  padding: 14px 15px 15px;
  box-shadow: 0 2px 12px rgba(29, 78, 216, .05);
  margin-bottom: 12px;
}
.rc-card-t {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--rc-text);
  padding-left: 9px; margin-bottom: 11px;
  border-left: 3px solid var(--rc-primary);
  line-height: 1.2;
}
.rc-card-t-sub { font-size: 11.5px; font-weight: 500; color: var(--rc-text3); }
.rc-card-t-sub b { color: var(--rc-primary); font-weight: 700; }

/* ---------- 雷达状态面板 ---------- */
.rc-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 11px;
}
.rc-stat {
  border-radius: 10px; padding: 10px 6px; text-align: center;
  background: #F5F6F8;
}
.rc-stat-n { font-size: 21px; font-weight: 800; line-height: 1.15; }
.rc-stat-l { font-size: 11.5px; color: var(--rc-text3); margin-top: 3px; }
.rc-stat-warn { background: #FFF7E8; }
.rc-stat-warn .rc-stat-n { color: #D25F00; }
.rc-stat-run { background: var(--rc-primary-l); }
.rc-stat-run .rc-stat-n { color: var(--rc-primary); }
.rc-stat-done { background: #E8FFEA; }
.rc-stat-done .rc-stat-n { color: #009A29; }

.rc-tasks { display: flex; flex-direction: column; gap: 7px; }
.rc-task {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px;
  background: #F7F8FA;
}
.rc-task-l { flex: 1; min-width: 0; }
.rc-task-kw {
  font-size: 13.5px; font-weight: 600; color: var(--rc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-task-meta { font-size: 11.5px; color: var(--rc-text3); margin-top: 2px; }
.rc-task .tag { flex: none; }

/* ---------- 平台选择器 ---------- */
.rc-plat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 12px;
}
@media (min-width: 560px) {
  .rc-plat-grid { grid-template-columns: repeat(4, 1fr); }
}
.rc-plat {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 9px 10px; border-radius: 10px;
  border: 1px solid var(--rc-line); background: #FAFBFC;
  cursor: pointer; user-select: none;
}
.rc-plat.on { border-color: var(--rc-primary); background: var(--rc-primary-l); }
.rc-plat-row {
  display: flex; align-items: center; gap: 6px;
  width: 100%; min-width: 0;
}
.rc-plat-cb {
  position: absolute; opacity: 0; width: 0; height: 0;
  pointer-events: none;
}
.rc-plat-box {
  flex: none; width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid #C9CDD4; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.rc-plat.on .rc-plat-box { background: var(--rc-primary); border-color: var(--rc-primary); }
.rc-plat.on .rc-plat-box::after {
  content: ''; width: 8px; height: 4px;
  border-left: 2px solid #FFFFFF; border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -1px);
}
.rc-plat-name {
  flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--rc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-plat-kind {
  flex: none; font-size: 10.5px; color: var(--rc-text3);
  background: #F0F1F3; border-radius: 5px; padding: 1px 5px;
}
.rc-plat-state { flex: none; font-size: 10px; align-self: flex-start; }

/* ---------- 表单 ---------- */
.rc-form { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.rc-field { display: flex; flex-direction: column; gap: 4px; }
.rc-label { font-size: 12px; color: var(--rc-text2); font-weight: 600; }
.rc-req {
  margin-left: 5px; font-size: 10.5px; font-weight: 600;
  color: #D25F00; background: #FFF7E8; border-radius: 4px; padding: 1px 5px;
}
.rc-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px; font-size: 13.5px; color: var(--rc-text);
  border: 1px solid var(--rc-line); border-radius: 9px;
  background: #FFFFFF; outline: none;
}
.rc-input:focus { border-color: var(--rc-primary); }
.rc-input.err { border-color: #F53F3F; background: #FFFBFB; }

/* ---------- 按钮 ---------- */
.rc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
}
.rc-btn-block { display: flex; width: 100%; }
.rc-btn-primary { background: var(--rc-primary); color: #FFFFFF; }
.rc-btn-primary:disabled { opacity: .6; cursor: default; }
.rc-btn-ghost { background: #F2F3F5; color: var(--rc-text2); }
.rc-btn-mini {
  padding: 3px 11px; font-size: 11.5px; border-radius: 7px;
  background: var(--rc-primary); color: #FFFFFF; flex: none;
}

/* ---------- 线索列表 ---------- */
.rc-leads { display: flex; flex-direction: column; gap: 9px; }
.rc-lead {
  padding: 11px 12px; border-radius: 11px;
  background: #F7F8FA; border: 1px solid var(--rc-line);
}
.rc-lead-h { display: flex; align-items: center; gap: 8px; }
.rc-lead-n {
  flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--rc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-lead-lv { flex: none; font-size: 10px; }
.rc-lead-meta { font-size: 11.5px; color: var(--rc-text3); margin-top: 3px; }
.rc-lead-sum { font-size: 12.5px; color: var(--rc-text2); margin-top: 5px; line-height: 1.5; }
.rc-lead-f {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--rc-line);
}
.rc-lead-p {
  flex: 1; font-size: 14px; font-weight: 700; color: var(--rc-text);
  letter-spacing: .4px; word-break: break-all;
}
.rc-lead-p.masked { color: var(--rc-text2); letter-spacing: 1px; }
.rc-lead-unlocked { flex: none; font-size: 11.5px; color: #009A29; font-weight: 600; }

/* ---------- 弹层 ---------- */
.rc-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .45);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.rc-mask.on { display: flex; }
.rc-dialog {
  width: 100%; max-width: 340px; box-sizing: border-box;
  background: #FFFFFF; border-radius: 15px; padding: 18px;
  box-shadow: 0 12px 44px rgba(15, 23, 42, .22);
}
.rc-dialog-t { font-size: 16px; font-weight: 700; color: var(--rc-text); margin-bottom: 12px; }
.rc-dialog-b { margin-bottom: 14px; }
.rc-dialog-ops { display: flex; gap: 9px; justify-content: flex-end; }
.rc-confirm-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 7px 0; font-size: 13px; line-height: 1.5;
}
.rc-confirm-row + .rc-confirm-row { border-top: 1px solid var(--rc-line); }
.rc-confirm-k { flex: none; width: 62px; color: var(--rc-text3); }
.rc-confirm-v { flex: 1; color: var(--rc-text); word-break: break-all; }
.rc-confirm-tip {
  margin-top: 11px; padding: 9px 11px; border-radius: 9px;
  background: var(--rc-primary-l); color: var(--rc-text2);
  font-size: 12px; line-height: 1.6;
}
.rc-unlock-coin {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 11px; background: #FFF7E8;
  margin-bottom: 11px;
}
.rc-unlock-coin-l { font-size: 12.5px; color: var(--rc-text2); }
.rc-unlock-coin-n { font-size: 24px; font-weight: 800; color: #D25F00; }
.rc-unlock-ops { display: flex; gap: 9px; margin-top: 11px; }
.rc-unlock-ops .rc-btn { flex: 1; }

/* ---------- 状态 ---------- */
.rc-loading { padding: 18px 0; text-align: center; font-size: 12.5px; color: var(--rc-text3); }
.rc-empty { padding: 22px 12px 26px; text-align: center; font-size: 12.5px; color: var(--rc-text3); line-height: 1.7; }

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  .rc-root {
    --rc-bg: #0F1216;
    --rc-card: #181C22;
    --rc-text: #E8EAED;
    --rc-text2: #A8B0BA;
    --rc-text3: #7A838F;
    --rc-line: #262B33;
    --rc-primary-l: rgba(31, 122, 255, .16);
  }
  .rc-stat { background: rgba(148, 163, 184, .12); }
  .rc-stat-warn { background: rgba(210, 95, 0, .16); }
  .rc-stat-warn .rc-stat-n { color: #FDBA74; }
  .rc-stat-run { background: rgba(31, 122, 255, .16); }
  .rc-stat-done { background: rgba(0, 154, 41, .16); }
  .rc-stat-done .rc-stat-n { color: #86EFAC; }
  .rc-task { background: rgba(148, 163, 184, .10); }
  .rc-plat { background: rgba(148, 163, 184, .08); border-color: var(--rc-line); }
  .rc-plat.on { background: var(--rc-primary-l); border-color: var(--rc-primary); }
  .rc-plat-box { background: #181C22; border-color: #4A5159; }
  .rc-plat-kind { background: rgba(148, 163, 184, .18); color: var(--rc-text2); }
  .rc-input { background: #12161B; border-color: var(--rc-line); color: var(--rc-text); }
  .rc-btn-ghost { background: rgba(148, 163, 184, .16); color: var(--rc-text2); }
  .rc-lead { background: rgba(148, 163, 184, .08); border-color: var(--rc-line); }
  .rc-dialog { background: #181C22; }
  .rc-confirm-tip { background: var(--rc-primary-l); color: var(--rc-text2); }
  .rc-unlock-coin { background: rgba(210, 95, 0, .16); }
  .rc-unlock-coin-n { color: #FDBA74; }
}

/* ============================================================
   v3.78 天机 CRM 详情页扩展（模块三-指令C）
   CSP 合规：全部走 CSS 类，零原生 style="" 属性
   ============================================================ */

/* ---------- 天机入口按钮 ---------- */
.btn-tianji {
  background: #1F7AFF;
  color: #FFFFFF;
  border-color: #1F7AFF;
}
.btn-tianji-moment {
  background: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  color: #FFFFFF;
  border-color: transparent;
}
.btn-tianji .icon,
.btn-tianji-moment .icon { width: 16px; height: 16px; }

/* ---------- 私人信息区块 ---------- */
.personal-tags-section { margin-top: 8px; }
.personal-tags-box { padding: 12px 16px 14px; }
.personal-tags-box .ptag {
  display: inline-block;
  margin: 0 6px 6px 0;
}
.text-compliance {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #B42318;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(180, 35, 24, .07);
  border-left: 3px solid #B42318;
}

/* ---------- AI 营销素材弹层 ---------- */
.mg-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .45);
  display: none; align-items: center; justify-content: center;
  z-index: 1200; padding: 20px;
}
.mg-mask.on { display: flex; }
.mg-dialog {
  width: 100%; max-width: 380px; box-sizing: border-box;
  max-height: 86vh; overflow-y: auto;
  background: #FFFFFF; border-radius: 16px; padding: 16px;
  box-shadow: 0 14px 50px rgba(15, 23, 42, .26);
}
.mg-dlg-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid #EDF0F5;
}
.mg-dlg-title {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: #1D2129;
}
.mg-dlg-close {
  flex: none; cursor: pointer; color: #86909C;
  display: flex; align-items: center;
}
.mg-dlg-close .icon { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.mg-scene-icon {
  flex: none; width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.mg-scene-icon .icon { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.mg-icon-fallback { font-size: 14px; line-height: 1; }

/* 场景配色 */
.mg-scene-birthday  { background: rgba(244, 63, 94, .12); color: #E11D48; }
.mg-scene-solar-term { background: rgba(234, 88, 12, .12); color: #EA580C; }
.mg-scene-festival  { background: rgba(31, 122, 255, .12); color: #1F7AFF; }
.mg-scene-horoscope { background: rgba(124, 58, 237, .12); color: #7C3AED; }

/* ---------- 场景切换标签 ---------- */
.mg-scene-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; padding: 12px 0;
}
.mg-scene-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 10px;
  border: 1px solid #EDF0F5; background: #FAFBFC;
  cursor: pointer; user-select: none;
}
.mg-scene-tab.on { border-color: #1F7AFF; background: #EDF4FF; }
.mg-scene-tab-icon {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
}
.mg-scene-tab-icon .icon { width: 13px; height: 13px; stroke: currentColor; fill: none; }
.mg-scene-tab-label { font-size: 11.5px; color: #4E5969; font-weight: 600; }
.mg-scene-tab.on .mg-scene-tab-label { color: #1F7AFF; }

/* ---------- 主体 ---------- */
.mg-body { padding-bottom: 4px; }
.mg-card {
  border-radius: 12px; padding: 13px 14px;
  background: #FAFBFC; border: 1px solid #EDF0F5;
}
.mg-card-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 9px; flex-wrap: wrap;
}
.mg-scene-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 9px;
  font-size: 11.5px; font-weight: 700;
}
.mg-scene-badge .icon { width: 12px; height: 12px; stroke: currentColor; fill: none; }
.mg-card-cust { font-size: 11.5px; color: #86909C; }
.mg-copy-text {
  font-size: 14px; line-height: 1.8; color: #1D2129;
  white-space: pre-wrap; word-break: break-word;
}
.mg-tip {
  margin-top: 9px; font-size: 11px; color: #86909C; line-height: 1.6;
}
.mg-empty {
  padding: 26px 12px; text-align: center;
  font-size: 12.5px; color: #86909C;
}
.mg-loading {
  padding: 26px 0; text-align: center;
}
.mg-loading .loading-dot { margin: 0 3px; }

/* ---------- 底部按钮 ---------- */
.mg-dlg-foot {
  display: flex; gap: 9px; margin-top: 14px;
  padding-top: 13px; border-top: 1px solid #EDF0F5;
}
.mg-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
}
.mg-btn .icon { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.mg-btn-ghost { background: #F2F3F5; color: #4E5969; }
.mg-btn-primary { background: #1F7AFF; color: #FFFFFF; }
/* 复制成功反馈（类切换，非 style） */
.mg-btn-primary.btn-copy-success { background: #009A29; }

/* 复制兜底用隐藏 textarea（不可见但可聚焦选中） */
.mg-copy-helper {
  position: fixed; top: -1000px; left: -1000px;
  width: 1px; height: 1px; opacity: 0;
}

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  .mg-dialog { background: #181C22; }
  .mg-dlg-head { border-color: #262B33; }
  .mg-dlg-title { color: #E8EAED; }
  .mg-scene-tab { background: rgba(148, 163, 184, .08); border-color: #262B33; }
  .mg-scene-tab.on { background: rgba(31, 122, 255, .16); border-color: #1F7AFF; }
  .mg-scene-tab-label { color: #A8B0BA; }
  .mg-scene-tab.on .mg-scene-tab-label { color: #A8BFD8; }
  .mg-card { background: rgba(148, 163, 184, .08); border-color: #262B33; }
  .mg-copy-text { color: #E8EAED; }
  .mg-btn-ghost { background: rgba(148, 163, 184, .16); color: #A8B0BA; }
  .text-compliance {
    color: #FCA5A5;
    background: rgba(180, 35, 24, .16);
    border-left-color: #FCA5A5;
  }
  .mg-scene-birthday  { background: rgba(244, 63, 94, .18); color: #FDA4AF; }
  .mg-scene-solar-term { background: rgba(234, 88, 12, .18); color: #FDBA74; }
  .mg-scene-festival  { background: rgba(31, 122, 255, .18); color: #A8BFD8; }
  .mg-scene-horoscope { background: rgba(124, 58, 237, .18); color: #C4B5FD; }
}
