* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.section-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 0.875rem;
}

.form-group small a {
    color: #667eea;
    text-decoration: none;
}

.form-group small a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group span {
    font-weight: 600;
}

.info-text {
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
    padding: 12px 16px;
    margin: 20px 0 0 0;
    border-radius: 4px;
    color: #0050b3;
    font-size: 0.9rem;
}

/* 按钮 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #38a169;
    transform: translateY(-2px);
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #e53e3e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #4a5568;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* 控制按钮 */
.control-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* 状态面板 */
.status-panel {
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.status-item:last-child {
    border-bottom: none;
}

.status-item .label {
    font-weight: 600;
    color: #555;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-active {
    background: #c6f6d5;
    color: #22543d;
}

.status-inactive {
    background: #e2e8f0;
    color: #4a5568;
}

/* 日志 */
.log-container {
    max-height: 400px;
    overflow-y: auto;
    background: #f7fafc;
    padding: 16px;
    border-radius: 8px;
    margin-top: 10px;
}

.log-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #e2e8f0;
}

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

.log-success {
    border-left-color: #48bb78;
}

.log-error {
    border-left-color: #f56565;
}

.log-running {
    border-left-color: #4299e1;
}

.log-pending {
    border-left-color: #ed8936;
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.log-status {
    font-weight: 600;
}

.log-time {
    color: #718096;
}

.log-duration {
    color: #a0aec0;
}

.log-message {
    font-size: 0.875rem;
    color: #4a5568;
}

.log-message a {
    color: #667eea;
    text-decoration: none;
    margin-left: 8px;
}

.log-message a:hover {
    text-decoration: underline;
}

.loading {
    text-align: center;
    color: #a0aec0;
    padding: 20px;
}

.error {
    color: #f56565;
    text-align: center;
    padding: 20px;
}

.info {
    color: #4299e1;
    text-align: center;
    padding: 20px;
}

/* 帮助区域 */
.help-section {
    background: #fff5f5;
    border: 2px solid #feb2b2;
}

.help-section h2 {
    color: #c53030;
    border-bottom-color: #fc8181;
}

.help-section ol {
    margin-left: 20px;
}

.help-section li {
    margin: 10px 0;
}

.help-section code {
    background: #fed7d7;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* 警告区域 */
.warning-section {
    background: #fffbeb;
    border: 2px solid #fbd38d;
}

.warning-section h2 {
    color: #c05621;
    border-bottom-color: #f6ad55;
}

.warning-section ol {
    margin-left: 20px;
    margin-top: 10px;
}

.warning-section li {
    margin: 10px 0;
}

.warning-section code {
    background: #feebc8;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* 响应式 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .control-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-right: 0;
    }

    .status-item {
        flex-direction: column;
        gap: 4px;
    }

    .log-header {
        flex-direction: column;
        gap: 4px;
    }
}
