/* ============================================
   客户管理系统 - 极简风格
   ============================================ */

/* ============================================
   CSS变量 - 极简配色
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --bg-body: #f3f4f6;
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;

    --text-main: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --border: #e5e7eb;
    --border-light: #f3f4f6;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ============================================
   全局重置
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   侧边栏导航
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 220px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-brand::before {
    content: '';
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M492.032 68.949333a42.666667 42.666667 0 0 1 39.936 0l362.666667 192A42.666667 42.666667 0 0 1 917.333333 298.666667v426.666666a42.666667 42.666667 0 0 1-22.698666 37.717334l-362.666667 192a42.666667 42.666667 0 0 1-39.936 0l-362.666667-192A42.666667 42.666667 0 0 1 106.666667 725.333333V298.666667a42.666667 42.666667 0 0 1 22.698666-37.717334l362.666667-192zM192 324.352v375.296l320 169.408 320-169.408V324.352L512 154.944 192 324.352z' fill='%23ffffff'/%3E%3Cpath d='M384 448v106.666667h-85.333333v-106.666667a128 128 0 0 1 256 0v128a42.666667 42.666667 0 1 0 85.333333 0v-106.666667h85.333333v106.666667a128 128 0 0 1-256 0v-128a42.666667 42.666667 0 1 0-85.333333 0z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.sidebar-menu {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.sidebar-link:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}

.sidebar-link.active {
    color: var(--primary);
    background: #eff6ff;
    font-weight: 600;
}

.sidebar-link .icon-wrap {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-link.active .icon-wrap {
    opacity: 1;
}

.sidebar-user {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-user-name .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.sidebar-logout:hover {
    color: var(--danger);
}

/* ============================================
   容器布局（侧边栏适配）
   ============================================ */
.container {
    margin-left: 220px;
    padding: 24px 28px 40px;
    max-width: calc(1400px + 220px);
}

