* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
    --pri: #6366f1;
    --pri-dark: #4f46e5;
    --pri-light: #e0e7ff;
    --sec: #ec4899;
    --success: #10b981;
    --warn: #f59e0b;
    --err: #ef4444;
    --info: #0ea5e9;
    --text: #0f172a;
    --text-sec: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(15,23,42,0.06);
    --shadow-lg: 0 8px 24px rgba(15,23,42,0.08);
    --shadow-pri: 0 4px 12px rgba(99,102,241,0.25);
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
}

a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--pri-dark); }

/* ========================================
   顶部导航栏
   ======================================== */
.nav-bar {
    background: #fff;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-left { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text); }
.nav-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pri), var(--sec));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user-info { font-size: 13px; color: var(--text-sec); padding-right: 8px; font-weight: 500; }
.nav-btn {
    text-decoration: none;
    color: var(--text-sec);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-btn:hover { background: var(--border-light); color: var(--pri); }

/* ========================================
   页面内容容器
   ======================================== */
.page-content, .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ========================================
   卡片
   ======================================== */
.card {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.4;
    background: #fff;
    color: var(--text);
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99,102,241,0.35);
}
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.25); }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(16,185,129,0.35); }
.btn-warn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 12px rgba(245,158,11,0.25); }
.btn-warn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245,158,11,0.35); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 12px rgba(239,68,68,0.25); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(239,68,68,0.35); }
.btn-sec, .btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-sec:hover, .btn-secondary:hover { border-color: var(--pri); color: var(--pri); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; display: flex; align-items: center; justify-content: center; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }

/* ========================================
   徽章样式
   ======================================== */
.mini-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-primary { background: #e0e7ff; color: #3730a3; }

/* ========================================
   统计卡片
   ======================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--pri);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.stat-icon { font-size: 22px; margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--text-sec); margin-bottom: 4px; font-weight: 500; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-sub { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.stat-card.purple { border-left-color: #8b5cf6; }
.stat-card.purple .stat-icon { color: #8b5cf6; }
.stat-card.blue { border-left-color: #3b82f6; }
.stat-card.blue .stat-icon { color: #3b82f6; }
.stat-card.green { border-left-color: #10b981; }
.stat-card.green .stat-icon { color: #10b981; }
.stat-card.orange { border-left-color: #f59e0b; }
.stat-card.orange .stat-icon { color: #f59e0b; }
.stat-card.cyan { border-left-color: #06b6d4; }
.stat-card.cyan .stat-icon { color: #06b6d4; }
.stat-card.pink { border-left-color: #ec4899; }
.stat-card.pink .stat-icon { color: #ec4899; }
.stat-card.red { border-left-color: #ef4444; }
.stat-card.red .stat-icon { color: #ef4444; }

/* ========================================
   客户列表卡片 - 跟单系统风格
   ======================================== */
.customer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}
.cust-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    position: relative;
}
.cust-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.cust-card.pinned {
    border: 2px solid #fca5a5;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}
.cust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}
.cust-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.cust-name { font-size: 18px; font-weight: 700; color: var(--text); }
.cust-status-badge {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.cust-pin-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-sec);
    transition: all 0.2s;
    white-space: nowrap;
}
.cust-pin-btn:hover { background: var(--pri-light); color: var(--pri); border-color: var(--pri-light); }
.cust-pin-btn.pinned { background: #fefce8; color: #a16207; border-color: #fde047; }

/* 电话行 */
.cust-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.cust-phone-label { font-size: 13px; color: var(--text-sec); }
.cust-phone-value {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
}
.cust-phone-value:hover { color: var(--pri-dark); }
.cust-copy-btn {
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-sec);
}
.cust-copy-btn:hover { background: var(--pri-light); color: var(--pri); }
.cust-copy-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* 时间信息 */
.cust-time-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-sec);
}
.cust-time-row { display: flex; align-items: center; }
.cust-time-label { color: var(--text-light); min-width: 70px; }

/* 最近跟进预览 */
.cust-follow-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}
.cust-follow-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.cust-follow-preview-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.cust-follow-preview-content {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.5;
}

