/* 搜索框 */
.search-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}
.search-input {
    width: 60%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
}
.search-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.search-btn:hover {
    background-color: #2980b9;
}

        .company-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 存续列表 */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.company-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.company-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #3498db;
    margin-right: 10px;
    text-decoration: none;
}
.company-name:hover {
    text-decoration: underline;
}
.view-count {
    padding: 4px 10px;
    background-color: #f39c12;
    color: white;
    border-radius: 12px;
    font-size: 0.85em;
}
.no-companies {
    text-align: center;
    color: #999;
    font-size: 1.2em;
    margin-top: 50px;
}

/* 变更历史 */
        .section-title {
            font-size: 1em;
            color: #2c3e50;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
        }

/* 旧版思维导图样式 */
.hierarchical-company-list {
    padding-left: 20px;
    padding-bottom: 10px;
    background-color: #fafafa;
    border-radius: 8px;
}

/* 思维导图节点 */
.mind-map-node {
    position: relative;
    margin-top: 3px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* 节点连接线 */
.mind-map-connector {
    position: absolute;
    left: -20px;
    top: 30px;
    width: 20px;
    height: 2px;
    background-color: #3498db;
}

/* 节点内容 */
.mind-map-content {
    background-color: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* 分支结构 */
.mind-map-branch {
    margin-left: 40px;
    #margin-top: 10px;
    border-left: 2px solid #3498db;
    padding-left: 20px;
    width: calc(100% - 60px);
}

/* 不同层级的样式调整 */
.level-0 .mind-map-content {
    background-color: #e3f2fd;
    border-color: #1976d2;
    margin-top: 10px;
}

.level-1 .mind-map-content {
    background-color: #f3e5f5;
    border-color: #7b1fa2;
}

.level-2 .mind-map-content {
    background-color: #e8f5e9;
    border-color: #388e3c;
}

.level-3 .mind-map-content {
    background-color: #fff8e1;
    border-color: #f57c00;
}

.level-4 .mind-map-content {
    background-color: #ffc9bd;
    border-color: #d37b5d;
}

/* 悬停效果 */
.mind-map-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.renamed-company-tag {
    padding: 3px 8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 0.85em;
}
.merged-company-tag {
    padding: 3px 8px;
    background-color: #95a5a6;
    color: white;
    border-radius: 4px;
    font-size: 0.85em;
}

        /* 第一行：公司基本信息 */
        .company-detail {
            background: white;
            border-radius: 8px;
            padding: 20px 30px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .company-main-info {
            display: flex;
            align-items: center;
        }

        .back-link {
            padding: 8px 16px;
            background-color: #95a5a6;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            transition: background-color 0.3s;
        }
        .back-link:hover {
            background-color: #7f8c8d;
        }
        /* 第二行：变更历史 */
        .history-section {
            background: white;
            border-radius: 8px;
            padding: 20px 30px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .section-title {
            font-size: 1.3em;
            color: #2c3e50;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #3498db;
        }
        /* 第三行：公司内容 */
        .company-content-section {
            background: white;
            border-radius: 8px;
            padding: 20px 30px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .company-content {
            line-height: 1.6;
            color: #333;
            white-space: pre-wrap;
        }
        /* 第四行：备注信息 */
        .comments-section {
            background: white;
            border-radius: 8px;
            padding: 20px 30px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .private-notice {
            color: #e74c3c;
            font-weight: bold;
        }
