/* 路由追踪页面样式 */
.tool-page {
    padding: 20px 0;
}

.tool-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-intro {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

.tool-intro h3 {
    margin-top: 0;
    color: #333;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.tool-content {
    flex: 1;
    min-width: 300px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.input-field {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
}

.input-field:focus {
    outline: none;
    border-color: #17a2b8;
}

.btn-primary {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: fit-content;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #117a8b;
}

.result-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.result-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.trace-result {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
    font-family: monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.8;
    margin-top: 15px;
}

.trace-result pre {
    margin: 0;
    background: transparent;
    padding: 0;
    line-height: inherit;
}

.no-trace {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.hidden {
    display: none;
}

/* 专门针对结果内容的样式 */
.result-content {
    margin-top: 15px;
}

.result-content .trace-result {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #17a2b8;
    font-family: monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.8;
    margin-top: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.result-content .trace-result pre {
    margin: 0;
    background: transparent;
    padding: 0;
    line-height: inherit;
    white-space: inherit;
}

.result-content .no-trace {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.message-element {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    z-index: 9999;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
}

.message-error {
    background: #f56c6c;
}

.message-success {
    background: #67c23a;
}

.message-info {
    background: #409eff;
}

@media (max-width: 768px) {
    .tool-container {
        flex-direction: column;
    }
    
    .tool-intro, .tool-content {
        width: 100%;
    }
    
    .input-section, .result-section {
        padding: 20px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .input-field {
        max-width: 100%;
    }
}