/* 企业卡片视图样式 - 立体版 */
.company-cards {
    margin-bottom: 2rem;
    perspective: 1200px;
}

.company-cards .row {
    transform-style: preserve-3d;
}

.company-card {
    padding: 0.5rem;
}

.company-card .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e3e6f0;
    border-radius: 18px;
    height: 100%;
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%),
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    box-shadow: 
        /* 多层深度阴影 */
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.06),
        0 2px 5px rgba(0, 0, 0, 0.04),
        /* 立体边框光效 */
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05),
        inset 2px 0 0 rgba(255, 255, 255, 0.4),
        inset -2px 0 0 rgba(0, 0, 0, 0.03);
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* 卡片顶部彩色装饰条 */
.company-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #4CAF50 0%, 
        #2196F3 20%, 
        #FF9800 40%, 
        #E91E63 60%, 
        #9C27B0 80%, 
        #FF5722 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px 18px 0 0;
}

.company-card .card:hover {
    transform: translateY(-20px) translateZ(30px) rotateX(10deg) rotateY(-3deg);
    box-shadow: 
        /* 超强悬浮阴影 */
        0 35px 70px rgba(0, 0, 0, 0.25),
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 8px 15px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.08),
        /* 增强立体边框 */
        inset 0 3px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1),
        inset 3px 0 0 rgba(255, 255, 255, 0.6),
        inset -3px 0 0 rgba(0, 0, 0, 0.05),
        /* 外发光效果 */
        0 0 0 1px rgba(255, 255, 255, 0.6);
    border-color: rgba(33, 150, 243, 0.4);
    background: 
        linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.company-card .card:hover::before {
    opacity: 1;
}

.company-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.company-card .company-link {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.company-card .company-link:hover {
    color: #1e3d72;
    text-decoration: underline !important;
}

.company-card .company-url {
    font-size: 0.8rem;
    color: #6c757d;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.company-details .detail-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.375rem !important;
    padding: 0.25rem 0;
}

.company-details .detail-value {
    color: #6c757d;
    flex: 1;
    word-break: break-word;
}

.company-details i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 0.5rem;
}

/* 为不同类型的图标添加不同颜色 */
.company-details .fa-user { color: #2196F3; }
.company-details .fa-calendar { color: #4CAF50; }
.company-details .fa-coins { color: #FF9800; }
.company-details .fa-map-marker-alt { color: #F44336; }
.company-details .fa-briefcase { color: #9C27B0; }

.company-card .card-footer {
    border-top: 1px solid #e3e6f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .company-cards .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .company-card .card-title {
        font-size: 1rem;
    }
    
    .company-details .detail-item {
        font-size: 0.85rem;
    }
    
    .company-details .detail-label {
        min-width: 70px;
    }
}

@media (max-width: 576px) {
    .company-cards .row {
        margin: 0;
    }
    
    .company-cards .col-md-6,
    .company-cards .col-lg-4 {
        padding: 0 0.5rem;
    }
}

/* 立体入场动画 */
.company-card .card {
    animation: cardAppear 0.6s ease-out both;
}

.company-card:nth-child(1) .card { animation-delay: 0.1s; }
.company-card:nth-child(2) .card { animation-delay: 0.2s; }
.company-card:nth-child(3) .card { animation-delay: 0.3s; }
.company-card:nth-child(4) .card { animation-delay: 0.4s; }
.company-card:nth-child(5) .card { animation-delay: 0.5s; }
.company-card:nth-child(6) .card { animation-delay: 0.6s; }
.company-card:nth-child(7) .card { animation-delay: 0.7s; }
.company-card:nth-child(8) .card { animation-delay: 0.8s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-15deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* 卡片内容区域的最小高度 - 紧凑版 */
.company-card .card-body {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
}

.company-card .company-details {
    flex: 1;
}

.company-card .company-header {
    margin-bottom: 0.5rem !important;
}

/* 视图切换按钮样式 */
.view-toggle-section {
    margin-bottom: 1.5rem;
}

.view-toggle-buttons .btn {
    transition: all 0.3s ease;
}

.view-toggle-buttons .btn:hover {
    transform: translateY(-1px);
}

    margin-bottom: 2rem;
    perspective: 1200px;
}

.company-cards .row {
    transform-style: preserve-3d;
}

.company-card {
    padding: 0.5rem;
}

.company-card .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #e3e6f0;
    border-radius: 18px;
    height: 100%;
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%),
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    box-shadow: 
        /* 多层深度阴影 */
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.06),
        0 2px 5px rgba(0, 0, 0, 0.04),
        /* 立体边框光效 */
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05),
        inset 2px 0 0 rgba(255, 255, 255, 0.4),
        inset -2px 0 0 rgba(0, 0, 0, 0.03);
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* 卡片顶部彩色装饰条 */
.company-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #4CAF50 0%, 
        #2196F3 20%, 
        #FF9800 40%, 
        #E91E63 60%, 
        #9C27B0 80%, 
        #FF5722 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px 18px 0 0;
}

