/* MARC 模态框样式 */
.marc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.marc-modal-content {
    position: relative;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 60%;
    max-width: 700px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 600px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.marc-modal-header {
    padding: 8px 15px;
    background-color: #00a2e8;
    color: white;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.marc-modal-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.marc-modal-body {
    padding: 20px;
    height: calc(100% - 50px);
    overflow: visible;
}

.marc-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
    height: 45px;
    display: flex;
    align-items: center;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    height: 45px;
    line-height: 21px;
    margin: 0;
    position: relative;
}

.tab-btn.active {
    color: #00a2e8;
    font-weight: 500;
    border-bottom: 2px solid #00a2e8;
}

.tab-btn:hover {
    color: #00a2e8;
    background-color: rgba(0, 162, 232, 0.05);
}

.marc-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.marc-info-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.marc-info-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.marc-info-table td:first-child {
    width: 120px;
    background-color: #f5f5f5;
    font-weight: bold;
}

/* 修改文本框样式 */
.marc-textarea {
    width: 100%;
    height: 440px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: 'Lucida Console', Monaco, monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    white-space: pre-wrap;      /* 允许自动换行 */
    word-wrap: break-word;      /* 允许长单词换行 */
    overflow-x: hidden;         /* 隐藏横向滚动条 */
    overflow-y: auto;
    background-color: #f8f9fa;
    color: #333;
    tab-size: 4;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    letter-spacing: 0.3px;
}

/* 优化滚动条样式 */
.marc-textarea::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.marc-textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.marc-textarea::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

.marc-textarea::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#overview {
    height: calc(100% - 60px);
    overflow: auto;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #666;
}

.retry-btn {
    margin-left: 10px;
    padding: 5px 15px;
    background: #00a2e8;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}