/* ============================================
   style-modal.css - 弹窗样式
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-content h3 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin-bottom: 10px;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.modal-buttons button {
    margin-left: 10px;
}

/* 表格配置样式 */
.table-config {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.table-config label {
    flex: 1;
}

.table-config input,
.table-config select {
    width: 80px;
    margin-left: 10px;
}

/* 表格预览样式 */
.table-preview {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    max-height: 200px;
    overflow: auto;
}

#table-preview-content {
    font-family: monospace;
    font-size: 13px;
    white-space: pre;
    color: #666;
}

/* 图标网格样式 */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.icon-btn {
    width: 100%;
    aspect-ratio: 1;
    font-size: 14px;
    padding: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.icon-btn i {
    font-size: 18px;
    color: #666;
}

/* 锚点提示样式 - 暗色低调 */
.anchor-hint {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.anchor-hint i {
    margin-right: 6px;
    color: #999;
}

.anchor-hint code {
    display: inline-block;
    margin-top: 4px;
    font-family: monospace;
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
    color: #555;
}
