body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2em;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav a {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background: #0056b3;
}

.refresh-btn {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: #218838;
}

.info-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
    font-size: 1em;
    word-break: break-all;
}

.controls-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: bold;
    color: #666;
    white-space: nowrap;
}

.control-group select,
.control-group input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.control-group input[type="text"] {
    min-width: 200px;
}

.btn-small {
    padding: 8px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-small:hover {
    background: #0056b3;
}

.search-results {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.search-results h3 {
    margin-top: 0;
    color: #856404;
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

.search-result-item {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.line-num {
    font-weight: bold;
    color: #856404;
    margin-right: 10px;
}

.line-content {
    display: inline-block;
    margin: 0;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-all;
}

.logs-panel {
    margin-top: 20px;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.logs-header h3 {
    margin: 0;
    color: #333;
}

.logs-stats {
    color: #666;
    font-size: 0.9em;
}

.logs-content {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
}

.logs-content pre {
    margin: 0;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 日志行高亮 */
.logs-content pre {
    background: transparent;
}

/* 滚动条样式 */
.logs-content::-webkit-scrollbar,
.search-results-list::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.logs-content::-webkit-scrollbar-track,
.search-results-list::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 5px;
}

.logs-content::-webkit-scrollbar-thumb,
.search-results-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

.logs-content::-webkit-scrollbar-thumb:hover,
.search-results-list::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .info-panel {
        grid-template-columns: 1fr;
    }
    
    .controls-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group input[type="text"] {
        width: 100%;
    }
}

