/* ============================================================
   CRM 行业主题色变量
   ============================================================ */

/* 金融版 — 蓝色系（默认） */
.theme-finance,
[data-industry="finance"] {
    --industry-primary: #1a73e8;
    --industry-primary-dark: #1557b0;
    --industry-primary-light: rgba(26, 115, 232, 0.12);
    --industry-primary-bg: rgba(26, 115, 232, 0.06);
    --industry-accent: #2196f3;
    --industry-badge-bg: rgba(26, 115, 232, 0.12);
    --industry-badge-color: #1a73e8;
    --industry-badge-border: rgba(26, 115, 232, 0.25);
}

/* 通用版 — 紫色系 */
.theme-general,
[data-industry="general"] {
    --industry-primary: #7c4dff;
    --industry-primary-dark: #651fff;
    --industry-primary-light: rgba(124, 77, 255, 0.12);
    --industry-primary-bg: rgba(124, 77, 255, 0.06);
    --industry-accent: #b388ff;
    --industry-badge-bg: rgba(124, 77, 255, 0.12);
    --industry-badge-color: #7c4dff;
    --industry-badge-border: rgba(124, 77, 255, 0.25);
}

/* 医疗版 — 绿色系 */
.theme-medical,
[data-industry="medical"] {
    --industry-primary: #34a853;
    --industry-primary-dark: #2d8a47;
    --industry-primary-light: rgba(52, 168, 83, 0.12);
    --industry-primary-bg: rgba(52, 168, 83, 0.06);
    --industry-accent: #66bb6a;
    --industry-badge-bg: rgba(52, 168, 83, 0.12);
    --industry-badge-color: #34a853;
    --industry-badge-border: rgba(52, 168, 83, 0.25);
}

/* 教育版 — 橙色系 */
.theme-education,
[data-industry="education"] {
    --industry-primary: #ff6b35;
    --industry-primary-dark: #e65100;
    --industry-primary-light: rgba(255, 107, 53, 0.12);
    --industry-primary-bg: rgba(255, 107, 53, 0.06);
    --industry-accent: #ff8a65;
    --industry-badge-bg: rgba(255, 107, 53, 0.12);
    --industry-badge-color: #ff6b35;
    --industry-badge-border: rgba(255, 107, 53, 0.25);
}

/* ============================================================
   通用行业 UI 组件
   ============================================================ */

/* 行业标识 Badge */
.industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--industry-badge-bg, rgba(26, 115, 232, 0.12));
    color: var(--industry-badge-color, #1a73e8);
    border: 1px solid var(--industry-badge-border, rgba(26, 115, 232, 0.25));
}

/* 行业切换下拉框 */
.industry-select {
    padding: 6px 28px 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border, #30363d);
    background: var(--bg-input, #21262d);
    color: var(--text, #e6edf3);
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%238b949e' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    outline: none;
    transition: border-color 0.2s;
}

.industry-select:focus {
    border-color: var(--industry-primary, #1a73e8);
}

/* 行业主题按钮 */
.btn-industry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--industry-primary, #1a73e8);
    color: #fff;
}

.btn-industry:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-industry:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   行业切换确认弹窗覆盖层 */
.industry-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.industry-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-modal {
    background: var(--bg-card, #161b22);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.industry-modal h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    color: var(--text, #e6edf3);
}

.industry-modal p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: var(--text-2, #8b949e);
    line-height: 1.6;
}

.industry-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.industry-modal-cancel {
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid var(--border, #30363d);
    background: transparent;
    color: var(--text, #e6edf3);
    font-size: 13px;
    cursor: pointer;
}

.industry-modal-confirm {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: var(--industry-primary, #1a73e8);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
