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: 8px;
    transition: all 0.3s;
}

.nav a:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.refresh-btn, .control-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.refresh-btn {
    background: #28a745;
    color: white;
}

.refresh-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40,167,69,0.3);
}

.control-btn {
    background: #dc3545;
    color: white;
}

.control-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.3);
}

.status-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.status-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.status-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.status-value {
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.status-active {
    background: #28a745;
    box-shadow: 0 0 10px rgba(40,167,69,0.5);
}

.status-indicator.status-inactive {
    background: #dc3545;
    box-shadow: 0 0 10px rgba(220,53,69,0.5);
}

.status-indicator.status-error {
    background: #ffc107;
    box-shadow: 0 0 10px rgba(255,193,7,0.5);
}

.status-enabled {
    color: #28a745;
}

.status-disabled {
    color: #dc3545;
}

#log-lines, #log-source {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.service-info {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.service-info h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
}

.service-info pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    max-height: 300px;
    overflow-y: auto;
}

.logs-panel {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

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

.logs-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    background: #6c757d;
    color: white;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.logs-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.logs-content {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
}

.logs-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 滚动条样式 */
.logs-content::-webkit-scrollbar,
.service-info pre::-webkit-scrollbar {
    width: 8px;
}

.logs-content::-webkit-scrollbar-track,
.service-info pre::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.logs-content::-webkit-scrollbar-thumb,
.service-info pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.logs-content::-webkit-scrollbar-thumb:hover,
.service-info pre::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .status-panel {
        grid-template-columns: 1fr;
    }

    .nav {
        flex-direction: column;
    }

    .logs-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