/* 操作按钮行 */
.cust-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.cust-actions-row .btn {
    flex: 1;
    min-width: 70px;
    justify-content: center;
    padding: 10px 8px;
    font-size: 13px;
}
.cust-actions-row .btn-add-follow {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.cust-actions-row .btn-add-follow:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}
.cust-actions-row .btn-update-deal {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(59,130,246,0.3);
}
.cust-actions-row .btn-update-deal:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}
.cust-actions-row .btn-edit {
    background: #fff;
    color: var(--text);
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-weight: 500;
}
.cust-actions-row .btn-edit:hover { background: #f9fafb; }
.cust-actions-row .btn-public {
    background: #fff;
    color: var(--text);
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-weight: 500;
}
.cust-actions-row .btn-public:hover { background: #f9fafb; }
.cust-actions-row .btn-invalid {
    background: #9ca3af;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    flex: 0 0 auto;
    min-width: 60px;
    padding: 8px 14px;
}
.cust-actions-row .btn-invalid:hover { background: #6b7280; }

/* 生源层次标签 */
.cust-level-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 旧样式兼容 */
.cust-info {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 8px 0;
    color: var(--text-sec);
    font-size: 13px;
}
.cust-phone, .cust-wx {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.cust-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}
.cust-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}
.cust-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cust-check { width: 18px; height: 18px; accent-color: var(--pri); cursor: pointer; }

/* ========================================
   表单样式
   ======================================== */
.form-group, .form-g { margin-bottom: 16px; }
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    font-family: inherit;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--pri);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-row {
    display: flex;
    gap: 12px;
}
.form-row > * { flex: 1; }

/* ========================================
   Tab导航
   ======================================== */
.tabs-scroller {
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-scroller::-webkit-scrollbar { display: none; }
.tabs-row {
    display: flex;
    gap: 8px;
    padding: 2px;
    white-space: nowrap;
}
.tab-btn {
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-sec);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    background: #fff;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
}
.tab-btn:hover { background: var(--pri-light); color: var(--pri); border-color: var(--pri-light); }
.tab-btn.active {
    background: linear-gradient(135deg, var(--pri), var(--pri-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-pri);
}

/* ========================================
   搜索/筛选栏
   ======================================== */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light);
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.filter-item {
    flex: 1;
    min-width: 120px;
}
.filter-item label {
    font-size: 12px;
    color: var(--text-sec);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
}
.filter-item input, .filter-item select {
    font-size: 13px;
    padding: 8px 10px;
}
.filter-label { font-size: 13px; color: var(--text-sec); font-weight: 600; flex-shrink: 0; }
.filter-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border: 1.5px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.filter-chip:hover { transform: translateY(-1px); }
.filter-chip.active {
    background: linear-gradient(135deg, var(--pri), var(--pri-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-pri);
}

/* 搜索面板 */
.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    align-items: center;
    border: 1px solid var(--border-light);
}
.search-panel input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.search-panel input[type="text"]:focus { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-light); }
.search-panel select {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
    font-family: inherit;
    outline: none;
    min-width: 110px;
}
.search-actions { display: flex; gap: 6px; }

/* ========================================
   批量操作栏
   ======================================== */
.batch-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #eef2ff, #fdf4ff);
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: center;
    border: 1.5px solid #e0e7ff;
}
.batch-bar select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    font-family: inherit;
}
.selected-count { font-size: 13px; font-weight: 600; color: var(--pri); }
.selected-count strong { font-size: 16px; }

/* ========================================
   统计信息栏
   ======================================== */
.stat-bar {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-sec);
    flex-wrap: wrap;
    align-items: center;
    border: 1px solid var(--border-light);
}
.stat-bar strong { color: var(--text); font-size: 16px; font-weight: 700; margin: 0 4px; }
.filter-info { color: var(--text-sec); }

/* ========================================
   详情页样式
   ======================================== */
