﻿/* qiye.css - 企业页面特定样式 (重构版) */

/* ========== 1. 全局容器与广告位 ========== */
.container {
    min-height: 80vh;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.ad_banner {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ad_placeholder.ads1,
.ad_placeholder.ads2,
.ad_placeholder.ads3 {
    height: 90px;
    background: linear-gradient(135deg, #f5f7fa, #e4edf9);
    margin: 25px 0;
    text-align: center;
    line-height: 90px;
    color: #999;
    border: 1px dashed #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-style: italic;
	overflow:hidden;
    clear:both;
	
}

/* ========== 2. 标题系统 - 强化视觉层级 ========== */
/* 主标题：页面最核心的标题 */
.main_title {
    font-size: 32px; /* 显著增大 */
    font-weight: 700; /* 加粗 */
    color: #e62a2a; /* 品牌主色 */
    padding: 20px 0;
    margin: 0 0 25px 0;
    position: relative;
}

/* 主标题下方的橙色强调线 */
.main_title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #e62a2a, #ff6a00);
    border-radius: 2px;
}

/* 二级标题：如“全国各省份...”、“热门城市...” */
.sec_title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    padding: 15px 0;
    margin: 0 0 15px 0;
    position: relative;
    /* 左侧橙色竖线强调 */
    border-left: 4px solid #ff6a00;
    padding-left: 12px;
}

/* ========== 3. 列表系统 - 极致简洁与高密度 ========== */
/* 所有列表容器的通用基础样式 */
.list_container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* 项目间间距 */
    margin: 0 -6px; /* 负边距抵消内部padding，使项目紧贴容器边缘 */
}

/* 所有列表项的通用基础样式 */
.list_item {
    flex: 1 1 calc(16.666% - 12px); /* 默认一行6个 (100%/6) */
    min-width: 140px; /* 最小宽度，防止过度挤压 */
    padding:6px 6px; /* 内边距，左右小，上下适中 */
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* 关键：移除所有边框和背景，只保留文字 */
    border: none;
    background: none;
    border-radius: 0;
}

/* 列表项悬停效果：仅改变颜色和轻微上移 */
.list_item:hover {
    color: #e62a2a;
    transform: translateY(-2px);
}

/* ========== 4. 特定列表的微调 ========== */
/* 省份列表：一行最多6个 */
.province_list .list_item {
    flex: 1 1 calc(12.5% - 12px);
    min-width: 140px;
    max-width:180px;
    overflow:hidden;
}

/* 城市列表：一行最多6个 (同省份) */
.city_list .list_item {
    flex: 1 1 calc(12.5% - 12px);
    min-width: 140px;
}

/* 行业列表：一行最多5个 (因为文字稍长) */
.industry_list .list_item {
    flex: 1 1 calc(20% - 12px);
    min-width: 160px;
}

/* 为行业数量添加徽章 - 使用 data-count 属性 (请修改ASPX代码) */
.industry_list .list_item::after {
    content: attr(data-count);
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #e62a2a;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 8px;
    line-height: 1;
}

/* 新增企业列表：使用网格，更现代 */
.new_company_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.new_company_list .list_item {
    padding: 10px 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new_company_list .list_item:hover {
    background: #e6f0ff;
    border-color: #bedfff;
    color: #005fc4;
    transform: translateX(3px);
}

/* ========== 5. 友情链接部分 ========== */
.links-section {
    margin: 35px auto 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.links-section-header {
    background: linear-gradient(to right, #f7f7f7, #fffafa);
}

.links-section-tab.active {
    background: linear-gradient(to bottom, #d11120, #e62a2a);
    box-shadow: 0 2px 5px rgba(209, 17, 32, 0.3);
}

.main_area {
    width: 72%;
    float: left;
}

.side_bar {
    width: 25%;
    float: right;
}

/* 确保清除浮动 */
.main_area,
.side_bar {
    box-sizing: border-box;
}

/* ========== 【核心美化】法人列表 - 卡片式布局 (替换旧的 .frlist .item) ========== */
/* 替代旧的 .frlist 和 .frlist .item 规则 */
.frlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px; /* 卡片之间的间距 */
    margin-top: 10px;
}

.frlist .item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.frlist .item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: #d11120;
}

/* 法人姓名 - 主标题，最突出 */
.frlist .item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #e62a2a;
    margin: 0 0 12px 0;
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f0f0f0;
}

/* 公司名称 - 次级标题 */
.frlist .item .company {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.frlist .item .company::before {
    content: "🏢";
    margin-right: 8px;
    font-size: 14px;
}

/* 邮箱 - 辅助信息 */
.frlist .item .email {
    font-size: 14px;
    color: #767676;
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.frlist .item .email::before {
    content: "✉️";
    margin-right: 8px;
    font-size: 14px;
}

/* “更多搜索”链接 - 小型按钮样式 */
.frlist .item .more-link {
    display: inline-block;
    font-size: 12px;
    color: #005fc4;
    text-decoration: none;
    margin-top: 12px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.2s;
}

.frlist .item .more-link:hover {
    background: #e6f0ff;
    color: #005fc4;
    text-decoration: underline;
}

/* ========== 【分类导航】优化 ========== */
.ct_div a {
    /* 在原有基础上增加内边距和圆角，使其更像“标签” */
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

.ct_div a.current-category {
    background-color: #e62a2a !important;
    color: white !important;
}

/* ========== 【分页】优化 ========== */
.sppage a {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin: 0 3px;
}

.sppage a.current,
.sppage a:hover {
    background-color: #e62a2a;
    color: white;
}

/* ========== 6. 响应式断点 ========== */
@media (max-width: 1200px) {
    .main_area { width: 72%; }
    .side_bar { width: 25%; }

    /* 缩小列表项，一行5个 */
    .province_list .list_item,
    .city_list .list_item {
        flex: 1 1 calc(20% - 12px);
        min-width: 130px;
    }
    .industry_list .list_item {
        flex: 1 1 calc(25% - 12px);
        min-width: 150px;
    }
}

@media (max-width: 900px) {
    .container { padding: 15px 10px; }

    .main_title {
        font-size: 26px;
        padding: 15px 0;
    }

    /* 小屏下，一行2-3个 */
    .province_list .list_item,
    .city_list .list_item {
        flex: 1 1 calc(50% - 12px);
        min-width: 120px;
    }
    .industry_list .list_item {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px;
    }

    .new_company_list {
        grid-template-columns: 1fr;
    }

    .ad_placeholder.ads1,
    .ad_placeholder.ads2,
    .ad_placeholder.ads3 {
        height: 70px;
        line-height: 70px;
    }

    .main_area,
    .side_bar {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    /* 超小屏，一行1个 */
    .province_list .list_item,
    .city_list .list_item,
    .industry_list .list_item {
        flex: 1 1 100%;
        min-width: auto;
        margin-bottom: 8px;
    }

    .links-section-title-row {
        flex-direction: column;
        align-items: flex-end;
        padding: 0 10px 10px;
    }
}