.company-card .card:hover {
    transform: translateY(-20px) translateZ(30px) rotateX(10deg) rotateY(-3deg);
    box-shadow: 
        /* 超强悬浮阴影 */
        0 35px 70px rgba(0, 0, 0, 0.25),
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 8px 15px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.08),
        /* 增强立体边框 */
        inset 0 3px 0 rgba(255, 255, 255, 0.9),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1),
        inset 3px 0 0 rgba(255, 255, 255, 0.6),
        inset -3px 0 0 rgba(0, 0, 0, 0.05),
        /* 外发光效果 */
        0 0 0 1px rgba(255, 255, 255, 0.6);
    border-color: rgba(33, 150, 243, 0.4);
    background: 
        linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

.company-card .card:hover::before {
    opacity: 1;
}

.company-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.company-card .company-link {
    color: #2c5aa0;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.company-card .company-link:hover {
    color: #1e3d72;
    text-decoration: underline !important;
}

.company-card .company-url {
    font-size: 0.8rem;
    color: #6c757d;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.company-details .detail-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.375rem !important;
    padding: 0.25rem 0;
}

.company-details .detail-value {
    color: #6c757d;
    flex: 1;
    word-break: break-word;
}

.company-details i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 0.5rem;
}

/* 为不同类型的图标添加不同颜色 */
.company-details .fa-user { color: #2196F3; }
.company-details .fa-calendar { color: #4CAF50; }
.company-details .fa-coins { color: #FF9800; }
.company-details .fa-map-marker-alt { color: #F44336; }
.company-details .fa-briefcase { color: #9C27B0; }

.company-card .card-footer {
    border-top: 1px solid #e3e6f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .company-cards .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .company-card .card-title {
        font-size: 1rem;
    }
    
    .company-details .detail-item {
        font-size: 0.85rem;
    }
    
    .company-details .detail-label {
        min-width: 70px;
    }
}

@media (max-width: 576px) {
    .company-cards .row {
        margin: 0;
    }
    
    .company-cards .col-md-6,
    .company-cards .col-lg-4 {
        padding: 0 0.5rem;
    }
}

/* 立体入场动画 */
.company-card .card {
    animation: cardAppear 0.6s ease-out both;
}

.company-card:nth-child(1) .card { animation-delay: 0.1s; }
.company-card:nth-child(2) .card { animation-delay: 0.2s; }
.company-card:nth-child(3) .card { animation-delay: 0.3s; }
.company-card:nth-child(4) .card { animation-delay: 0.4s; }
.company-card:nth-child(5) .card { animation-delay: 0.5s; }
.company-card:nth-child(6) .card { animation-delay: 0.6s; }
.company-card:nth-child(7) .card { animation-delay: 0.7s; }
.company-card:nth-child(8) .card { animation-delay: 0.8s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-15deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* 卡片内容区域的最小高度 - 紧凑版 */
.company-card .card-body {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
}

.company-card .company-details {
    flex: 1;
}

.company-card .company-header {
    margin-bottom: 0.5rem !important;
}

/* 视图切换按钮样式 */
.view-toggle-section {
    margin-bottom: 1.5rem;
}

.view-toggle-buttons .btn {
    transition: all 0.3s ease;
}

.view-toggle-buttons .btn:hover {
    transform: translateY(-1px);
}

