/* 模块特定样式 */
.module-header {
    margin-bottom: 15px;
}

/*.module-header h3 {*/
/*    color: var(--primary-color);*/
/*    margin-bottom: 8px;*/
/*    font-size: 1.2rem;*/
/*}*/
/* 模块标题样式 */
.module-header h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.module-header h3 .sub-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}

.module-header p {
    color: #666;
    font-size: 0.9rem;
}

.headers-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.headers-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    resize: vertical;
}

/* JSON 语法高亮 */
.json-key {
    color: #d73a49;
}

.json-string {
    color: #032f62;
}

.json-number {
    color: #005cc5;
}

.json-boolean {
    color: #6f42c1;
}

.json-null {
    color: #6a737d;
}

/* HTML 语法高亮 */
.html-tag {
    color: #d73a49;
}

.html-attr {
    color: #6f42c1;
}

.html-value {
    color: #032f62;
}

.html-comment {
    color: #6a737d;
    font-style: italic;
}

/* 加载状态 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* 错误状态 */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* 成功状态 */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

/* 模块特定输入提示 */
.input-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* 历史记录 */
.history-section {
    margin-top: 15px;
}

.history-item {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.history-item:hover {
    background: #f1f5f9;
}

.history-item:last-child {
    margin-bottom: 0;
}

/* 确保pre标签也能自动换行 */
