        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        @keyframes highlight {
            0% { background-color: rgba(255, 235, 59, 0.8); }
            100% { background-color: transparent; }
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #1565C0;
            --primary-dark: #0D47A1;
            --primary-light: #42A5F5;
            --secondary: #FFC107;
            --danger: #D32F2F;
            --success: #43A047;
            --warning: #FFA726;
            --info: #1976D2;
            --bg-light: #F0F4F8;
            --bg-card: #FFFFFF;
            --text-primary: #333333;
            --text-secondary: #666666;
            --text-muted: #999999;
            --border: #BBDEFB;
            --shadow: 0 2px 8px rgba(21, 101, 192, 0.1);
        }

        body {
            font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
            background: var(--bg-light);
            color: var(--text-primary);
            height: 100vh;
            overflow: hidden;
        }

        /* 顶部菜单栏 */
        .top-bar {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 50%, #0D47A1 100%);
            color: white;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 15px;
            box-shadow: 0 2px 10px rgba(13, 71, 161, 0.3);
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .app-logo {
            width: 32px;
            height: 32px;
            background: white;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .app-title {
            font-size: 16px;
            font-weight: 600;
        }

        .top-bar-center {
            display: flex;
            gap: 5px;
        }

        .menu-btn {
            background: rgba(255,255,255,0.1);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .menu-btn:hover {
            background: rgba(255,255,255,0.2);
        }

        .top-bar-right {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .top-bar button:focus-visible,
        .call-btn:focus-visible,
        .action-btn:focus-visible,
        .add-btn:focus-visible,
        .menu-btn:focus-visible {
            outline: 2px solid #42A5F5;
            outline-offset: 2px;
        }

        .action-btn {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
        }

        .action-btn:hover {
            background: rgba(255,255,255,0.25);
        }

        /* 主内容区 */
        .main-content {
            display: flex;
            height: calc(100vh - 50px);
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            overscroll-behavior: none;
        }

        /* 左侧客户列表 */
        .left-panel {
            width: 240px;
            background: var(--bg-card);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
        }

        .panel-header {
            padding: 6px;
            border-bottom: 1px solid var(--border);
        }

        .search-box {
            display: flex;
            gap: 6px;
            margin-bottom: 8px;
        }

        .search-input {
            flex: 1;
            padding: 6px 8px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s;
        }

        .search-input:focus {
            border-color: #1565C0;
        }

        .add-btn {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
            border: none;
            padding: 6px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(21, 101, 192, 0.2);
        }

        .filter-tabs {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .filter-tab {
            padding: 3px 8px;
            border: 1px solid var(--border);
            border-radius: 20px;
            font-size: 10px;
            cursor: pointer;
            background: white;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .filter-tab.active {
            background: #1565C0;
            color: white;
            border-color: #1565C0;
        }

        .filter-tab .count {
            background: rgba(0,0,0,0.1);
            padding: 1px 5px;
            border-radius: 10px;
            margin-left: 4px;
            font-size: 10px;
        }

        .filter-tab.active .count {
            background: rgba(255,255,255,0.3);
        }

        .customer-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }

        .customer-item {
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 6px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            background: var(--bg-light);
        }

        .customer-item:hover {
            border-color: #42A5F5;
        }

        .customer-item:focus-visible,
        .filter-tab:focus-visible,
        .stage-tab:focus-visible,
        .tactic-card:focus-visible,
        .attitude-tag:focus-visible,
        .stage-tag:focus-visible {
            outline: 2px solid #42A5F5;
            outline-offset: 2px;
        }

        .customer-item.active {
            border-color: var(--primary);
            background: rgba(21, 101, 192, 0.08);
        }

        .customer-name {
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .customer-phone {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .customer-tags {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }

        .customer-info {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .customer-city, .customer-age {
            margin-right: 8px;
        }

        .tag-gender {
            background: #e3f2fd;
            color: #1976d2;
            font-size: 10px;
        }

        .tag {
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 10px;
        }

        .tag-stage {
            background: #e3f2fd;
            color: #1565c0;
        }

        .tag-intent-high {
            background: #ffebee;
            color: #c62828;
        }

        .tag-intent-medium {
            background: #fff3e0;
            color: #e65100;
        }

        .tag-intent-low {
            background: #f5f5f5;
            color: #616161;
        }

        .panel-footer {
            padding: 12px 15px;
            border-top: 1px solid var(--border);
            background: var(--bg-light);
        }

        .stats-row {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 5px;
        }

        .stats-row:last-child {
            margin-bottom: 0;
        }

        .stats-value {
            font-weight: 600;
            color: var(--text-primary);
        }

        .stats-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .stat-card {
            background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #0D47A1 100%);
            border-radius: 10px;
            padding: 8px 8px;
            text-align: center;
            color: white;
            box-shadow: 0 2px 8px rgba(21, 101, 192, 0.2);
        }

        .stat-card-value {
            font-size: 16px;
            font-weight: 700;
        }

        .stat-card-label {
            font-size: 10px;
            opacity: 0.9;
            margin-top: 2px;
        }

        /* 中间通话区域 */
        .center-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 10px;
            gap: 10px;
            overflow: hidden;
        }

        .call-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-card);
            padding: 10px 15px;
            border-radius: 12px;
            box-shadow: var(--shadow);
        }

        .call-info {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .call-timer-large {
            font-size: 32px;
            font-weight: 800;
            color: #1565C0;
            font-family: "Consolas", monospace;
            line-height: 1;
        }

        .call-status {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .call-timer {
            display: none;
        }

        .call-controls {
            display: flex;
            gap: 10px;
        }

        .call-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .call-btn-start {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
        }

        .call-btn-start:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(21, 101, 192, 0.5);
        }

        .call-btn-end {
            background: linear-gradient(135deg, #78909C 0%, #546E7A 100%);
            color: white;
        }

        .call-btn-end:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 15px rgba(84, 110, 122, 0.4);
        }

        .call-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .transcript-area {
            flex: 1.2;
            background: var(--bg-card);
            border-radius: 12px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            min-height: 200px;
            overflow: hidden;
        }

        .transcript-content,
        .right-panel,
        .customer-list {
            scrollbar-width: thin;
            scrollbar-color: rgba(21, 101, 192, 0.45) transparent;
        }

        .transcript-content::-webkit-scrollbar,
        .right-panel::-webkit-scrollbar,
        .customer-list::-webkit-scrollbar {
            width: 8px;
        }

        .transcript-content::-webkit-scrollbar-thumb,
        .right-panel::-webkit-scrollbar-thumb,
        .customer-list::-webkit-scrollbar-thumb {
            background: rgba(21, 101, 192, 0.35);
            border-radius: 999px;
        }

        .transcript-header {
            padding: 10px 15px;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .recording-indicator {
            width: 10px;
            height: 10px;
            background: #1565C0;
            border-radius: 50%;
            animation: pulse 1s infinite;
        }
        
        .recording-indicator.active {
            background: #D32F2F;
            animation: pulse 0.5s infinite;
        }

        .transcript-actions {
            display: flex;
            gap: 8px;
            margin-left: auto;
        }

        .import-material-btn {
            background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
        }

        .import-material-btn:hover {
            background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
            transform: translateY(-1px);
        }
        
        .export-material-btn {
            background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
        }

        .export-material-btn:hover {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            transform: translateY(-1px);
        }
        
        /* 预判区域 */
        .prediction-area {
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            margin-top: 15px;
            overflow: hidden;
        }
        
        .prediction-header {
            background: linear-gradient(135deg, #7B1FA2 0%, #4A148C 100%);
            color: white;
            padding: 4px 12px;
            font-size: 11px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .prediction-refresh-btn {
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .prediction-refresh-btn:hover {
            background: rgba(255,255,255,0.3);
        }

        /* 一键复制按钮样式 */
        .prediction-copy-btn:hover {
            opacity: 0.9;
            transform: scale(1.02);
        }

        /* 预判项样式增强 */
        .prediction-item {
            position: relative;
            padding: 10px 12px;
            padding-right: 70px;
        }

        .prediction-item .copy-single-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.05);
            border: none;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            cursor: pointer;
            color: #666;
            transition: all 0.2s;
        }

        .prediction-item .copy-single-btn:hover {
            background: rgba(0,0,0,0.1);
            color: #1565C0;
        }

        .prediction-content {
            padding: 12px;
            min-height: 50px;
            max-height: 80px;
            overflow-y: auto;
        }
        
        .prediction-empty {
            text-align: center;
            color: #999;
            font-size: 12px;
            padding: 15px;
        }
        
        .prediction-item {
            background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
            border-left: 3px solid #7B1FA2;
            padding: 10px 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            animation: slideIn 0.3s ease;
        }
        
        .prediction-question {
            font-size: 11px;
            color: #333;
            margin-bottom: 3px;
            display: flex;
            align-items: flex-start;
            gap: 6px;
        }
        
        .prediction-question::before {
            content: '❓';
        }
        
        .prediction-probability {
            font-size: 11px;
            color: #7B1FA2;
            margin-bottom: 5px;
        }
        
        .prediction-suggestion {
            font-size: 12px;
            color: #666;
            background: rgba(255,255,255,0.6);
            padding: 8px;
            border-radius: 6px;
            margin-top: 6px;
        }
        
        .prediction-suggestion::before {
            content: '💡 建议回复：';
            color: #7B1FA2;
            font-weight: 600;
        }
        
        .prediction-copy-btn {
            background: rgba(123, 31, 162, 0.1);
            border: 1px solid rgba(123, 31, 162, 0.3);
            color: #7B1FA2;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
            margin-top: 6px;
            transition: all 0.2s;
        }
        
        .prediction-copy-btn:hover {
            background: rgba(123, 31, 162, 0.2);
        }
        
        /* 转写内容区 */
        .transcript-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: #FAFAFA;
        }
        
        .transcript-line {
            margin-bottom: 12px;
            animation: slideIn 0.3s ease;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .transcript-line.client {
            background: white;
            padding: 12px 15px;
            border-radius: 12px;
            border-left: 4px solid #1565C0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }
        
        .transcript-line.agent {
            background: #E3F2FD;
            padding: 12px 15px;
            border-radius: 12px;
            border-left: 4px solid #0D47A1;
        }
        
        /* 客户对话卡片 - 新增AI答案跟随显示 */
        .transcript-card {
            margin-bottom: 15px;
        }
        
        .transcript-card .client-speech {
            background: white;
            padding: 12px 15px;
            border-radius: 12px;
            border-left: 4px solid #1565C0;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            margin-bottom: 8px;
        }
        
        .transcript-card .ai-answer-block {
            padding-left: 15px;
            border-left: 2px solid #E0E0E0;
            margin-left: 5px;
        }
        
        /* 招商关键词高亮 */
        .keyword-highlight {
            padding: 1px 4px;
            border-radius: 3px;
            font-weight: 600;
            transition: all 0.2s;
        }
        
        .keyword-highlight:hover {
            transform: scale(1.05);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .transcript-card .ai-answer-item {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 10px 12px;
            margin-bottom: 6px;
            border-left: 3px solid;
            animation: fadeIn 0.3s ease;
        }
        
        .transcript-card .ai-answer-item.standard {
            border-left-color: #1976D2;
            background: #E3F2FD;
        }
        
        .transcript-card .ai-answer-item.ai-generated {
            border-left-color: #FF9800;
            background: #FFF3E0;
        }
        
        .transcript-card .ai-answer-item.database {
            border-left-color: #4CAF50;
            background: #E8F5E9;
        }
        
        .transcript-card .ai-answer-label {
            font-size: 10px;
            font-weight: 600;
            color: #666;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .transcript-card .ai-answer-text {
            font-size: 13px;
            line-height: 1.6;
            color: #333;
        }
        
        .transcript-card .copy-answer-btn {
            margin-top: 6px;
            background: rgba(0,0,0,0.05);
            border: none;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
            color: #666;
            transition: all 0.2s;
        }
        
        .transcript-card .copy-answer-btn:hover {
            background: rgba(0,0,0,0.1);
            color: #333;
        }
        
        .speaker-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 6px;
        }
        
        .interim-text {
            color: var(--text-muted);
            font-style: italic;
        }
        
        /* AI答案区域 - 核心重构 */
        .ai-answers-area {
            flex: 1;
            background: var(--bg-card);
            border-radius: 12px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .ai-answers-header {
            padding: 12px 15px;
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        
        .ai-answers-title {
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .ai-answers-controls {
            display: flex;
            gap: 8px;
        }
        
        .ai-control-btn {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.3);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .ai-control-btn:hover {
            background: rgba(255,255,255,0.25);
        }
        
        .ai-answers-body {
            flex: 1;
            overflow-y: auto;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        /* AI答案分类卡片 */
        .ai-answer-card {
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            margin-bottom: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .ai-answer-card:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        }
        
        .ai-answer-card.standard {
            border-color: #1976D2;
            border-left-width: 3px;
        }
        
        .ai-answer-card.standard.has-content {
            background: #E3F2FD;
        }
        
        .ai-answer-card.ai-generated {
            border-color: #FF9800;
            border-left-width: 3px;
        }
        
        .ai-answer-card.ai-generated.has-content {
            background: #FFF3E0;
        }
        
        .ai-answer-card.database {
            border-color: #4CAF50;
            border-left-width: 3px;
        }
        
        .ai-answer-card.database.has-content {
            background: #E8F5E9;
        }
        
        .ai-answer-card.recommended {
            border-color: #E91E63;
            border-left-width: 3px;
        }
        
        .ai-answer-card.recommended.has-content {
            background: #FCE4EC;
        }
        
        .ai-answer-card-header {
            padding: 4px 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .ai-answer-card.standard .ai-answer-card-header {
            background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
            color: white;
        }
        
        .ai-answer-card.ai-generated .ai-answer-card-header {
            background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
            color: white;
        }
        
        .ai-answer-card.database .ai-answer-card-header {
            background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
            color: white;
        }
        
        .ai-answer-card.recommended .ai-answer-card-header {
            background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
            color: white;
        }
        
        .ai-answer-card-label {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 700;
        }
        
        .ai-answer-card.standard .ai-answer-card-label { color: white; }
        .ai-answer-card.ai-generated .ai-answer-card-label { color: white; }
        .ai-answer-card.database .ai-answer-card-label { color: white; }
        .ai-answer-card.recommended .ai-answer-card-label { color: white; }
        
        .ai-answer-card-copy {
            background: rgba(255,255,255,0.3);
            border: none;
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 10px;
            cursor: pointer;
            transition: all 0.2s;
            color: white;
            font-weight: 600;
        }
        
        .ai-answer-card-copy:hover {
            background: rgba(255,255,255,0.5);
            transform: scale(1.05);
        }
        
        .ai-answer-card-body {
            background: white;
            padding: 6px 8px;
            max-height: 80px;
            overflow-y: auto;
            min-height: 30px;
            font-size: 8px;
            line-height: 1.3;
        }
        
        .ai-answer-item {
            padding: 6px 8px;
            margin-bottom: 4px;
            background: #FAFAFA;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            line-height: 1.3;
            font-size: 8px;
            border-left: 3px solid transparent;
        }
        
        .ai-answer-item:last-child {
            margin-bottom: 0;
        }
        
        .ai-answer-item:hover {
            background: #E3F2FD;
            transform: translateX(5px);
            border-left-color: #1976D2;
        }
        
        .ai-answer-item.new-content {
            animation: newContent 0.5s ease;
        }
        
        @keyframes newContent {
            0% { background: #FFF9C4; transform: scale(1.02); }
            100% { background: #FAFAFA; transform: scale(1); }
        }
        
        .ai-answer-item .copy-icon {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: opacity 0.2s;
            background: #1976D2;
            color: white;
            border: none;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            cursor: pointer;
        }
        
        .ai-answer-item:hover .copy-icon {
            opacity: 1;
        }
        
        .ai-answer-source {
            display: inline-block;
            background: #E8F5E9;
            color: #2E7D32;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 11px;
            margin-top: 6px;
            font-weight: 600;
        }
        
        .ai-answer-empty-state {
            text-align: center;
            padding: 15px 20px;
            color: var(--text-muted);
        }
        
        .ai-answer-empty-icon {
            font-size: 36px;
            margin-bottom: 10px;
            opacity: 0.5;
        }
        
        .ai-answer-empty-text {
            font-size: 13px;
        }
        
        .ai-answer-refreshing {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 15px;
            color: var(--text-muted);
            font-size: 12px;
        }
        
        /* 知识库联动高亮 */
        .ai-answer-card.highlighted {
            animation: highlight-pulse 1s ease 3;
        }
        
        @keyframes highlight-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
        }

        /* 导入资料弹窗 */
        .import-material-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .import-material-modal.show {
            display: flex;
        }

        .import-material-content {
            background: white;
            border-radius: 12px;
            width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .import-material-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .import-material-header h3 {
            font-size: 16px;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .import-material-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: var(--text-muted);
        }

        .import-material-body {
            padding: 20px;
            flex: 1;
            overflow-y: auto;
        }

        .import-drop-zone {
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
        }

        .import-drop-zone:hover,
        .import-drop-zone.dragover {
            border-color: #43A047;
            background: rgba(67, 160, 71, 0.05);
        }

        .import-drop-zone-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .import-drop-zone-text {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .import-drop-zone-hint {
            font-size: 12px;
            color: var(--text-muted);
        }

        .import-file-input {
            display: none;
        }

        .import-material-list {
            margin-top: 20px;
        }

        .import-material-list-title {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .import-material-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            background: var(--bg-light);
            border-radius: 8px;
            margin-bottom: 8px;
        }

        .import-material-icon {
            font-size: 24px;
        }

        .import-material-info {
            flex: 1;
        }

        .import-material-name {
            font-size: 13px;
            color: var(--text-primary);
            font-weight: 500;
        }

        .import-material-meta {
            font-size: 11px;
            color: var(--text-muted);
        }

        .import-material-actions {
            display: flex;
            gap: 8px;
        }

        .import-material-action {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            padding: 4px 8px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .import-material-action:hover {
            background: rgba(0,0,0,0.1);
        }

        .import-material-action.delete {
            color: var(--danger);
        }

        .import-material-action.preview {
            color: var(--primary);
        }

        .import-empty {
            text-align: center;
            padding: 20px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .import-material-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-light);
            border-radius: 0 0 12px 12px;
        }

        .import-material-path {
            font-size: 11px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .import-material-count {
            font-size: 12px;
            color: var(--text-secondary);
        }

        /* 导出报告弹窗 */
        .export-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 3000;
            justify-content: center;
            align-items: center;
        }

        .export-modal.show {
            display: flex;
        }

        .export-content {
            background: white;
            border-radius: 12px;
            width: 500px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .export-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .export-header h3 {
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .export-close {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: var(--text-muted);
        }

        .export-body {
            padding: 20px;
        }

        .export-path-info {
            background: var(--bg-light);
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .export-path-info span:first-child {
            font-size: 16px;
        }

        .export-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .export-option {
            display: flex;
            align-items: center;
            padding: 15px;
            border: 2px solid var(--border);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .export-option:hover {
            border-color: var(--primary);
            background: rgba(21, 101, 192, 0.05);
        }

        .export-option.selected {
            border-color: var(--primary);
            background: rgba(21, 101, 192, 0.1);
        }

        .export-option input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-right: 12px;
            cursor: pointer;
        }

        .export-option-icon {
            font-size: 32px;
            margin-right: 12px;
        }

        .export-option-info {
            flex: 1;
        }

        .export-option-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .export-option-desc {
            font-size: 12px;
            color: var(--text-muted);
        }

        .export-option-folder {
            font-size: 11px;
            color: var(--primary);
            background: rgba(21, 101, 192, 0.1);
            padding: 3px 8px;
            border-radius: 4px;
        }

        .export-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-light);
            border-radius: 0 0 12px 12px;
        }

        .export-select-customer {
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .export-select-customer select {
            padding: 6px 10px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 13px;
            outline: none;
        }

        .export-buttons {
            display: flex;
            gap: 10px;
        }

        .export-progress {
            display: none;
            margin-top: 15px;
            padding: 15px;
            background: var(--bg-light);
            border-radius: 8px;
        }

        .export-progress.show {
            display: block;
        }

        .export-progress-text {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .export-progress-bar {
            height: 8px;
            background: var(--border);
            border-radius: 4px;
            overflow: hidden;
        }

        .export-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #1565C0, #42A5F5);
            width: 0%;
            transition: width 0.3s;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        .transcript-content {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-primary);
        }

        .transcript-content .empty {
            color: var(--text-muted);
            text-align: center;
            margin-top: 40px;
        }

        .empty-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .empty-text {
            font-size: 15px;
            margin-bottom: 5px;
        }

        .empty-subtext {
            font-size: 12px;
            color: #1565C0;
            margin-top: 10px;
        }

        .transcript-line {
            margin-bottom: 8px;
            padding: 8px 12px;
            border-radius: 8px;
        }

        .transcript-line.client {
            background: #f5f5f5;
            margin-right: 50px;
        }

        .transcript-line.agent {
            background: rgba(45, 138, 78, 0.1);
            margin-left: 50px;
        }

        .speaker-label {
            font-size: 10px;
            color: var(--text-muted);
            margin-bottom: 2px;
        }

        .stage-section {
            background: var(--bg-card);
            border-radius: 12px;
            box-shadow: var(--shadow);
            padding: 15px;
        }

        .stage-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .stage-tab {
            padding: 10px 20px;
            border: 2px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            background: white;
        }

        .stage-tab.active {
            border-color: #1565C0;
            background: #1565C0;
            color: white;
        }

        .tactics-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 10px;
        }

        .tactic-card {
            background: linear-gradient(135deg, #FFFFFF 0%, #E3F2FD 100%);
            border: 2px solid #BBDEFB;
            border-radius: 12px;
            padding: 15px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .tactic-card:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
        }

        .tactic-icon {
            font-size: 28px;
            margin-bottom: 8px;
        }

        .tactic-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        /* 右侧AI分析区 - 重构版 */
        .right-panel {
            width: 320px;
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
            border-left: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: relative;
        }
        
        .right-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #1565C0, #42A5F5, #1565C0);
        }

        .ai-header {
            padding: 6px 8px;
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .ai-title {
            font-size: 11px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .ai-badge {
            background: rgba(255,255,255,0.2);
            padding: 1px 4px;
            border-radius: 10px;
            font-size: 8px;
        }
        
        .ai-badge.analyzing {
            background: #4CAF50;
            animation: pulse-badge 1.5s infinite;
        }
        
        @keyframes pulse-badge {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        .ai-content {
            flex: 1;
            padding: 4px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 3px;
        }
        
        /* 客户态度分析卡片 */
        .customer-attitude-card {
            background: white;
            border-radius: 6px;
            padding: 5px;
            border: 1px solid var(--border);
            box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
            transition: all 0.3s ease;
        }
        
        .customer-attitude-card.analyzing {
            border-color: #1565C0;
            box-shadow: 0 4px 16px rgba(21, 101, 192, 0.15);
        }
        
        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 2px;
        }
        
        .card-title {
            font-size: 9px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .card-badge {
            padding: 1px 6px;
            border-radius: 10px;
            font-size: 9px;
            font-weight: 500;
        }
        
        .card-badge.updating {
            background: #E3F2FD;
            color: #1565C0;
            animation: pulse 1.5s infinite;
        }
        
        /* 态度标签 */
        .attitude-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            padding: 8px;
            background: #f5f5f5;
            border-radius: 8px;
        }
        
        .attitude-tag {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px 10px;
            border-radius: 16px;
            font-size: 11px;
            font-weight: 600;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 2px solid transparent;
            opacity: 0.5;
        }
        
        .attitude-tag.interested {
            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
            color: #2E7D32;
        }
        
        .attitude-tag.interested.active {
            opacity: 1;
            border-color: #4CAF50;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
            animation: attitudePop 0.4s ease;
        }
        
        .attitude-tag.hesitant {
            background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
            color: #E65100;
        }
        
        .attitude-tag.hesitant.active {
            opacity: 1;
            border-color: #FF9800;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
            animation: attitudePop 0.4s ease;
        }
        
        .attitude-tag.doubting {
            background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
            color: #F57C00;
        }
        
        .attitude-tag.doubting.active {
            opacity: 1;
            border-color: #FFC107;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
            animation: attitudePop 0.4s ease;
        }
        
        .attitude-tag.rejecting {
            background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
            color: #C62828;
        }
        
        .attitude-tag.rejecting.active {
            opacity: 1;
            border-color: #F44336;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
            animation: attitudePop 0.4s ease;
        }
        
        @keyframes attitudePop {
            0% { transform: scale(1); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1.1); }
        }
        
        .attitude-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ccc;
        }
        
        .attitude-indicator.active {
            animation: attitudePulse 1s infinite;
        }
        
        .attitude-indicator.interested { background: #4CAF50; }
        .attitude-indicator.hesitant { background: #FF9800; }
        .attitude-indicator.doubting { background: #FFC107; }
        .attitude-indicator.rejecting { background: #F44336; }
        
        @keyframes attitudePulse {
            0%, 100% { box-shadow: 0 0 0 0 currentColor; }
            50% { box-shadow: 0 0 0 4px currentColor; opacity: 0.5; }
        }
        
        /* 阶段判断卡片 */
        .stage-card {
            background: white;
            border-radius: 10px;
            padding: 10px;
            border: 2px solid #e0e0e0;
            box-shadow: 0 4px 12px rgba(21, 101, 192, 0.1);
            margin-bottom: 12px;
        }
        
        .stage-tags {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .stage-tag {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 8px;
            background: #f8f9fa;
            border: 2px solid transparent;
            transition: all 0.3s ease;
            opacity: 0.6;
        }
        
        .stage-tag.active {
            opacity: 1;
            border-color: #2196F3;
            background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
            animation: stageSlide 0.4s ease;
        }
        
        @keyframes stageSlide {
            from { transform: translateX(-10px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .stage-tag {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 2px 5px;
            border-radius: 3px;
            font-size: 8px;
            transition: all 0.3s ease;
            cursor: pointer;
            border: 1px solid transparent;
            background: #F5F5F5;
        }
        
        .stage-tag:hover {
            background: #EEEEEE;
        }
        
        .stage-tag.active {
            border-color: #1565C0;
            background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
            font-weight: 600;
        }
        
        .stage-tag .stage-icon {
            font-size: 8px;
        }
        
        .stage-tag .stage-name {
            flex: 1;
        }
        
        .stage-tag .stage-progress {
            width: 30px;
            height: 3px;
            background: #E0E0E0;
            border-radius: 2px;
            overflow: hidden;
        }
        
        .stage-tag .stage-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #1565C0, #42A5F5);
            border-radius: 2px;
            transition: width 0.5s ease;
        }
        
        /* 分析动画 */
        .analyzing-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            background: rgba(255,255,255,0.95);
            padding: 24px 32px;
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            z-index: 10;
        }
        
        .analyzing-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid #E3F2FD;
            border-top-color: #1565C0;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .analyzing-text {
            font-size: 14px;
            color: #1565C0;
            font-weight: 500;
        }
        
        /* AI答案区样式 */
        .ai-answers-section {
            margin-top: 8px;
        }
        
        .ai-answer-category {
            margin-bottom: 16px;
        }
        
        .ai-answer-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            border-radius: 10px 10px 0 0;
            font-size: 13px;
            font-weight: 600;
        }
        
        .ai-answer-header.standard {
            background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
            color: #1565C0;
            border: 1px solid #90CAF9;
            border-bottom: none;
        }
        
        .ai-answer-header.ai-generated {
            background: linear-gradient(135deg, #424242 0%, #616161 100%);
            color: white;
            border: 1px solid #757575;
            border-bottom: none;
        }
        
        .ai-answer-header.database {
            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
            color: #2E7D32;
            border: 1px solid #A5D6A7;
            border-bottom: none;
        }
        
        .ai-answer-header.recommended {
            background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
            color: #E65100;
            border: 1px solid #FFCC80;
            border-bottom: none;
        }
        
        .ai-answer-copy-btn {
            background: rgba(255,255,255,0.3);
            border: none;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
            color: inherit;
        }
        
        .ai-answer-copy-btn:hover {
            background: rgba(255,255,255,0.5);
            transform: scale(1.05);
        }
        
        .ai-answer-body {
            background: white;
            border: 1px solid var(--border);
            border-radius: 0 0 10px 10px;
            padding: 12px 14px;
            font-size: 13px;
            line-height: 1.7;
            max-height: 200px;
            overflow-y: auto;
        }
        
        .ai-answer-body .answer-item {
            padding: 8px 10px;
            margin-bottom: 6px;
            background: #FAFAFA;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        
        .ai-answer-body .answer-item:hover {
            background: #F5F5F5;
            transform: translateX(2px);
        }
        
        .ai-answer-body .answer-item:hover .copy-sentence-btn {
            opacity: 1;
        }
        
        .ai-answer-body .copy-sentence-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: #1565C0;
            color: white;
            border: none;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 10px;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
        }
        
        .ai-answer-body .source-tag {
            display: inline-block;
            background: #E8F5E9;
            color: #2E7D32;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            margin-top: 6px;
        }
        
        .ai-answer-empty {
            color: var(--text-muted);
            font-style: italic;
            text-align: center;
            padding: 20px;
        }
        
        .ai-answer-refreshing {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--text-muted);
            font-size: 12px;
        }
        
        .mini-spinner {
            width: 16px;
            height: 16px;
            border: 2px solid #E0E0E0;
            border-top-color: #1565C0;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .ai-section {
            background: #FFFFFF;
            border-radius: 6px;
            padding: 6px;
            border: 1px solid #BBDEFB;
            box-shadow: 0 2px 8px rgba(21, 101, 192, 0.05);
        }

        .ai-section-title {
            font-size: 11px;
            font-weight: 600;
            color: #1565C0;
            margin-bottom: 4px;
        }

        .topic-tag {
            display: inline-block;
            background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
            animation: topicPulse 2s infinite;
        }
        
        .topic-tag.analyzing {
            animation: topicAnalyze 1s infinite;
        }
        
        @keyframes topicPulse {
            0%, 100% { box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4); }
            50% { box-shadow: 0 4px 20px rgba(156, 39, 176, 0.6); }
        }
        
        @keyframes topicAnalyze {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .topic-tag.updating {
            animation: topicUpdate 0.5s ease;
        }
        
        @keyframes topicUpdate {
            0% { transform: scale(0.8); opacity: 0.5; }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); opacity: 1; }
        }

        .intent-btns {
            display: flex;
            gap: 8px;
        }
        
        .intent-btn {
            flex: 1;
            padding: 10px 8px;
            border: 3px solid var(--border);
            border-radius: 12px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            text-align: center;
            transition: all 0.3s ease;
            background: white;
            opacity: 0.6;
        }
        
        .intent-btn.active {
            opacity: 1;
            transform: scale(1.05);
        }

        .intent-btn.high {
            border-color: #ffcdd2;
            color: #c62828;
        }

        .intent-btn.high.active, .intent-btn.high:hover {
            background: #c62828;
            color: white;
        }

        .intent-btn.medium {
            border-color: #ffe0b2;
            color: #e65100;
        }

        .intent-btn.medium.active, .intent-btn.medium:hover {
            background: #e65100;
            color: white;
        }

        .intent-btn.low {
            border-color: #e0e0e0;
            color: #616161;
        }

        .intent-btn.low.active, .intent-btn.low:hover {
            background: #616161;
            color: white;
        }

        .feedback-btns {
            display: flex;
            gap: 6px;
        }
        
        .feedback-btn {
            flex: 1;
            padding: 8px 6px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 600;
            transition: all 0.2s;
        }

        .feedback-btn.useful {
            background: #FFEBEE;
            color: #2E7D32;
        }

        .feedback-btn.useful:hover, .feedback-btn.useful.active {
            background: #2E7D32;
            color: white;
        }

        .feedback-btn.optimize {
            background: #fff3e0;
            color: #e65100;
        }

        .feedback-btn.optimize:hover, .feedback-btn.optimize.active {
            background: #e65100;
            color: white;
        }

        .feedback-btn.useless {
            background: #ffebee;
            color: #c62828;
        }

        .feedback-btn.useless:hover, .feedback-btn.useless.active {
            background: #c62828;
            color: white;
        }

        .recommend-area {
            background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
            border: 2px solid #FFB300;
            border-radius: 10px;
            padding: 12px;
            font-size: 13px;
            line-height: 1.7;
            color: var(--text-primary);
            min-height: 60px;
            max-height: 150px;
            overflow-y: auto;
            box-shadow: 0 2px 8px rgba(255, 179, 0, 0.2);
        }
        
        .recommend-area.has-content {
            border-color: #4CAF50;
            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
        }
        
        .recommend-area .placeholder {
            color: var(--text-muted);
            font-style: italic;
            font-size: 12px;
        }
        
        .recommend-area .content-item {
            padding: 8px 10px;
            background: white;
            border-radius: 8px;
            margin-bottom: 8px;
            border-left: 3px solid #FFB300;
            animation: slideIn 0.3s ease;
        }
        
        .recommend-area .content-item:last-child {
            margin-bottom: 0;
        }
        
        @keyframes slideIn {
            from { transform: translateX(-10px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        /* 模态框 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 6px;
            padding: 6px;
            width: 260px;
            max-width: 90%;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .modal-header {
            font-size: 10px;
            font-weight: 600;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 12px;
            cursor: pointer;
            color: var(--text-muted);
        }

        .form-group {
            margin-bottom: 3px;
        }

        .form-label {
            display: block;
            font-size: 7px;
            color: var(--text-secondary);
            margin-bottom: 1px;
        }

        .form-input {
            width: 100%;
            padding: 2px 4px;
            border: 1px solid var(--border);
            border-radius: 3px;
            font-size: 8px;
            outline: none;
        }

        .form-input:focus {
            border-color: #1565C0;
        }

        .form-select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 14px;
            outline: none;
            background: white;
        }

        .form-actions {
            display: flex;
            gap: 6px;
            margin-top: 5px;
        }

        .btn {
            flex: 1;
            padding: 4px;
            border: none;
            border-radius: 3px;
            font-size: 9px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-primary {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #0D47A1 0%, #0D47A1 100%);
            box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
        }

        .btn-secondary {
            background: var(--bg-light);
            color: var(--text-secondary);
        }

        .btn-secondary:hover {
            background: var(--border);
        }

        /* 话术详情弹窗 */
        .tactics-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .tactics-modal.show {
            display: flex;
        }

        .tactics-modal-content {
            background: white;
            border-radius: 12px;
            padding: 25px;
            width: 600px;
            max-width: 90%;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .tactics-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .tactics-modal-title {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .copy-all-btn {
            background: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
            color: #1A237E;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            box-shadow: 0 2px 8px rgba(255, 143, 0, 0.2);
        }

        .tactics-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: #E3F2FD;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.8;
            white-space: pre-wrap;
        }

        /* 日报弹窗 */
        .report-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .report-modal.show {
            display: flex;
        }

        .report-modal-content {
            background: white;
            border-radius: 12px;
            padding: 25px;
            width: 700px;
            max-width: 90%;
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .report-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 15px;
        }

        .report-modal-title {
            font-size: 18px;
            font-weight: 600;
        }

        .report-modal-actions {
            display: flex;
            gap: 10px;
        }

        .report-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            background: #E3F2FD;
            border-radius: 8px;
        }

        .report-section {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .report-section:last-child {
            margin-bottom: 0;
        }

        .report-section-title {
            font-size: 14px;
            font-weight: 600;
            color: #1565C0;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .report-stats {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .report-stat {
            text-align: center;
            padding: 15px;
            background: #FFFFFF;
            border-radius: 8px;
            border: 1px solid #BBDEFB;
        }

        .report-stat-value {
            font-size: 28px;
            font-weight: 700;
            color: #1565C0;
        }

        .report-stat-label {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 5px;
        }

        .report-call-list {
            max-height: 200px;
            overflow-y: auto;
        }

        .report-call-item {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
        }

        .report-call-item:last-child {
            border-bottom: none;
        }

        /* 导入弹窗 */
        .import-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .import-modal.show {
            display: flex;
        }

        .import-drop-zone {
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 50px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .import-drop-zone:hover, .import-drop-zone.dragover {
            border-color: #1565C0;
            background: rgba(21, 101, 192, 0.05);
        }

        .import-drop-zone-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .import-drop-zone-text {
            font-size: 14px;
            color: var(--text-secondary);
        }

        .import-format-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 10px;
        }

        /* Toast 提示 */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #333;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 2000;
            opacity: 0;
            transition: all 0.3s;
        }

        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        .toast.success {
            background: var(--success);
        }

        .toast.error {
            background: var(--danger);
        }

        /* 滚动条 */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #aaa;
        }

        /* 快捷键提示 */
        .shortcut-hint {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px 15px;
            font-size: 11px;
            color: var(--text-muted);
            box-shadow: var(--shadow);
        }

        .shortcut-hint kbd {
            background: var(--bg-light);
            padding: 2px 6px;
            border-radius: 3px;
            font-family: monospace;
        }

        /* ========================================
           场景选择弹窗
           ======================================== */
        .scene-select-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.6);
            z-index: 3000;
            justify-content: center;
            align-items: center;
        }

        .scene-select-modal.show {
            display: flex;
        }

        .scene-select-content {
            background: white;
            border-radius: 16px;
            width: 480px;
            max-width: 95%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .scene-select-header {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
            padding: 25px 30px;
            text-align: center;
        }

        .scene-select-icon {
            font-size: 48px;
            margin-bottom: 10px;
        }

        .scene-select-title {
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .scene-select-customer {
            font-size: 14px;
            opacity: 0.9;
        }

        .scene-select-body {
            display: flex;
            gap: 15px;
            padding: 12px;
        }

        .scene-option {
            flex: 1;
            background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
            border: 2px solid #1976D2;
            border-radius: 12px;
            padding: 12px 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .scene-option:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(25, 118, 210, 0.3);
        }

        .scene-option.negotiation {
            background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
            border-color: #F57C00;
        }

        .scene-option.negotiation:hover {
            box-shadow: 0 8px 20px rgba(245, 124, 0, 0.3);
        }

        .scene-option-icon {
            font-size: 40px;
            margin-bottom: 10px;
        }

        .scene-option-title {
            font-size: 16px;
            font-weight: 600;
            color: #1565C0;
            margin-bottom: 8px;
        }

        .scene-option.negotiation .scene-option-title {
            color: #E65100;
        }

        .scene-option-desc {
            font-size: 12px;
            color: #666;
            line-height: 1.5;
            margin-bottom: 12px;
        }

        .scene-option-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;
        }

        .scene-tag {
            background: rgba(255,255,255,0.8);
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 10px;
            color: #333;
        }

        /* 推荐场景样式 */
        .scene-option.recommended {
            transform: scale(1.02);
            box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5), 0 8px 20px rgba(0,0,0,0.15);
        }

        .scene-recommend-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
            color: white;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
        }

        .scene-option {
            position: relative;
        }

        .scene-select-footer {
            padding: 15px 20px;
            text-align: center;
            border-top: 1px solid #eee;
        }

        .scene-cancel-btn {
            background: #f5f5f5;
            border: none;
            padding: 10px 40px;
            border-radius: 8px;
            font-size: 14px;
            color: #666;
            cursor: pointer;
            transition: all 0.2s;
        }

        .scene-cancel-btn:hover {
            background: #e0e0e0;
        }

        /* ========================================
           话术库模块 - 完整版
           ======================================== */

        /* 话术库弹窗 */
        .tactics-library-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .tactics-library-modal.show {
            display: flex;
        }

        .tactics-library-content {
            background: white;
            border-radius: 12px;
            width: 95%;
            max-width: 1000px;
            height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            overflow: hidden;
        }

        .tactics-library-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .tactics-library-tabs {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
        }

        .tactics-library-tab {
            padding: 8px 16px;
            border: 1px solid var(--border);
            border-radius: 20px;
            background: white;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            color: var(--text-secondary);
        }

        .tactics-library-tab:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .tactics-library-tab.active {
            background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
            color: white;
            border-color: var(--primary);
        }

        .tactics-library-toolbar {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }

        .tactics-search {
            position: relative;
        }

        .tactics-search input {
            padding: 5px 10px 5px 28px;
            border: 1px solid var(--border);
            border-radius: 15px;
            font-size: 11px;
            width: 120px;
            outline: none;
            transition: all 0.2s;
        }

        .tactics-search input:focus {
            border-color: var(--primary);
            width: 150px;
        }

        .tactics-search-icon {
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-size: 10px;
        }

        .tactics-filter {
            display: flex;
            gap: 5px;
            align-items: center;
        }

        .tactics-filter select {
            padding: 4px 8px;
            border: 1px solid var(--border);
            border-radius: 5px;
            font-size: 10px;
            outline: none;
            background: white;
            cursor: pointer;
        }

        .tactics-library-body {
            flex: 1;
            display: flex;
            overflow: hidden;
        }

        /* 话术分类侧边栏 */
        .tactics-sidebar {
            width: 200px;
            border-right: 1px solid var(--border);
            background: var(--bg-light);
            padding: 15px;
            overflow-y: auto;
            flex-shrink: 0;
        }

        .tactics-sidebar-title {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tactics-category {
            margin-bottom: 15px;
        }

        .tactics-category-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-secondary);
            transition: all 0.2s;
        }

        .tactics-category-item:hover {
            background: rgba(21, 101, 192, 0.1);
            color: var(--primary);
        }

        .tactics-category-item.active {
            background: var(--primary);
            color: white;
        }

        .tactics-category-item .count {
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 11px;
        }

        .tactics-category-item.active .count {
            background: rgba(255,255,255,0.2);
        }

        /* 话术列表区域 */
        .tactics-main {
            flex: 1;
            padding: 15px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .tactics-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            flex-shrink: 0;
        }

        .tactics-list-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tactics-list-title .badge {
            background: var(--primary);
            color: white;
            padding: 2px 10px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: normal;
        }

        .tactics-list-actions {
            display: flex;
            gap: 8px;
        }

        .tactics-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex: 1;
        }

        .tactics-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .tactics-card:hover {
            border-color: var(--primary);
            box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
            transform: translateY(-2px);
        }

        .tactics-card-header {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 10px;
        }

        .tactics-card-icon {
            width: 40px;
            height: 40px;
            background: var(--bg-light);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .tactics-card-info {
            flex: 1;
        }

        .tactics-card-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .tactics-card-meta {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .tactics-card-tag {
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            background: var(--bg-light);
            color: var(--text-secondary);
        }

        .tactics-card-tag.stage-1 {
            background: #E3F2FD;
            color: #1565C0;
        }

        .tactics-card-tag.stage-2 {
            background: #E8F5E9;
            color: #2E7D32;
        }

        .tactics-card-tag.stage-3 {
            background: #FFF3E0;
            color: #E65100;
        }

        .tactics-card-tag.stage-4 {
            background: #FCE4EC;
            color: #C2185B;
        }

        .tactics-card-tag.type-price {
            background: #FFF8E1;
            color: #F57F17;
        }

        .tactics-card-tag.type-policy {
            background: #E8EAF6;
            color: #3949AB;
        }

        .tactics-card-tag.type-support {
            background: #E0F2F1;
            color: #00796B;
        }

        .tactics-card-tag.type-risk {
            background: #FFEBEE;
            color: #C62828;
        }

        .tactics-card-tag.type-compare {
            background: #F3E5F5;
            color: #7B1FA2;
        }

        .tactics-card-tag.tag-good {
            background: #C8E6C9;
            color: #2E7D32;
        }

        .tactics-card-tag.tag-optimize {
            background: #FFE0B2;
            color: #E65100;
        }

        .tactics-card-tag.tag-high {
            background: #FFCDD2;
            color: #D32F2F;
        }

        .tactics-card-content {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 12px;
            max-height: 60px;
            overflow: hidden;
        }

        .tactics-card-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 10px;
            border-top: 1px solid var(--border);
        }

        .tactics-card-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .tactics-action-btns {
            display: flex;
            gap: 6px;
        }

        .tactics-action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .tactics-action-btn.copy {
            background: #E3F2FD;
            color: #1565C0;
        }

        .tactics-action-btn.copy:hover {
            background: #1565C0;
            color: white;
        }

        .tactics-action-btn.edit {
            background: #FFF8E1;
            color: #F9A825;
        }

        .tactics-action-btn.edit:hover {
            background: #F9A825;
            color: white;
        }

        .tactics-action-btn.delete {
            background: #FFEBEE;
            color: #D32F2F;
        }

        .tactics-action-btn.delete:hover {
            background: #D32F2F;
            color: white;
        }

        /* 话术详情弹窗 */
        .tactics-detail-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2500;
            justify-content: center;
            align-items: center;
        }

        .tactics-detail-modal.show {
            display: flex;
        }

        .tactics-detail-content {
            background: white;
            border-radius: 12px;
            width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .tactics-detail-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tactics-detail-title {
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tactics-detail-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .tactics-detail-content-text {
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-primary);
            white-space: pre-wrap;
            background: var(--bg-light);
            padding: 15px;
            border-radius: 8px;
        }

        .tactics-detail-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tactics-detail-meta {
            display: flex;
            gap: 10px;
        }

        /* 话术编辑弹窗 */
        .tactic-edit-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2500;
            justify-content: center;
            align-items: center;
        }

        .tactic-edit-modal.show {
            display: flex;
        }

        .tactic-edit-content {
            background: white;
            border-radius: 12px;
            width: 600px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .tactic-edit-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tactic-edit-header span {
            font-size: 16px;
            font-weight: 600;
        }

        .tactic-edit-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .tactic-edit-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }

        .tactic-edit-row .form-group {
            flex: 1;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .form-row {
            display: flex;
            gap: 10px;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s;
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            border-color: var(--primary);
        }

        .form-textarea {
            min-height: 150px;
            resize: vertical;
        }

        .form-hint {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .tag-selector {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .tag-option {
            padding: 6px 12px;
            border: 1px solid var(--border);
            border-radius: 20px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s;
            user-select: none;
        }

        .tag-option:hover {
            border-color: var(--primary);
        }

        .tag-option.selected {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .tactic-edit-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            background: var(--bg-light);
        }

        /* 批量导入弹窗 */
        .import-tactics-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 3000;
            justify-content: center;
            align-items: center;
        }

        .import-tactics-modal.show {
            display: flex;
        }

        .import-tactics-content {
            background: white;
            border-radius: 12px;
            width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .import-tactics-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .import-tactics-header h3 {
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .import-tactics-body {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
        }

        .import-tactics-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .import-tactics-tab {
            padding: 10px 20px;
            border: 2px solid var(--border);
            border-radius: 8px;
            background: white;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
        }

        .import-tactics-tab:hover {
            border-color: var(--primary);
        }

        .import-tactics-tab.active {
            border-color: var(--primary);
            background: var(--primary);
            color: white;
        }

        .import-drop-area {
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            transition: all 0.3s;
            cursor: pointer;
        }

        .import-drop-area:hover,
        .import-drop-area.dragover {
            border-color: var(--primary);
            background: rgba(21, 101, 192, 0.05);
        }

        .import-drop-area-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .import-drop-area-text {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .import-drop-area-hint {
            font-size: 12px;
            color: var(--text-muted);
        }

        .import-format-hint {
            margin-top: 20px;
            padding: 15px;
            background: var(--bg-light);
            border-radius: 8px;
        }

        .import-format-hint h4 {
            font-size: 13px;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        .import-format-hint pre {
            font-size: 12px;
            color: var(--text-secondary);
            white-space: pre-wrap;
            line-height: 1.6;
        }

        .import-tactics-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        /* 按钮样式 */
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
        }

        .btn-secondary {
            background: var(--bg-light);
            color: var(--text-secondary);
        }

        .btn-secondary:hover {
            background: var(--border);
        }

        .btn-danger {
            background: #f44336;
            color: white;
        }

        .btn-danger:hover {
            background: #d32f2f;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-muted);
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: var(--bg-light);
            color: var(--text-primary);
        }

        /* 空状态 */
        .tactics-empty {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .tactics-empty-icon {
            font-size: 64px;
            margin-bottom: 15px;
        }

        .tactics-empty-text {
            font-size: 14px;
            margin-bottom: 20px;
        }

        /* 统计信息 */
        .tactics-stats {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .tactics-stat-item {
            padding: 10px 15px;
            background: var(--bg-light);
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tactics-stat-icon {
            font-size: 20px;
        }

        .tactics-stat-info {
            text-align: left;
        }

        .tactics-stat-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .tactics-stat-label {
            font-size: 11px;
            color: var(--text-muted);
        }

        /* Toast 提示 */
        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 9999;
            animation: slideUp 0.3s ease;
        }

        .toast.error {
            background: var(--danger);
        }

        .toast.success {
            background: var(--success);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* ========================================
           招商知识库模块
           ======================================== */
        
        /* 知识库主弹窗 */
        .biz-knowledge-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }
        
        .biz-knowledge-modal.show {
            display: flex;
        }
        
        .biz-knowledge-content {
            background: white;
            border-radius: 12px;
            width: 95%;
            max-width: 1100px;
            height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            overflow: hidden;
        }
        
        .biz-knowledge-header {
            padding: 8px 15px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
            color: white;
        }
        
        .biz-knowledge-header .header-left {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .biz-knowledge-header .header-title {
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .biz-knowledge-header .header-subtitle {
            font-size: 9px;
            opacity: 0.85;
        }
        
        .biz-knowledge-header .header-right {
            display: flex;
            gap: 6px;
            align-items: center;
        }
        
        .biz-knowledge-search {
            position: relative;
        }
        
        .biz-knowledge-search input {
            padding: 4px 8px 4px 28px;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 20px;
            font-size: 11px;
            width: 140px;
            outline: none;
            background: rgba(255,255,255,0.15);
            color: white;
            transition: all 0.2s;
        }
        
        .biz-knowledge-search input::placeholder {
            color: rgba(255,255,255,0.7);
        }
        
        .biz-knowledge-search input:focus {
            border-color: white;
            background: rgba(255,255,255,0.25);
            width: 180px;
        }
        
        .biz-knowledge-search-icon {
            position: absolute;
            left: 8px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.7);
            font-size: 10px;
        }
        
        .biz-knowledge-body {
            flex: 1;
            display: flex;
            overflow: hidden;
        }
        
        .biz-knowledge-sidebar {
            width: 160px;
            border-right: 1px solid var(--border);
            background: #FAFAFA;
            overflow-y: auto;
            flex-shrink: 0;
        }
        
        .biz-knowledge-sidebar-section {
            padding: 4px 0;
        }
        
        .biz-knowledge-sidebar-title {
            font-size: 9px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 4px 10px;
        }
        
        .biz-knowledge-nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 5px 10px;
            cursor: pointer;
            font-size: 10px;
            color: var(--text-secondary);
            transition: all 0.15s;
            border-left: 3px solid transparent;
        }
        
        .biz-knowledge-nav-item:hover {
            background: rgba(46, 125, 50, 0.08);
            color: #2E7D32;
        }
        
        .biz-knowledge-nav-item.active {
            background: rgba(46, 125, 50, 0.12);
            color: #2E7D32;
            border-left-color: #2E7D32;
            font-weight: 500;
        }
        
        .biz-knowledge-nav-item .nav-count {
            background: rgba(0,0,0,0.08);
            padding: 1px 5px;
            border-radius: 10px;
            font-size: 8px;
        }
        
        .biz-knowledge-nav-item.active .nav-count {
            background: rgba(46, 125, 50, 0.2);
        }
        
        .biz-knowledge-sub-nav {
            padding-left: 15px;
        }
        
        .biz-knowledge-sub-nav .biz-knowledge-nav-item {
            font-size: 10px;
            padding: 4px 10px;
        }
        
        .biz-knowledge-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .biz-knowledge-toolbar {
            padding: 6px 12px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            background: white;
        }
        
        .biz-knowledge-toolbar-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .biz-knowledge-title {
            font-size: 11px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .biz-knowledge-title .badge {
            background: #2E7D32;
            color: white;
            padding: 1px 6px;
            border-radius: 10px;
            font-size: 9px;
            font-weight: normal;
        }
        
        .biz-knowledge-breadcrumb {
            font-size: 9px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 3px;
        }
        
        .biz-knowledge-breadcrumb .current {
            color: #2E7D32;
            font-weight: 500;
        }
        
        .biz-knowledge-toolbar-right {
            display: flex;
            gap: 5px;
        }
        
        .biz-knowledge-list {
            flex: 1;
            padding: 8px 12px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .biz-knowledge-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        
        .biz-knowledge-card:hover {
            border-color: #2E7D32;
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.12);
            transform: translateY(-2px);
        }
        
        .biz-knowledge-card.favorited {
            border-color: #FFB300;
            background: linear-gradient(135deg, #FFFDE7 0%, #FFFFFF 100%);
        }
        
        .biz-knowledge-card-header {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 6px;
        }
        
        .biz-knowledge-card-icon {
            width: 28px;
            height: 28px;
            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }
        
        .biz-knowledge-card-info {
            flex: 1;
        }
        
        .biz-knowledge-card-title {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .biz-knowledge-card-favorite {
            color: #FFB300;
            font-size: 12px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .biz-knowledge-card-favorite:hover {
            transform: scale(1.2);
        }
        
        .biz-knowledge-card-meta {
            display: flex;
            gap: 5px;
            flex-wrap: wrap;
            font-size: 9px;
            color: var(--text-muted);
        }
        
        .biz-knowledge-card-tag {
            padding: 1px 5px;
            border-radius: 3px;
            font-size: 8px;
            background: var(--bg-light);
            color: var(--text-secondary);
        }
        
        .biz-knowledge-card-tag.cat-1 { background: #E3F2FD; color: #1565C0; }
        .biz-knowledge-card-tag.cat-2 { background: #E8F5E9; color: #2E7D32; }
        .biz-knowledge-card-tag.cat-3 { background: #FFF3E0; color: #E65100; }
        .biz-knowledge-card-tag.cat-4 { background: #F3E5F5; color: #7B1FA2; }
        .biz-knowledge-card-tag.cat-5 { background: #E0F7FA; color: #00838F; }
        
        .biz-knowledge-card-content {
            font-size: 9px;
            color: var(--text-secondary);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 6px;
        }
        
        .biz-knowledge-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .biz-knowledge-card-stats {
            display: flex;
            gap: 8px;
            font-size: 8px;
            color: var(--text-muted);
        }
        
        .biz-knowledge-card-actions {
            display: flex;
            gap: 4px;
        }
        
        .biz-knowledge-action-btn {
            padding: 3px 6px;
            border: 1px solid var(--border);
            border-radius: 4px;
            background: white;
            cursor: pointer;
            font-size: 9px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 2px;
        }
        
        .biz-knowledge-action-btn:hover {
            background: var(--bg-light);
        }
        
        .biz-knowledge-action-btn.copy { color: #2E7D32; border-color: #A5D6A7; }
        .biz-knowledge-action-btn.copy:hover { background: #E8F5E9; }
        .biz-knowledge-action-btn.edit { color: #1565C0; border-color: #90CAF9; }
        .biz-knowledge-action-btn.edit:hover { background: #E3F2FD; }
        .biz-knowledge-action-btn.delete { color: #D32F2F; border-color: #EF9A9A; }
        .biz-knowledge-action-btn.delete:hover { background: #FFEBEE; }
        
        .biz-knowledge-detail-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2100;
            justify-content: center;
            align-items: center;
        }
        
        .biz-knowledge-detail-modal.show {
            display: flex;
        }
        
        .biz-knowledge-detail-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 15px 50px rgba(0,0,0,0.25);
            overflow: hidden;
        }
        
        .biz-knowledge-detail-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }
        
        .biz-knowledge-detail-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 600;
        }
        
        .biz-knowledge-detail-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }
        
        .biz-knowledge-detail-body {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }
        
        .biz-knowledge-detail-content-text {
            font-size: 14px;
            line-height: 1.8;
            color: var(--text-primary);
            white-space: pre-wrap;
        }
        
        .biz-knowledge-detail-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            background: #FAFAFA;
        }
        
        .biz-knowledge-detail-meta {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .biz-knowledge-detail-actions {
            display: flex;
            gap: 8px;
        }
        
        .biz-knowledge-edit-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2100;
            justify-content: center;
            align-items: center;
        }
        
        .biz-knowledge-edit-modal.show {
            display: flex;
        }
        
        .biz-knowledge-edit-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 700px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 15px 50px rgba(0,0,0,0.25);
            overflow: hidden;
        }
        
        .biz-knowledge-edit-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
            color: white;
        }
        
        .biz-knowledge-edit-body {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }
        
        .biz-knowledge-edit-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .biz-knowledge-form-group {
            margin-bottom: 15px;
        }
        
        .biz-knowledge-form-group label {
            display: block;
            font-size: 13px;
            font-weight: 500;
            margin-bottom: 6px;
            color: var(--text-primary);
        }
        
        .biz-knowledge-form-group input,
        .biz-knowledge-form-group select,
        .biz-knowledge-form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 13px;
            outline: none;
            transition: border-color 0.2s;
        }
        
        .biz-knowledge-form-group input:focus,
        .biz-knowledge-form-group select:focus,
        .biz-knowledge-form-group textarea:focus {
            border-color: #2E7D32;
        }
        
        .biz-knowledge-form-group textarea {
            min-height: 250px;
            resize: vertical;
            line-height: 1.6;
            font-family: inherit;
        }
        
        .biz-knowledge-edit-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
            background: #FAFAFA;
        }
        
        .biz-knowledge-stats {
            display: flex;
            gap: 15px;
            padding: 12px 20px;
            background: #FAFAFA;
            border-bottom: 1px solid var(--border);
        }
        
        .biz-knowledge-stat-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--text-secondary);
        }
        
        .biz-knowledge-stat-value {
            font-weight: 600;
            color: var(--text-primary);
        }
        
        .biz-knowledge-import-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2200;
            justify-content: center;
            align-items: center;
        }
        
        .biz-knowledge-import-modal.show {
            display: flex;
        }
        
        .biz-knowledge-import-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 15px 50px rgba(0,0,0,0.25);
            overflow: hidden;
        }
        
        .biz-knowledge-import-header {
            padding: 15px 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
            color: white;
        }
        
        .biz-knowledge-import-body {
            padding: 20px;
        }
        
        .biz-knowledge-import-drop {
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .biz-knowledge-import-drop:hover,
        .biz-knowledge-import-drop.dragover {
            border-color: #2E7D32;
            background: rgba(46, 125, 50, 0.05);
        }
        
        .biz-knowledge-import-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #FAFAFA;
        }
        
        .biz-knowledge-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            text-align: center;
        }
        
        .biz-knowledge-empty-icon {
            font-size: 64px;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
        .biz-knowledge-empty-text {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 15px;
        }
        
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
            color: white;
        }
        
        .btn-primary:hover {
            box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
            transform: translateY(-1px);
        }
        
        .btn-secondary {
            background: white;
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }
        
        .btn-secondary:hover {
            background: var(--bg-light);
        }
