/* 首页优化样式 - 合并和压缩版本 */

/* 企业区域样式 */
.company-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    padding: 0;
}

.company-list-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 80px;
    margin: -1px -1px 0 0;
}

.company-list-item:hover {
    background-color: #f8f9fa;
    border-color: #5c90d2;
}

.company-logo-small {
    width: 60px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.company-name-text {
    flex: 1;
    min-width: 0;
}

.company-name-text a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-name-text a:hover {
    color: #5c90d2;
}

/* 导航悬停效果 */
.layui-nav .layui-nav-item.nav-hover-item {
    position: relative !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.layui-nav .layui-nav-item.nav-hover-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.layui-nav .layui-nav-item.nav-hover-item:hover a {
    color: white !important;
}

/* 注意: .floor-title 样式已移至 unified-style.css */

/* 面包屑分隔符样式 */
.layui-breadcrumb span[lay-separator] {
    margin: 1px;
    color: #999;
}

/* 注意: .layui-card 和 .layui-card-header 样式已移至 unified-style.css */

/* 服务项目样式 */
.service-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f8f9ff;
    padding-left: 10px;
}

.service-item:last-child {
    border-bottom: none;
}

/* 新闻项目样式 */
.news-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .news-dot {
    width: 6px;
    height: 6px;
    background: #5c90d2;
    border-radius: 50%;
    margin-top: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 统计样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 0;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-number {
    font-size: 22px;
    font-weight: bold;
    color: #5c90d2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* 最新企业样式 */
.latest-companies {
    padding: 10px 0;
}

.latest-company-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.latest-company-item:last-child {
    border-bottom: none;
}

.company-name-small {
    flex: 1;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-name-small:hover {
    color: #5c90d2;
}

.company-time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .company-logo-small {
        width: 50px;
        height: 35px;
        margin-right: 12px;
    }
    
    .company-name-text a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .layui-col-md9,
    .layui-col-md3 {
        margin-bottom: 20px;
    }
    
    .company-list-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .company-list-item {
        padding: 12px 15px;
        min-height: 70px;
    }
    
    .company-logo-small {
        width: 45px;
        height: 30px;
        margin-right: 10px;
    }
    
    .company-name-text a {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .company-list-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .company-list-item {
        padding: 10px 12px;
        min-height: 60px;
    }
    
    .company-logo-small {
        width: 40px;
        height: 25px;
        margin-right: 8px;
    }
    
    .company-name-text a {
        font-size: 11px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-list-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* 延迟动画 */
.company-list-item:nth-child(1) { animation-delay: 0.1s; }
.company-list-item:nth-child(2) { animation-delay: 0.2s; }
.company-list-item:nth-child(3) { animation-delay: 0.3s; }
.company-list-item:nth-child(4) { animation-delay: 0.4s; }
.company-list-item:nth-child(5) { animation-delay: 0.5s; }
.company-list-item:nth-child(6) { animation-delay: 0.6s; }
.company-list-item:nth-child(7) { animation-delay: 0.7s; }
.company-list-item:nth-child(8) { animation-delay: 0.8s; }
.company-list-item:nth-child(9) { animation-delay: 0.9s; }
.company-list-item:nth-child(10) { animation-delay: 1.0s; }
.company-list-item:nth-child(11) { animation-delay: 1.1s; }
.company-list-item:nth-child(12) { animation-delay: 1.2s; }

/* 性能优化 */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* 减少重绘和回流 */
.company-list-item,
.service-item,
.news-item {
    will-change: transform;
}

/* 硬件加速 - 注意: .layui-card 相关样式已移至 unified-style.css */
.company-list-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}