.detail-card {
    background: #fff; border-radius: 16px; padding: 0; margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.detail-header {
    display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
}
.detail-name { font-size: 20px; font-weight: 700; color: var(--text); flex: 1; }
.detail-status { flex-shrink: 0; }
.btn-back {
    padding: 6px 14px; background: var(--border-light); color: var(--text); text-decoration: none;
    border-radius: 8px; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.btn-back:hover { background: var(--pri-light); color: var(--pri); }
.detail-actions {
    display: flex; gap: 8px; padding: 14px 20px; flex-wrap: wrap;
    background: #fafbfc;
    border-bottom: 1px solid var(--border-light);
}

/* 信息网格 - 新卡片式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0 20px;
}
.info-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.info-item:nth-child(odd) {
    padding-right: 12px;
    border-right: 1px solid var(--border-light);
}
.info-item:nth-child(even) {
    padding-left: 12px;
}
.info-label { font-size: 12px; color: var(--text-sec); margin-bottom: 6px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.info-value { font-size: 15px; font-weight: 600; color: var(--text); word-break: break-word; }
.info-value a { color: var(--pri); text-decoration: none; font-weight: 600; }
.info-full { grid-column: 1 / -1; padding: 14px 0; }
.info-full .info-value { font-size: 14px; font-weight: 400; color: var(--text-sec); line-height: 1.6; }

/* 电话复制 */
.phone-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}
.phone-label { font-size: 13px; color: var(--text-sec); font-weight: 500; min-width: 50px; }
.phone-value { font-size: 18px; font-weight: 700; color: var(--pri); flex: 1; }
.phone-value a { color: var(--pri); text-decoration: none; }
.btn-copy {
    padding: 6px 14px; background: var(--bg); color: var(--text-sec);
    border: 1px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.btn-copy:hover { background: var(--pri-light); color: var(--pri); border-color: var(--pri-light); }
.btn-copy.copied { background: var(--success); color: #fff; border-color: var(--success); }

/* 学员基本情况高亮 */
.student-highlight {
    margin: 14px 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-radius: 12px;
    border: 1px solid #fde047;
    display: flex; align-items: center; gap: 10px;
}
.student-highlight-icon { font-size: 18px; }
.student-highlight-label { font-size: 14px; font-weight: 700; color: #854d0e; }
.student-highlight-value { font-size: 14px; color: #a16207; flex: 1; }

/* 时间信息 */
.time-info {
    padding: 10px 20px;
    display: flex; flex-direction: column; gap: 8px;
    border-bottom: 1px solid var(--border-light);
}
.time-row { display: flex; align-items: center; font-size: 13px; }
.time-label { color: var(--text-sec); min-width: 70px; }
.time-value { color: var(--text); font-weight: 500; }

/* 底部操作按钮 */
.action-footer {
    display: flex; gap: 10px; padding: 16px 20px;
    background: #fafbfc;
    flex-wrap: wrap;
}
.action-footer .btn { flex: 1; min-width: 80px; justify-content: center; }

/* 跟进记录时间线 */
.follow-timeline {
    padding: 16px 20px;
}
.follow-timeline-title {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.follow-timeline-item {
    position: relative;
    padding-left: 22px;
    padding-bottom: 18px;
    border-left: 2px solid var(--border);
}
.follow-timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}
.follow-timeline-item::before {
    content: '';
    position: absolute; left: -6px; top: 2px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--pri);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--pri-light);
}
.follow-timeline-time {
    font-size: 12px; color: var(--text-light); margin-bottom: 4px;
}
.follow-timeline-content {
    font-size: 14px; color: var(--text); line-height: 1.6;
    background: #f8fafc; padding: 10px 12px; border-radius: 10px;
}
.follow-timeline-meta {
    display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap;
}

/* 表单卡片 */
.form-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 16px;
}
.form-title {
    font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text);
}

/* ========================================
   跟进记录
   ======================================== */
.follow-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.follow-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 14px;
    border-left: 4px solid var(--pri);
}
.follow-header {
    display: flex; flex-wrap: wrap; gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}
.follow-time {
    font-size: 12px; color: var(--text-light); margin-left: auto;
}
.follow-content {
    font-size: 14px; line-height: 1.7; color: var(--text);
    margin-bottom: 8px;
}
.follow-plan {
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    margin-top: 8px;
    line-height: 1.6;
}
.follow-next {
    font-size: 12px; color: var(--warn); margin-top: 6px; font-weight: 500;
}

/* ========================================
   表格样式
   ======================================== */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.data-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    vertical-align: middle;
}
.data-table tr:hover td { background: #f8fafc; }

/* ========================================
   操作区
   ======================================== */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.action-bar-left, .action-bar-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   分页
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span, .page-btn {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    color: var(--text-sec);
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 500;
    transition: all 0.2s;
}
.pagination a:hover, .page-btn:hover {
    border-color: var(--pri);
    color: var(--pri);
    transform: translateY(-1px);
}
.pagination .active, .page-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-pri);
}
.page-num { padding: 8px 14px; color: var(--text-sec); font-size: 13px; font-weight: 500; border: none; background: transparent; }

/* ========================================
   提示/消息
   ======================================== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 500;
}
.alert-err, .alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ========================================
   空状态
   ======================================== */
.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

/* ========================================
   底部信息
   ======================================== */
.footer-info {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 12px;
}

/* ========================================
   登录页面样式
   ======================================== */
