/* Redis命令生成器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.2rem;
    color: #5a6a7e;
}

/* 命令生成器样式 */
.command-builder {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.command-builder:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.type-selector {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.type-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.type-tab {
    padding: 8px 16px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    color: #555;
}

.type-tab:hover {
    background-color: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.type-tab.active {
    background-color: #4318ff;
    color: white;
    border-color: #4318ff;
    box-shadow: 0 4px 12px rgba(67, 24, 255, 0.2);
}

.command-section {
    display: flex;
    flex-wrap: wrap;
}

.command-list {
    flex: 0 0 300px;
    border-right: 1px solid #eee;
    height: 500px;
    overflow-y: auto;
}

.command-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.command-item:hover {
    background-color: #f8f9fa;
}

.command-item.active {
    background-color: #f0f4ff;
    border-left: 3px solid #4318ff;
}

.command-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.command-item-desc {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.command-detail {
    flex: 1;
    padding: 25px;
    min-width: 300px;
}

.command-header {
    margin-bottom: 20px;
}

.command-name {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.command-syntax {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.command-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.params-form {
    margin-bottom: 25px;
}

.param-group {
    margin-bottom: 15px;
}

.param-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}

.param-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.param-input:focus {
    border-color: #4318ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(67, 24, 255, 0.1);
}

.command-result-container {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.result-label {
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.command-result {
    font-family: monospace;
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    min-height: 50px;
}

.copy-btn {
    background-color: #4318ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 10px;
}

.copy-btn:hover {
    background-color: #3010cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 24, 255, 0.2);
}

/* Redis信息部分 */
.redis-info {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.redis-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.redis-info h3 {
    font-size: 1.3rem;
    color: #444;
    margin: 25px 0 15px;
}

.redis-info p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.redis-info ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.redis-info li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.redis-info strong {
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .command-section {
        flex-direction: column;
    }
    
    .command-list {
        flex: none;
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .command-detail {
        padding: 20px;
    }
    
    .type-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .type-tab {
        white-space: nowrap;
    }
} 