/* 手机端折叠侧边栏 */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 110;
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .container {
        margin-left: 0;
        padding: 16px 12px 40px;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 99;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* ============================================
   搜索栏 - 极简
   ============================================ */
.search-bar {
    background: var(--bg-white);
    padding: 14px 20px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.search-bar .form-control {
    width: auto;
    min-width: 100px;
    max-width: 140px;
    font-size: 13px;
    padding: 7px 26px 7px 10px;
}

/* 搜索栏下拉框 - 固定箭头，移除动效 */
.search-bar select.form-control {
    transition: none;
}

.search-bar input.form-control {
    max-width: 400px;
}

/* ============================================
   表单元素 - 现代精致风
   ============================================ */
.form-control {
    padding: 9px 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.form-control:not(.intention-select):hover {
    border-color: #cbd5e1;
    background: #fff;
}

.form-control:not(.intention-select):focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08), 0 1px 2px rgba(0,0,0,0.04);
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* 车型下拉框 - 胶囊风格 */
.car-select {
    cursor: pointer;
    outline: none;
    font-weight: 500;
    font-size: 12px;
    padding: 6px 10px 6px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 28px;
}

.car-select:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* 表格内车型选择框适配 */
.table .car-select {
    font-size: 11px;
    padding: 6px 8px 6px 8px;
    border-radius: 20px !important;
    min-height: 28px;
}

/* 车型选项样式 - 胶囊风格 */
.car-empty {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.car-C1 {
    background-color: #eff6ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.car-C2 {
    background-color: #ecfdf5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

/* 详情页车型下拉框 */
#edit_car_model {
    font-size: 13px;
    padding: 6px 28px 6px 14px;
    border-radius: 8px !important;
    min-height: 32px;
    min-width: 100px;
}

/* 详情页性别下拉框 */
#edit_gender {
    font-size: 13px;
    padding: 6px 22px 6px 12px;
    border-radius: 20px !important;
    min-height: 32px;
    min-width: 60px;
}

/* 性别选择框样式 */
.gender-select {
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    transition: none !important;
}

.gender-empty {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.gender-男 {
    background-color: #eff6ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.gender-女 {
    background-color: #fdf2f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #db2777 !important;
    border: 1px solid #fbcfe8 !important;
    border-radius: 20px !important;
    padding: 6px 8px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

/* 微信状态选择框 - 胶囊风格 */
.wechat-select {
    cursor: pointer;
    outline: none;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 14px 6px 14px;
    border-radius: 20px !important;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 32px;
}

.wechat-select:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* 身份选择框 - 胶囊风格 */
.identity-select {
    cursor: pointer;
    outline: none;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 14px 6px 14px;
    border-radius: 20px !important;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    min-height: 32px;
}

.identity-select:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* 微信状态选项样式 */
.wechat-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 28px !important;
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
}

.wechat-select:has(option[value="已添加微信"]:checked),
.wechat-select option[value="已添加微信"]:checked {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.wechat-select:has(option[value="等待通过微信"]:checked),
.wechat-select option[value="等待通过微信"]:checked {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fcd34d !important;
}

.wechat-select:has(option[value="不添加微信"]:checked),
.wechat-select option[value="不添加微信"]:checked {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    border-color: #d1d5db !important;
}

.wechat-select:has(option[value="对方微信异常"]:checked),
.wechat-select option[value="对方微信异常"]:checked {
    background-color: #fdf2f8 !important;
    color: #be185d !important;
    border-color: #fbcfe8 !important;
}

.wechat-select:has(option[value="无法添加微信"]:checked),
.wechat-select option[value="无法添加微信"]:checked {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #cbd5e1 !important;
}

/* 身份选项样式 */
.identity-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 28px !important;
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
}

.identity-select:has(option[value="社会生"]:checked),
.identity-select option[value="社会生"]:checked {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.identity-select:has(option[value="未成年社会生"]:checked),
.identity-select option[value="未成年社会生"]:checked {
    background-color: #fef3c7 !important;
    color: #d97706 !important;
    border-color: #fcd34d !important;
}

.identity-select:has(option[value="学生"]:checked),
.identity-select option[value="学生"]:checked {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.identity-select:has(option[value="未成年学生"]:checked),
.identity-select option[value="未成年学生"]:checked {
    background-color: #fdf2f8 !important;
    color: #be185d !important;
    border-color: #fbcfe8 !important;
}

/* 微信状态 - JS动态类名样式（简洁胶囊） */
.wechat-empty {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.wechat-已添加微信 {
    background-color: #ecfdf5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.wechat-等待通过微信 {
    background-color: #fffbeb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #b45309 !important;
    border: 1px solid #fcd34d !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.wechat-不添加微信 {
    background-color: #f3f4f6 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #6b7280 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.wechat-对方微信异常 {
    background-color: #fdf2f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #be185d !important;
    border: 1px solid #fbcfe8 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.wechat-无法添加微信 {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

/* 身份 - JS动态类名样式（简洁胶囊） */
.identity-empty {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.identity-社会生 {
    background-color: #eff6ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.identity-未成年社会生 {
    background-color: #fef3c7 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #d97706 !important;
    border: 1px solid #fcd34d !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.identity-学生 {
    background-color: #ecfdf5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.identity-未成年学生 {
    background-color: #fdf2f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    color: #be185d !important;
    border: 1px solid #fbcfe8 !important;
    border-radius: 20px !important;
    padding: 6px 18px 6px 8px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

/* ============================================
   按钮 - 极简
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.5;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}

.btn-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.btn-warning:hover {
    background: #fde68a;
}

/* 退出按钮 - 极简边框样式 */
.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    font-size: 13px;
}

.btn-logout:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}

/* ============================================
   卡片
   ============================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-header .card-title {
    margin-bottom: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   统计卡片 - 极简数字
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

/* ============================================
   表格工具栏
   ============================================ */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 8px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.table-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.table-info strong {
    color: var(--text-main);
}

/* 列设置面板 */
.column-settings-wrapper {
    position: relative;
}

.column-settings-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px;
    min-width: 180px;
    z-index: 100;
}

.column-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.column-settings-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 360px;
    overflow-y: auto;
}

.column-toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-main);
}

.column-toggle-item:hover {
    background: var(--bg-gray);
}

.column-toggle-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* 批量修改网格 */
.batch-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.batch-edit-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 2px;
    cursor: pointer;
}

.batch-edit-item label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--primary);
}

.batch-edit-item .form-control {
    width: 100%;
    font-size: 13px;
    padding: 5px 24px 5px 8px;
}

/* ============================================
   仪表盘/日数据共享样式
   ============================================ */
.dash-panel {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border);
}
.dash-panel-title {
    font-size: 14px; font-weight: 600; color: var(--text-main);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.dash-bar-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.dash-bar-label {
    width: 80px; font-size: 12px; color: var(--text-main); text-align: right; flex-shrink: 0;
}
.dash-bar-track {
    flex: 1; height: 22px; background: var(--bg-gray); border-radius: 6px; overflow: hidden;
    position: relative;
}
.dash-bar-fill {
    height: 100%; border-radius: 6px; transition: width 0.4s ease;
    display: flex; align-items: center; padding-left: 6px;
}
.dash-bar-fill span { font-size: 11px; color: #333; font-weight: 600; }
.dash-bar-count {
    width: 40px; font-size: 12px; color: var(--text-secondary); flex-shrink: 0;
}

/* ============================================
   表格
   ============================================ */
.table-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table thead {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
}

.table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #f9fafb;
}

/* 冻结操作列 */
.table th:last-child,
.table td:last-child {
    position: sticky;
    right: 0;
    background: var(--bg-white);
    z-index: 10;
    box-shadow: -2px 0 4px rgba(0,0,0,0.08);
}

.table thead th:last-child {
    background: var(--bg-gray);
    z-index: 11;
}

.table tbody tr:hover td:last-child {
    background: #f9fafb;
}

/* ============================================
   状态标签 - 现代简洁风
   ============================================ */
.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}