.login-body {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 40%);
    pointer-events: none;
}
.login-container {
    display: flex;
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}
.login-hero {
    flex: 1;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.login-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.login-logo-area {
    position: relative;
    z-index: 1;
}
.login-logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}
.login-logo-text h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.login-logo-text p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}
.login-features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.5;
}
.login-feature-item::before {
    content: '✓';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.login-form-area {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-card {
    padding: 32px 28px;
    background: #fff;
    border-radius: 16px;
}
.login-card-header {
    margin-bottom: 28px;
}
.login-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.login-card-header p {
    font-size: 14px;
    color: var(--text-sec);
}
.login-field {
    margin-bottom: 18px;
}
.login-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}
.login-input-wrap {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    background: #fff;
}
.login-input-wrap:focus-within {
    border-color: var(--pri);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.login-prefix-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    font-size: 16px;
    pointer-events: none;
}
.login-input-wrap input {
    padding: 14px 16px 14px 44px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
    color: var(--text);
    border-radius: 12px;
}
.login-submit {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    font-family: inherit;
    margin-top: 8px;
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}
.login-btn-arrow {
    transition: transform 0.2s;
}
.login-submit:hover .login-btn-arrow {
    transform: translateX(4px);
}
.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.8;
}
.login-footer .safe-tip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ========================================
   响应式 - 移动端优化
   ======================================== */
