/* ===== 全局重置 ===== */
*{margin:0;padding:0;box-sizing:border-box}
:root{
    --primary:#2563EB;
    --primary-dark:#1E50C8;
    --primary-light:#DBEAFE;
    --dark:#1E293B;
    --dark-2:#334155;
    --gray:#64748B;
    --gray-light:#E2E8F0;
    --bg:#F1F5F9;
    --white:#FFFFFF;
    --success:#10B981;
    --warning:#F59E0B;
    --danger:#EF4444;
    --info:#3B82F6;
    --radius:8px;
    --radius-lg:12px;
    --shadow:0 1px 3px rgba(0,0,0,.08);
    --shadow-md:0 4px 12px rgba(0,0,0,.1);
    --shadow-lg:0 8px 24px rgba(0,0,0,.12);
    --sidebar-w:240px;
    --topbar-h:60px;
    --tabbar-h:40px;
}
html,body{height:100%;font-family:'Segoe UI','Microsoft YaHei',sans-serif;font-size:14px;color:var(--dark);background:var(--bg);overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul{list-style:none}
input,button,select,textarea{font-family:inherit;font-size:inherit;outline:none;border:none}
button{cursor:pointer}

/* ===== 登录页面 ===== */
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 20px;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);}
.login-container{display:flex;width:880px;min-height:520px;margin:auto;background:var(--white);border-radius:20px;
    box-shadow:0 25px 60px rgba(0,0,0,.3);overflow:hidden}
.login-left{flex:1;background:linear-gradient(135deg,#2563EB 0%,#1E40AF 100%);
    display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;padding:40px}
.login-brand{text-align:center;margin-bottom:40px}
.brand-icon{width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.15);overflow:hidden;
    display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.brand-logo-img{width:100%;height:100%;object-fit:cover}
.login-brand h1{font-size:28px;font-weight:700;margin-bottom:4px}
.login-brand p{opacity:.8;font-size:15px}
.login-features{width:100%;max-width:260px}
.feature-item{display:flex;align-items:center;gap:12px;padding:10px 0;opacity:.9}
.feature-item i{width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,.15);
    display:flex;align-items:center;justify-content:center;font-size:16px}
.feature-item span{font-size:14px}
.login-right{width:400px;display:flex;align-items:center;justify-content:center;padding:40px}
.login-form-wrapper{width:100%;max-width:320px}
.login-form-wrapper h2{font-size:24px;font-weight:700;margin-bottom:4px}
.login-subtitle{color:var(--gray);font-size:14px;margin-bottom:32px}
.form-group{margin-bottom:20px}
.form-group label{display:block;font-size:13px;color:var(--dark-2);margin-bottom:8px;font-weight:500}
.input-wrapper{position:relative;display:flex;align-items:center}
.input-wrapper>i:first-child{position:absolute;left:12px;color:var(--gray);font-size:16px}
.input-wrapper input{width:100%;padding:12px 12px 12px 40px;border:1.5px solid var(--gray-light);
    border-radius:var(--radius);transition:.2s}
.input-wrapper input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
.toggle-password{position:absolute!important;right:12px!important;left:auto!important;cursor:pointer}
.form-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.checkbox-label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--gray);cursor:pointer}
.checkbox-label input{width:16px;height:16px;accent-color:var(--primary)}
.forgot-link{font-size:13px;color:var(--primary)}
.login-error{color:var(--danger);font-size:13px;margin-bottom:12px;min-height:18px}
.login-btn{width:100%;padding:13px;background:var(--primary);color:#fff;border-radius:var(--radius);
    font-size:15px;font-weight:600;transition:.2s;display:flex;align-items:center;justify-content:center;gap:8px}
.login-btn:hover{background:var(--primary-dark);transform:translateY(-1px);box-shadow:var(--shadow-md)}
.login-footer{text-align:center;margin-top:24px;font-size:12px;color:var(--gray)}

/* ===== 主应用布局 ===== */
.main-app{display:flex;min-height:100vh}

/* ===== 侧边栏 ===== */
.sidebar{width:var(--sidebar-w);background:var(--dark);display:flex;flex-direction:column;
    position:fixed;height:100vh;z-index:100;transition:.3s}
