/* JSONPath 查询器专用样式 */
.json-path-tool-container {
    /* 可选，用于微调整体布局 */
}

.json-path-card {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: all 0.2s ease;
}

.json-path-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9edf4;
}

.json-path-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.json-path-header p {
    color: #475569;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.json-path-header p span {
    background: #eef2ff;
    color: #1e40af;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.json-path-main-panel {
    padding: 2rem;
    background: #ffffff;
}

.json-path-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 三栏布局 */
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

@media (max-width: 900px) {
    .json-path-editor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.json-path-input-area,
.json-path-query-area,
.json-path-output-area {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.json-path-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.json-path-label-row label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.json-path-label-row label i {
    font-style: normal;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 400;
    color: #475569;
}

.json-path-clear-btn {
    background: none;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    background: white;
}

.json-path-clear-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.json-path-textarea {
    width: 100%;
    height: 280px;
    padding: 1.2rem 1.3rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    background: #fafcff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    resize: vertical;
    outline: none;
    transition: 0.15s;
    color: #0b1e33;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.json-path-textarea:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}

.json-path-output-box {
    background: #f1f5f9;
    border-color: #d1d9e6;
    color: #1e293b;
    resize: none;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.json-path-output-box:focus {
    border-color: #3b82f6;
    background: #fefefe;
}

.json-path-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    justify-content: space-between;
}

.json-path-btn-group {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.json-path-btn {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.json-path-btn-primary {
    background: #1e293b;
    border-color: #1e293b;
    color: white;
    box-shadow: 0 8px 16px -6px rgba(30, 41, 59, 0.3);
}

.json-path-btn-primary:hover {
    background: #0f172a;
    border-color: #0f172a;
    transform: translateY(-1px);
}

.json-path-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.json-path-error-message {
    background: #fee2e2;
    border-left: 5px solid #ef4444;
    color: #b91c1c;
    padding: 0.9rem 1.5rem;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.8rem;
    word-break: break-word;
}

.json-path-error-message.hidden {
    display: none;
}

.json-path-footer-note {
    margin-top: 1.2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.2rem;
}

.json-path-stats {
    font-size: 0.75rem;
    background: #ecfdf5;
    color: #065f46;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    border: 1px solid #a7f3d0;
}

.json-path-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* JSONPath 选项样式（对应 HTML 中的 .jsonpath-options） */
.jsonpath-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.jsonpath-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.jsonpath-option-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.jsonpath-option-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    outline: none;
    transition: border-color 0.15s;
}

.jsonpath-option-input:focus {
    border-color: #3b82f6;
}

.jsonpath-option-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.jsonpath-option-select:focus {
    border-color: #3b82f6;
}

/* 查询选项（对应 .query-options） */
.query-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.query-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.query-option label {
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
}

.query-option input[type="checkbox"] {
    cursor: pointer;
}

/* 下载按钮样式 */
.json-path-download-btn {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.json-path-download-btn:hover {
    background: #059669;
    border-color: #059669;
}

/* 快捷表达式区域 */
.quick-expressions {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quick-expressions-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.quick-expression-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-expression-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s;
}

.quick-expression-btn:hover {
    background: #eef2ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* 查询统计区域 */
.query-stats-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.query-stats-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.query-stats-content {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.6;
}

.query-stats-content span {
    font-weight: 600;
    color: #0f172a;
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-right: 0.5rem;
}