@media (max-width: 768px) {
    .nav-bar { padding: 10px 14px; }
    .nav-user-info { display: none; }
    .page-content, .main-container { padding: 14px; }
    .card { padding: 16px; border-radius: 12px; }
    .card-title { font-size: 15px; margin-bottom: 14px; padding-bottom: 10px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 18px; }
    .stat-icon { font-size: 18px; }
    .cust-card { padding: 14px; }
    .cust-name { font-size: 15px; }
    .filter-row { flex-direction: column; align-items: stretch; }
    .filter-item { width: 100%; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 10px 6px; }
    .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .login-container {
        min-height: auto;
        padding: 0;
        flex-direction: column;
        max-width: 420px;
    }
    .login-hero {
        padding: 20px 20px 12px;
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        min-height: auto;
    }
    .login-hero-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .login-logo-area {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .login-logo-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        margin-bottom: 0;
        border-radius: 12px;
        flex-shrink: 0;
    }
    .login-logo-text h1 { font-size: 18px; margin-bottom: 0; }
    .login-logo-text p { display: none; }
    .login-features { display: none; }
    .login-form-area { padding: 16px 16px 24px; }
    .login-card { margin: 0; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
    .login-card-header { margin-bottom: 20px; }
    .login-card-header h2 { font-size: 20px; }
    .login-card-header p { display: none; }

    .form-row { flex-direction: column; gap: 0; }
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; font-size: 13px; }
    .btn-lg { padding: 14px 20px; font-size: 15px; }

    .action-bar { flex-direction: column; align-items: stretch; }
    .action-bar-left, .action-bar-right { justify-content: flex-start; flex-wrap: wrap; }

    .info-grid { grid-template-columns: 1fr; }
    .info-item:nth-child(odd) { border-right: none; padding-right: 0; }
    .info-item:nth-child(even) { padding-left: 0; }
    .phone-value { font-size: 16px; }
    .action-footer .btn { min-width: 70px; padding: 10px 8px; font-size: 12px; }
    .form-card { padding: 16px; }
    .tabs-row { gap: 6px; }
    .tab-btn { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
    .search-panel { padding: 10px; }
    .search-panel select { min-width: auto; flex: 1; }
    .batch-bar { padding: 10px; gap: 8px; }
}

@media (max-width: 480px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-value { font-size: 16px; }
}

/* ========================================
   跟单系统客户卡片样式 (参考 mk/index.php)
   ======================================== */
.customer-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.customer-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 20px rgba(24,144,255,0.12);
    transform: translateY(-2px);
}
.customer-card.pinned {
    border: 2px solid #ff4d4f;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
}
.customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.customer-name {
    font-size: 18px;
    font-weight: 700;
    color: #262626;
    display: flex;
    align-items: center;
    gap: 8px;
}
.customer-name .pin-icon {
    color: #ff4d4f;
    font-size: 16px;
}
.customer-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.customer-status.status-2 { background: #e6f7ff; color: #1890ff; }
.customer-status.status-3 { background: #f6ffed; color: #52c41a; }
.customer-status.status-4 { background: #fff1f0; color: #ff4d4f; }
.customer-status.status-5 { background: #fff7e6; color: #fa8c16; }
.customer-status.status-1 { background: #f5f5f5; color: #8c8c8c; }
.customer-info {
    margin-bottom: 12px;
}
.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}
.info-row:last-child { margin-bottom: 0; }
.info-label {
    color: #8c8c8c;
    min-width: 70px;
    flex-shrink: 0;
}
.info-value {
    color: #262626;
    font-weight: 500;
}
.info-value.phone {
    color: #1890ff;
    font-weight: 600;
}
.customer-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.customer-actions-row .btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-follow {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
}
.btn-follow:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(229,57,53,0.3);
}
.btn-money {
    background: #1890ff;
    color: #fff;
}
.btn-money:hover {
    background: #096dd9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(24,144,255,0.3);
}
.btn-edit-info,
.btn-public-back,
.btn-invalid-tag {
    background: #f5f5f5;
    color: #595959;
    border: 1px solid #d9d9d9;
}
.btn-edit-info:hover,
.btn-public-back:hover,
.btn-invalid-tag:hover {
    background: #e8e8e8;
    color: #262626;
    border-color: #bfbfbf;
}
/* 跟进表单 */
.follow-form {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-radius: 12px;
    border: 1px solid #bae0ff;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.follow-form-title {
    font-size: 15px;
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.follow-form .form-row-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.follow-form .form-row-inline > div {
    flex: 1;
    min-width: 120px;
}
.follow-form label {
    display: block;
    font-size: 12px;
    color: #595959;
    margin-bottom: 4px;
}
.follow-form input,
.follow-form select,
.follow-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}
.follow-form input:focus,
.follow-form select:focus,
.follow-form textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.15);
}
.follow-form textarea {
    resize: vertical;
    min-height: 80px;
}
.follow-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.follow-form-actions .btn {
    flex: none;
    min-width: auto;
    padding: 8px 20px;
}
.follow-form-actions .btn-primary {
    background: #1890ff;
    color: #fff;
}
.follow-form-actions .btn-primary:hover {
    background: #096dd9;
}
.follow-form-actions .btn-def {
    background: #f5f5f5;
    color: #595959;
    border: 1px solid #d9d9d9;
}
/* 跟进记录 */
.follow-logs {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e8e8e8;
}
.follow-logs-title {
    font-size: 13px;
    font-weight: 600;
    color: #8c8c8c;
    margin-bottom: 8px;
}
.log-item {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.log-item:last-child { border-bottom: none; }
.log-time {
    font-size: 12px;
    color: #bfbfbf;
    margin-bottom: 2px;
}
.log-content {
    font-size: 13px;
    color: #262626;
    line-height: 1.5;
}
/* 统计行 */
.stats-row-inline {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.stat-item-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.stat-n {
    font-weight: 700;
    color: #1890ff;
}
.stat-l {
    color: #8c8c8c;
}
/* 公海页面 */
.sea-hero {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f5ff 100%);
    border: 2px dashed #91d5ff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.sea-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 8px;
}
.sea-hero-desc {
    font-size: 14px;
    color: #595959;
}
.sea-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.25s;
}
.sea-card:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 20px rgba(24,144,255,0.12);
}
.sea-card .customer-name {
    font-size: 16px;
}
.sea-card .btn-claim {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    transition: all 0.2s;
}
.sea-card .btn-claim:hover {
    background: linear-gradient(135deg, #389e0d, #237804);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(82,196,26,0.3);
}
/* 置顶按钮 */
.pin-btn {
    background: none;
    border: 1px solid #d9d9d9;
    color: #8c8c8c;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pin-btn:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}
.pin-btn.pinned {
    border-color: #ff4d4f;
    color: #ff4d4f;
    background: #fff1f0;
}
/* 分页 */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
}
.pagination-modern a,
.pagination-modern span {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination-modern a {
    background: #fff;
    border: 1px solid #e8e8e8;
    color: #595959;
}
.pagination-modern a:hover {
    border-color: #1890ff;
    color: #1890ff;
}
.pagination-modern .current {
    background: #1890ff;
    color: #fff;
    font-weight: 600;
}
/* 响应式客户卡片 */
@media (max-width: 768px) {
    .customer-card { padding: 14px; border-radius: 12px; }
    .customer-name { font-size: 16px; }
    .customer-actions-row .btn { min-width: 70px; padding: 7px 8px; font-size: 12px; }
    .follow-form { padding: 14px; }
    .follow-form .form-row-inline { flex-direction: column; gap: 8px; }
    .follow-form .form-row-inline > div { min-width: auto; }
    .sea-hero { padding: 16px; }
    .sea-hero-title { font-size: 16px; }
}