.sidebar-header{padding:18px 20px;display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.sidebar-logo{width:36px;height:36px;border-radius:8px;overflow:hidden;
    display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sidebar-logo-img{width:100%;height:100%;object-fit:cover}
.sidebar-title h3{color:#fff;font-size:15px;font-weight:600}
.sidebar-title span{color:rgba(255,255,255,.5);font-size:12px}
.sidebar-nav{flex:1;padding:12px 0;overflow-y:auto}
.sidebar-nav::-webkit-scrollbar{width:0}
.nav-item{display:flex;align-items:center;gap:12px;padding:12px 20px;color:rgba(255,255,255,.65);
    font-size:14px;transition:.2s;cursor:pointer;position:relative}
.nav-item:hover{color:#fff;background:rgba(255,255,255,.06)}
.nav-item.active{color:#fff;background:rgba(37,99,235,.2)}
.nav-item.active::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--primary)}
.nav-item i:first-child{width:20px;text-align:center;font-size:16px}
.nav-arrow{margin-left:auto;font-size:12px;transition:.3s}
.nav-sub-toggle.open .nav-arrow{transform:rotate(90deg)}
.nav-submenu{max-height:0;overflow:hidden;transition:.3s}
.nav-submenu.open{max-height:200px}
.nav-sub-item{display:flex;align-items:center;gap:8px;padding:10px 20px 10px 52px;
    color:rgba(255,255,255,.5);font-size:13px;transition:.2s;cursor:pointer}
.nav-sub-item:hover{color:#fff;background:rgba(255,255,255,.04)}
.nav-sub-item.active{color:var(--primary-light)}
.sidebar-footer{padding:16px;border-top:1px solid rgba(255,255,255,.08)}
.user-card{display:flex;align-items:center;gap:10px}
.user-avatar{width:36px;height:36px;border-radius:50%;background:var(--primary);
    display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:14px}
.user-info{display:flex;flex-direction:column}
.user-name{color:#fff;font-size:13px;font-weight:500}
.user-role{color:rgba(255,255,255,.4);font-size:11px}

/* ===== 主内容区 ===== */
.main-content{flex:1;margin-left:var(--sidebar-w);display:flex;flex-direction:column;min-height:100vh}
.topbar{height:var(--topbar-h);background:var(--white);box-shadow:var(--shadow);
    display:flex;align-items:center;justify-content:space-between;padding:0 24px;
    position:sticky;top:0;z-index:50}
.topbar-left{display:flex;align-items:center;gap:16px}
.menu-toggle{background:none;font-size:18px;color:var(--dark-2);padding:6px}
.breadcrumb{font-size:15px;font-weight:500}
.topbar-right{display:flex;align-items:center;gap:8px}
.topbar-time{font-size:13px;color:var(--gray);margin-right:8px}
.topbar-icon-btn{position:relative;width:36px;height:36px;border-radius:8px;
    display:flex;align-items:center;justify-content:center;color:var(--gray);cursor:pointer;
    transition:.2s;font-size:16px}
.topbar-icon-btn:hover{background:var(--bg);color:var(--dark)}
.badge{position:absolute;top:2px;right:2px;background:var(--danger);color:#fff;
    font-size:10px;min-width:16px;height:16px;border-radius:8px;display:flex;
    align-items:center;justify-content:center;padding:0 4px}
.topbar-user{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:8px;
    cursor:pointer;position:relative;transition:.2s}
.topbar-user:hover{background:var(--bg)}
.user-avatar-sm{width:30px;height:30px;border-radius:50%;background:var(--primary);
    display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:12px}
.topbar-user>span{font-size:13px;font-weight:500}
.user-dropdown{position:absolute;top:100%;right:0;margin-top:8px;background:var(--white);
    border-radius:var(--radius);box-shadow:var(--shadow-lg);width:160px;padding:6px 0;
    opacity:0;visibility:hidden;transform:translateY(-8px);transition:.2s}
.topbar-user:hover .user-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.user-dropdown a{display:flex;align-items:center;gap:8px;padding:10px 16px;font-size:13px;color:var(--dark-2)}
.user-dropdown a:hover{background:var(--bg)}

/* ===== 顶部通知面板 ===== */
.notify-panel{position:fixed;top:64px;right:14px;margin-top:0;background:var(--white);
    border-radius:var(--radius);box-shadow:var(--shadow-lg);width:320px;max-width:calc(100vw - 24px);
    opacity:0;visibility:hidden;transform:translateY(-8px);transition:.2s;z-index:1100;overflow:hidden}
.notify-panel.open{opacity:1;visibility:visible;transform:translateY(0)}
.notify-panel-header{display:flex;align-items:center;justify-content:space-between;
    padding:14px 16px;border-bottom:1px solid var(--gray-light)}
.notify-panel-header h4{font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}
.notify-panel-total{font-size:12px;color:var(--gray)}
.notify-panel-body{max-height:320px;overflow-y:auto}
.notify-item{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:.15s;border-bottom:1px solid #F8FAFC}
.notify-item:hover{background:var(--bg)}
.notify-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;
    justify-content:center;font-size:15px;flex-shrink:0}
.notify-info{flex:1;min-width:0}
.notify-info strong{display:block;font-size:13px;font-weight:500;color:var(--dark-2)}
.notify-info span{display:block;font-size:12px;color:var(--gray);margin-top:2px}
.notify-empty{text-align:center;padding:32px 16px;color:var(--gray)}
.notify-empty i{font-size:32px;opacity:.3;margin-bottom:8px}
.notify-empty p{font-size:13px}
.notify-panel-footer{display:flex;border-top:1px solid var(--gray-light)}
.notify-panel-footer a{flex:1;text-align:center;padding:10px 0;font-size:12px;color:var(--primary);transition:.15s}
.notify-panel-footer a:hover{background:var(--bg)}

/* ===== 页面容器 ===== */
.page-container{flex:1;padding:24px;overflow-y:auto}

/* ===== 模块页签栏（多标签独立打开/关闭） ===== */
.tabbar{height:var(--tabbar-h);display:flex;align-items:center;gap:2px;padding:0 12px;background:var(--white);
    border-bottom:1px solid var(--gray-light);overflow-x:auto;flex-shrink:0;scrollbar-width:none}
.tabbar::-webkit-scrollbar{display:none}
.tab-item{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px 8px 0 0;
    font-size:13px;color:var(--gray);cursor:pointer;white-space:nowrap;border:1px solid transparent;border-bottom:none;
    transition:.15s;user-select:none;flex-shrink:0}
.tab-item:hover{background:var(--bg);color:var(--dark)}
.tab-item.active{background:var(--bg);color:var(--primary);font-weight:600;border-color:var(--gray-light)}
.tab-item .tab-name{max-width:120px;overflow:hidden;text-overflow:ellipsis}
.tab-close{width:16px;height:16px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
    font-size:9px;color:var(--gray);transition:.15s;margin-left:2px}
.tab-close:hover{background:var(--danger);color:#fff}
.tabbar-empty{font-size:12px;color:var(--gray);padding:0 8px}

/* 模块独立面板：默认隐藏，激活时显示；切换页签不销毁其他模块状态 */
.page-panel{display:none}
.page-panel.active{display:block}
/* 聊天模块占满全宽（去容器内边距） */
.page-container:has(.page-panel.active .chat-page){padding:0;padding-bottom:0}

/* ===== 卡片通用 ===== */
.card{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}
.card-header{padding:16px 20px;border-bottom:1px solid var(--gray-light);display:flex;
    align-items:center;justify-content:between;justify-content:space-between}
.card-header h3{font-size:16px;font-weight:600}
.card-body{padding:20px}

/* ===== Dashboard 首页 ===== */
.welcome-banner{background:linear-gradient(135deg,#2563EB 0%,#1E40AF 100%);border-radius:var(--radius-lg);
    padding:28px 32px;color:#fff;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.welcome-banner h2{font-size:22px;font-weight:700;margin-bottom:6px}
.welcome-banner p{opacity:.85;font-size:14px}
/* 每日一句（按日期轮换） */
.welcome-banner .banner-quote{margin-top:12px;font-size:13.5px;opacity:.95;display:flex;align-items:flex-start;gap:9px;
    background:rgba(255,255,255,.13);border-left:3px solid rgba(255,255,255,.6);border-radius:0 8px 8px 0;
    padding:8px 13px;line-height:1.65;max-width:620px}
.welcome-banner .banner-quote i{opacity:.7;font-size:11px;margin-top:5px;flex-shrink:0}
/* 日期日历块：加大尺寸，年月/日/星期三段清晰展示 */
.welcome-banner .banner-date{text-align:center;background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.3);border-radius:14px;padding:13px 20px;min-width:124px;flex-shrink:0}
.welcome-banner .banner-date .date-year{font-size:12px;opacity:.9;margin-bottom:3px;white-space:nowrap;letter-spacing:.5px}
.welcome-banner .banner-date .date-num{font-size:46px;font-weight:700;line-height:1;letter-spacing:-1px}
.welcome-banner .banner-date .date-week{font-size:13px;opacity:.9;margin-top:5px;white-space:nowrap}
@media(max-width:900px){
    .welcome-banner{padding:20px 18px;gap:14px}
    .welcome-banner .banner-date{min-width:98px;padding:10px 14px}
    .welcome-banner .banner-date .date-num{font-size:34px}
    .welcome-banner .date-num{letter-spacing:0}
}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.stat-card{background:var(--white);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow);
    display:flex;align-items:center;gap:16px;transition:.2s}
.stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.stat-card.stat-clickable{cursor:pointer}
@keyframes rowFlash{0%,100%{background-color:transparent}25%,75%{background-color:#FEF9C3}}
.row-flash-highlight{animation:rowFlash 1.2s ease-in-out 2}
.hr-collapse-bar{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;
    color:#2563EB;font-size:13px;font-weight:600;cursor:pointer;border-top:1px solid var(--gray-light);
    transition:background .15s;user-select:none}
.hr-collapse-bar:hover{background:#F8FAFF}
.stat-icon{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;
    justify-content:center;font-size:22px;flex-shrink:0}
.stat-icon.blue{background:#DBEAFE;color:#2563EB}
.stat-icon.green{background:#D1FAE5;color:#10B981}
.stat-icon.orange{background:#FED7AA;color:#F59E0B}
.stat-icon.red{background:#FEE2E2;color:#EF4444}
.stat-icon.purple{background:#EDE9FE;color:#7C3AED}
.stat-info h3{font-size:28px;font-weight:700;line-height:1}
.stat-info p{font-size:13px;color:var(--gray);margin-top:4px}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dashboard-card{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}
.dashboard-card .card-header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between}
.dashboard-card .card-header h3{font-size:15px;font-weight:600}
.dashboard-card .link-more{font-size:13px;color:var(--primary)}

/* ===== 数据表格 ===== */
.data-table{width:100%;border-collapse:collapse}
.data-table th{background:var(--bg);padding:12px 16px;text-align:left;font-size:13px;
    font-weight:600;color:var(--dark-2);border-bottom:2px solid var(--gray-light);white-space:nowrap}
.data-table td{padding:12px 16px;border-bottom:1px solid var(--gray-light);font-size:13px}
.data-table tr:hover{background:#F8FAFC}
.data-table tr:last-child td{border-bottom:none}
.table-actions{display:flex;gap:6px}
.table-actions button{width:30px;height:30px;border-radius:6px;display:flex;align-items:center;
    justify-content:center;font-size:13px;transition:.2s}
.action-edit{background:#DBEAFE;color:#2563EB}
.action-edit:hover{background:#2563EB;color:#fff}
.action-call{background:#D1FAE5;color:#10B981}
.action-call:hover{background:#10B981;color:#fff}
.action-view{background:#F3E8FF;color:#7C3AED}
.action-view:hover{background:#7C3AED;color:#fff}
.action-download{background:#FEF3C7;color:#D97706}
.action-download:hover{background:#D97706;color:#fff}
.action-delete{background:#FEE2E2;color:#EF4444}
.action-delete:hover{background:#EF4444;color:#fff}
.action-attach{background:#E0F2FE;color:#0284C7}
.action-attach:hover{background:#0284C7;color:#fff}
/* 毁约标记（20260910 操作栏新增）：深红示警；已毁约时转为锁定态 */
.action-broken{background:#FEE2E2;color:#B91C1C;border:1px solid #FCA5A5}
.action-broken:hover{background:#B91C1C;color:#fff}
.action-broken.locked{background:#F1F5F9;color:#94A3B8;border:1px solid #E2E8F0}
.action-broken.locked:hover{background:#64748B;color:#fff}
/* 已毁约整行标识：淡红底 + 左侧深红竖条 */
.data-table tr.row-broken>td{background:#FFF5F5}
.data-table tr.row-broken:hover>td{background:#FFECEC}
.data-table tr.row-broken>td:first-child{box-shadow:inset 3px 0 0 #B91C1C}

/* ===== 标签/徽章 ===== */
.tag{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:12px;
    font-size:12px;font-weight:500}
.tag-blue{background:#DBEAFE;color:#2563EB}
.tag-green{background:#D1FAE5;color:#059669}
.tag-orange{background:#FEF3C7;color:#D97706}
.tag-red{background:#FEE2E2;color:#DC2626}
.tag-purple{background:#EDE9FE;color:#6D28D9}
.tag-gray{background:#E2E8F0;color:#475569}
.tag-pink{background:#FCE7F3;color:#BE185D}
/* 已毁约状态标签（终态）：深红实心，与「已到期」区分 */
.tag-broken{background:#B91C1C;color:#fff}

/* ABC等级标签 */
.level-A{background:#FEE2E2;color:#DC2626;font-weight:600}
.level-B{background:#FEF3C7;color:#D97706;font-weight:600}
.level-C{background:#DBEAFE;color:#2563EB;font-weight:600}

/* 平台来源标签 */
.source-douyin{background:#FCE7F3;color:#BE185D}
.source-xhs{background:#FECACA;color:#E11D48}
.source-shipinhao{background:#DBEAFE;color:#1D4ED8}
.source-weixin{background:#D1FAE5;color:#047857}
.source-kuaishou{background:#FED7AA;color:#EA580C}
.source-qq{background:#DBEAFE;color:#1D4ED8}
.source-weibo{background:#FEE2E2;color:#DC2626}
.source-bilibili{background:#E0E7FF;color:#4F46E5}
.source-other{background:#E2E8F0;color:#475569}

/* ===== 工具栏 ===== */
.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.toolbar-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.toolbar-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.search-box{position:relative;display:flex;align-items:center}
.search-box i{position:absolute;left:10px;color:var(--gray);font-size:13px}
.search-box input{padding:8px 12px 8px 32px;border:1.5px solid var(--gray-light);
    border-radius:var(--radius);width:440px;transition:.2s}
.search-box input:focus{border-color:var(--primary)}
.filter-select{padding:8px 12px;border:1.5px solid var(--gray-light);border-radius:var(--radius);
    background:var(--white);cursor:pointer;transition:.2s}
.filter-select:focus{border-color:var(--primary)}

/* ===== 按钮 ===== */
.btn{padding:8px 16px;border-radius:var(--radius);font-size:13px;font-weight:500;
    display:inline-flex;align-items:center;gap:6px;transition:.2s}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark)}
.btn-success{background:var(--success);color:#fff}
.btn-success:hover{background:#0EA371}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger:hover{background:#DC2626}
.btn-warning{background:var(--warning);color:#fff}
.btn-outline{background:var(--white);border:1.5px solid var(--gray-light);color:var(--dark-2)}
.btn-outline:hover{border-color:var(--primary);color:var(--primary)}
.btn-sm{padding:6px 12px;font-size:12px}
.btn-lg{padding:12px 24px;font-size:15px}
.btn-block{width:100%;justify-content:center}

/* ===== 弹窗 Modal ===== */
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.4);
    z-index:1000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.2s}
.modal-overlay.open{opacity:1;visibility:visible}
.modal{background:var(--white);border-radius:var(--radius-lg);width:90%;max-width:600px;
    max-height:85vh;overflow-y:auto;transform:translateY(-20px);transition:.3s}
.modal-overlay.open .modal{transform:translateY(0)}
.modal-large{max-width:900px}
.modal-header{padding:16px 24px;border-bottom:1px solid var(--gray-light);
    display:flex;align-items:center;justify-content:space-between}
@media (hover:hover) and (pointer:fine){.modal-overlay .modal-header{cursor:move}}
.modal-header h3{font-size:17px;font-weight:600}
.modal-close{background:none;font-size:18px;color:var(--gray);padding:4px;transition:.2s}
.modal-close:hover{color:var(--danger)}
.modal-body{padding:24px}
.modal-footer{padding:16px 24px;border-top:1px solid var(--gray-light);
    display:flex;justify-content:flex-end;gap:8px}

/* 弹窗底部按钮固定可见（签约合同新建/编辑弹窗专用）：
   表单内容在 body 内滚动，footer 始终显示在弹窗底部，移动端不会出现按钮在屏幕外点不到 */
.modal-fixed-footer{display:flex;flex-direction:column;overflow:hidden}
.modal-fixed-footer .modal-body{flex:1;overflow-y:auto;min-height:0;-webkit-overflow-scrolling:touch}
.modal-fixed-footer .modal-footer{flex-shrink:0;border-top:1px solid var(--gray-light);
    background:var(--white);border-radius:0 0 var(--radius-lg) var(--radius-lg)}

/* 多证书清单（+自定义证书） */
.cert-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.cert-row .cert-select{flex:2;min-width:0}
.cert-row .cert-custom{flex:1;min-width:0}
.cert-row .cert-count{width:76px;flex:none}
.cert-del{flex:none;width:34px;height:34px;border-radius:6px;border:1px solid #ffa39e;
    background:#fff;color:#cf1322;cursor:pointer;font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center;transition:.15s}
.cert-del:hover{background:#fff1f0;border-color:#ff4d4f}
.cert-add{margin-top:2px}
.cert-add i{margin-right:4px}

/* ===== 表单 ===== */
.form-row-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:13px;color:var(--dark-2);margin-bottom:6px;font-weight:500}
.form-group label .required{color:var(--danger)}
.form-control{width:100%;padding:10px 12px;border:1.5px solid var(--gray-light);
    border-radius:var(--radius);transition:.2s;font-size:14px}
.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
textarea.form-control{min-height:80px;resize:vertical}
.form-hint{font-size:12px;color:var(--gray);margin-top:4px}

/* ===== AI外呼系统 ===== */
.call-center{display:grid;grid-template-columns:340px 1fr;gap:16px;height:calc(100vh - var(--topbar-h) - var(--tabbar-h) - 48px)}
.call-list-panel{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);
    display:flex;flex-direction:column;overflow:hidden}
.call-list-header{padding:16px;border-bottom:1px solid var(--gray-light)}
.call-list-header h3{font-size:15px;font-weight:600;margin-bottom:12px}
.call-list-body{flex:1;overflow-y:auto}
.call-item{padding:14px 16px;border-bottom:1px solid var(--gray-light);cursor:pointer;transition:.2s}
.call-item:hover{background:var(--bg)}
.call-item.active{background:var(--primary-light);border-left:3px solid var(--primary)}
.call-item-name{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.call-item-name strong{font-size:14px}
.call-item-phone{font-size:12px;color:var(--gray)}
.call-item-meta{display:flex;align-items:center;gap:8px;margin-top:6px}
.call-item-status{font-size:11px;color:var(--gray)}

.call-work-panel{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);
    display:flex;flex-direction:column;overflow:hidden}
.call-work-header{padding:16px 24px;border-bottom:1px solid var(--gray-light);
    display:flex;align-items:center;justify-content:space-between}
.call-work-header .customer-info{display:flex;align-items:center;gap:12px}
.call-work-header .customer-info .avatar{width:40px;height:40px;border-radius:50%;
    background:var(--primary);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600}
.call-work-header .customer-info .info-text strong{font-size:15px;display:block}
.call-work-header .customer-info .info-text span{font-size:12px;color:var(--gray)}
.call-work-body{flex:1;overflow-y:auto;padding:24px;display:flex;flex-direction:column}

.call-empty{text-align:center;padding:60px 20px;color:var(--gray)}
.call-empty i{font-size:48px;margin-bottom:16px;opacity:.3}
.call-empty p{font-size:14px}

.call-controls{padding:16px 24px;border-top:1px solid var(--gray-light);
    display:flex;align-items:center;justify-content:center;gap:12px;background:var(--bg)}
.call-btn{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;
    justify-content:center;font-size:20px;color:#fff;transition:.2s}
.call-btn-start{background:var(--success)}
.call-btn-start:hover{background:#0EA371;transform:scale(1.05)}
.call-btn-hang{background:var(--danger)}
.call-btn-hang:hover{background:#DC2626;transform:scale(1.05)}
.call-btn-disabled{background:var(--gray);cursor:not-allowed}

.call-timer{font-size:16px;font-weight:600;color:var(--dark);font-family:monospace;
    padding:4px 12px;background:var(--white);border-radius:var(--radius)}

/* AI对话气泡 */
.chat-conversation{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}
.chat-msg{display:flex;gap:10px;max-width:80%}
.chat-msg.ai{align-self:flex-start}
.chat-msg.customer{align-self:flex-end}
.chat-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;
    justify-content:center;font-size:14px;color:#fff;flex-shrink:0}
.chat-avatar.ai{background:var(--primary)}
.chat-avatar.customer{background:var(--success)}
.chat-bubble{padding:10px 14px;border-radius:12px;font-size:14px;line-height:1.5}
.chat-msg.ai .chat-bubble{background:var(--bg);color:var(--dark)}
.chat-msg.customer .chat-bubble{background:var(--primary);color:#fff}
.chat-time{font-size:11px;color:var(--gray);margin-top:4px}

/* 客户分级面板 */
.grading-panel{background:var(--bg);border-radius:var(--radius);padding:16px;margin-top:16px}
.grading-panel h4{font-size:14px;font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:6px}
.grading-buttons{display:flex;gap:8px;margin-bottom:12px}
.grading-btn{flex:1;padding:10px;border-radius:var(--radius);font-weight:600;font-size:14px;
    display:flex;flex-direction:column;align-items:center;gap:4px;transition:.2s;border:2px solid transparent}
.grading-btn:hover{transform:translateY(-2px)}
.grade-a{background:#FEE2E2;color:#DC2626;border-color:#FECACA}
.grade-b{background:#FEF3C7;color:#D97706;border-color:#FDE68A}
.grade-c{background:#DBEAFE;color:#2563EB;border-color:#93C5FD}
.grade-no{background:var(--gray-light);color:var(--gray);border-color:var(--gray-light)}
.grading-btn .grade-label{font-size:18px;font-weight:700}
.grading-btn .grade-desc{font-size:11px}

/* 通话状态指示 */
.call-status-indicator{display:flex;align-items:center;gap:6px;padding:6px 12px;
    border-radius:20px;font-size:13px;font-weight:500}
.call-status-idle{background:var(--gray-light);color:var(--gray)}
.call-status-calling{background:#FEF3C7;color:#D97706}
.call-status-connected{background:#D1FAE5;color:#059669}
.call-status-ended{background:var(--gray-light);color:var(--gray)}
.pulse-dot{width:8px;height:8px;border-radius:50%;background:currentColor;animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}

/* ===== 合同模块 ===== */
.contract-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.template-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.template-card{border:2px solid var(--gray-light);border-radius:var(--radius-lg);padding:20px;
    cursor:pointer;transition:.2s;text-align:center}
.template-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}
.template-card.selected{border-color:var(--primary);background:var(--primary-light)}
.template-card i{font-size:32px;color:var(--primary);margin-bottom:12px}
.template-card h4{font-size:14px;font-weight:600;margin-bottom:4px}
.template-card p{font-size:12px;color:var(--gray)}

/* 模板库紧凑卡片（仅展示 合同类型 + 开票状态） */
.template-list-sm{grid-template-columns:repeat(2,1fr);gap:12px}
.template-card-sm{display:flex;align-items:center;gap:12px;padding:14px 16px;text-align:left;
    border-width:1.5px;border-radius:10px;transition:.2s}
.template-card-sm:hover{border-color:var(--primary);box-shadow:var(--shadow-md);transform:translateY(-1px)}
.template-card-sm:active{transform:translateY(0)}
.tpl-sm-icon{flex-shrink:0;width:40px;height:40px;border-radius:10px;display:flex;align-items:center;
    justify-content:center;font-size:18px;color:var(--primary);background:var(--primary-light)}
.tpl-sm-body{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.tpl-sm-name{font-size:14px;font-weight:600;color:var(--dark-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-sm-sub{font-size:11px;color:var(--gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpl-sm-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;font-size:11px;font-weight:500;
    padding:2px 9px;border-radius:10px;line-height:1.6}
.tpl-sm-badge i{font-size:10px}
.tpl-sm-badge-blue{background:#e6f4ff;color:#0958d9}
.tpl-sm-badge-red{background:#fff1f0;color:#cf1322}

/* OCR上传区域 */
.ocr-upload{border:2px dashed var(--gray-light);border-radius:var(--radius-lg);padding:32px;
    text-align:center;transition:.2s;cursor:pointer}
.ocr-upload:hover{border-color:var(--primary);background:var(--primary-light)}
.ocr-upload i{font-size:40px;color:var(--gray);margin-bottom:12px}
.ocr-upload p{font-size:14px;color:var(--gray)}
.ocr-upload .file-formats{font-size:12px;color:var(--gray);margin-top:6px}
.ocr-processing{text-align:center;padding:40px}
.ocr-processing .spinner{width:40px;height:40px;border:4px solid var(--gray-light);
    border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 12px}
@keyframes spin{to{transform:rotate(360deg)}}
.ocr-result{background:var(--bg);border-radius:var(--radius);padding:16px;margin-top:16px}
.ocr-result h4{font-size:14px;font-weight:600;margin-bottom:10px;display:flex;align-items:center;gap:6px}
.ocr-text{font-size:13px;line-height:1.6;color:var(--dark-2);white-space:pre-wrap;
    max-height:300px;overflow-y:auto;padding:12px;background:var(--white);border-radius:var(--radius)}

/* 图片预览 */
.image-preview{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
.image-preview-item{position:relative;width:120px;height:120px;border-radius:var(--radius);overflow:hidden}
.image-preview-item img{width:100%;height:100%;object-fit:cover}
.image-preview-item .remove-btn{position:absolute;top:4px;right:4px;width:22px;height:22px;
    border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;
    justify-content:center;font-size:12px;cursor:pointer}
.image-preview-item .preview-badge{position:absolute;left:4px;bottom:4px;padding:2px 6px;
    border-radius:4px;background:rgba(37,99,235,.85);color:#fff;font-size:11px;line-height:1.3}

/* ===== Toast通知 ===== */
.toast-container{position:fixed;top:20px;right:20px;z-index:2000;display:flex;flex-direction:column;gap:8px}
.toast{padding:12px 20px;border-radius:var(--radius);box-shadow:var(--shadow-lg);
    display:flex;align-items:center;gap:10px;font-size:14px;color:#fff;min-width:280px;
    animation:slideIn .3s ease}
@keyframes slideIn{from{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}
.toast.success{background:var(--success)}
.toast.error{background:var(--danger)}
.toast.warning{background:var(--warning)}
.toast.info{background:var(--info)}

/* ===== 分页 ===== */
.pagination{display:flex;align-items:center;justify-content:center;gap:4px;padding:16px}
.pagination button{min-width:32px;height:32px;border-radius:6px;font-size:13px;
    border:1px solid var(--gray-light);background:var(--white);color:var(--dark-2);transition:.2s}
.pagination button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}
.pagination button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.pagination button:disabled{opacity:.4;cursor:not-allowed}

/* ===== 空状态 ===== */
.empty-state{text-align:center;padding:40px 20px;color:var(--gray)}
.empty-state i{font-size:48px;margin-bottom:12px;opacity:.3}
.empty-state p{font-size:14px}

/* ===== 进度条 ===== */
.progress-bar{width:100%;height:6px;background:var(--gray-light);border-radius:3px;overflow:hidden}
.progress-bar-fill{height:100%;background:var(--primary);border-radius:3px;transition:.3s}

/* ===== 平板适配 (≤1024px) ===== */
@media(max-width:1024px){
    .stats-grid{grid-template-columns:repeat(2,1fr)}
    .dashboard-grid{grid-template-columns:1fr}
    .call-center{grid-template-columns:1fr;height:auto}
    .call-list-panel{max-height:280px}
    .contract-stats{grid-template-columns:repeat(2,1fr)}
    .template-list{grid-template-columns:repeat(2,1fr)}
    .page-container{padding:16px}
    .welcome-banner{padding:20px 24px}
    .welcome-banner h2{font-size:18px}
    .topbar{padding:0 16px}
    .topbar-time{font-size:12px}
}

/* ===== 手机适配 (≤768px) ===== */
@media(max-width:768px){
    :root{--sidebar-w:0px;--topbar-h:54px}

    /* 页面级防溢出：禁止横向撑宽 */
    html,body{overflow-x:hidden}
    .main-content{min-width:0}
    .page-container{min-width:0;overflow-x:hidden}

    /* 数据表格 - 移动端卡片化 */
    .data-table.mobile-cards,.hr-table.mobile-cards{min-width:auto;border:none;background:transparent}
    .data-table.mobile-cards thead,.hr-table.mobile-cards thead{display:none}
    .data-table.mobile-cards tbody,.hr-table.mobile-cards tbody{display:block}
    .data-table.mobile-cards tr,.hr-table.mobile-cards tr{display:block;background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-bottom:12px;padding:14px 16px;border:none}
    .data-table.mobile-cards td,.hr-table.mobile-cards td{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--gray-light);font-size:13px;white-space:normal;word-break:break-word}
    .data-table.mobile-cards td:last-child,.hr-table.mobile-cards td:last-child{border-bottom:none}
    .data-table.mobile-cards td[data-label]::before,.hr-table.mobile-cards td[data-label]::before{content:attr(data-label);font-weight:600;color:var(--gray);font-size:12px;flex-shrink:0;margin-right:8px}
    .data-table.mobile-cards tr.mobile-card-empty,.hr-table.mobile-cards tr.mobile-card-empty{padding:0;background:transparent;box-shadow:none}
    .data-table.mobile-cards tr.mobile-card-empty td,.hr-table.mobile-cards tr.mobile-card-empty td{display:block;text-align:center;border-bottom:none;padding:16px 0}

    /* 侧边栏 - 抽屉式 */
    .sidebar{width:260px;transform:translateX(-100%);box-shadow:var(--shadow-lg)}
    .sidebar.open{transform:translateX(0)}
    .main-content{margin-left:0}

    /* 顶部栏 */
    .topbar{padding:0 12px}
    .topbar-time{display:none}
    .topbar-icon-btn{width:34px;height:34px;font-size:15px}
    .topbar-user>span{display:none}
    .topbar-user{padding:6px}
    .breadcrumb{font-size:14px}

    /* 页面容器 */
    .page-container{padding:12px;padding-bottom:80px}

    /* 欢迎横幅 */
    .welcome-banner{flex-direction:column;gap:12px;padding:18px 16px;text-align:center}
    .welcome-banner .banner-date{text-align:center}
    .welcome-banner .banner-date .date-num{font-size:28px}
    .welcome-banner h2{font-size:17px}
    .welcome-banner p{font-size:13px}

    /* 统计卡片 */
    .stats-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:16px}
    .stat-card{padding:14px;gap:12px}
    .stat-icon{width:42px;height:42px;font-size:18px;border-radius:10px}
    .stat-info h3{font-size:20px}
    .stat-info p{font-size:11px}

    /* Dashboard 网格 */
    .dashboard-grid{grid-template-columns:1fr;gap:12px}

    /* 登录页 */
    .login-page{padding:16px;align-items:flex-start;padding-top:10vh}
    .login-container{flex-direction:column;width:100%;max-width:380px;height:auto;min-height:400px}
    .login-left{display:none}
    .login-right{width:100%;padding:32px 24px}
    .login-form-wrapper{max-width:100%}
    .login-form-wrapper h2{font-size:20px}
    .login-btn{padding:14px;font-size:16px}

    /* 数据表格 - 横向滚动 */
    .card-body{padding:12px;overflow-x:auto}
    .data-table{min-width:600px}
    .data-table th,.data-table td{padding:10px 12px;font-size:12px;white-space:nowrap}
    .table-actions{gap:4px}
    .table-actions button{width:32px;height:32px}

    /* 工具栏 */
    .toolbar{gap:8px}
    .toolbar-left{width:100%}
    .search-box{width:100%}
    .search-box input{width:100%;min-width:140px}
    .filter-select{font-size:13px;padding:8px 10px}

    /* 表单 */
    .form-row-grid{grid-template-columns:1fr;gap:0}

    /* 合同统计 */
    .contract-stats{grid-template-columns:repeat(2,1fr);gap:10px}

    /* 模板列表 */
    .template-list{grid-template-columns:1fr;gap:10px}
    .template-card{padding:14px}

    /* 弹窗 - 全屏化 */
    .modal{width:100%;max-width:100%;max-height:100vh;border-radius:0}
    .modal-fixed-footer{max-height:100vh;border-radius:0}
    .modal-fixed-footer .modal-footer{border-radius:0}
    .modal-large{max-width:100%}
    .modal-overlay{padding:0}
    .modal-body{padding:16px}
    .modal-header{padding:12px 16px}
    .modal-header h3{font-size:15px}
    .modal-footer{padding:12px 16px;flex-wrap:wrap}
    .modal-footer .btn{flex:1;justify-content:center;min-width:80px}

    /* 多证书清单 - 移动端 */
    .cert-row{flex-wrap:wrap}
    .cert-row .cert-select{flex:1 1 100%}
    .cert-row .cert-custom{flex:1 1 calc(100% - 120px)}
    .cert-row .cert-count{width:64px}

    /* AI外呼中心 */
    .call-center{gap:12px}
    .call-list-panel{max-height:240px}
    .call-list-header{padding:12px}
    .call-list-header h3{font-size:14px}
    .call-work-header{padding:12px 16px;flex-wrap:wrap;gap:8px}
    .call-work-body{padding:16px}
    .call-controls{padding:12px 16px}
    .call-btn{width:52px;height:52px;font-size:22px}
    .call-timer{font-size:14px}

    /* 对话气泡 */
    .chat-msg{max-width:90%}
    .chat-bubble{font-size:13px;padding:10px 12px}

    /* 客户分级按钮 */
    .grading-buttons{flex-wrap:wrap}
    .grading-btn{flex:1 1 45%;min-width:80px;padding:12px 8px}
    .grading-btn .grade-label{font-size:16px}
    .grading-btn .grade-desc{font-size:10px}

    /* 分页 */
    .pagination{flex-wrap:wrap;gap:4px;padding:12px 8px}
    .pagination button{min-width:36px;height:36px;font-size:14px}
    .pagination span{width:100%;text-align:center;font-size:12px}

    /* Toast */
    .toast-container{top:10px;right:10px;left:10px}
    .toast{min-width:auto;font-size:13px;padding:10px 14px}

    /* 按钮 - 更大触控区域 */
    .btn{padding:10px 14px;font-size:13px}
    .btn-sm{padding:8px 12px}
    .btn-lg{padding:14px 20px;font-size:16px}

    /* OCR上传 */
    .ocr-upload{padding:24px 16px}
    .ocr-upload i{font-size:32px}
    .ocr-upload p{font-size:13px}

    /* 图片预览 */
    .image-preview-item{width:90px;height:90px}

    /* 卡片 */
    .card-header{padding:12px 16px;flex-wrap:wrap;gap:8px}
    .card-header h3{font-size:14px}
    .card-header .btn{font-size:12px}

    /* 空状态 */
    .empty-state{padding:24px 12px}
    .empty-state i{font-size:36px}

    /* 遮罩层 - 点击关闭侧边栏 */
    .sidebar-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;
        background:rgba(0,0,0,.4);z-index:99;opacity:0;transition:.3s}
    .sidebar-overlay.show{display:block;opacity:1}

    /* 省份卡片网格 */
    .province-cards-row{grid-template-columns:repeat(2,1fr);padding:12px 14px;gap:10px}
    .province-card{padding:10px 12px}
}

/* ===== 小屏手机 (≤480px) ===== */
@media(max-width:480px){
    .stats-grid{grid-template-columns:1fr}
    .stat-card{flex-direction:column;text-align:center;gap:8px}
    .stat-info h3{font-size:24px}
    .contract-stats{grid-template-columns:1fr}
    .welcome-banner h2{font-size:16px}
    .topbar-icon-btn{width:32px;height:32px}
    .menu-toggle{font-size:16px}
    .breadcrumb{font-size:13px}
    .call-item{padding:10px 12px}
    .call-item-name strong{font-size:13px}
    .data-table{min-width:500px}
    .data-table th,.data-table td{padding:8px 10px;font-size:11px}
}

/* ===== 报价平台移动端 ===== */
@media(max-width:768px){
    .price-board-header{padding:14px 16px}
    .price-board-header h2{font-size:15px}
    .price-update-time{font-size:11px}
    .price-stats-row{grid-template-columns:repeat(2,1fr);gap:10px;padding:14px 16px}
    .price-stat-card{padding:12px;gap:10px}
    .price-stat-icon{width:36px;height:36px;font-size:15px}
    .price-stat-info h4{font-size:18px}
    .price-stat-info p{font-size:11px}
    .price-table-wrapper{padding:12px 16px}
    .price-category-header{padding:12px 16px}
    .price-category-header h3{font-size:14px}
    .price-table th,.price-table td{padding:10px 12px;font-size:12px}
    .marquee-bar{height:36px}
    .marquee-item{font-size:12px}
    .price-footer-note{padding:12px 16px;font-size:11px}
}
@media(max-width:480px){
    .price-stats-row{grid-template-columns:1fr}
    .price-stat-card{padding:10px 12px}
    .price-stat-icon{width:32px;height:32px;font-size:14px}
    .price-stat-info h4{font-size:16px}
}

/* ===== 业绩核算移动端 ===== */
@media(max-width:768px){
    .performance-table{min-width:700px}
    .calc-preview{padding:12px}
    .profit-breakdown-item{gap:8px}
    .profit-breakdown-label{width:70px;font-size:12px}
    .profit-breakdown-value{width:80px;font-size:13px}
}

/* ===== 聊天移动端 ===== */
@media(max-width:768px){
    .chat-sidebar{width:100%;position:absolute;top:0;left:0;bottom:0;z-index:10;height:100%;transition:.3s}
    .chat-sidebar.hidden{display:none}
    .chat-main{width:100%}
    .chat-sidebar-header{padding:12px 16px}
    .chat-conv-item{padding:10px 14px}
    .chat-conv-avatar{width:36px;height:36px;font-size:12px}
    .chat-conv-top strong{font-size:13px}
    .chat-conv-msg{max-width:200px}
    .chat-window-header{padding:10px 16px}
    .chat-back-btn{display:flex}
    .chat-messages{padding:14px}
    .chat-msg-bubble{font-size:13px;padding:9px 12px}
    .chat-input-area{padding:10px 14px}
    .chat-send-btn{width:38px;height:38px}
}

/* ===== 横屏适配 ===== */
@media(max-width:768px) and (orientation:landscape){
    .login-page{align-items:center;padding-top:20px}
    .call-list-panel{max-height:200px}
}

/* ===== 全国报价平台 ===== */
.price-board-page{padding:0}
.marquee-bar{background:linear-gradient(90deg,#1E3A5F 0%,#2563EB 100%);color:#fff;overflow:hidden;white-space:nowrap;position:relative;height:40px;display:flex;align-items:center}
.marquee-content{display:inline-flex;gap:60px;animation:marqueeScroll 40s linear infinite;padding-left:100%}
@keyframes marqueeScroll{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
.marquee-item{font-size:13px;opacity:.95;display:inline-flex;align-items:center;gap:8px}
.marquee-item::before{content:'•';color:#F59E0B;font-size:18px}
.price-board-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:var(--white);border-bottom:1px solid var(--gray-light);flex-wrap:wrap;gap:12px}
.price-board-header h2{font-size:18px;font-weight:600;display:flex;align-items:center;gap:8px}
.price-update-time{font-size:13px;color:var(--gray);margin-top:4px}
.price-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.price-stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:20px 24px;background:var(--white);border-bottom:1px solid var(--gray-light)}
.price-stat-card{display:flex;align-items:center;gap:14px;padding:16px;background:var(--bg);border-radius:var(--radius-lg)}
.price-stat-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.price-stat-icon.blue{background:#DBEAFE;color:#2563EB}
.price-stat-icon.green{background:#D1FAE5;color:#10B981}
.price-stat-icon.orange{background:#FED7AA;color:#F59E0B}
.price-stat-icon.red{background:#FEE2E2;color:#EF4444}
.price-stat-icon.purple{background:#EDE9FE;color:#7C3AED}
.price-stat-info h4{font-size:22px;font-weight:700;line-height:1}
.price-stat-info p{font-size:12px;color:var(--gray);margin-top:4px}
.price-table-wrapper{padding:20px 24px}
.price-category-card{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}
.price-category-header{padding:14px 20px;background:linear-gradient(135deg,#1E3A5F 0%,#2563EB 100%);color:#fff;display:flex;align-items:center;justify-content:space-between}
.price-category-header h3{font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px}
.price-category-count{font-size:12px;opacity:.8}
.price-table-scroll{overflow-x:auto}
.price-table{width:100%;border-collapse:collapse;min-width:800px}
.price-table th{background:#F1F5F9;padding:12px 14px;text-align:left;font-size:12px;font-weight:600;color:#475569;border-bottom:2px solid #E2E8F0;white-space:nowrap}
.price-table td{padding:11px 14px;border-bottom:1px solid #F1F5F9;font-size:13px}
.price-table tr:hover{background:#F8FAFC}
.price-table tr.alt-row{background:#FAFBFC}
.price-highlight{color:#DC2626;font-weight:600;font-size:14px}
.b-add{color:#2563EB;font-weight:600;font-size:13px}
.appearance-fee{color:#D97706;font-weight:500}
.trend-text{font-size:12px;color:#64748B;max-width:200px;display:block}
.price-footer-note{display:flex;align-items:flex-start;gap:8px;padding:16px 24px;background:var(--white);border-top:1px solid var(--gray-light);color:var(--gray);font-size:12px}
.price-footer-note i{margin-top:2px;flex-shrink:0}

/* ===== 业绩核算 ===== */
.performance-page{padding:0}
.performance-table .income{color:#2563EB;font-weight:500}
.performance-table .cost{color:#F59E0B;font-weight:500}
.performance-table .profit-positive{color:#10B981;font-weight:600}
.performance-table .profit-negative{color:#EF4444;font-weight:600}
.profit-rate-badge{padding:3px 10px;border-radius:12px;font-size:12px;font-weight:500}
.profit-rate-badge.high{background:#D1FAE5;color:#059669}
.profit-rate-badge.medium{background:#DBEAFE;color:#2563EB}
.profit-rate-badge.low{background:#FEF3C7;color:#D97706}
.calc-preview{background:#F8FAFC;border-radius:var(--radius);padding:16px}
.calc-preview-row{display:flex;justify-content:space-between;padding:6px 0;font-size:14px;border-bottom:1px dashed #E2E8F0}
.calc-preview-row:last-child{border-bottom:none}
.calc-preview-row.total{padding-top:10px;margin-top:6px;border-top:2px solid #E2E8F0;border-bottom:none;font-weight:600;font-size:15px}
.calc-preview-row .income{color:#2563EB;font-weight:500}
.calc-preview-row .cost{color:#F59E0B;font-weight:500}
.calc-preview-row .profit.positive{color:#10B981;font-weight:700}
.calc-preview-row .profit.negative{color:#EF4444;font-weight:700}
.profit-breakdown{padding:8px 0}
.profit-breakdown-item{display:flex;align-items:center;gap:12px;padding:8px 0}
.profit-breakdown-label{width:80px;font-size:13px;font-weight:500;display:flex;align-items:center;gap:6px;flex-shrink:0}
.profit-breakdown-bar-wrap{flex:1;height:10px;background:#E2E8F0;border-radius:5px;overflow:hidden}
.profit-breakdown-bar{height:100%;border-radius:5px;transition:.3s}
.profit-breakdown-value{width:100px;text-align:right;font-size:14px;font-weight:600;flex-shrink:0}

/* ===== 平台聊天 ===== */
.chat-page{padding:0;height:calc(100vh - var(--topbar-h) - var(--tabbar-h))}
.chat-container{display:flex;height:100%;position:relative}
.chat-sidebar{width:280px;background:var(--white);border-right:1px solid var(--gray-light);display:flex;flex-direction:column;flex-shrink:0}
.chat-sidebar-header{padding:16px 20px;border-bottom:1px solid var(--gray-light);display:flex;align-items:center;gap:10px}
.chat-sidebar-header h3{font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px;flex:1}
.chat-total-unread{min-width:18px;height:18px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;padding:0 5px}
.chat-conv-list{flex:1;overflow-y:auto}
.chat-conv-item{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:.2s;border-bottom:1px solid #F8FAFC;position:relative}
.chat-conv-item:hover{background:#F8FAFC}
.chat-conv-item.active{background:var(--primary-light)}
/* 会话待办标记：左侧橙色条 + 浅橙底 */
.chat-conv-item.todo{background:#FFFBEB}
.chat-conv-item.todo:hover{background:#FEF3C7}
.chat-conv-item.todo.active{background:#FEF3C7}
.chat-conv-item.todo::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#F59E0B}
.chat-todo-tag{font-size:10px;background:#FEF3C7;color:#D97706;padding:1px 6px;border-radius:8px;margin-left:6px;flex-shrink:0;font-weight:500}
.chat-todo-btn{width:26px;height:26px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#D1D5DB;background:none;border:none;cursor:pointer;font-size:12px;flex-shrink:0;transition:.2s}
.chat-todo-btn:hover{background:#FEF3C7;color:#D97706}
.chat-todo-btn.on{color:#D97706;background:#FEF3C7}
/* 消息中心头部「待办」筛选按钮 */
.chat-todo-filter{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:12px;background:#F8FAFC;color:var(--gray);font-size:12px;border:1px solid var(--gray-light);cursor:pointer;transition:.2s;flex-shrink:0}
.chat-todo-filter:hover{border-color:#F59E0B;color:#D97706}
.chat-todo-filter.on{background:#FEF3C7;border-color:#F59E0B;color:#D97706}
.chat-todo-count{min-width:15px;height:15px;border-radius:8px;background:#F59E0B;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;padding:0 4px}
.chat-todo-filter.on .chat-todo-count{background:#D97706}
.chat-conv-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:14px;flex-shrink:0}
.chat-conv-info{flex:1;min-width:0}
.chat-conv-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}
.chat-conv-top strong{font-size:14px;font-weight:500}
.chat-conv-time{font-size:11px;color:var(--gray);flex-shrink:0;margin-left:6px}
.chat-conv-bottom{display:flex;align-items:center;justify-content:space-between}
.chat-conv-msg{font-size:12px;color:var(--gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:160px}
.chat-conv-unread{min-width:16px;height:16px;border-radius:8px;background:var(--danger);color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;padding:0 4px;flex-shrink:0}
.chat-sidebar-footer{padding:12px 16px;border-top:1px solid var(--gray-light)}
.chat-main{flex:1;display:flex;flex-direction:column;background:var(--bg);position:relative}
.chat-empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--gray);text-align:center;padding:40px}
.chat-empty-state i{font-size:48px;margin-bottom:16px;opacity:.3}
.chat-empty-state h4{font-size:16px;font-weight:500;color:var(--dark-2);margin-bottom:6px}
.chat-empty-state p{font-size:13px}
.chat-window{display:flex;flex-direction:column;height:100%}
.chat-window-header{padding:12px 20px;background:var(--white);border-bottom:1px solid var(--gray-light);display:flex;align-items:center;justify-content:space-between}
.chat-window-user{display:flex;align-items:center;gap:12px}
.chat-user-status{font-size:12px;color:var(--gray);display:flex;align-items:center;gap:4px;margin-left:4px}
.chat-header-btn{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--gray);background:none;transition:.2s;border:none;cursor:pointer}
.chat-header-btn:hover{background:var(--bg);color:var(--dark)}
.chat-header-btn.on{background:var(--primary);color:#fff}
.chat-header-btn.on:hover{background:var(--primary);color:#fff}
.chat-window-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
.chat-sidebar-header .chat-header-btn{flex-shrink:0}
.chat-back-btn{display:none;width:32px;height:32px;border-radius:8px;align-items:center;justify-content:center;color:var(--gray);background:none;border:none;cursor:pointer;margin-right:4px}
.chat-back-btn:hover{background:var(--bg);color:var(--dark)}
.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}
.chat-message-row{display:flex;gap:10px;max-width:80%;align-items:flex-end}
.chat-message-row.me{align-self:flex-end;flex-direction:row}
.chat-message-row.other{align-self:flex-start}
.chat-msg-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:12px;flex-shrink:0}
.chat-msg-content{display:flex;flex-direction:column;gap:3px;max-width:calc(100% - 42px)}
.chat-msg-bubble{padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;word-break:break-word}
.chat-msg-bubble.me{background:var(--primary);color:#fff;border-bottom-right-radius:4px}
.chat-msg-bubble.other{background:var(--white);color:var(--dark);border:1px solid var(--gray-light);border-bottom-left-radius:4px}
.chat-msg-meta{font-size:11px;color:var(--gray)}
.chat-msg-meta.me{text-align:right}
/* 通话记录系统消息：居中灰条（全员可见的通话记录） */
.chat-message-row.system{max-width:100%;justify-content:center;align-items:center}
.chat-msg-call{display:inline-flex;align-items:center;gap:7px;padding:6px 16px;border-radius:16px;background:var(--gray-light);color:var(--gray);font-size:12px;line-height:1.4;max-width:92%;text-align:center;box-sizing:border-box}
.chat-msg-call i{font-size:11px;opacity:.85}
.chat-input-area{padding:12px 20px;background:var(--white);border-top:1px solid var(--gray-light)}
.chat-input-wrap{display:flex;align-items:center;gap:10px}
.chat-input-wrap input{flex:1;padding:10px 14px;border:1.5px solid var(--gray-light);border-radius:20px;font-size:14px;transition:.2s}
.chat-input-wrap input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}
.chat-send-btn{width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;transition:.2s;flex-shrink:0}
.chat-send-btn:hover{background:var(--primary-dark);transform:scale(1.05)}
.chat-user-list{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.chat-user-select{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 16px;border:2px solid var(--gray-light);border-radius:var(--radius);cursor:pointer;transition:.2s;min-width:80px}
.chat-user-select:hover{border-color:var(--primary);background:var(--primary-light)}
/* 实时在线绿点（会话列表/聊天窗口/新建会话弹窗头像） */
.chat-conv-avatar{position:relative}
.chat-conv-avatar.online::after{content:'';position:absolute;bottom:0;right:0;width:11px;height:11px;border-radius:50%;background:var(--success);border:2px solid var(--white)}
/* 全部已读按钮 */
.chat-mark-all{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:12px;background:var(--primary-light);color:var(--primary);font-size:12px;border:none;cursor:pointer;transition:.2s;flex-shrink:0}
.chat-mark-all:hover{background:var(--primary);color:#fff}
/* 消息已读/未读状态标签（✓未读灰底 / ✓✓已读蓝底，收到的消息同样显示） */
.chat-msg-read{font-size:11px;font-weight:600;color:var(--gray);margin-left:6px;padding:1px 6px;border-radius:8px;background:#F1F5F9;display:inline-flex;align-items:center;gap:2px}
.chat-msg-read.read{color:#2563EB;background:#DBEAFE}

/* ===== 工具类 ===== */
.text-center{text-align:center}
.text-right{text-align:right}
.mt-8{margin-top:8px}
.mt-16{margin-top:16px}
.mt-24{margin-top:24px}
.mb-8{margin-bottom:8px}
.mb-16{margin-bottom:16px}
.mb-24{margin-bottom:24px}
.flex{display:flex}
.flex-between{display:flex;justify-content:space-between;align-items:center}
.gap-8{gap:8px}
.gap-12{gap:12px}
.gap-16{gap:16px}
.fw-600{font-weight:600}
.text-gray{color:var(--gray)}
.text-sm{font-size:13px}
.text-xs{font-size:12px}

/* ===== 用户下拉菜单(点击) ===== */
.user-dropdown-open{opacity:1;visibility:visible;transform:translateY(0)}

/* ===== 注册表单 ===== */
.input-wrapper select{width:100%;border:none;background:transparent;padding:12px 12px 12px 40px;outline:none;font-size:14px;color:var(--dark-2);height:44px;line-height:20px;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.input-wrapper select option{color:var(--dark-2)}

/* ===== 人力资源模块 ===== */
.hr-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hr-filter-select{width:130px;flex-shrink:0}
.hr-search-input{width:200px}
.hr-table-wrap{overflow-x:auto}
.hr-table{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}
.hr-table th{background:var(--bg);font-weight:600;font-size:13px;color:var(--gray);text-align:left;padding:12px 16px;border-bottom:1px solid var(--gray-light);white-space:nowrap}
.hr-table td{padding:12px 16px;border-bottom:1px solid var(--gray-light);vertical-align:middle}
.hr-table tbody tr:hover{background:var(--bg)}
.hr-user-cell{display:flex;align-items:center;gap:10px}
.hr-user-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:15px;flex-shrink:0}
.hr-user-name{font-weight:600;font-size:14px;display:flex;align-items:center;gap:6px}
.hr-user-meta{font-size:12px;color:var(--gray);margin-top:2px}
.hr-dept-tag{display:inline-block;padding:3px 10px;border-radius:20px;background:#F1F5F9;color:#475569;font-size:12px}
.hr-role-tag{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;font-weight:500}
.hr-role-super{background:#EDE9FE;color:#7C3AED}
.hr-role-admin{background:#DBEAFE;color:#2563EB}
.hr-role-staff{background:#D1FAE5;color:#059669}
.hr-status-tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:3px 8px;border-radius:20px}
.hr-status-tag i{font-size:8px}
.hr-status-on{background:#D1FAE5;color:#059669}
.hr-status-off{background:#F1F5F9;color:#94A3B8}
.hr-status-pending{background:#FEF3C7;color:#D97706}
.hr-actions{display:flex;gap:6px;flex-wrap:wrap}
.hr-actions .btn{padding:5px 10px;font-size:12px}
.hr-actions .btn:hover{transform:translateY(-1px)}
.hr-act-label{white-space:nowrap}
.hr-actions-col{min-width:120px}

/* 聊天联系人角色角标 */
.chat-user-role{display:block;font-size:10px;color:var(--gray);font-style:normal;margin-top:2px}
.chat-user-role.online{color:var(--success)}
.chat-user-select em{font-style:normal}

/* 人力资源移动端适配 */
@media(max-width:768px){
    .hr-search-input{width:100%;margin-top:4px}
    .hr-toolbar .btn{margin-left:auto}
    .hr-table{min-width:640px}
    .hr-act-label{display:none}
    .hr-actions .btn{padding:6px 10px}
}
@media(max-width:480px){
    .hr-filter-select{width:100%}
}

/* ===== 聊天工具栏（图片/定位） ===== */
.chat-toolbar{display:flex;gap:6px;margin-bottom:8px}
.chat-tool-btn{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--gray);background:#F1F5F9;border:none;cursor:pointer;transition:.2s;font-size:14px;flex-shrink:0}
.chat-tool-btn:hover{background:var(--primary-light);color:var(--primary)}
.chat-tool-btn:active{transform:scale(.95)}

/* ===== 图片消息 ===== */
.chat-msg-bubble.chat-msg-image-wrap{padding:4px;line-height:0;overflow:hidden}
.chat-msg-image{max-width:220px;max-height:260px;border-radius:10px;display:block;cursor:pointer;object-fit:cover;transition:opacity .2s;background:var(--bg)}
.chat-msg-image:hover{opacity:.88}

/* ===== 位置消息卡片 ===== */
.chat-msg-bubble.chat-msg-location{padding:0;background:#fff;color:var(--dark);min-width:200px;max-width:240px;overflow:hidden;border:1px solid var(--gray-light)}
.chat-msg-location .loc-body{display:flex;align-items:center;gap:10px;padding:12px 14px}
.chat-msg-location .loc-icon{width:38px;height:38px;border-radius:50%;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.chat-msg-location .loc-info{flex:1;min-width:0}
.chat-msg-location .loc-info strong{font-size:14px;font-weight:600;display:block;color:var(--dark)}
.chat-msg-location .loc-info span{font-size:11px;color:var(--gray);display:block;margin-top:2px;font-family:monospace}
.chat-msg-location .loc-open{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px;font-size:12px;font-weight:500;border-top:1px solid var(--gray-light);background:#F8FAFC;color:var(--primary);text-decoration:none;transition:.2s}
.chat-msg-location .loc-open:hover{background:var(--primary-light)}

/* ===== 文件消息 ===== */
.chat-msg-bubble.chat-msg-file{padding:0;background:#fff;color:var(--dark);min-width:200px;max-width:260px;overflow:hidden;border:1px solid var(--gray-light)}
.chat-msg-file .file-body{display:flex;align-items:center;gap:10px;padding:12px 14px}
.chat-msg-file .file-icon{width:38px;height:38px;border-radius:8px;background:#FEF3C7;color:#D97706;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.chat-msg-file .file-info{flex:1;min-width:0}
.chat-msg-file .file-info strong{font-size:13px;font-weight:600;display:block;color:var(--dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-msg-file .file-info span{font-size:11px;color:var(--gray);display:block;margin-top:2px}
.chat-msg-file .file-download{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px;font-size:12px;font-weight:500;border-top:1px solid var(--gray-light);background:#F8FAFC;color:var(--primary);text-decoration:none;transition:.2s}
.chat-msg-file .file-download:hover{background:var(--primary-light)}
.chat-msg-bubble.me.chat-msg-file{background:#fff}
.chat-msg-bubble.me.chat-msg-file .file-download{background:#EFF6FF}

/* ===== 拖拽区域高亮 ===== */
.chat-drop-active{outline:2px dashed var(--primary);outline-offset:-4px;background:rgba(37,99,235,0.04)}

/* ===== 图片预览弹窗 ===== */
.modal-image-preview{max-width:640px}
.modal-img-body{padding:0;background:#0F172A;display:flex;align-items:center;justify-content:center;max-height:70vh;overflow:auto}
.modal-img-body img{max-width:100%;max-height:70vh;display:block}

/* ===== 移动端适配 ===== */
@media(max-width:480px){
    .chat-msg-image{max-width:170px;max-height:210px}
    .chat-msg-bubble.chat-msg-location{min-width:170px;max-width:200px}
    .chat-tool-btn{width:32px;height:32px}
}

/* ===== 客户资料附件 ===== */
.att-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-bottom:20px}
.att-item{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;border:1px solid var(--gray-light);border-radius:var(--radius);background:#fff;text-decoration:none;transition:.2s;overflow:hidden}
.att-item:hover{border-color:var(--primary);box-shadow:0 2px 8px rgba(37,99,235,.12)}
.att-thumb{width:72px;height:72px;object-fit:cover;border-radius:6px;background:var(--bg)}
.att-ico{font-size:30px;padding:14px 0}
.att-name{font-size:11px;color:var(--dark-2);text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-all}

/* ===== AI外呼 v9 升级样式 ===== */
.call-page-wrap{display:flex;flex-direction:column;gap:14px;height:calc(100vh - var(--topbar-h) - var(--tabbar-h) - 48px)}
.call-page-wrap .call-center{flex:1;min-height:0}
.call-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow)}
.call-toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.call-toolbar-right{display:flex;align-items:center;gap:6px}
.toolbar-label{font-size:13px;color:var(--gray);display:flex;align-items:center;gap:4px}
.toolbar-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;font-weight:700;margin-left:4px}
.btn-warning{background:#F59E0B;color:#fff}
.btn-warning:hover{background:#D97706}
.filter-input{padding:8px 12px;border:1.5px solid var(--gray-light);border-radius:var(--radius);font-size:13px;outline:none}
.filter-input:focus{border-color:var(--primary)}
.call-item-blocked{opacity:.62}
.call-item-blocked .call-item-phone{color:var(--danger)}

/* 六档分级按钮 */
.grading-buttons-6{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.grading-buttons-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.grade-d{background:#EDE9FE;color:#7C3AED;border-color:#DDD6FE}
.grade-e{background:#E2E8F0;color:#64748B;border-color:#CBD5E1}
.grade-f{background:#334155;color:#E2E8F0;border-color:#475569}
.grade-hang{background:#F1F5F9;color:#94A3B8;border-color:#E2E8F0}
.grading-btn.recommended{outline:3px solid var(--primary);outline-offset:2px}
.ai-hint{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;background:var(--white);color:var(--gray);padding:4px 10px;border-radius:14px;border:1px dashed var(--primary)}
.ai-hint b{font-size:14px}
.level-D{background:#EDE9FE;color:#7C3AED;font-weight:600}
.level-E{background:#E2E8F0;color:#64748B;font-weight:600}
.level-F{background:#334155;color:#F1F5F9;font-weight:600}
.btn-danger{background:var(--danger);color:#fff}
.btn-danger:hover{background:#DC2626}

/* 意向分布条形图 */
.intent-bars{display:flex;flex-direction:column;gap:8px}
.intent-row{display:flex;align-items:center;gap:10px}
.intent-label{width:64px;font-size:12px;color:var(--gray);text-align:right;flex-shrink:0}
.intent-track{flex:1;height:16px;background:var(--bg);border-radius:8px;overflow:hidden}
.intent-fill{height:100%;border-radius:8px;transition:width .5s;min-width:2px}
.fill-a{background:#DC2626}
.fill-b{background:#D97706}
.fill-c{background:#2563EB}
.fill-d{background:#7C3AED}
.fill-e{background:#94A3B8}
.fill-f{background:#334155}
.fill-gray{background:#CBD5E1}
.intent-num{width:36px;font-size:12px;font-weight:600;color:var(--dark);flex-shrink:0}

/* 外呼设置页 */
.settings-tabs{display:flex;gap:8px;margin-bottom:16px;background:var(--white);padding:8px;border-radius:var(--radius-lg);box-shadow:var(--shadow);width:fit-content;max-width:100%;overflow-x:auto}
.settings-tab{display:flex;align-items:center;gap:6px;padding:9px 18px;border-radius:var(--radius);font-size:14px;font-weight:500;color:var(--gray);background:transparent;transition:.2s;white-space:nowrap}
.settings-tab:hover{background:var(--bg)}
.settings-tab.active{background:var(--primary);color:#fff}
.script-card{border:1px solid var(--gray-light);border-radius:var(--radius-lg);padding:14px;background:#fff;transition:.2s}
.script-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}
.script-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.script-node-header{display:flex;gap:8px;padding:8px 10px;background:var(--bg);border-radius:var(--radius);font-size:12px;color:var(--gray);font-weight:500}
.script-nodes{display:flex;flex-direction:column;gap:8px;margin-top:8px;max-height:52vh;overflow-y:auto;padding-right:4px}
.script-node-row{display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--gray-light);border-radius:var(--radius);background:#fff}
.script-node-row:hover{border-color:var(--primary)}
.script-node-row textarea{font-size:13px;line-height:1.5}

/* 移动端适配 */
@media (max-width:768px){
    .call-page-wrap{height:auto;min-height:calc(100vh - var(--topbar-h) - var(--tabbar-h) - 40px)}
    .grading-buttons-6{grid-template-columns:repeat(3,1fr)}
    .grading-buttons-3{grid-template-columns:repeat(3,1fr)}
    .script-node-header{display:none}
    .script-node-row{flex-wrap:wrap}
    .script-node-row .form-control,.script-node-row .filter-select{width:100%!important}
    .script-node-row>div{width:100%;justify-content:flex-start}
    .intent-label{width:52px}
}

/* ===== 权限只读提示（业绩核算/合同信息记录 非超管浏览态） ===== */
.perf-readonly-tip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--gray);background:#F1F5F9;border:1px dashed #CBD5E1;border-radius:8px;padding:8px 12px}

/* ===== 平台安全：日志类型徽标 ===== */
.sec-type-tag{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;white-space:nowrap}
.sec-login{background:#DBEAFE;color:#1D4ED8}
.sec-away{background:#FEE2E2;color:#B91C1C}
.sec-back{background:#D1FAE5;color:#047857}
.sec-blur{background:#FEF3C7;color:#B45309}
.sec-focus{background:#E0E7FF;color:#4338CA}
.sec-active{background:#F1F5F9;color:#475569}
.sec-logout{background:#FCE7F3;color:#BE185D}
.sec-screen{background:#FEE2E2;color:#DC2626;border:1px solid #FECACA}
.sec-record{background:#EDE9FE;color:#7C3AED;border:1px solid #DDD6FE}
.sec-crawler{background:#1E1B4B;color:#FCA5A5;border:1px solid #4338CA;font-weight:700}
.sec-location{background:#FEF3C7;color:#B45309;border:1px solid #FCD34D;font-weight:600}
.sec-alert{background:#FEF2F2;color:#B91C1C;border:1px solid #F87171;font-weight:700}
.sec-log-table td{vertical-align:middle;padding:9px 12px;font-size:12.5px}
.sec-log-table th{font-size:12px;white-space:nowrap}

/* ===== 受限部门只读观看模式（测试部门/人才/客户部） ===== */
.readonly-banner{
    display:flex;align-items:center;gap:8px;flex-wrap:wrap;
    padding:8px 14px;margin:0 0 12px;border-radius:8px;
    background:#FEFCE8;border:1px solid #FDE047;color:#854D0E;
    font-size:12.5px;
}
.readonly-banner i{color:#CA8A04}
.readonly-banner strong{color:#A16207;font-weight:700}

/* ===== 全国报价平台 v2：补贴滚动 + 32省份 + 人才评估 ===== */

/* 补贴实时滚动区 */
.subsidy-ticker-section{background:linear-gradient(135deg,#1E3A5F 0%,#1a2a4a 100%);border-radius:var(--radius-lg);margin:0 0 20px;overflow:hidden;box-shadow:0 4px 20px rgba(30,58,95,.25)}
.subsidy-ticker-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:rgba(0,0,0,.2);flex-wrap:wrap;gap:8px}
.ticker-title-group{display:flex;align-items:center;gap:12px}
.ticker-title-group h3{font-size:15px;font-weight:600;color:#fff;display:flex;align-items:center;gap:8px;margin:0}
.ticker-title-group h3 i{color:#FBBF24}
.ticker-live-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:rgba(239,68,68,.2);color:#FCA5A5;font-size:11px;font-weight:600}
.live-dot{width:8px;height:8px;border-radius:50%;background:#EF4444;animation:livePulse 1.5s ease-in-out infinite}
@keyframes livePulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)}}
.ticker-stat{font-size:12px;color:rgba(255,255,255,.7)}
.ticker-stat strong{color:#FBBF24;font-size:14px}
.subsidy-ticker-body{height:280px;overflow-y:auto;padding:8px 16px;scroll-behavior:smooth}
.subsidy-ticker-body::-webkit-scrollbar{width:4px}
.subsidy-ticker-body::-webkit-scrollbar-track{background:transparent}
.subsidy-ticker-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:2px}
.subsidy-ticker-item{display:flex;align-items:center;gap:10px;padding:8px 12px;margin-bottom:4px;border-radius:8px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.9);font-size:13px;transition:background .2s}
.subsidy-ticker-item:hover{background:rgba(255,255,255,.12)}
.ticker-animate-in{animation:tickerSlideIn .4s ease}
@keyframes tickerSlideIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.ticker-num{font-size:10px;color:rgba(255,255,255,.4);font-family:monospace;min-width:60px}
.ticker-icon{color:#FBBF24;font-size:14px}
.ticker-name{font-weight:600;color:#93C5FD;min-width:40px}
.ticker-action{color:rgba(255,255,255,.6);font-size:12px}
.ticker-amount{font-weight:700;color:#FBBF24;font-size:15px;margin-left:auto}
.ticker-time{font-size:10px;color:rgba(255,255,255,.3);font-family:monospace}

/* 省份选择区 */
.province-section{padding:0 0 20px}
.province-section-header{text-align:center;margin-bottom:24px}
.province-section-header h3{font-size:18px;font-weight:600;color:var(--dark-1);display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:6px}
.province-section-header p{font-size:13px;color:var(--gray)}
.province-grid{display:flex;flex-direction:column;gap:20px}
.province-region-group{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}
.province-region-title{padding:10px 20px;background:linear-gradient(135deg,#F1F5F9 0%,#E2E8F0 100%);font-size:13px;font-weight:700;color:#475569;letter-spacing:2px}
.province-cards-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;padding:16px 20px}
.province-card{display:flex;align-items:center;gap:10px;padding:14px 16px;background:linear-gradient(135deg,#F8FAFC 0%,#F1F5F9 100%);border-radius:var(--radius);cursor:pointer;transition:all .25s;border:2px solid transparent;position:relative;overflow:hidden}
.province-card:hover{background:linear-gradient(135deg,#DBEAFE 0%,#EFF6FF 100%);border-color:#3B82F6;transform:translateY(-2px);box-shadow:0 4px 12px rgba(59,130,246,.2)}
.province-abbr{width:36px;height:36px;border-radius:8px;background:linear-gradient(135deg,#1E3A5F 0%,#2563EB 100%);color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0;transition:all .25s}
.province-card:hover .province-abbr{background:linear-gradient(135deg,#2563EB 0%,#3B82F6 100%);transform:scale(1.1)}
.province-name{font-size:14px;font-weight:600;color:var(--dark-1);flex:1}
.province-enter{color:var(--gray);font-size:12px;transition:all .25s}
.province-card:hover .province-enter{color:#3B82F6;transform:translateX(4px)}

/* 省份详情页头 */
.province-detail-header{display:flex;align-items:center;gap:16px;padding:16px 24px;background:var(--white);border-bottom:1px solid var(--gray-light);flex-wrap:wrap}
.province-detail-title{display:flex;align-items:center;gap:12px;flex:1}
.province-detail-title h2{font-size:18px;font-weight:600;color:var(--dark-1)}
.province-abbr-lg{width:48px;height:48px;border-radius:10px;background:linear-gradient(135deg,#1E3A5F 0%,#2563EB 100%);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}

/* 人才报价评估卡片 */
.talent-assessment-card{background:var(--white);border-radius:var(--radius-lg);box-shadow:0 2px 12px rgba(0,0,0,.08);margin-bottom:20px;overflow:hidden;border:2px solid #3B82F6}
.talent-assessment-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:linear-gradient(135deg,#2563EB 0%,#3B82F6 100%);color:#fff}
.talent-assessment-header h3{font-size:15px;font-weight:600;display:flex;align-items:center;gap:8px;margin:0}
.tag-blue{background:rgba(255,255,255,.2);color:#fff;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600}
.talent-assessment-body{padding:20px}
.talent-form-row{margin-bottom:16px}
.talent-form-row label{display:block;font-size:13px;font-weight:600;color:var(--dark-2);margin-bottom:6px}
.talent-form-row select{width:100%;padding:10px 12px;border:1px solid var(--gray-light);border-radius:var(--radius);font-size:14px;background:var(--white);cursor:pointer;transition:border .2s}
.talent-form-row select:focus{outline:none;border-color:#3B82F6;box-shadow:0 0 0 3px rgba(59,130,246,.1)}
.talent-conditions{margin-bottom:16px}
.talent-conditions-title{font-size:13px;font-weight:600;color:var(--dark-2);margin-bottom:10px}
.talent-checkbox-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.talent-checkbox{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--bg);border-radius:var(--radius);cursor:pointer;transition:all .2s;border:1px solid transparent;font-size:13px}
.talent-checkbox:hover{background:#EFF6FF;border-color:#93C5FD}
.talent-checkbox input{width:18px;height:18px;accent-color:#2563EB;cursor:pointer}
.talent-checkbox span{color:var(--dark-2)}
.talent-checkbox input:checked + span{color:#1D4ED8;font-weight:600}

/* 报价结果 */
.talent-quote-result{margin-top:8px}
.talent-quote-hint{text-align:center;color:var(--gray);font-size:13px;padding:20px}
.talent-quote-result-inner{background:linear-gradient(135deg,#F0FDF4 0%,#F0F9FF 100%);border-radius:var(--radius);padding:20px;border:1px solid #D1FAE5}
.talent-quote-summary{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:8px}
.talent-quote-major{font-size:15px;font-weight:700;color:var(--dark-1)}
.talent-quote-multiplier{font-size:13px;color:var(--gray)}
.talent-quote-multiplier strong{color:#2563EB;font-size:16px}
.talent-quote-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.talent-quote-item{background:var(--white);border-radius:var(--radius);padding:14px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.quote-label{font-size:12px;color:var(--gray);margin-bottom:6px}
.quote-value{font-size:16px;font-weight:700}
.quote-green{color:#059669}
.quote-blue{color:#2563EB}
.quote-orange{color:#F59E0B}
.talent-conditions-applied{margin-top:14px;padding-top:14px;border-top:1px dashed var(--gray-light)}
.talent-conditions-applied p{font-size:12px;color:var(--gray);margin-bottom:8px}
.talent-condition-tags{display:flex;flex-wrap:wrap;gap:6px}
.talent-condition-tag{display:inline-block;padding:4px 10px;border-radius:999px;background:#DBEAFE;color:#1D4ED8;font-size:12px;font-weight:500}
.talent-condition-tag strong{color:#1E3A5F}

/* 移动端适配 */
@media(max-width:768px){
    .subsidy-ticker-body{height:200px}
    .subsidy-ticker-item{font-size:12px;padding:6px 10px;gap:6px}
    .ticker-amount{font-size:13px}
    .province-cards-row{grid-template-columns:repeat(2,1fr);gap:8px;padding:12px}
    .province-card{padding:10px 12px;gap:8px}
    .province-abbr{width:30px;height:30px;font-size:14px}
    .province-name{font-size:13px}
    .talent-checkbox-grid{grid-template-columns:1fr}
    .talent-quote-grid{grid-template-columns:1fr}
    .price-board-header{padding:14px 16px}
    .price-board-header h2{font-size:15px}
    .province-detail-header{padding:12px 16px;gap:10px}
    .province-detail-title h2{font-size:15px}
    .province-abbr-lg{width:40px;height:40px;font-size:18px}
}

/* 小屏手机省份网格单列 */
@media(max-width:480px){
    .province-cards-row{grid-template-columns:1fr}
}

/* ===== 全国报价平台 v3：科技数据中枢风格 ===== */

/* Hero 深空科技区 */
.pb-hero{position:relative;margin:20px 24px 24px;border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#0A1428 0%,#0E1E3E 45%,#132B55 100%);box-shadow:0 10px 36px rgba(10,20,40,.38);border:1px solid rgba(96,165,250,.14)}
.pb-hero-deco{position:absolute;pointer-events:none}
.pb-hero-grid{inset:0;background-image:linear-gradient(rgba(56,189,248,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.055) 1px,transparent 1px);background-size:34px 34px;-webkit-mask-image:radial-gradient(ellipse at 25% 0%,#000 25%,transparent 78%);mask-image:radial-gradient(ellipse at 25% 0%,#000 25%,transparent 78%)}
.pb-hero-glow-1{width:460px;height:460px;top:-180px;right:-90px;background:radial-gradient(circle,rgba(59,130,246,.30) 0%,transparent 65%);filter:blur(12px)}
.pb-hero-glow-2{width:380px;height:380px;bottom:-190px;left:-110px;background:radial-gradient(circle,rgba(34,211,238,.20) 0%,transparent 65%)}
.pb-hero-inner{position:relative;z-index:1;padding:26px 28px 22px}
.pb-hero-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.pb-hero-badge{display:inline-flex;align-items:center;gap:7px;padding:4px 13px;border-radius:999px;border:1px solid rgba(34,211,238,.38);background:rgba(34,211,238,.08);color:#67E8F9;font-size:11px;font-weight:600;letter-spacing:2px;margin-bottom:12px}
.pb-hero-title-group h2{margin:0;font-size:25px;font-weight:700;color:#fff;letter-spacing:1px;line-height:1.3}
.pb-hero-accent{background:linear-gradient(90deg,#38BDF8 0%,#22D3EE 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.pb-hero-sub{margin:9px 0 0;font-size:13px;color:rgba(255,255,255,.58);letter-spacing:1.5px}
/* 全国报价公开外链入口（20260910） */
.pb-hero-acts{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}
.pb-hero-btn{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1);color:#fff;border-radius:10px;padding:9px 16px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s}
.pb-hero-btn:hover{background:#fff;color:#0F2044;border-color:#fff}
.pb-hero-btn i{color:#67E8F9}
.pb-hero-btn:hover i{color:#2563EB}
.pb-hero-btn-sub{font-size:11px;font-weight:400;opacity:.72;margin-left:2px}
.pb-board-link-btn{background:linear-gradient(135deg,#2563EB,#1E40AF);border-color:transparent;color:#fff}
.pb-board-link-btn:hover{filter:brightness(1.08);color:#fff}
@media(max-width:640px){
  .pb-hero-btn-sub{display:none}
  .price-category-header{flex-wrap:wrap;gap:8px}
  .pb-cat-right{width:100%;justify-content:space-between}
}
.pb-hero-stats{display:flex;align-items:stretch;flex-wrap:wrap}
.pb-hero-stat{padding:2px 24px;text-align:center;border-left:1px solid rgba(255,255,255,.10)}
.pb-hero-stat:first-child{border-left:none;padding-left:0}
.pb-hs-num{font-size:27px;font-weight:700;font-family:Consolas,'SF Mono','Courier New',monospace;background:linear-gradient(180deg,#FFFFFF 0%,#93C5FD 100%);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.25;letter-spacing:1px}
.pb-hs-live{font-size:20px;color:#22D3EE;-webkit-text-fill-color:#22D3EE;display:inline-flex;align-items:center;gap:6px}
.pb-hs-live i{font-size:15px;animation:pbBolt 2s ease-in-out infinite}
@keyframes pbBolt{0%,100%{opacity:1}50%{opacity:.4}}
.pb-hs-label{margin-top:5px;font-size:11px;color:rgba(255,255,255,.5);letter-spacing:3px}

/* 补贴滚动区融入 Hero（玻璃拟态） */
.pb-hero .subsidy-ticker-section{background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:14px;margin:0;box-shadow:none;backdrop-filter:blur(4px)}
.pb-hero .subsidy-ticker-header{background:rgba(0,0,0,.18)}
.pb-hero .subsidy-ticker-body{height:240px}

/* 省份区标题（科技眉标） */
.province-section-header .province-eyebrow{display:block;font-size:11px;font-weight:600;color:#0EA5E9;letter-spacing:4px;margin-bottom:6px;font-family:Consolas,'Courier New',monospace}
.province-section-header h3{font-size:19px;font-weight:700;color:var(--dark-1);display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:6px}
.province-section-header h3 i{color:#2563EB}

/* 省份卡片科技光效升级 */
.province-region-group{border:1px solid rgba(148,163,184,.14)}
.province-region-title{padding:9px 20px;background:linear-gradient(90deg,#F8FAFC 0%,#EFF6FF 100%);font-size:12px;font-weight:700;color:#1E40AF;letter-spacing:3px;border-bottom:1px solid rgba(59,130,246,.10);display:flex;align-items:center;gap:8px}
.province-region-title::before{content:'';width:3px;height:12px;border-radius:2px;background:linear-gradient(180deg,#2563EB,#22D3EE)}
.province-card{border:1px solid transparent;background:linear-gradient(135deg,#F8FAFC 0%,#F1F5F9 100%)}
.province-card:hover{background:linear-gradient(135deg,#EFF6FF 0%,#E0F2FE 100%);border-color:#22D3EE;box-shadow:0 6px 18px rgba(34,211,238,.28),0 0 0 1px rgba(34,211,238,.25);transform:translateY(-3px)}
.province-card:hover .province-abbr{background:linear-gradient(135deg,#0EA5E9 0%,#22D3EE 100%);box-shadow:0 0 14px rgba(34,211,238,.55)}
.province-card:hover .province-enter{color:#0891B2}

/* 人才评估卡片：渐变描边高级感 */
.talent-assessment-card{position:relative;border:1.5px solid transparent;background:linear-gradient(var(--white),var(--white)) padding-box,linear-gradient(135deg,#2563EB 0%,#22D3EE 50%,#8B5CF6 100%) border-box;box-shadow:0 6px 26px rgba(37,99,235,.16);margin-bottom:22px}
.talent-assessment-header{background:linear-gradient(120deg,#1E3A8A 0%,#2563EB 55%,#0EA5E9 100%);position:relative;overflow:hidden}
.talent-assessment-header::after{content:'';position:absolute;top:-50%;right:-10%;width:200px;height:200px;background:radial-gradient(circle,rgba(255,255,255,.14) 0%,transparent 70%);pointer-events:none}
.talent-assessment-body{background:linear-gradient(180deg,#F8FAFF 0%,#FFFFFF 30%)}
.talent-checkbox{background:#F8FAFC}
.talent-checkbox:hover{background:#EFF6FF;border-color:#22D3EE}
.talent-quote-result-inner{background:linear-gradient(135deg,#F0FDF4 0%,#F0F9FF 100%);border:1px solid #A7F3D0;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.talent-quote-item{box-shadow:0 2px 8px rgba(0,0,0,.05);border:1px solid rgba(148,163,184,.12)}
.quote-value{font-family:Consolas,'SF Mono','Courier New',monospace;font-size:16.5px;letter-spacing:.5px}

/* 意向合作按钮：发光渐变 CTA（引流转化核心） */
.talent-intent-btn{position:relative;background:linear-gradient(135deg,#2563EB 0%,#0EA5E9 60%,#22D3EE 100%);color:#fff;border:none;border-radius:12px;padding:13px 42px;font-size:15px;font-weight:700;letter-spacing:2px;box-shadow:0 6px 22px rgba(14,165,233,.42);transition:all .25s}
.talent-intent-btn:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(14,165,233,.55)}
.talent-intent-btn::before{content:'';position:absolute;top:0;left:-80%;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);animation:pbShine 3s ease-in-out infinite}
@keyframes pbShine{0%{left:-80%}55%,100%{left:130%}}
.talent-intent-hint{font-size:12px;color:var(--gray);margin-top:9px}

/* 行情表格科技感升级 */
.price-category-card{border:1px solid rgba(148,163,184,.13);box-shadow:0 4px 18px rgba(15,23,42,.07);transition:box-shadow .25s}
.price-category-card:hover{box-shadow:0 8px 26px rgba(37,99,235,.13)}
.price-category-header{background:linear-gradient(120deg,#0F2044 0%,#1E3A8A 60%,#2563EB 100%);padding:13px 20px}
.price-category-header h3{font-size:15px;font-weight:600;letter-spacing:1px}
.price-category-header h3 i{color:#67E8F9}
.price-category-count{background:rgba(255,255,255,.14);padding:2px 10px;border-radius:999px;font-size:11px}
.price-table th{background:#F0F6FF;color:#1E40AF;font-size:11.5px;letter-spacing:1px;text-transform:uppercase;border-bottom:2px solid #BFDBFE}
.price-table td{font-family:Consolas,'SF Mono','Courier New',monospace;font-size:13px}
.price-table td strong{font-family:'Microsoft YaHei','微软雅黑',sans-serif}
.price-highlight{color:#DC2626;font-weight:700;font-size:14px;font-family:Consolas,'SF Mono','Courier New',monospace}
.b-add{font-family:Consolas,'SF Mono','Courier New',monospace}
.appearance-fee{font-family:Consolas,'SF Mono','Courier New',monospace}
.price-table tr:hover{background:#F0F9FF}
.trend-text{display:inline-flex;align-items:center;gap:5px;font-family:'Microsoft YaHei','微软雅黑',sans-serif;font-size:12px;max-width:220px}
.trend-text i{font-size:10px;flex-shrink:0}
.trend-text.trend-up{color:#DC2626}
.trend-text.trend-up i{color:#DC2626}
.trend-text.trend-flat{color:#2563EB}
.trend-text.trend-flat i{color:#2563EB}
.trend-text.trend-down{color:#059669}
.trend-text.trend-down i{color:#059669}

/* 省份详情页头科技化 */
.province-detail-header{border-bottom:1px solid transparent;background:linear-gradient(120deg,#F8FAFF 0%,#EFF6FF 100%)}
.province-abbr-lg{background:linear-gradient(135deg,#0F2044 0%,#2563EB 60%,#22D3EE 100%);box-shadow:0 4px 14px rgba(37,99,235,.35)}
.province-detail-title h2{letter-spacing:1px}

/* 底部声明 */
.price-footer-note{border-top:1px dashed #E2E8F0;background:linear-gradient(180deg,#F8FAFC 0%,#FFFFFF 100%)}

/* v3 移动端适配 */
@media(max-width:768px){
    .pb-hero{margin:12px 12px 16px;border-radius:14px}
    .pb-hero-inner{padding:18px 16px 14px}
    .pb-hero-head{flex-direction:column;align-items:flex-start}
    .pb-hero-title-group h2{font-size:20px}
    .pb-hero-sub{font-size:12px;letter-spacing:1px}
    .pb-hero-stats{width:100%;justify-content:space-between;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
    .pb-hero-stat{padding:0 10px;flex:1;text-align:center}
    .pb-hero-stat:first-child{padding-left:0}
    .pb-hero-stat:last-child{padding-right:0}
    .pb-hs-num{font-size:20px}
    .pb-hs-label{letter-spacing:1.5px;font-size:10px}
    .pb-hero .subsidy-ticker-body{height:190px}
    .province-section-header .province-eyebrow{letter-spacing:2.5px;font-size:10px}
    .province-section-header h3{font-size:16px}
    .trend-text{max-width:150px;font-size:11px}
}
@media(max-width:480px){
    .pb-hero-stat{padding:0 4px}
    .pb-hs-num{font-size:18px}
    .pb-hero-badge{letter-spacing:1px;font-size:10px;padding:3px 9px}
}

/* ==================== 人才合作签约 ==================== */

/* 意向合作按钮区域 */
.talent-intent-section{text-align:center;margin-top:20px;padding-top:16px;border-top:1px dashed var(--gray-light)}
.talent-intent-btn{padding:12px 36px;font-size:15px;font-weight:600}
.talent-intent-hint{font-size:12px;color:var(--gray);margin-top:8px}

/* 意向确认弹窗 */
.tc-intent-info{background:var(--bg);border-radius:8px;padding:16px;margin-bottom:16px}
.tc-intent-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--gray-light)}
.tc-intent-row:last-child{border-bottom:none}
.tc-intent-conditions{margin-bottom:16px}
.tc-intent-conditions p{font-size:13px;color:var(--dark-2);margin-bottom:8px}
.tc-condition-tags{font-size:13px;color:var(--primary)}
.tc-intent-question{text-align:center;padding:20px;background:#EFF6FF;border-radius:8px}
.tc-intent-question i{font-size:32px;color:#2563EB;margin-bottom:8px}
.tc-intent-question p{font-size:15px;font-weight:600;color:#1E3A5F}
.tc-intent-hint{font-size:12px;color:var(--gray);font-weight:400;margin-top:4px}

/* 合同文档样式 */
.tc-document{font-family:'Microsoft YaHei','微软雅黑',sans-serif;font-size:14px;line-height:1.8;color:#000}
.tc-title{text-align:center;font-size:20px;font-weight:700;margin-bottom:8px}
.tc-contract-no{text-align:center;font-size:12px;color:#666;margin-bottom:4px}
.tc-date{text-align:center;font-size:12px;color:#666;margin-bottom:20px}
.tc-parties{display:flex;gap:24px;margin-bottom:20px;padding:16px;background:#F9FAFB;border-radius:8px}
.tc-party{flex:1}
.tc-party h4{font-size:14px;font-weight:600;margin-bottom:8px;color:#1E3A5F}
.tc-party p{font-size:13px;margin-bottom:4px}
.tc-body h4{font-size:14px;font-weight:600;margin:16px 0 8px;color:#1E3A5F}
.tc-body p{font-size:13px;margin-bottom:6px;text-indent:2em}
.tc-price-table{width:100%;border-collapse:collapse;margin:8px 0 12px}
.tc-price-table td{border:1px solid #E5E7EB;padding:8px 12px;font-size:13px}
.tc-price-table td:first-child{background:#F9FAFB;width:40%}
.tc-signature-area{display:flex;gap:24px;margin-top:30px;padding-top:20px;border-top:2px solid #E5E7EB}
.tc-sign-block{flex:1;text-align:center}
.tc-sign-block p{font-size:13px;margin-bottom:8px}
.tc-sign-placeholder{height:80px;border:1px dashed #D1D5DB;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#9CA3AF;font-size:12px}
.tc-signature-img{max-height:80px;max-width:200px}
.tc-stamp-placeholder{height:80px;border:1px dashed #D1D5DB;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#9CA3AF;font-size:12px}
.tc-stamp-done{height:80px;border:1px solid #10B981;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#10B981;font-weight:600}
.tc-stamp-done i{font-size:24px;margin-bottom:4px}
.tc-sign-date{font-size:12px;color:#666;margin-top:4px}

/* 合同弹窗 */
.modal-large{max-width:800px;width:90%;max-height:90vh}
.modal-medium{max-width:550px;width:90%}
.modal-small{max-width:400px;width:90%}
.tc-contract-body{max-height:55vh;overflow-y:auto;padding:20px}
.tc-contract-footer{flex-direction:column;gap:12px;padding:16px 20px}
.tc-sign-section{width:100%}
.tc-sig-label{font-size:13px;font-weight:600;margin-bottom:8px;color:var(--dark-2)}
.tc-sig-canvas-wrap{position:relative;display:inline-block;width:100%}
#tcSigCanvas{width:100%;max-width:400px;height:120px;border:2px dashed #D1D5DB;border-radius:8px;background:#fff;cursor:crosshair;touch-action:none}
.tc-sig-clear{position:absolute;top:8px;right:8px;font-size:12px;padding:4px 8px;background:#F3F4F6;border:none;border-radius:4px;cursor:pointer;color:#6B7280}
.tc-agree-check{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:13px;color:var(--dark-2);cursor:pointer}
.tc-agree-check input{cursor:pointer}

/* 人才合同状态卡片 */
.talent-contract-status-card{background:#fff;border-radius:10px;box-shadow:0 1px 3px rgba(0,0,0,.08);margin-bottom:20px;overflow:hidden}
.tcs-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:linear-gradient(135deg,#EDE9FE 0%,#FAF5FF 100%)}
.tcs-header h3{font-size:15px;font-weight:600;color:#4C1D95;display:flex;align-items:center;gap:8px}
.tcs-status-badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;color:#fff}
.tcs-body{padding:16px 20px}
.tcs-info{padding:12px;background:#FEF3C7;border-radius:8px}
.tcs-info p{font-size:13px;margin-bottom:4px}
.tcs-hint{font-size:12px;color:var(--gray)}
.tcs-success{text-align:center;padding:20px}
.tcs-success-icon{font-size:48px;color:#10B981;margin-bottom:8px}
.tcs-success-title{font-size:18px;font-weight:700;color:#10B981;margin-bottom:8px}
.tcs-success p{font-size:13px;margin-bottom:4px}
.tcs-rejected{padding:12px;background:#FEE2E2;border-radius:8px}
.tcs-rejected p{font-size:13px}
.tcs-reason{font-size:12px;color:#7F1D1D}
.tcs-history{margin-top:16px;padding-top:12px;border-top:1px solid var(--gray-light)}
.tcs-history-title{font-size:12px;color:var(--gray);margin-bottom:8px}
.tcs-history-item{display:flex;justify-content:space-between;padding:6px 0;font-size:12px;cursor:pointer;border-bottom:1px solid var(--gray-light)}
.tcs-history-item:hover{background:var(--bg)}
.tcs-history-no{color:var(--dark-2)}
.tcs-history-status{font-weight:600}

/* 管理层审核弹窗 */
.tc-review-summary{background:#F9FAFB;border-radius:8px;padding:16px;margin-bottom:16px}
.tc-review-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #E5E7EB;font-size:13px}
.tc-review-row:last-child{border-bottom:none}
.tc-review-row span{color:var(--gray)}
.tc-review-sig{margin:16px 0;text-align:center}
.tc-review-sig p{font-size:12px;color:var(--gray);margin-bottom:4px}
.tc-review-sig img{max-height:60px;border:1px solid #E5E7EB;border-radius:4px}
.tc-full-contract{margin-top:16px}
.tc-full-contract summary{cursor:pointer;font-size:13px;color:var(--primary);padding:8px;background:var(--bg);border-radius:6px}
.tc-review-footer{flex-direction:column;gap:12px}
.tc-assign-section{width:100%}
.tc-assign-section label{font-size:13px;font-weight:600;display:block;margin-bottom:6px}
.tc-review-actions{display:flex;gap:10px;justify-content:flex-end;width:100%}

/* 群聊头像样式补充 */
.chat-conv-item .chat-conv-avatar i{display:flex;align-items:center;justify-content:center;width:100%;height:100%}

/* ===== 聘用时间浮层选择器（日历式 1~48 月） ===== */
.ts-period-picker{position:relative}
.ts-period-input-row{display:flex;gap:6px}
.ts-period-input-row .form-control{flex:1;min-width:0}
.ts-period-trigger{flex-shrink:0;padding:0 14px;border:1.5px solid var(--primary);background:var(--primary);color:#fff;border-radius:8px;cursor:pointer;font-size:13px;display:flex;align-items:center;gap:6px;transition:.2s;white-space:nowrap}
.ts-period-trigger:hover{opacity:.88}
.ts-period-popup{position:absolute;top:calc(100% + 6px);right:0;left:auto;z-index:1200;width:min(520px,calc(100vw - 40px));background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.16);padding:14px;max-height:60vh;overflow-y:auto}
.ts-period-popup-head{font-size:12px;color:var(--gray);margin-bottom:8px}
.ts-period-bases{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.ts-period-base{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid #e5e7eb;border-radius:20px;cursor:pointer;font-size:12px;color:var(--dark-2);background:#f8fafc;transition:.15s}
.ts-period-base.active{border-color:var(--primary);background:var(--primary-light);color:var(--primary)}
.ts-period-base input{display:none}
.ts-period-months{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}
.ts-period-month{padding:7px 0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-size:12px;color:var(--dark-2);transition:.15s}
.ts-period-month:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.ts-period-month.active{border-color:var(--primary);background:var(--primary);color:#fff;font-weight:600}
.ts-period-note{margin-top:10px;font-size:11px;color:var(--gray);background:#f8fafc;border-radius:6px;padding:6px 10px}
.ts-period-note b{color:var(--primary)}
.ts-period-fixed{display:flex;flex-direction:column;gap:6px}
.ts-period-fixed-btn{text-align:left;padding:9px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;cursor:pointer;font-size:12px;color:var(--dark-2);transition:.15s}
.ts-period-fixed-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.ts-period-fixed-btn.active{border-color:var(--primary);background:var(--primary);color:#fff;font-weight:600}
.ts-period-popup-foot{margin-top:12px;padding-top:10px;border-top:1px dashed #e5e7eb}
.ts-period-custom-btn{width:100%;padding:8px 0;border:1.5px dashed #d1d5db;background:#fff;color:#6b7280;border-radius:8px;cursor:pointer;font-size:12px;transition:.15s}
.ts-period-custom-btn:hover{border-color:var(--primary);color:var(--primary)}
@media (max-width:576px){
    .ts-period-months{grid-template-columns:repeat(6,1fr)}
    .ts-period-popup{width:calc(100vw - 48px)}
}

/* ===== 微信客户（#340c）在线实时聊天 ===== */
.wx-client .wx-conv-sub{font-size:11px;color:#CBD5E1;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wx-client .wx-acc-tag{display:inline-block;padding:1px 8px;border-radius:10px;background:#ECFDF5;color:#059669;font-size:11px;font-weight:500;flex-shrink:0}
.wx-client .wx-day{display:inline-block;padding:4px 14px;border-radius:14px;background:#F1F5F9;color:#94A3B8;font-size:12px}
.wx-client .wx-st{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:500;padding:1px 7px;border-radius:9px;vertical-align:1px}
.wx-client .wx-st i{font-size:9px}
.wx-client .wx-st.st-queue{color:#D97706;background:#FEF3C7}
.wx-client .wx-st.st-sending{color:#2563EB;background:#DBEAFE}
.wx-client .wx-st.st-sent{color:#059669;background:#D1FAE5}
.wx-client .chat-msg-bubble a.wx-link{color:inherit;text-decoration:underline;word-break:break-all}
.wx-client .chat-msg-bubble.me a.wx-link{color:#fff}
.wx-client .chat-msg-bubble.other a.wx-link{color:#2563EB}
.wx-client .wx-sidebar-tip{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--gray);line-height:1.5}
.wx-client .wx-sidebar-tip i{margin-top:2px;color:var(--success)}
.wx-client .chat-input-area textarea::-webkit-scrollbar{width:4px}
.wx-client .chat-input-area textarea::-webkit-scrollbar-thumb{background:#CBD5E1;border-radius:4px}
.wx-client .chat-conv-item .chat-conv-bottom{margin-bottom:0}
/* ===== 采集器在线状态条（#340c，2026-09-10）===== */
.wx-client .wx-collector-status{margin-bottom:10px;padding:8px 10px;border-radius:8px;
    background:rgba(127,127,127,.06);border:1px solid var(--gray-light);
    display:flex;flex-direction:column;gap:6px}
.wx-client .wx-col-row{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;flex-wrap:wrap}
.wx-client .wx-col-dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto;background:var(--gray);opacity:.5}
.wx-client .wx-col-dot.online{background:#22c55e;opacity:1;box-shadow:0 0 0 3px rgba(34,197,94,.16)}
.wx-client .wx-col-dot.offline{background:#9ca3af;opacity:1}
.wx-client .wx-col-dot.unknown{background:#d1d5db;opacity:1}
.wx-client .wx-col-dev{color:var(--text);font-weight:500;max-width:130px;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wx-client .wx-col-age{color:var(--gray);flex:0 0 auto}
.wx-client .wx-col-acc{font-size:11px;padding:1px 6px;border-radius:10px;
    background:rgba(34,197,94,.12);color:#16a34a;max-width:140px;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wx-client .wx-col-acc.stale{background:rgba(245,158,11,.16);color:#d97706}
.wx-client .wx-col-acc.err{background:rgba(239,68,68,.13);color:#dc2626}
@media(max-width:768px){
    .wx-client .wx-col-dev{max-width:96px}
    .wx-client .wx-col-acc{max-width:110px}
}
@media(max-width:768px){
    .wx-client .wx-conv-sub{display:none}
    .wx-client .chat-window-user strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* RISK_UI_V1：合同风险警报亮灯闪烁 */
@keyframes qyblink{0%,100%{opacity:1;}50%{opacity:.35;}}
/* ===== 桌面端侧边栏自动隐藏（鼠标靠左弹出）SIDEBAR_AUTOHIDE_V1 =====
   需求：左侧菜单栏可向左隐藏，鼠标移到屏幕左边缘时再弹出。
   机制：桌面端（>768px）body 挂 .sidebar-auto → 侧边栏 translateX(-100%) 收起；
        鼠标进入左边缘热区（≤8px）或侧边栏本体 → 加 .sidebar-peek 展开；
        光标离开侧边栏 0.5s 后自动收起。
        .sidebar-pinned = 固定常驻展开（点顶部 ☰ 或贴边把手切换，localStorage 记忆）。
   V2（20260914）：平板也启用（触屏点把手开合/点空白收起）；断点 769→768 与 JS 判定对齐。
   注意：手机（短边<600）一律走原有 overlay 抽屉逻辑，本段互不干扰。 */
.sidebar-edge-handle{display:none}
@media(min-width:768px){
    body.sidebar-auto .main-content{margin-left:0;transition:margin-left .3s}
    /* 自动模式侧边栏宽度固定 240px：移动端断点把 --sidebar-w 设为 0/260，
      固定态正文右移若用 var 会错位，这里统一钉死 */
    body.sidebar-auto .sidebar{width:240px}
    /* 固定展开时恢复经典布局：正文右移，☰ 与面包屑不会被菜单盖住（否则无法取消固定） */
    body.sidebar-auto.sidebar-pinned .main-content{margin-left:240px}
    body.sidebar-auto .sidebar{will-change:transform}
    body.sidebar-auto:not(.sidebar-pinned) .sidebar{transform:translateX(-100%)}
    body.sidebar-auto:not(.sidebar-pinned) .sidebar:hover,
    body.sidebar-auto:not(.sidebar-pinned).sidebar-peek .sidebar{
        transform:translateX(0);box-shadow:var(--shadow-lg)}
    /* 贴边把手：收起时可见，悬停即弹出，点击固定 */
    body.sidebar-auto:not(.sidebar-pinned) .sidebar-edge-handle{
        display:flex;position:fixed;left:0;top:50%;transform:translateY(-50%);
        width:17px;height:76px;align-items:center;justify-content:center;
        background:linear-gradient(180deg,#1E3A8A,#312E81);color:#E0E7FF;
        font-size:12px;border-radius:0 10px 10px 0;cursor:pointer;z-index:99;
        box-shadow:2px 0 10px rgba(0,0,0,.18);opacity:.9;
        transition:width .22s,opacity .22s,color .22s}
    body.sidebar-auto:not(.sidebar-pinned) .sidebar-edge-handle:hover{
        width:24px;opacity:1;color:#fff}
    body.sidebar-auto:not(.sidebar-pinned).sidebar-peek .sidebar-edge-handle{
        opacity:0;pointer-events:none}
    /* 顶部 ☰ 在桌面端变为「固定 / 取消固定」开关，用主色提示其可用 */
    body.sidebar-auto .menu-toggle{color:var(--primary)}
}
/* 触屏（平板）没有 hover：把手加大便于点按 */
@media(min-width:768px) and (hover:none){
    body.sidebar-auto:not(.sidebar-pinned) .sidebar-edge-handle{width:22px;height:96px}
}
