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

/* 企业区域样式 */
.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;
}

/* ============================================================
 * 采购首页楼层样式 (cg.domain.com)
 * 统一管理，勿在模板中重复定义
 * ============================================================ */

/* 统计数字条 */
.cg-stat-bar{display:flex;gap:0;background:#fff;border:1px solid #e8eaf0;border-radius:6px;overflow:hidden;margin-bottom:16px;}
.cg-stat-item{flex:1;padding:14px 0;text-align:center;border-right:1px solid #e8eaf0;}
.cg-stat-item:last-child{border-right:none;}
.cg-stat-num{font-size:26px;font-weight:700;color:#1a7fbf;line-height:1;}
.cg-stat-label{font-size:11px;color:#999;margin-top:4px;}

/* 顶部最新公告tab区域 */
.cg-top-mid-tabs{display:flex;border-bottom:2px solid #1a7fbf;margin-bottom:10px;}
.cg-top-mid-tabs span{padding:6px 16px;font-size:13px;cursor:pointer;color:#666;border-radius:4px 4px 0 0;}
.cg-top-mid-tabs span.active{background:#1a7fbf;color:#fff;}
.cg-tab-pane{display:none;}
.cg-tab-pane.active{display:block;}

/* 顶部左侧列表 */
.cg-top-left-nav{list-style:none;padding:0;margin:0;}
.cg-top-left-nav li{border-bottom:1px dotted #eee;}
.cg-top-left-nav li:last-child{border-bottom:none;}
.cg-top-left-nav a{display:flex;align-items:center;padding:7px 4px;font-size:12px;color:#333;text-decoration:none;line-height:1.3;}
.cg-top-left-nav a:hover{color:#1a7fbf;}
.cg-top-left-nav .loc-tag{background:#1a7fbf;color:#fff;font-size:10px;padding:0 5px;height:18px;line-height:18px;border-radius:2px;margin-right:6px;white-space:nowrap;flex-shrink:0;}

/* 促销推广盒子 */
.cg-promo-box{background:linear-gradient(135deg,#1a7fbf 0%,#0d5ca8 100%);color:#fff;border-radius:6px;padding:16px;margin-bottom:10px;}
.cg-promo-box .promo-title{font-size:17px;font-weight:900;color:#ffd54f;margin-bottom:4px;}
.cg-promo-box .promo-count{font-size:22px;font-weight:700;color:#ffd54f;}
.cg-promo-box .promo-sub{font-size:11px;opacity:.85;margin-bottom:8px;}
.cg-promo-box ul{padding:0;margin:0 0 12px 0;list-style:none;}
.cg-promo-box ul li{font-size:11px;opacity:.85;padding:2px 0;}
.cg-promo-box ul li::before{content:'✓ ';}
.cg-promo-btn{display:block;background:#ffd54f;color:#1a7fbf !important;text-align:center;padding:8px;border-radius:4px;font-size:13px;font-weight:700;text-decoration:none !important;}
.cg-promo-btn:hover{background:#ffca28 !important;}

/* 登录/注册框 */
.cg-user-login-box{background:linear-gradient(135deg,#1a7fbf 0%,#0d5ca8 100%);border-radius:6px;padding:16px;color:#fff;margin-bottom:10px;text-align:center;}
.cg-user-login-box .cg-btns{display:flex;gap:8px;margin-top:10px;}
.cg-user-login-box .cg-btns a{flex:1;text-align:center;padding:7px 0;border-radius:4px;font-size:13px;font-weight:600;text-decoration:none;}
.cg-action-links{background:#fff;border:1px solid #e8eaf0;border-radius:6px;overflow:hidden;}
.cg-action-links a{display:flex;align-items:center;padding:9px 12px;font-size:12px;color:#444;text-decoration:none;border-bottom:1px solid #f0f2f5;}
.cg-action-links a:last-child{border-bottom:none;}
.cg-action-links a:hover{background:#f5f9ff;color:#1a7fbf;}
.cg-action-links i{width:20px;margin-right:8px;color:#1a7fbf;font-size:14px;}

/* 楼层卡片容器 */
.cg-floor{background:#fff;border:1px solid #e8eaf0;border-radius:6px;overflow:hidden;margin-bottom:16px;}
.cg-floor-header{color:#fff;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;}
.cg-floor-header .floor-num{font-size:22px;font-weight:900;opacity:.3;margin-right:8px;font-style:italic;}
.cg-floor-header .floor-title{font-size:15px;font-weight:700;}
.cg-floor-header .floor-more{font-size:12px;color:rgba(255,255,255,.8);text-decoration:none;}
.cg-floor-header .floor-more:hover{color:#fff;}
.cg-floor-body{display:flex;min-height:280px;}

/* 左侧分类导航 */
.cg-floor-cat{width:110px;flex-shrink:0;background:#f5f7fa;border-right:1px solid #e8eaf0;}
.cg-floor-cat-item{display:flex;align-items:center;padding:11px 12px;font-size:12px;color:#555;cursor:pointer;border-bottom:1px solid #edf0f5;transition:all .15s;position:relative;}
.cg-floor-cat-item:hover{background:#e8f4ff;color:#1a7fbf;}
.cg-floor-cat-item.active{background:#fff;color:#1a7fbf;font-weight:700;border-right:none;}
.cg-floor-cat-item.active::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#1a7fbf;}
.cg-floor-cat-item .cat-icon{width:20px;text-align:center;margin-right:6px;font-size:14px;}

/* 楼层内容区 */
.cg-floor-content{flex:1;padding:0;min-width:0;}
.cg-floor-pane{display:none;padding:10px 14px;}
.cg-floor-pane.active{display:block;}
.cg-floor-list{list-style:none;padding:0;margin:0;}
.cg-floor-list li{display:flex;align-items:center;padding:7px 0;border-bottom:1px dotted #eef0f3;}
.cg-floor-list li:last-child{border-bottom:none;}
.cg-floor-list .loc{background:#1a7fbf;color:#fff;font-size:10px;padding:0 5px;height:18px;line-height:18px;border-radius:2px;margin-right:7px;white-space:nowrap;flex-shrink:0;}
.cg-floor-list .loc.green{background:#43a047;}
.cg-floor-list .loc.orange{background:#f57c00;}
.cg-floor-list .loc.red{background:#e53935;}
.cg-floor-list .loc.grey{background:#78909c;}
.cg-floor-list .ttl{flex:1;font-size:12px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;}
.cg-floor-list .ttl:hover{color:#1a7fbf;}
.cg-floor-list .dt{font-size:10px;color:#bbb;margin-left:8px;flex-shrink:0;}

/* 右侧边栏 */
.cg-floor-sidebar{width:195px;flex-shrink:0;border-left:1px solid #e8eaf0;}
.cg-sidebar-block{padding:12px;border-bottom:1px solid #edf0f5;}
.cg-sidebar-block:last-child{border-bottom:none;}
.cg-sidebar-title{font-size:12px;font-weight:700;color:#333;margin-bottom:8px;display:flex;align-items:center;}
.cg-sidebar-title i{color:#1a7fbf;margin-right:5px;}

/* 采购方式标签 */
.cg-pm-tag{display:inline-block;padding:3px 10px;font-size:11px;border-radius:12px;margin:3px 2px;text-decoration:none;cursor:pointer;}
.cg-pm-tag.blue{background:#e3f0ff;color:#1a7fbf;border:1px solid #b3d1f7;}
.cg-pm-tag.green{background:#e8f5e9;color:#388e3c;border:1px solid #b2dfdb;}
.cg-pm-tag.orange{background:#fff3e0;color:#e65100;border:1px solid #ffcc80;}
.cg-pm-tag.red{background:#fce4ec;color:#c62828;border:1px solid #f48fb1;}
.cg-pm-tag.grey{background:#f5f5f5;color:#616161;border:1px solid #e0e0e0;}
.cg-pm-tag.purple{background:#f3e5f5;color:#7b1fa2;border:1px solid #ce93d8;}
.cg-pm-tag:hover{opacity:.8;}

/* 热门/排行列表 */
.cg-hot-list{list-style:none;padding:0;margin:0;}
.cg-hot-list li{padding:5px 0;border-bottom:1px dotted #eee;font-size:11px;display:flex;align-items:center;}
.cg-hot-list li:last-child{border-bottom:none;}
.cg-hot-list a{color:#555;text-decoration:none;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cg-hot-list a:hover{color:#1a7fbf;}
.cg-hot-num{display:inline-block;width:16px;height:16px;line-height:16px;text-align:center;font-size:10px;border-radius:2px;margin-right:4px;background:#ddd;color:#fff;flex-shrink:0;}
.cg-hot-num.top3{background:#e53935;}

/* 会员卡片网格 */
.cg-member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.cg-member-card{border:1px solid #e8eaf0;border-radius:6px;padding:10px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;background:#fafbff;transition:box-shadow .2s;}
.cg-member-card:hover{box-shadow:0 2px 8px rgba(26,127,191,.15);}
.cg-member-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;font-weight:700;margin-bottom:6px;}
.cg-member-name{font-size:11px;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;font-weight:600;}
.cg-member-badge{display:inline-block;font-size:10px;padding:1px 6px;border-radius:8px;margin-top:3px;}

/* 入驻步骤 */
.cg-step{display:flex;align-items:flex-start;margin-bottom:12px;}
.cg-step:last-child{margin-bottom:0;}
.cg-step-num{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:700;flex-shrink:0;margin-right:10px;margin-top:1px;}
.cg-step-content .step-title{font-size:12px;font-weight:700;color:#333;}
.cg-step-content .step-sub{font-size:11px;color:#999;margin-top:2px;}
.cg-step-content a{color:#1a7fbf;}
