/**
 * CRM 全局样式
 * 
 * 提取自多个 HTML 文件的内联样式
 * 统一管理和维护
 */

/* ==================== 基础样式 ==================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ==================== Glass 效果组件 ==================== */
.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ==================== 导航组件 ==================== */
.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(56, 189, 248, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    border-radius: 0 3px 3px 0;
}

/* ==================== 搜索框 ==================== */
.search-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    outline: none;
}

/* ==================== 标签组件 ==================== */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-vip {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.tag-potential {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.tag-new {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.tag-regular {
    background: rgba(255, 230, 109, 0.2);
    color: #ffe66d;
}

/* ==================== 状态徽章 ==================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.status-follow {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ==================== 信息卡片 ==================== */
.info-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

/* ==================== Tab 组件 ==================== */
.tab-btn {
    padding: 12px 24px;
    font-weight: 500;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
}

.tab-btn:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.tab-btn.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

/* ==================== 渐变文本 ==================== */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* ==================== 响应式工具 ==================== */
@media (max-width: 768px) {
    .glass-card {
        padding: 12px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    body {
        background: white;
    }
    
    .glass-card,
    .glass-panel {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}
