/* 列表页样式 */
.zjg-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 筛选条件区域 */
.filter-section {
    background: white;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.filter-item label {
    font-weight: 500;
    color: #333;
    margin-right: 15px;
    min-width: 60px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-tag {
    padding: 6px 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.filter-tag:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.filter-tag.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 搜索区域 */
.search-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#searchInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    border-color: #007bff;
}

.search-btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

.reset-btn {
    padding: 10px 20px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* 机构卡片列表样式 */
.institution-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.institution-item {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 32px;
    box-sizing: border-box;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    animation: slideInUp 0.6s ease-out;
}

.institution-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.institution-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    margin-right: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.institution-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.institution-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.institution-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
    text-align: left;
}

.institution-tags {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.institution-tags .tag {
    display: inline-block;
    background: #f0f6ff;
    color: #1976d2;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 13px;
    border: none;
}

.institution-location {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.institution-location .location-icon {
    margin-right: 4px;
    background: url('../img/address_icon.png') no-repeat center center;
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    flex-shrink: 0;
    display: inline-block;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 空数据状态 */
.empty-data {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-data p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .institution-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .institution-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .institution-item {
        padding: 16px 12px;
    }
    .institution-logo { 
        margin-right: 16px; 
    }
}

@media (max-width: 768px) {
    .zjg-container {
        padding: 10px;
    }
    
    .filter-section {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-item label {
        margin-bottom: 10px;
    }
    
    .search-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .zjg-container {
        padding: 5px;
    }
    
    .filter-section {
        padding: 10px;
    }
    
    .institution-logo img {
        width: 60px;
        height: 60px;
    }
    
    .institution-name {
        font-size: 14px;
    }
    
    .institution-tags .tag {
        font-size: 11px;
        padding: 3px 6px;
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 详情页样式 */
.zjg-detail-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 面包屑导航 */
.xhb_crumb {
    margin-bottom: 20px;
    color: #666;
}

.xhb_crumb a {
    color: #007bff;
    text-decoration: none;
}

.xhb_crumb i {
    margin: 0 8px;
    color: #999;
}

/* 顶部两栏布局 */
.institution-top {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 20px;
}

/* 左侧主要信息 */
.institution-main {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-box {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-info {
    flex: 1;
}

.main-info .title {
    padding: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: left;
}

.tags-jg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f7ff;
    color: #007bff;
    border-radius: 4px !important;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-style: normal;
}

.tag.vip-tag {
    background: #fff1e6;
    color: #ff6b00;
}

.share-btn {
    position: absolute;
    top: 24px;
    right: 24px;
}

.share-btn button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn button:hover {
    background: #f0f7ff;
}

.share-btn i {
    margin-right: 4px;
    font-size: 16px;
}

.main-desc {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

.main-desc p{
    text-indent: 2em;
}

/* 右侧基础信息 */
.institution-side {
    background:#fff url(../img/shop-info-bg.png) no-repeat top center;   
    background-size: 100% auto;
    border-radius: 8px;
    padding: 20px;
    padding-top: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.side-header i {
    font-size: 20px;
    color: #007bff;
    margin-right: 8px;
}

.side-header span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.info-row .label {
    color: #666;
    min-width: 80px;
    margin-right: 8px;
}

.info-row .value {
    color: #333;
    flex: 1;
}

/* Tab区域 */
.institution-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid #e8e8e8;
}

.tab-list {
    display: flex;
}

.tab {
    padding: 16px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab.active {
    color: #007bff;
    font-weight: 500;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.more-link {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #007bff;
}

.tab-content {
    padding: 24px;
}

/* 详细信息区域 */
.institution-detail-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 24px;
}

.tab {
    padding: 16px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #007bff;
    font-weight: bold;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #007bff;
}

.section-content {
    color: #666;
    line-height: 1.6;
}

/* 资质证书列表 */
.qualification-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.qualification-item {
    text-align: center;
}

.qualification-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qualification-item p {
    color: #333;
    font-size: 14px;
}

/* 商品列表样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 宽高比 */
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #ff4d4f;
    font-size: 16px;
    font-weight: bold;
}

.product-price small {
    font-size: 12px;
    font-weight: normal;
}

/* 分页样式 */
.pagination-container {
    text-align: center;
    padding: 20px 0;
}

/* 商品列表响应式 */
@media screen and (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media screen and (max-width: 768px) {
    .product-list {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 15px;
        height: 42px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* 空数据提示 */
.empty-tip {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

/* 详情页响应式适配 */
@media screen and (max-width: 1200px) {
    .institution-top {
        grid-template-columns: 1fr 280px;
    }
}

@media screen and (max-width: 992px) {
    .institution-top {
        grid-template-columns: 1fr;
    }

    .institution-side {
        order: -1;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-btn {
        position: static;
        margin-top: 16px;
        text-align: center;
    }

    .share-btn button {
        width: 100%;
        justify-content: center;
    }

    .tags-jg {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .zjg-detail-container {
        padding: 10px;
    }

    .tab {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 响应式布局 */
@media screen and (max-width: 1400px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

/* 轮播图样式 */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-list {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(255,255,255,0.8);
}

.nav-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播图响应式 */
@media screen and (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 15px;
        font-size: 14px;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 10px;
        font-size: 13px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* ===== 企业全生命周期服务模块 ===== */
.lifecycle-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    overflow: hidden;
}

.lifecycle-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.lifecycle-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.lifecycle-title .title-bar {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
    border-radius: 2px;
}

.lifecycle-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.lifecycle-title .title-sub {
    font-size: 14px;
    color: #64748b;
}

.lifecycle-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.lifecycle-tabs::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed #cbd5e1;
    z-index: 0;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 24px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    position: relative;
    z-index: 1;
}

.tab-item:hover {
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(59,130,246,0.15);
}

.tab-item.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.tab-item .tab-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tab-arrow {
    display: flex;
    align-items: center;
    color: #93c5fd;
    z-index: 1;
}

/* 鱼骨图区域 */
.lifecycle-chart {
    position: relative;
    padding: 30px 40px 40px;
    min-height: 320px;
}

.fishbone-spine {
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #60a5fa, #1d4ed8);
    border-radius: 2px;
    transform: translateY(-50%);
}

.fishbone-columns {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    position: relative;
    z-index: 1;
    min-height: 280px;
}

.fishbone-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    max-width: 260px;
    min-height: 280px;
}

.fishbone-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.fishbone-branch.top {
    padding-bottom: 10px;
}

.fishbone-branch.bottom {
    padding-top: 10px;
}

.branch-connector {
    width: 2px;
    height: 24px;
    background: #93c5fd;
}

.branch-category {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
    text-align: center;
}

.branch-leaves {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 12px 8px;
    max-width: 230px;
}

.leaf-node {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.leaf-node:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}

/* 弹窗内机构列表（智慧地图 960×720 弹窗，3 列网格） */
.lifecycle-modal-institutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 4px;
}

.lifecycle-modal-institution {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.lifecycle-modal-institution:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
}

.lifecycle-modal-institution .inst-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.lifecycle-modal-institution .inst-info {
    flex: 1;
    min-width: 0;
}

.lifecycle-modal-institution .inst-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lifecycle-modal-institution .inst-address {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.lifecycle-modal-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* 空状态 */
.lifecycle-chart-empty {
    text-align: center;
    padding: 60px;
    color: #94a3b8;
    font-size: 15px;
}

/* 生命周期模块响应式 */
@media screen and (max-width: 992px) {
    .lifecycle-header {
        padding: 20px 24px 16px;
    }
    .fishbone-columns {
        flex-wrap: wrap;
        gap: 20px;
    }
    .fishbone-col {
        min-width: 200px;
        max-width: 48%;
        flex: none;
    }
    .fishbone-spine {
        display: none;
    }
    .fishbone-col {
        justify-content: flex-start;
        gap: 16px;
        min-height: auto;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px;
    }
    .branch-connector {
        display: none;
    }
    .lifecycle-modal-institutions {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .tab-item {
        padding: 8px 18px;
        font-size: 13px;
        margin: 4px 6px;
    }
    .tab-arrow {
        display: none;
    }
    .lifecycle-tabs::before {
        display: none;
    }
    .lifecycle-chart {
        padding: 20px 16px;
    }
    .fishbone-col {
        max-width: 100%;
        min-width: 100%;
    }
}

/* ===== 企业全生命周期服务图谱（G6 鱼骨连线图）===== */
.lifecycle-chart {
    padding: 0;
    min-height: 0;
}

#lifecycleChart {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

#lifecycleChart canvas {
    display: block;
    border-radius: 0 0 12px 12px;
}

#lifecycleChart {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

#lifecycleChart canvas {
    display: block;
    border-radius: 0 0 12px 12px;
}

.fishbone-loading {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    background: #fbfdff;
    z-index: 3;
}

.fishbone-loading .ld {
    width: 22px;
    height: 22px;
    border: 2px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: fbSpin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes fbSpin {
    to {
        transform: rotate(360deg);
    }
}

.fishbone-empty {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    z-index: 6;
}

.fishbone-tip {
    position: absolute;
    right: 14px;
    bottom: 10px;
    z-index: 5;
    font-size: 11px;
    color: #7c8ba5;
    background: rgba(255, 255, 255, 0.82);
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(15, 40, 90, 0.08);
    pointer-events: none;
}

@media (max-width: 992px) {
    #lifecycleChart {
        height: 520px;
    }
}

@media (max-width: 768px) {
    #lifecycleChart {
        height: 460px;
    }
}

/* ===== 阶段 tab：机构数徽标（智慧地图对接） ===== */
.tab-item .tab-name {
    line-height: 1;
}
.tab-item .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    padding: 0 8px;
    height: 18px;
    margin-left: 6px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}
.tab-item.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ===== 服务机构列表（leaf org modal） ===== */
.lifecycle-modal-institutions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.inst-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: all .18s ease;
    position: relative;
}
.inst-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}
.inst-logo-wrap {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4ff 0%, #dde9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.inst-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.inst-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #2563eb;
    background: linear-gradient(135deg, #eef4ff 0%, #dde9ff 100%);
}
.inst-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.inst-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inst-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.inst-tags-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.inst-tags-label {
    font-size: 12px;
    color: #94a3b8;
    margin-right: 2px;
}
.inst-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 4px;
    white-space: nowrap;
}
.inst-tag-field {
    background: #eef4ff;
    color: #2563eb;
    border: 1px solid #d4e3ff;
}
.inst-tag-stage {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}
/* 联系人和电话用的中性 chip（与服务领域蓝色 chip 区分） */
.inst-tag-value {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.inst-info-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.inst-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
    line-height: 22px;
}
.inst-info-label {
    flex: 0 0 auto;
    min-width: 56px;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
}
.inst-info-row .inst-tag {
    /* chip 样式已在 .inst-tag 定义 */
}
.inst-address {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    /* 不再做单行截断，地址允许自然换行 */
    word-break: break-all;
}
.inst-address .layui-icon {
    font-size: 14px;
    color: #94a3b8;
    flex: 0 0 auto;
    margin-top: 1px;
}
.inst-arrow {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #cbd5e1;
    border-right: 1.5px solid #cbd5e1;
    transform: rotate(45deg);
    margin: auto 0 auto 6px;
    transition: border-color .18s ease;
    box-sizing: border-box;
}
.inst-card:hover .inst-arrow {
    border-color: #2563eb;
}
@media (max-width: 720px) {
    .lifecycle-modal-institutions {
        grid-template-columns: 1fr;
    }
}

/* ===== 机构详情页扩展（徽章 / tags / 扩展 section） ===== */
.title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.title-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.6;
}
.title-badge-partner {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}
.title-badge-vip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #fbbf24;
}
.tags-jg .tag-field {
    background: #eef4ff;
    color: #2563eb;
    border: 1px solid #d4e3ff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.tags-jg .tag-industry {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}
.tags-jg .tags-empty {
    color: #94a3b8;
    font-size: 13px;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.meta-item .layui-icon {
    font-size: 14px;
    color: #94a3b8;
}
.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: #2563eb;
    background: linear-gradient(135deg, #eef4ff 0%, #dde9ff 100%);
}
.extra-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #e6ebf2;
}
.extra-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 14px;
}
.extra-section-bar {
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #2563eb;
    border-radius: 2px;
}
.extra-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}
.biz-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    padding: 4px 0;
}
.biz-row .label {
    flex: 0 0 auto;
    min-width: 100px;
    color: #94a3b8;
}
.biz-row .value {
    flex: 1 1 auto;
    min-width: 0;
    color: #334155;
    word-break: break-all;
}
.extra-section-honor-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.honor-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
.honor-item .layui-icon {
    font-size: 16px;
    color: #f59e0b;
}
.info-row a.value {
    color: #2563eb;
    text-decoration: none;
    word-break: break-all;
}
.info-row a.value:hover {
    text-decoration: underline;
}
.empty-tip {
    padding: 40px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}
@media (max-width: 992px) {
    .extra-section-grid {
        grid-template-columns: 1fr;
    }
}


