/* 搜索框 */
.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;
        }

/* 节点内容与逸闻并排显示 */
.mind-map-content-with-anecdotes {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

/* 右侧浮动层样式 */
.anecdote-float-layer {
    position: fixed;
    right: 5px;
    top: 7%;
    width: 250px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 1000;
}

.anecdote-float-header h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.anecdote-float-list {
    max-height: 350px;
    overflow-y: auto;
}

.anecdote-float-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.anecdote-float-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.anecdote-company-name {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    text-decoration: none;
    font-size: 14px;
}

.anecdote-company-name:hover {
    color: #f39c12;
    text-decoration: underline;
}

.anecdote-content-preview {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.anecdote-number {
    font-weight: bold;
    color: #000000;
    margin-right: 6px;
    font-size: 12px;
    display: inline-block;
    width: 50px;
    text-align: right;
}

/* 彩虹色样式 - TOP 1-7 */
.rainbow-red {
    color: #ff0000 !important;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000000;
}

.rainbow-orange {
    color: #ff6600 !important;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000000;
}

.rainbow-yellow {
    color: #ffff00 !important;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000000;
}

.rainbow-green {
    color: #00cc00 !important;
    font-weight: bold;
}

.rainbow-blue {
    color: #0066ff !important;
    font-weight: bold;
}

.rainbow-indigo {
    color: #6600cc !important;
    font-weight: bold;
}

.rainbow-purple {
    color: #cc00cc !important;
    font-weight: bold;
}

/* 滚动条样式 */
.anecdote-float-list::-webkit-scrollbar {
    width: 6px;
}

.anecdote-float-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.anecdote-float-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.anecdote-float-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}
