/**
 * 列表页面专用样式
 * 适用于投资人列表和项目列表
 */

/* ========== 页面头部 ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.total-count {
    color: #666;
    font-size: 14px;
}

/* ========== 投资人列表 ========== */
.investor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.investor-card {
    background: white;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    height: 160px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.investor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.investor-image-container {
    width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.investor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.investor-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.investor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.investor-info {
    flex: 1;
    min-width: 0;
}

.investor-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.investor-company {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.investor-badges {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.investor-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.investor-tags,
.investor-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.investor-tag {
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.investor-footer,
.investor-stats {
    display: flex;
    gap: 15px;
}

.investor-footer {
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.investor-stats {
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item i {
    font-size: 12px;
}

.investor-location {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== 项目列表 ========== */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    height: 160px;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-image-container {
    width: 240px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-subtitle {
    font-size: 14px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.project-tag {
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.project-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-location,
.project-phase {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-location i,
.project-phase i {
    font-size: 12px;
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
}

/* ========== 响应式设计（列表页特定）========== */
@media (max-width: 768px) {
    .investor-card,
    .project-card {
        height: auto;
        min-height: 140px;
    }

    .investor-image-container,
    .project-image-container {
        width: 120px; /* 小屏占1/3 */
    }

    .investor-content,
    .project-info {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .investor-card,
    .project-card {
        height: auto;
        min-height: 120px;
    }

    .investor-image-container,
    .project-image-container {
        width: 100px; /* 极小屏占约1/4 */
    }

    .investor-content,
    .project-info {
        padding: 10px;
    }

    .page-title {
        font-size: 20px;
    }
}

/* ========== 折叠标签功能 ========== */
.collapsible-tags {
    position: relative;
}

/* 隐藏标签 - 提高优先级 */
.filter-tags.collapsible-tags .filter-tag.hidden-tag {
    display: none !important;
}

/* 展开状态 - 显示所有隐藏标签 */
.filter-tags.collapsible-tags.expanded .filter-tag.hidden-tag {
    display: inline-flex !important;
}

.toggle-tags-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin: 4px;
    font-size: 14px;
    color: #007bff;
    background: #f0f8ff;
    border: 1px solid #007bff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.toggle-tags-btn:hover {
    background: #007bff;
    color: white;
}

.toggle-tags-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .toggle-tags-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 小屏下确保折叠功能正常工作 */
    .filter-tags.collapsible-tags .filter-tag.hidden-tag {
        display: none !important;
    }
    
    .filter-tags.collapsible-tags.expanded .filter-tag.hidden-tag {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .toggle-tags-btn {
        padding: 5px 10px;
        font-size: 12px;
        margin: 2px;
    }
}