.status-uncontacted {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.status-uncontacted::before { background: #94a3b8; }

.status-contacted {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.status-contacted::before { background: #3b82f6; }

.status-interested {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.status-interested::before { background: #10b981; }

.status-uninterested {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.status-uninterested::before { background: #ef4444; }

.status-deal {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
.status-deal::before { background: #a855f7; }

.status-missed {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.status-missed::before { background: #f97316; }

.status-other-school {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fce7f3;
}
.status-other-school::before { background: #ec4899; }

.status-has-license {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}
.status-has-license::before { background: #10b981; }

/* 状态标签带SVG图标 */
.status-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-icon {
    width: 12px;
    height: 12px;
}

.status-icon-gray {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

.status-icon-blue {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

.status-icon-green {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

.status-icon-red {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

.status-icon-purple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a855f7'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
}

/* ============================================
   登录页面 - 极简居中
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-body);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.login-logo::before {
    content: '';
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M492.032 68.949333a42.666667 42.666667 0 0 1 39.936 0l362.666667 192A42.666667 42.666667 0 0 1 917.333333 298.666667v426.666666a42.666667 42.666667 0 0 1-22.698666 37.717334l-362.666667 192a42.666667 42.666667 0 0 1-39.936 0l-362.666667-192A42.666667 42.666667 0 0 1 106.666667 725.333333V298.666667a42.666667 42.666667 0 0 1 22.698666-37.717334l362.666667-192zM192 324.352v375.296l320 169.408 320-169.408V324.352L512 154.944 192 324.352z' fill='%23ffffff'/%3E%3Cpath d='M384 448v106.666667h-85.333333v-106.666667a128 128 0 0 1 256 0v128a42.666667 42.666667 0 1 0 85.333333 0v-106.666667h85.333333v106.666667a128 128 0 0 1-256 0v-128a42.666667 42.666667 0 1 0-85.333333 0z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.login-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
}

.login-form .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   模态框 - 全屏设计
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}

.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding: 0;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    gap: 8px;
}

/* 双栏布局 */
.modal-left {
    width: 55%;
    padding: 16px 16px 16px 20px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.modal-right {
    width: 45%;
    padding: 16px 20px 16px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 右栏内部滚动 */
.modal-right .follow-up-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* 右栏跟进记录列表紧凑 */
.modal-right .follow-up-list {
    margin-bottom: 0;
}

.modal-right .follow-up-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

.modal-right .follow-up-header {
    font-size: 12px;
    margin-bottom: 4px;
}

.modal-right .follow-up-content p {
    font-size: 13px;
}

/* ============================================
   客户详情 - 紧凑设计
   ============================================ */
.customer-core-info {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.customer-core-info .phone-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.customer-core-info .phone-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    letter-spacing: 1px;
}

.customer-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.info-item {
    background: var(--bg-gray);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.info-item .form-label {
    margin-bottom: 3px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.info-item .form-control {
    margin-top: 0;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 7px;
}

/* 详情页胶囊样式下拉框 */
.info-item .form-control.wechat-select,
.info-item .form-control.identity-select {
    border-radius: 20px !important;
}

/* 详情页下拉框 - 右边距留白防遮挡 */
.info-item select.form-control {
    padding-right: 28px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* 详情页紧凑备注/保存 */
.detail-note {
    margin-bottom: 12px;
}

.detail-note textarea {
    padding: 9px 12px;
    font-size: 13px;
    min-height: 72px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
}

/* 跟进表单输入框全宽 */
.modal-right textarea {
    width: 100%;
    box-sizing: border-box;
}

/* 跟进记录区域 */
.follow-up-section {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
}

.follow-up-list {
    margin-bottom: 24px;
}

.follow-up-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--bg-white);
}

.follow-up-item:last-child {
    margin-bottom: 0;
}

.follow-up-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.follow-up-content p {
    font-size: 14px;
    line-height: 1.6;
}

.follow-up-form {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.pagination a:hover {
    background: var(--bg-gray);
    color: var(--text-main);
}

.pagination .current {
    background: var(--primary);
    color: white;
}

/* ============================================
   时间列
   ============================================ */
.time-cell {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================
   通知消息
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   轻提示 Toast
   ============================================ */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toast-in 0.3s ease;
    transition: opacity 0.3s ease;
}

.toast-notification.toast-success {
    background: #2E9E41;
    color: white;
}

.toast-notification.toast-error {
    background: #F72585;
    color: white;
}

.toast-notification.toast-fade {
    opacity: 0;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.empty-state p {
    font-size: 14px;
}

/* 意向度选择框 - 跟进标签风格（带圆点） */
.intention-select {
    cursor: pointer;
    outline: none;
    font-weight: 500;
    font-size: 12px;
    padding: 5px 12px 5px 24px;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.intention-select:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.intention-select:focus,
.intention-select:focus-visible {
    transform: translateY(0);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.intention-select:active {
    transform: translateY(0);
}

/* 表格内意向度列表页适配 */
.table .intention-select {
    font-size: 11px;
    padding: 6px 10px 6px 22px;
    border-radius: 20px !important;
    min-height: 28px;
}

/* 表格内圆点位置调整 */
.table .intention-全新线索,
.table .intention-未接,
.table .intention-等下联系,
.table .intention-A高意向,
.table .intention-B中意向,
.table .intention-C低意向,
.table .intention-子弹库,
.table .intention-邀约未成交,
.table .intention-无效,
.table .intention-成交,
.table .intention-异常,
.table .intention-报名他校,
.table .intention-报名我校,
.table .intention-文盲 {
    background-position: right 6px center, 8px center !important;
}

/* 详情页意向度 */
#edit_intention {
    font-size: 13px;
    padding: 6px 14px 6px 26px;
    border-radius: 20px;
    min-width: 120px;
}

/* 详情页圆点位置调整 */
#edit_intention.intention-全新线索,
#edit_intention.intention-未接,
#edit_intention.intention-等下联系,
#edit_intention.intention-A高意向,
#edit_intention.intention-B中意向,
#edit_intention.intention-C低意向,
#edit_intention.intention-子弹库,
#edit_intention.intention-邀约未成交,
#edit_intention.intention-无效,
#edit_intention.intention-成交,
#edit_intention.intention-异常,
#edit_intention.intention-报名他校,
#edit_intention.intention-报名我校,
#edit_intention.intention-文盲 {
    background-position: right 10px center, 12px center !important;
}

/* 详情页性别下拉框颜色样式 */
#edit_gender.gender-empty {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
}

#edit_gender.gender-男 {
    background-color: #eff6ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

#edit_gender.gender-女 {
    background-color: #fdf2f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23db2777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    color: #db2777 !important;
    border: 1px solid #fbcfe8 !important;
}

.intention-select optgroup,
.intention-select option {
    font-weight: 500;
    color: #333;
    background: white;
}

/* 跟进标签风格 - 浅色背景 + 深色文字 + 边框 + 圆点SVG背景 + 下拉箭头 */
.intention-全新线索 {
    background-color: #f1f5f9 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%2394a3b8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-未接 {
    background-color: #fff7ed !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23f97316'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #c2410c !important;
    border: 1px solid #fed7aa !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-等下联系 {
    background-color: #eff6ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%233b82f6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-A高意向 {
    background-color: #ecfdf5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%2310b981'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-B中意向 {
    background-color: #fffbeb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23f59e0b'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-C低意向 {
    background-color: #fef2f2 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23ef4444'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-子弹库 {
    background-color: #faf5ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23a855f7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #7c3aed !important;
    border: 1px solid #ddd6fe !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-邀约未成交 {
    background-color: #ecfeff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%2306b6d4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #0891b2 !important;
    border: 1px solid #a5f3fc !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-无效 {
    background-color: #f3f4f6 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%239ca3af'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-成交 {
    background-color: #f0fdf4 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%2322c55e'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-异常 {
    background-color: #fdf2f8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23ec4899'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #be185d !important;
    border: 1px solid #fce7f3 !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-报名他校 {
    background-color: #fff1f2 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23fb7185'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #e11d48 !important;
    border: 1px solid #fecdd3 !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-报名我校 {
    background-color: #f0f9ff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%2338bdf8'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

.intention-文盲 {
    background-color: #fefce8 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1.5 1.5l3.5 3 3.5-3' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23eab308'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center, 10px center !important;
    color: #a16207 !important;
    border: 1px solid #fde047 !important;
    border-radius: 20px !important;
    padding: 6px 10px 6px 22px !important;
    min-height: 28px !important;
    font-size: 11px !important;
}

/* ============================================
   工具类
   ============================================ */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 16px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .customer-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
    }

    .customer-info {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        padding: 16px;
    }

    /* 模态框全屏适配 */
    .modal-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px;
    }

    .modal-right {
        width: 100%;
        padding: 12px;
    }

    .customer-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   强制胶囊样式覆盖
   ============================================ */
select.wechat-select,
select.identity-select,
.form-control.wechat-select,
.form-control.identity-select,
.info-item select.form-control.wechat-select,
.info-item select.form-control.identity-select {
    border-radius: 20px !important;
}

/* 自动保存状态旋转动画 */
@keyframes spin {
    to { transform: rotate(360deg); }
}
