/* 企业知识库页面专属样式 */

/* 手机模拟框 */
.phone-mockup {
    width: 375px;
    height: 667px;
    border: 12px solid #1a1a1a;
    border-radius: 40px;
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 文件项卡片 */
.file-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-item:hover {
    border-color: #0066FF;
    background: #f0f7ff;
}

.file-item.selected {
    border-color: #0066FF;
    background-color: #eff6ff;
}

/* 解析状态标识 */
.status-parsing {
    color: #ca8a04;
}

.status-completed {
    color: #16a34a;
}

.status-failed {
    color: #dc2626;
}

/* 企业列表行悬停效果 */
.enterprise-row {
    transition: background-color 0.15s ease;
}

.enterprise-row:hover {
    background-color: #f9fafb;
}

/* 标签样式（蓝色 - 产业节点） */
.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
    background-color: #eff6ff;
    color: #0066FF;
    margin-right: 4px;
    margin-bottom: 2px;
}

/* 上市徽章（紫色） */
.badge-onboard {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
    background-color: #faf5ff;
    color: #9333ea;
    margin-left: 4px;
    vertical-align: middle;
}

/* 企业资质徽章（橙色） */
.badge-tech {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
    background-color: #fff7ed;
    color: #ea580c;
    margin-right: 4px;
    margin-bottom: 2px;
}

/* 融资轮次副文本 */
.stage-text {
    margin-top: 0.125rem;
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
}

/* 公司名称链接 */
.company-link {
    color: #0066FF;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.company-link:hover {
    color: #0052CC;
    text-decoration: underline;
}

/* 标签超出提示 */
.tag-more {
    font-size: 10px;
    color: #9ca3af;
    margin-left: 0.25rem;
}

/* 知识库项（左侧列表） */
.kb-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #ffffff;
}

.kb-item:hover {
    background: #f0f7ff;
    border-color: #0066FF;
}

.kb-item.active {
    border-color: #0066FF;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 3px solid #0066FF;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
}

/* 企业知识库卡片选中状态 */
#enterprise-kb-card.active-kb {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    border-left: 4px solid #0066FF;
}

/* 未开通状态灰显 */
.unopened-overlay {
    opacity: 0.5;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .phone-mockup {
        width: 300px;
        height: 533px;
        border-width: 8px;
        border-radius: 30px;
    }
    
    #sidebar {
        width: 280px;
    }
}
